/* ================================================================
   GEMEZU E-COMMERCE TEMPLATE — MAIN STYLESHEET
   All colors come from the active theme CSS variables.
   This file NEVER changes per client — only the theme file does.
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── UTILS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 50px; padding: 4px 14px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--r); font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: all .22s; white-space: nowrap; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: var(--bg2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar { background: var(--nav-bg); padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.nav-top { background: rgba(0,0,0,.2); padding: 6px 0; font-size: 12px; color: rgba(255,255,255,.7); text-align: center; }
.nav-main { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.nav-logo { font-size: 22px; font-weight: 800; color: var(--nav-text); flex-shrink: 0; }
.nav-logo span { color: var(--nav-accent); }
.nav-search { flex: 1; display: flex; max-width: 500px; }
.nav-search input { flex: 1; padding: 10px 16px; border: none; border-radius: var(--r) 0 0 var(--r); font-size: 14px; outline: none; background: rgba(255,255,255,.12); color: var(--nav-text); }
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search button { background: var(--primary); color: #fff; border: none; padding: 10px 18px; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; font-size: 15px; }
.nav-search button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-icon { position: relative; color: var(--nav-text); font-size: 20px; cursor: pointer; padding: 4px; transition: color .2s; }
.nav-icon:hover { color: var(--nav-accent); }
.nav-badge { position: absolute; top: -6px; right: -8px; background: var(--cart-badge); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-categories { background: var(--primary-dark); padding: 10px 0; overflow-x: auto; white-space: nowrap; }
.nav-categories a { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.15); transition: color .2s; display: inline-block; }
.nav-categories a:last-child { border-right: none; }
.nav-categories a:hover { color: var(--nav-accent); }

/* ── HERO ── */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 80px 0; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { z-index: 1; }
.hero-content .tag { background: rgba(255,255,255,.15); color: #fff; margin-bottom: 16px; }
.hero-content h1 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-content h1 span { color: var(--nav-accent); }
.hero-content p { font-size: 16px; opacity: .85; margin-bottom: 28px; max-width: 440px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero { background: #fff; color: var(--primary-dark); }
.btn-hero:hover { background: var(--nav-accent); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-hero-outline:hover { background: rgba(255,255,255,.1); }
.hero-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: rgba(255,255,255,.1); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 6px 14px; font-size: 12px; font-weight: 600; }

/* ── SECTION HEADERS ── */
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; margin: 10px 0 10px; }
.sec-head p { color: var(--muted); max-width: 500px; margin: 0 auto; font-size: 15px; }

/* ── CATEGORY STRIP ── */
.cat-strip { background: var(--bg2); border-bottom: 1px solid var(--border); }
.cat-grid { display: flex; gap: 12px; overflow-x: auto; padding: 20px 0; scrollbar-width: none; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat-item { flex-shrink: 0; text-align: center; cursor: pointer; padding: 14px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); min-width: 90px; transition: all .22s; }
.cat-item:hover, .cat-item.active { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-item i { font-size: 22px; margin-bottom: 6px; display: block; }
.cat-item span { font-size: 11px; font-weight: 700; display: block; }

/* ── PRODUCT CARD ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: all .28s; cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--sale-color); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.product-badge.new { background: var(--primary); }
.product-wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); transition: all .2s; opacity: 0; }
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: #ef4444; background: #fff; }
.product-info { padding: 14px; }
.product-cat { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-main { font-size: 17px; font-weight: 800; color: var(--price-color); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: 11px; }
.btn-cart { width: 100%; justify-content: center; background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: all .22s; display: flex; align-items: center; gap: 6px; }
.btn-cart:hover { background: var(--primary); color: #fff; }

/* ── BANNER STRIP ── */
.banner-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.banner-card { border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 16/7; background: var(--bg2); }
.banner-card img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, transparent 70%); }
.banner-overlay h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.banner-overlay p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.btn-banner { background: #fff; color: var(--primary-dark); padding: 7px 16px; border-radius: 50px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }

/* ── TRUST BADGES ── */
.trust-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--border); }
.trust-item:last-child { border: none; }
.trust-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.trust-text strong { display: block; font-size: 13px; font-weight: 700; }
.trust-text span { font-size: 11px; color: var(--muted); }

/* ── CART PAGE ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.cart-table th { background: var(--bg2); padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); text-align: left; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border: none; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.cart-product-name { font-size: 14px; font-weight: 600; }
.cart-product-sku { font-size: 11px; color: var(--muted); }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; background: var(--bg2); border: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--text); transition: background .2s; }
.qty-btn:hover { background: var(--primary-light); }
.qty-val { width: 40px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-child { border: none; font-size: 17px; font-weight: 800; color: var(--primary); }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; }
.coupon-row input:focus { border-color: var(--primary); }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.checkout-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: var(--bg); color: var(--text); transition: border .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.order-summary-sticky { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; position: sticky; top: 80px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.order-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.order-item-price { font-weight: 700; font-size: 14px; color: var(--price-color); }
.paystack-btn { background: #011B33; color: #fff; width: 100%; padding: 16px; border-radius: var(--r); font-size: 16px; font-weight: 800; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .22s; margin-top: 16px; }
.paystack-btn:hover { background: #002a4d; transform: translateY(-1px); }
.paystack-btn img { height: 20px; }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 80px; }
.gallery-main { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--bg2); border: 1px solid var(--border); margin-bottom: 10px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.product-detail-price { font-size: 32px; font-weight: 800; color: var(--price-color); margin: 12px 0; }
.product-detail-price .old-price { font-size: 18px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.size-btn { padding: 8px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; background: var(--surface); }
.size-btn.active, .size-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.qty-add-row { display: flex; gap: 12px; margin-top: 20px; }
.qty-add-row .qty-ctrl { border: 2px solid var(--border); }

/* ── FOOTER ── */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: var(--footer-head); margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--footer-head); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; padding: 3px 0; color: var(--footer-text); transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; }
.social-link:hover { background: var(--primary); color: #fff; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--nav-bg); flex-shrink: 0; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.admin-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand h3 { color: #fff; font-size: 16px; font-weight: 800; }
.admin-brand span { color: var(--nav-accent); font-size: 11px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; transition: all .2s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--nav-accent); }
.admin-nav a i { width: 16px; text-align: center; }
.admin-main { margin-left: 240px; flex: 1; background: var(--bg3); min-height: 100vh; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.admin-topbar h2 { font-size: 17px; font-weight: 800; }
.admin-content { padding: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.stat-card .stat-num { font-size: 26px; font-weight: 800; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-card .stat-change { font-size: 12px; font-weight: 700; margin-top: 6px; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.data-table th { background: var(--bg2); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: var(--bg2); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-paid { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fee2e2; color: #dc2626; }
.status-shipped { background: #dbeafe; color: #2563eb; }

/* ── THEME SWITCHER (admin) ── */
.theme-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.theme-dot { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all .2s; position: relative; }
.theme-dot.active, .theme-dot:hover { border-color: #fff; transform: scale(1.1); }
.theme-dot::title { font-size: 10px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--text); color: var(--bg); padding: 10px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; z-index: 9999; opacity: 0; transition: all .25s; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .banner-strip { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .nav-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 40px 0; }
}
