
/*
Theme Name: GreenCart Talabat
Description: WooCommerce theme (green) with Order Screen, WhatsApp checkout button, Homepage brand slider, Category ribbon, and Shop Console by categories.
Version: 1.6.0
Text Domain: greencart-talabat
*/
:root{--gc-green:#16a34a;--gc-border:#e5e7eb;--gc-muted:#6b7280;}
*{box-sizing:border-box} body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;margin:0;background:#f7f7f7;color:#111}
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.header{background:#fff;position:sticky;top:0;z-index:9;box-shadow:0 8px 20px rgba(0,0,0,.05)}
.header .wrap{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0}
.custom-logo{max-height:34px}
.header .search{flex:1}
.header .search input{width:100%;padding:12px 14px;border:1px solid var(--gc-border);border-radius:10px}
.btn{background:var(--gc-green);color:#fff;border:0;border-radius:10px;padding:10px 14px;cursor:pointer}
.btn.outline{background:#fff;color:#15803d;border:1px solid #15803d}
.card{background:#fff;border:1px solid var(--gc-border);border-radius:16px;box-shadow:0 10px 25px rgba(0,0,0,.05)}
.card .head{padding:14px 16px;border-bottom:1px solid var(--gc-border);display:flex;justify-content:space-between;align-items:center}
.card .body{padding:16px}
/* Home hero */
.homeHero{position:relative;height:320px;margin:16px 0;overflow:hidden;border-radius:16px;border:1px solid var(--gc-border);background:#fff}
.homeHero .slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transition:.5s}
.homeHero .slide.active{opacity:1}
.homeHero img{max-height:80%;width:auto}
.homeHero .dots{position:absolute;left:0;right:0;bottom:10px;display:flex;gap:6px;justify-content:center}
.homeHero .dot{width:8px;height:8px;border-radius:50%;background:#d1d5db}
.homeHero .dot.active{background:#16a34a}
.homeHero .cta{position:absolute;right:14px;bottom:14px}
/* Shop */
.grid{display:grid;gap:16px}
.grid-shop{grid-template-columns:280px 1fr 320px}
@media(max-width:1060px){.grid-shop{grid-template-columns:1fr}.sidebar-cats{display:none}}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.product{border:1px solid var(--gc-border);border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.product .img{padding-top:70%;background:#f1f5f9}
.product .info{padding:12px 14px;display:flex;gap:6px;flex:1;flex-direction:column}
.product .row{margin-top:auto;display:flex;justify-content:space-between;align-items:center}
.product .add{width:36px;height:36px;border-radius:999px;background:#16a34a;color:#fff;border:0}
.sidebar-cats .body{display:flex;flex-direction:column;gap:8px}
.sidebar-cats .cat{padding:12px 14px;border:1px solid var(--gc-border);border-radius:12px;display:flex;justify-content:space-between}
/* Ribbon */
.shopTop{margin:10px 0 14px}
.shopSearch input{width:100%;padding:14px 16px;border:1px solid var(--gc-border);border-radius:14px}
.catRibbon{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px}
.catCard{flex:0 0 auto;min-width:160px;background:#faf7f4;border:1px solid #eee;border-radius:20px;padding:12px 14px;display:flex;gap:12px;align-items:center}
.catCard .thumb{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #eee;display:flex;align-items:center;justify-content:center;overflow:hidden}
.catCard img{max-width:100%;max-height:100%}
/* Admin Console */
.gc-admin .wrap{max-width:1200px;margin:20px auto;background:#fff;border:1px solid var(--gc-border);border-radius:16px}
.gc-admin .bar{display:flex;gap:12px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--gc-border)}
.gc-acc{border-top:1px solid var(--gc-border)}
.gc-acc .sec{border-bottom:1px solid var(--gc-border)}
.gc-acc .h{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;font-weight:700;cursor:pointer;background:#fafafa}
.gc-acc .b{display:none;padding:12px 16px}
.gc-table{width:100%;border-collapse:collapse}
.gc-table th,.gc-table td{border-bottom:1px solid var(--gc-border);padding:8px;text-align:left}
.notice{margin:10px 0;padding:10px;background:#ecfeff}
@media(max-width:480px){.products{grid-template-columns:repeat(2,minmax(150px,1fr))}.custom-logo{max-height:22px}}
