/* ============================================================
   ShopWave — Main Stylesheet
   Design: Clean, energetic, Nigerian-market optimised
   Palette: Coral-orange #FF5733, Navy #0F1B40, White #FFFFFF,
            Light #F7F8FA, Mid-grey #8492A6
   ============================================================ */

:root {
  --primary: #FF5733;
  --primary-dark: #E04020;
  --primary-light: #FF7A5C;
  --secondary: #0F1B40;
  --accent: #FFC107;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --white: #FFFFFF;
  --light: #F7F8FA;
  --border: #E8ECF0;
  --muted: #8492A6;
  --text: #1A2332;
  --text-light: #4B5563;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 8px;
  --radius-lg: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; outline: none; border: none; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.bg-white { background: var(--white); }
.shadow { box-shadow: var(--shadow); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid { display: grid; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-primary { background: rgba(255,87,51,.12); color: var(--primary); }
.badge-success { background: rgba(34,197,94,.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,.12); color: var(--danger); }
.badge-info    { background: rgba(59,130,246,.12); color: var(--info); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,87,51,.35); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #1a2f5e; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--light); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text); transition: border-color var(--transition); font-size: .9rem; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,87,51,.12); }
.form-control::placeholder { color: var(--muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238492A6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── HEADER ────────────────────────────────────────────────── */
.header-top { background: var(--secondary); color: rgba(255,255,255,.75); font-size: .78rem; padding: 6px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: rgba(255,255,255,.75); } .header-top a:hover { color: #fff; }
.header-top-links { display: flex; gap: 16px; }

.header-main { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-main .container { display: flex; align-items: center; gap: 20px; padding: 14px 16px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.logo span { color: var(--secondary); }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { fill: #fff; width: 22px; height: 22px; }

.search-bar { flex: 1; display: flex; max-width: 640px; position: relative; }
.search-bar input { width: 100%; padding: 11px 16px; border: 2px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: .9rem; transition: border-color var(--transition); }
.search-bar input:focus { border-color: var(--primary); }
.search-bar .search-cat { border: 2px solid var(--border); border-right: none; padding: 0 12px; background: var(--light); font-size: .82rem; color: var(--muted); appearance: none; cursor: pointer; min-width: 110px; }
.search-bar button { padding: 0 20px; background: var(--primary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 1rem; transition: background var(--transition); }
.search-bar button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.header-action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius); cursor: pointer; transition: background var(--transition); color: var(--text); font-size: .7rem; font-weight: 500; position: relative; }
.header-action-btn:hover { background: var(--light); }
.header-action-btn i { font-size: 1.2rem; color: var(--secondary); }
.cart-count { position: absolute; top: 2px; right: 6px; background: var(--primary); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.header-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.header-nav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.nav-item { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: .875rem; font-weight: 500; color: var(--text-light); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); position: relative; }
.nav-item:hover, .nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-item i { font-size: .9rem; }
.nav-mega { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; min-width: 500px; display: none; z-index: 200; grid-template-columns: repeat(3,1fr); gap: 8px; }
.nav-item:hover .nav-mega { display: grid; }
.nav-mega-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); font-size: .85rem; }
.nav-mega-item:hover { background: var(--light); color: var(--primary); }
.nav-mega-item i { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,87,51,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.nav-all-cats { background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: 8px; }
.nav-all-cats:hover { background: var(--primary-dark); }

/* ── FLASH MESSAGES ────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.alert-success { background: rgba(34,197,94,.1); color: #15803D; border: 1px solid rgba(34,197,94,.3); }
.alert-error   { background: rgba(239,68,68,.1); color: #B91C1C; border: 1px solid rgba(239,68,68,.3); }
.alert-info    { background: rgba(59,130,246,.1); color: #1D4ED8; border: 1px solid rgba(59,130,246,.3); }
.alert-warning { background: rgba(245,158,11,.1); color: #B45309; border: 1px solid rgba(245,158,11,.3); }

/* ── PRODUCT CARDS ─────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.products-grid-5 { grid-template-columns: repeat(5,1fr); }
.products-grid-4 { grid-template-columns: repeat(4,1fr); }

.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); border: 1px solid var(--border); position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 1; overflow: hidden; background: var(--light); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.badge-discount { background: var(--danger); color: #fff; padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.badge-new { background: var(--success); color: #fff; padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.badge-hot { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.product-card-actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity var(--transition); }
.product-card:hover .product-card-actions { opacity: 1; }
.product-card-action-btn { width: 34px; height: 34px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); font-size: .9rem; color: var(--text); border: none; transition: all var(--transition); }
.product-card-action-btn:hover { background: var(--primary); color: #fff; }
.product-card-action-btn.wishlisted { color: var(--danger); }
.product-card-body { padding: 12px; }
.product-card-vendor { font-size: .72rem; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.product-card-name { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.product-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.product-card-rating .stars { color: var(--accent); font-size: .75rem; }
.product-card-rating .count { font-size: .72rem; color: var(--muted); }
.product-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-current { font-size: 1rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.product-card-footer { padding: 0 12px 12px; }
.btn-add-cart { width: 100%; padding: 9px; background: var(--secondary); color: #fff; border-radius: var(--radius); font-size: .83rem; font-weight: 600; cursor: pointer; transition: background var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; border: none; }
.btn-add-cart:hover { background: var(--primary); }
.out-of-stock-label { width: 100%; padding: 9px; background: var(--border); color: var(--muted); border-radius: var(--radius); font-size: .83rem; font-weight: 600; text-align: center; }

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; display: block; width: 4px; height: 24px; background: var(--primary); border-radius: 2px; }
.section-link { font-size: .875rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.section-link:hover { text-decoration: underline; }

/* ── HERO BANNER ───────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, var(--secondary) 0%, #1a2f5e 60%, #0f2050 100%); padding: 0; overflow: hidden; position: relative; }
.hero-slider { position: relative; min-height: 380px; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; padding: 48px 0; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { position: absolute; right: 0; bottom: 0; height: 100%; max-width: 45%; object-fit: contain; object-position: bottom; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 6px 16px; font-size: .8rem; color: rgba(255,255,255,.9); margin-bottom: 16px; backdrop-filter: blur(8px); }

/* ── CATEGORY GRID ─────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); text-align: center; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,87,51,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: background var(--transition); }
.cat-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-name { font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.2; }

/* ── FLASH DEALS ───────────────────────────────────────────── */
.flash-deals-section { background: linear-gradient(90deg, #FF5733 0%, #E04020 100%); padding: 28px 0; }
.flash-deals-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.flash-title { font-size: 1.4rem; font-weight: 800; color: #fff; }
.flash-countdown { display: flex; gap: 6px; align-items: center; }
.countdown-item { background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px 10px; text-align: center; }
.countdown-num { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; line-height: 1; }
.countdown-label { font-size: .65rem; color: rgba(255,255,255,.7); font-weight: 500; }
.countdown-sep { color: #fff; font-size: 1.2rem; font-weight: 700; }
.flash-scroll { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.flash-scroll::-webkit-scrollbar { display: none; }
.flash-card { min-width: 180px; max-width: 180px; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.flash-card-img { height: 160px; overflow: hidden; }
.flash-card-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-card-body { padding: 10px; }
.flash-card-name { font-size: .83rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flash-deal-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.flash-orig-price { font-size: .75rem; color: var(--muted); text-decoration: line-through; }
.flash-progress { height: 4px; background: rgba(255,87,51,.15); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.flash-progress-bar { height: 100%; background: var(--primary); border-radius: 2px; }

/* ── PROMO BANNERS ─────────────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.promo-banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 180px; display: flex; align-items: flex-end; background: var(--secondary); }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-content { position: relative; z-index: 1; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); width: 100%; }
.promo-content h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.promo-content p { color: rgba(255,255,255,.8); font-size: .82rem; margin-bottom: 10px; }

/* ── CART ──────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-table-header { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 16px; padding: 14px 20px; background: var(--light); border-bottom: 1px solid var(--border); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 16px; padding: 16px 20px; align-items: center; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-product { display: flex; align-items: center; gap: 14px; }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: .78rem; color: var(--muted); }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.qty-btn { width: 32px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--light); border: none; color: var(--text); font-size: 1rem; font-weight: 700; transition: background var(--transition); }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 42px; height: 36px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); background: var(--white); font-weight: 700; }
.cart-summary { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.coupon-input { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input input { flex: 1; }

/* ── CHECKOUT ──────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-section { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.checkout-section h3 i { color: var(--primary); }
.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition); }
.payment-option.selected { border-color: var(--primary); background: rgba(255,87,51,.04); }
.payment-option input[type=radio] { accent-color: var(--primary); }
.order-summary-items { max-height: 300px; overflow-y: auto; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; position: relative; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-qty { position: absolute; top: -4px; right: -4px; background: var(--muted); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── PRODUCT DETAIL ────────────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; background: var(--white); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: border-color var(--transition); flex-shrink: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary); }
.product-info h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.product-sku { font-size: .8rem; color: var(--muted); }
.product-price-block { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.product-price-block .price-current { font-size: 1.8rem; }
.product-price-block .price-original { font-size: 1rem; }
.discount-badge { background: var(--danger); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .85rem; font-weight: 700; }
.stock-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.stock-indicator.in-stock { color: var(--success); }
.stock-indicator.low-stock { color: var(--warning); }
.stock-indicator.out-stock { color: var(--danger); }
.product-attrs { margin-bottom: 24px; }
.attr-label { font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
.attr-options { display: flex; flex-wrap: wrap; gap: 8px; }
.attr-option { padding: 6px 14px; border: 2px solid var(--border); border-radius: 6px; font-size: .85rem; cursor: pointer; transition: all var(--transition); }
.attr-option:hover, .attr-option.selected { border-color: var(--primary); color: var(--primary); background: rgba(255,87,51,.05); }
.add-to-cart-section { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.add-to-cart-section .qty-control { height: 50px; }
.add-to-cart-section .qty-btn { height: 50px; width: 40px; }
.add-to-cart-section .qty-input { height: 50px; }
.btn-cart-lg { flex: 1; padding: 14px; font-size: 1rem; font-weight: 700; }
.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; padding: 16px; background: var(--light); border-radius: var(--radius); }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.feature-item i { color: var(--success); }
.vendor-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 12px; }
.vendor-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.vendor-card-info { flex: 1; } .vendor-card-info h4 { font-size: .9rem; font-weight: 700; }
.vendor-card-info p { font-size: .78rem; color: var(--muted); }

/* ── TABS ──────────────────────────────────────────────────── */
.tabs { margin-top: 40px; }
.tab-list { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 4px; overflow-x: auto; }
.tab-btn { padding: 12px 20px; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; border-bottom: 3px solid transparent; transition: all var(--transition); white-space: nowrap; position: relative; bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── REVIEWS ───────────────────────────────────────────────── */
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 24px; background: var(--light); border-radius: var(--radius-lg); margin-bottom: 24px; }
.rating-big { text-align: center; }
.rating-big .num { font-size: 3.5rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.rating-big .stars { color: var(--accent); font-size: 1.2rem; }
.rating-big .count { font-size: .85rem; color: var(--muted); }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; }
.rating-bar-row span { font-size: .8rem; min-width: 30px; }
.rating-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.reviewer-info { flex: 1; }
.reviewer-name { font-size: .9rem; font-weight: 700; }
.reviewer-date { font-size: .75rem; color: var(--muted); }
.verified-badge { font-size: .72rem; color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ── SIDEBAR FILTER ────────────────────────────────────────── */
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filter-sidebar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; position: sticky; top: 90px; }
.filter-section { margin-bottom: 24px; }
.filter-section h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--secondary); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: .875rem; }
.filter-checkbox input { accent-color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,87,51,.1); color: var(--primary); border-radius: 20px; font-size: .78rem; font-weight: 600; }
.filter-tag button { background: none; border: none; cursor: pointer; color: inherit; font-size: .9rem; display: flex; align-items: center; }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1.5px solid var(--border); font-size: .875rem; font-weight: 600; cursor: pointer; transition: all var(--transition); color: var(--text); background: var(--white); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }

/* ── ACCOUNT ───────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.account-sidebar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; position: sticky; top: 90px; }
.account-user { padding: 24px; text-align: center; background: linear-gradient(135deg, var(--secondary) 0%, #1a2f5e 100%); }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); margin: 0 auto 12px; overflow: hidden; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-size: 1rem; font-weight: 700; color: #fff; }
.account-email { font-size: .8rem; color: rgba(255,255,255,.7); }
.account-nav { padding: 8px 0; }
.account-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: .875rem; font-weight: 500; color: var(--text-light); transition: all var(--transition); cursor: pointer; border-left: 3px solid transparent; }
.account-nav-item:hover { background: var(--light); color: var(--text); }
.account-nav-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(255,87,51,.05); font-weight: 600; }
.account-nav-item i { width: 18px; text-align: center; }

/* ── ORDER STATUS ──────────────────────────────────────────── */
.order-status-timeline { display: flex; justify-content: space-between; position: relative; padding: 24px 0; }
.order-status-timeline::before { content: ''; position: absolute; top: 35px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; flex: 1; }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: .75rem; transition: all var(--transition); }
.timeline-step.done .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-step.active .timeline-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(255,87,51,.2); }
.timeline-label { font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; }
.timeline-step.done .timeline-label, .timeline-step.active .timeline-label { color: var(--text); }

/* ── ADMIN ─────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--secondary); color: rgba(255,255,255,.85); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 20px; font-size: 1.3rem; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.admin-logo span { color: var(--primary); }
.admin-nav-section { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav-label { font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 0 20px 8px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.75); transition: all var(--transition); cursor: pointer; }
.admin-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-item.active { background: rgba(255,87,51,.2); color: #fff; border-right: 3px solid var(--primary); }
.admin-nav-item i { width: 18px; text-align: center; }
.admin-main { background: var(--light); padding: 24px; overflow: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 1.4rem; font-weight: 700; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon.orange { background: rgba(255,87,51,.1); color: var(--primary); }
.stat-icon.blue   { background: rgba(59,130,246,.1); color: var(--info); }
.stat-icon.green  { background: rgba(34,197,94,.1); color: var(--success); }
.stat-icon.purple { background: rgba(139,92,246,.1); color: #8B5CF6; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.data-table th { background: var(--light); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--light); }
.table-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.table-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-card-title { font-size: 1rem; font-weight: 700; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--secondary); color: rgba(255,255,255,.8); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--primary); }
.footer-brand p { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all var(--transition); color: rgba(255,255,255,.8); }
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.payment-badges { display: flex; gap: 8px; }
.payment-badge { background: rgba(255,255,255,.1); border-radius: 6px; padding: 4px 10px; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.8); }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input { flex: 1; padding: 11px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button { padding: 11px 16px; background: var(--primary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 700; border: none; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }

/* ── TRUST STRIP ───────────────────────────────────────────── */
.trust-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,87,51,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.trust-text h4 { font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.trust-text p { font-size: .78rem; color: var(--muted); }

/* ── TOAST / NOTIFICATION ──────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--secondary); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: slideIn .3s ease; max-width: 360px; min-width: 280px; }
.toast.toast-success { background: #16A34A; }
.toast.toast-error   { background: var(--danger); }
.toast.toast-info    { background: var(--info); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* ── EMPTY STATES ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3.5rem; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ── SORT BAR ──────────────────────────────────────────────── */
.sort-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.sort-bar .results-count { font-size: .875rem; color: var(--muted); }
.sort-select { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .875rem; background: var(--white); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid-5 { grid-template-columns: repeat(3,1fr); }
  .products-grid-4 { grid-template-columns: repeat(3,1fr); }
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid > :first-child { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .trust-items { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .search-cat { display: none; }
  .header-top-links { display: none; }
  .header-actions .header-action-btn span { display: none; }
  .hero-image { display: none; }
  .hero-slider { min-height: 280px; }
  .cat-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .cat-icon { width: 40px; height: 40px; font-size: 1rem; }
  .cat-name { font-size: .7rem; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .category-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .promo-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .trust-items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -240px; top: 0; z-index: 500; height: 100vh; transition: left var(--transition); }
  .admin-sidebar.open { left: 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .cart-table-header { display: none; }
  .cart-item { grid-template-columns: 1fr; }
  .order-status-timeline { flex-direction: column; align-items: flex-start; gap: 16px; }
  .order-status-timeline::before { top: 0; bottom: 0; left: 14px; right: auto; width: 2px; height: auto; }
  .timeline-step { flex-direction: row; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .hero-title { font-size: 1.5rem; }
  .flash-card { min-width: 150px; max-width: 150px; }
}

/* ── LOADING SKELETON ──────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── MISC ──────────────────────────────────────────────────── */
.page-section { padding: 40px 0; }
.sticky-bar { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--border); padding: 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 50; }
.vendor-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,87,51,.1); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.progress-bar-wrap { background: var(--border); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width .5s ease; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 20px; }
.no-scroll { overflow: hidden; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; display: none; }
.overlay.open { display: block; }

/* ============================
   CATEGORY LAYOUT
   ============================ */
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 24px; }
.filter-sidebar { background: #fff; border-radius: 12px; padding: 20px; height: fit-content; border: 1px solid #e5e7eb; }
.filter-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-bottom: 12px; }
.filter-block { margin-bottom: 24px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 6px; }
.filter-list a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; color: #374151; text-decoration: none; font-size: 0.9rem; transition: all 0.15s; }
.filter-list a:hover, .filter-list a.active { background: rgba(255,87,51,0.08); color: var(--primary); }
.filter-count { background: #f3f4f6; border-radius: 10px; padding: 1px 7px; font-size: 0.75rem; color: #6b7280; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-input-group { display: flex; align-items: center; gap: 4px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 8px; flex: 1; }
.price-input-group span { color: #6b7280; font-size: 0.9rem; }
.price-input-group input { border: none; background: transparent; width: 100%; font-size: 0.9rem; outline: none; }
.price-sep { color: #9ca3af; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.rating-filter { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: #f59e0b; text-decoration: none; font-size: 0.9rem; }
.rating-filter:hover, .rating-filter.active { background: #fef3c7; }
.rating-filter span { color: #6b7280; font-size: 0.8rem; }
.products-area { min-width: 0; }
.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.results-info { display: flex; flex-direction: column; }
.category-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 0; }
.results-count { font-size: 0.85rem; color: #6b7280; }
.sort-select { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer; background: #fff; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: transparent; border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 10px; cursor: pointer; color: #6b7280; }
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { flex-direction: row; }
.products-grid.list-view .product-img-wrap { width: 160px; flex-shrink: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.btn-block { width: 100%; }
.btn-xs { padding: 4px 8px; font-size: 0.75rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-warning { background: #f59e0b; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.btn-success { background: #10b981; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.btn-danger { background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; }

/* ============================
   SEARCH PAGE
   ============================ */
.search-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-title { font-size: 1.5rem; font-weight: 700; }
.search-title span { color: var(--primary); }
.search-bar-large { margin-bottom: 28px; }
.search-bar-large form .search-input-wrap { display: flex; border: 2px solid var(--primary); border-radius: 10px; overflow: hidden; }
.search-bar-large input { flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 1rem; }
.search-bar-large button { border-radius: 0; padding: 12px 24px; }

/* ============================
   VENDOR STORE
   ============================ */
.vendor-store-header { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; margin-bottom: 24px; }
.vendor-store-banner { height: 160px; background: linear-gradient(135deg, var(--navy), #1e3a6e); background-size: cover; background-position: center; position: relative; }
.vendor-store-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.vendor-store-info { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px 20px; margin-top: -40px; position: relative; }
.vendor-store-logo { width: 80px; height: 80px; border-radius: 12px; background: #fff; border: 3px solid #fff; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.15); flex-shrink: 0; }
.vendor-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.vendor-logo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 1.5rem; font-weight: 700; }
.vendor-store-meta h1 { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.vendor-store-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #6b7280; margin-top: 4px; }
.vendor-store-stats span { display: flex; align-items: center; gap: 4px; }
.vendor-desc { font-size: 0.9rem; color: #6b7280; margin-top: 6px; }

/* ============================
   ACCOUNT PAGES
   ============================ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px 0; }
.account-sidebar { height: fit-content; }
.account-profile-card { background: linear-gradient(135deg, var(--navy), #1e3a6e); color: #fff; border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 12px; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,0.3); }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-weight: 600; font-size: 0.95rem; }
.account-email { font-size: 0.8rem; opacity: 0.75; }
.account-nav { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.account-nav-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #374151; text-decoration: none; font-size: 0.9rem; transition: all 0.15s; border-left: 3px solid transparent; }
.account-nav-link:hover { background: #f9fafb; color: var(--primary); }
.account-nav-link.active { background: rgba(255,87,51,0.06); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.account-nav-link i { width: 16px; text-align: center; }
.vendor-link { color: var(--navy); }
.logout-link { color: #ef4444; }
.nav-divider { border: none; border-top: 1px solid #f3f4f6; margin: 4px 0; }
.account-page-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.account-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.account-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.account-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon { font-size: 1.5rem; color: var(--primary); }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.8rem; color: #6b7280; }
.account-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-top: 20px; }
.account-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-section-header h3 { font-size: 1rem; font-weight: 600; color: var(--navy); }
.orders-table-wrap { overflow-x: auto; }

/* ============================
   ORDER DETAIL
   ============================ */
.order-timeline { display: flex; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 24px; overflow-x: auto; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 0.8rem; }
.timeline-step.done .timeline-dot { background: #10b981; border-color: #10b981; color: #fff; }
.timeline-step.active .timeline-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline-label { font-size: 0.75rem; color: #6b7280; text-align: center; }
.timeline-step.done .timeline-label, .timeline-step.active .timeline-label { color: var(--navy); font-weight: 600; }
.timeline-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 4px; min-width: 20px; margin-bottom: 20px; }
.timeline-line.done { background: #10b981; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.order-items-section, .order-meta-section { display: flex; flex-direction: column; gap: 16px; }
.order-items-section h3, .order-info-card h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.order-items-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.order-item-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.order-item-row:last-child { border-bottom: none; }
.order-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.order-item-info { flex: 1; }
.order-item-name { font-weight: 500; font-size: 0.9rem; }
.order-item-variation { font-size: 0.8rem; color: #6b7280; }
.order-item-qty { font-size: 0.8rem; color: #6b7280; }
.order-item-price { font-weight: 600; white-space: nowrap; }
.order-totals { border-top: 2px solid #f3f4f6; margin-top: 12px; padding-top: 12px; }
.totals-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.total-row { font-size: 1.05rem; border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 8px; }
.discount-row { color: #10b981; }
.order-info-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.9rem; }
.info-row label { color: #6b7280; font-weight: 500; }
address { font-style: normal; font-size: 0.9rem; line-height: 1.8; }

/* ============================
   PROFILE / FORMS
   ============================ */
.profile-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #f3f4f6; }
.form-section:last-child { border-bottom: none; margin-bottom: 0; }
.form-section h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.9rem; font-family: inherit; transition: border-color 0.15s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,87,51,0.1); }
.input-disabled { background: #f9fafb; color: #6b7280; cursor: not-allowed; }
.form-help { font-size: 0.8rem; color: #9ca3af; margin-top: 4px; display: block; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.req { color: var(--primary); }
.avatar-upload { display: flex; align-items: center; gap: 20px; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #e5e7eb; }
.avatar-upload-controls { display: flex; flex-direction: column; gap: 6px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }

/* ============================
   ADDRESSES
   ============================ */
.address-form-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.address-form-panel h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.addresses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px; position: relative; }
.address-card.is-default { border-color: var(--primary); }
.default-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.address-name { font-weight: 600; margin-bottom: 6px; }
.address-text { font-size: 0.9rem; color: #374151; line-height: 1.6; }
.address-phone { font-size: 0.85rem; color: #6b7280; margin-top: 6px; }
.address-actions { display: flex; gap: 8px; margin-top: 12px; }
.input-prefix-group { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.input-prefix { background: #f9fafb; padding: 10px 12px; font-size: 0.85rem; color: #6b7280; border-right: 1px solid #e5e7eb; white-space: nowrap; }
.input-prefix-group input { border: none; border-radius: 0; }

/* ============================
   VENDOR REGISTER PAGE
   ============================ */
.vendor-register-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; align-items: start; }
.vendor-register-hero { text-align: center; }
.vendor-register-icon { font-size: 3rem; color: var(--primary); display: block; margin-bottom: 16px; }
.vendor-register-hero h1 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.vendor-register-hero p { color: #6b7280; font-size: 1rem; line-height: 1.7; }
.vendor-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.perk { display: flex; align-items: center; gap: 10px; background: #f9fafb; border-radius: 10px; padding: 12px; font-size: 0.9rem; color: #374151; }
.perk i { color: var(--primary); font-size: 1.1rem; }
.vendor-register-form-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; }
.vendor-register-form-wrap h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }

/* ============================
   VENDOR/ADMIN PENDING PAGE
   ============================ */
.pending-state { padding: 60px 20px; }
.pending-icon { font-size: 4rem; color: #f59e0b; display: block; margin-bottom: 20px; }
.pending-steps { display: flex; flex-direction: column; gap: 12px; margin: 24px auto; max-width: 300px; text-align: left; }
.pending-step { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #6b7280; }
.pending-step.done { color: #10b981; }
.pending-step.active { color: var(--primary); font-weight: 600; }
.pending-step i { width: 20px; text-align: center; }

/* ============================
   ADMIN LAYOUT ADDITIONS
   ============================ */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.admin-form-main { display: flex; flex-direction: column; gap: 20px; }
.admin-form-side { display: flex; flex-direction: column; gap: 16px; }
.admin-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.admin-card:last-child { margin-bottom: 0; }
.admin-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card-header h3 { margin-bottom: 0; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; color: #6b7280; text-decoration: none; background: #f3f4f6; }
.filter-tab.active { background: var(--primary); color: #fff; }
.search-bar-sm { display: flex; gap: 8px; }
.search-bar-sm input { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.85rem; }
.admin-user { font-size: 0.85rem; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.logo-admin { color: var(--primary); }
.logo-seller { color: #f59e0b; }
.fw-600 { font-weight: 600; }
.text-sm { font-size: 0.8rem; }
.text-muted { color: #9ca3af; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }
.text-center { text-align: center; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.ml-auto { margin-left: auto; }
.mt-2 { margin-top: 8px; }
.stat-card.orange .stat-card-icon { color: var(--primary); }
.stat-card.green .stat-card-icon { color: #10b981; }
.stat-card.blue .stat-card-icon { color: #3b82f6; }
.stat-card.purple .stat-card-icon { color: #8b5cf6; }
.stat-card.coral .stat-card-icon { color: #f97316; }
.stat-card.yellow .stat-card-icon { color: #f59e0b; }

/* ============================
   ATTRIBUTES
   ============================ */
.attribute-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.attribute-row input { flex: 1; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.9rem; }

/* ============================
   IMAGE UPLOAD
   ============================ */
.image-upload-area { border: 2px dashed #e5e7eb; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.15s; }
.image-upload-area:hover { border-color: var(--primary); }
.image-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9ca3af; }
.image-upload-placeholder i { font-size: 2rem; }
.input-file { font-size: 0.85rem; }

/* ============================
   STATUS BADGES COMPLETE
   ============================ */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-processing { background: #ede9fe; color: #5b21b6; }
.status-shipped { background: #d1fae5; color: #064e3b; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.payment-pending { background: #fef3c7; color: #92400e; }
.payment-paid { background: #d1fae5; color: #065f46; }
.payment-failed { background: #fee2e2; color: #991b1b; }
.payment-refunded { background: #e0e7ff; color: #3730a3; }

/* ============================
   TOAST CONTAINER
   ============================ */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border-left: 4px solid #6b7280; min-width: 260px; max-width: 360px; opacity: 0; transform: translateX(20px); transition: all 0.3s ease; font-size: 0.9rem; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast button { margin-left: auto; background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 1.1rem; }
.toast-success { border-left-color: #10b981; }
.toast-success i { color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-error i { color: #ef4444; }
.toast-info { border-left-color: #3b82f6; }
.toast-info i { color: #3b82f6; }
.toast-warning { border-left-color: #f59e0b; }
.toast-warning i { color: #f59e0b; }

/* ============================
   SEARCH DROPDOWN
   ============================ */
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); z-index: 500; overflow: hidden; margin-top: 4px; }
.search-suggestion { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: #374151; transition: background 0.1s; }
.search-suggestion:hover { background: #f9fafb; }
.search-suggestion img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.suggestion-name { font-size: 0.85rem; font-weight: 500; }
.suggestion-price { font-size: 0.8rem; color: var(--primary); }
.search-see-all { display: block; text-align: center; padding: 10px; font-size: 0.85rem; color: var(--primary); text-decoration: none; border-top: 1px solid #f3f4f6; font-weight: 600; }
.search-no-results { padding: 16px; text-align: center; color: #6b7280; font-size: 0.9rem; }

/* ============================
   ALERT MESSAGES
   ============================ */
.alert { padding: 12px 16px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 16px; transition: opacity 0.4s; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============================
   CONTAINER VARIANTS
   ============================ */
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ============================
   RESPONSIVE ADDITIONS
   ============================ */
@media (max-width: 1024px) {
  .category-layout { grid-template-columns: 200px 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .vendor-register-page { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .category-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .account-stats-grid { grid-template-columns: 1fr 1fr; }
  .order-timeline { gap: 4px; padding: 16px; }
  .timeline-step { min-width: 60px; }
}
@media (max-width: 480px) {
  .account-stats-grid { grid-template-columns: 1fr; }
  .addresses-grid { grid-template-columns: 1fr; }
}

/* ============================
   AUTH PAGES
   ============================ */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(135deg, #f7f8fa 0%, #e8ecf0 100%); }
.auth-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 440px; box-shadow: 0 8px 40px rgba(0,0,0,.12); }
.auth-card-wide { max-width: 560px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); text-decoration: none; display: block; margin-bottom: 16px; }
.auth-logo span { color: var(--secondary); }
.auth-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.auth-header p { color: #6b7280; font-size: .9rem; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.auth-form input { width: 100%; padding: 11px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: .95rem; transition: border-color .15s; background: #fafafa; }
.auth-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,87,51,.1); outline: none; }
.input-icon-wrap { position: relative; }
.input-icon-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .9rem; }
.input-icon-wrap input { padding-left: 40px; }
.toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #9ca3af; font-size: .9rem; }
.forgot-link { font-size: .8rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 20px; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e5e7eb; }
.auth-divider span { background: #fff; padding: 0 12px; position: relative; z-index: 1; font-size: .8rem; color: #9ca3af; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; color: #374151; margin-bottom: 12px; }
.btn-social:hover { background: #f9fafb; border-color: #d1d5db; }
.auth-switch { text-align: center; font-size: .875rem; color: #6b7280; margin-top: 20px; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.strength-bar { height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; margin-bottom: 4px; }

/* ============================
   CHECKOUT ENHANCEMENTS
   ============================ */
.saved-addresses { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.saved-address-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.saved-address-option:has(input:checked) { border-color: var(--primary); background: rgba(255,87,51,.03); }
.saved-address-content { flex: 1; font-size: .9rem; }
.saved-address-content strong { display: block; margin-bottom: 2px; }
.saved-address-content span { color: #6b7280; font-size: .83rem; }
.payment-option { padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: border-color .15s; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.payment-option.selected { border-color: var(--primary); background: rgba(255,87,51,.03); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.payment-option > i { font-size: 1.2rem; color: var(--primary); width: 24px; text-align: center; }
.payment-method-name { font-weight: 600; font-size: .9rem; }
.payment-method-desc { font-size: .8rem; color: #6b7280; }
.loyalty-redeem { background: linear-gradient(135deg, rgba(255,193,7,.1), rgba(255,87,51,.05)); border: 1px solid rgba(255,193,7,.3); border-radius: 10px; padding: 16px; }
.loyalty-redeem p { margin-bottom: 8px; font-size: .9rem; }
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.toggle-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }

/* ============================
   PAYMENT PAGE
   ============================ */
.pay-page { display: flex; justify-content: center; padding: 24px 0; }
.pay-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 520px; box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.pay-header { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #f3f4f6; }
.pay-header h2 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.pay-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pay-option-panel { margin-bottom: 24px; }
.bank-transfer-panel { display: flex; flex-direction: column; gap: 16px; }
.bank-details-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.bank-detail-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: .9rem; }
.bank-detail-row:last-child { border-bottom: none; }
.bank-detail-row label { min-width: 120px; font-weight: 600; color: #6b7280; }
.account-number { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }
.copy-btn { background: none; border: none; cursor: pointer; color: var(--primary); font-size: .9rem; }
.pod-panel { text-align: center; padding: 20px; }
.pod-icon { font-size: 3rem; color: var(--success); margin-bottom: 12px; }
.pay-order-summary { border-top: 1px solid #f3f4f6; margin-top: 24px; padding-top: 16px; }
.pay-order-summary h4 { font-size: .9rem; font-weight: 700; margin-bottom: 12px; }
.pay-item { display: flex; justify-content: space-between; font-size: .85rem; padding: 6px 0; border-bottom: 1px solid #f9fafb; }

/* ============================
   PRODUCT COMPARISON
   ============================ */
.compare-table-wrap { overflow-x: auto; margin-top: 24px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { padding: 14px 16px; border: 1px solid #e5e7eb; vertical-align: top; font-size: .9rem; }
.compare-table thead th { background: #f9fafb; font-weight: 700; }
.compare-label-col { background: #f9fafb; font-weight: 600; min-width: 120px; color: #374151; }
.compare-product-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.compare-product-head img { width: 100px; height: 100px; object-fit: contain; border-radius: 8px; }
.compare-product-head a { font-size: .85rem; font-weight: 600; color: var(--secondary); text-decoration: none; }
.compare-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.compare-table tbody tr:hover td { background: rgba(255,87,51,.02); }

/* ============================
   LOYALTY PAGE
   ============================ */
.loyalty-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; background: linear-gradient(135deg, var(--secondary), #1e3a6e); border-radius: 20px; padding: 32px; margin-bottom: 24px; align-items: center; }
.loyalty-balance { text-align: center; color: #fff; }
.points-display { display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.points-num { font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.points-label { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: 2px; }
.points-worth { color: rgba(255,255,255,.8); font-size: 1rem; margin-top: 4px; }
.points-rate { color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 4px; }
.loyalty-info { display: flex; flex-direction: column; gap: 16px; }
.loyalty-info-item { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.9); }
.loyalty-info-item > i { font-size: 1.4rem; color: var(--accent); width: 28px; text-align: center; }
.loyalty-info-item strong { display: block; color: #fff; font-size: .9rem; }
.loyalty-info-item p { font-size: .8rem; color: rgba(255,255,255,.65); margin: 0; }

/* ============================
   NOTIFICATIONS
   ============================ */
.notifications-list { display: flex; flex-direction: column; gap: 2px; }
.notification-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #f3f4f6; transition: background .1s; }
.notification-item.read { opacity: .65; }
.notification-item:not(.read) { background: rgba(255,87,51,.02); border-color: rgba(255,87,51,.15); }
.notification-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.notification-icon.success { background: rgba(34,197,94,.1); color: var(--success); }
.notification-icon.error { background: rgba(239,68,68,.1); color: var(--danger); }
.notification-icon.info { background: rgba(59,130,246,.1); color: var(--info); }
.notification-icon.warning { background: rgba(245,158,11,.1); color: var(--warning); }
.notification-content { flex: 1; }
.notification-title { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.notification-message { font-size: .85rem; color: #6b7280; }
.notification-time { font-size: .75rem; color: #9ca3af; margin-top: 4px; }
.notification-action { font-size: .8rem; color: var(--primary); font-weight: 600; white-space: nowrap; text-decoration: none; }

/* ============================
   ADMIN TRACKING
   ============================ */
.tracking-timeline { position: relative; padding-left: 24px; }
.tracking-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.tracking-event { position: relative; margin-bottom: 20px; }
.tracking-dot { position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.tracking-content { background: #f9fafb; border-radius: 8px; padding: 12px; }
.order-meta-row { display: flex; gap: 16px; margin-bottom: 20px; }
.order-detail-admin { display: flex; flex-direction: column; gap: 0; }

/* ============================
   ADMIN SETTINGS TABS
   ============================ */
.settings-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid #e5e7eb; }
.stab { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; background: transparent; border: none; color: #6b7280; transition: all .15s; }
.stab:hover { background: #f3f4f6; color: #374151; }
.stab.active { background: var(--primary); color: #fff; }
.stab-pane { display: none; }
.stab-pane.active { display: block; }

/* ============================
   ADMIN REPORTS
   ============================ */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reports-grid > :first-child { grid-column: 1/-1; }

/* ============================
   VENDOR PAYOUT / ANALYTICS
   ============================ */
.payout-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }

/* ============================
   COMPARE BAR (sticky bottom)
   ============================ */
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--secondary); color: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 16px; z-index: 999; transform: translateY(100%); transition: transform .3s; }
.compare-bar.visible { transform: translateY(0); }
.compare-bar-products { display: flex; gap: 12px; flex: 1; }
.compare-bar-product { width: 48px; height: 48px; border-radius: 8px; border: 2px solid rgba(255,255,255,.3); overflow: hidden; }
.compare-bar-product img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar-slot { width: 48px; height: 48px; border-radius: 8px; border: 2px dashed rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 1.2rem; }

/* ============================
   CART ACTIONS
   ============================ */
.cart-actions { display: flex; gap: 12px; padding: 16px 20px; }
.btn-remove-item { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 1rem; padding: 4px; transition: color .15s; }
.btn-remove-item:hover { color: var(--danger); }
.cart-title-count { font-size: 1rem; font-weight: 400; color: #6b7280; }
.page-title { font-size: 1.8rem; font-weight: 700; color: var(--secondary); margin-bottom: 24px; }

/* ============================
   PROSE (terms/privacy)
   ============================ */
.prose h2 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin: 28px 0 10px; }
.prose p { font-size: .95rem; line-height: 1.8; color: #374151; margin-bottom: 12px; }

/* ============================
   ADMIN LAYOUT UPDATES
   ============================ */
.admin-header { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; margin-bottom: 0; }
.admin-page-title { font-size: 1.2rem; font-weight: 700; color: var(--secondary); flex: 1; }
.sidebar-toggle { background: none; border: none; cursor: pointer; color: #6b7280; font-size: 1.2rem; }
.admin-content { padding: 24px; }
.nav-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 4px 0; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,.75); text-decoration: none; font-size: .875rem; transition: all .15s; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(255,87,51,.2); color: #fff; border-right: 3px solid var(--primary); }
.store-name { font-size: .85rem; color: #6b7280; }

/* ============================
   VENDOR DASHBOARD ENHANCEMENTS
   ============================ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-card-label { font-size: .8rem; color: #6b7280; margin-top: 2px; }
.stat-card:nth-child(1) .stat-card-icon { background: rgba(255,87,51,.1); color: var(--primary); }
.stat-card:nth-child(2) .stat-card-icon { background: rgba(34,197,94,.1); color: var(--success); }
.stat-card:nth-child(3) .stat-card-icon { background: rgba(59,130,246,.1); color: var(--info); }
.stat-card:nth-child(4) .stat-card-icon { background: rgba(245,158,11,.1); color: var(--warning); }

/* ============================
   RESPONSIVE ADDITIONS v2
   ============================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .reports-grid { grid-template-columns: 1fr; }
  .loyalty-hero { grid-template-columns: 1fr; text-align: center; }
  .order-meta-row { flex-direction: column; }
}
@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .pay-card { padding: 24px 16px; }
  .compare-table { min-width: 400px; }
  .settings-tabs { gap: 2px; }
  .stab { padding: 6px 10px; font-size: .78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .auth-card, .pay-card { padding: 20px 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .loyalty-hero { padding: 20px; }
}

/* ============================
   HERO SLIDER
   ============================ */
.hero-slider-wrap { position: relative; overflow: hidden; min-height: 380px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; min-height: 380px; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-overlay { position: absolute; inset: 0; background: rgba(15,27,64,.55); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { padding: 60px 0; max-width: 600px; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero-title { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 480px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 6px 16px; font-size: .8rem; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Slider nav */
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: background .2s; font-size: 1.1rem; backdrop-filter: blur(4px); }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all .2s; padding: 0; }
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ============================
   MISSING CSS CLASSES (FIXES)
   ============================ */
/* Account layout */
.account-content { min-width: 0; }
.account-page-title { font-size: 1.4rem; font-weight: 700; color: var(--secondary); margin-bottom: 20px; }
.account-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.account-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.account-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.account-stat-card .stat-icon { font-size: 1.4rem; color: var(--primary); }
.account-stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.account-stat-card .stat-label { font-size: .8rem; color: var(--muted); }
.account-section { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 20px; }
.account-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-section-header h3 { font-size: 1rem; font-weight: 600; }

/* Cart */
.cart-item-price { font-weight: 600; color: var(--text); white-space: nowrap; }
.cart-item-total { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* Checkout */
.checkout-summary { position: sticky; top: 90px; }

/* Auth */
.auth-form { display: flex; flex-direction: column; }
.auth-form .form-group { margin-bottom: 16px; }

/* Admin nav (standalone pages - vendor views) */
.admin-nav { padding: 8px 0; }

/* Form inputs without explicit form-control (used in account forms) */
.profile-form input:not([type=file]):not([type=radio]):not([type=checkbox]),
.profile-form select,
.profile-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: inherit; transition: border-color .15s; outline: none; }
.profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,87,51,.1); }

/* Auth forms scoped */
.auth-form input { width: 100%; padding: 11px 14px 11px 40px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .95rem; background: #fafafa; transition: border-color .15s; outline: none; font-family: inherit; }
.auth-form input:not(.input-icon-wrap input) { padding-left: 14px; }
.auth-form .input-icon-wrap input { padding-left: 40px; }
.auth-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,87,51,.1); }

/* Address/account forms */
#addr-form .form-control,
.admin-card .form-control,
.account-content .form-control { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: inherit; transition: border-color .15s; outline: none; background: #fff; }
#addr-form .form-control:focus,
.admin-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,87,51,.1); }

/* Vendor form controls */
.vendor-register-form-wrap .form-control,
.vendor-register-form-wrap input:not([type=checkbox]):not([type=submit]),
.vendor-register-form-wrap select,
.vendor-register-form-wrap textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: inherit; transition: border-color .15s; outline: none; }
.vendor-register-form-wrap input:focus,
.vendor-register-form-wrap select:focus,
.vendor-register-form-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,87,51,.1); }

/* Table wrap for overflow */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 500px; }

/* Vendor layout spacing fixes */
.admin-body .admin-content { padding: 24px; }

/* Status label for vendor products */
.vendor-status-active { color: var(--success); font-weight: 600; }
.vendor-status-hidden { color: var(--muted); }

/* Promo banner min height on mobile */
@media (max-width: 768px) {
  .hero-slider-wrap { min-height: 240px; }
  .hero-slide { min-height: 240px; }
  .hero-content { padding: 40px 0; }
  .account-stats-grid { grid-template-columns: 1fr 1fr; }
  .slider-prev, .slider-next { width: 36px; height: 36px; font-size: .9rem; }
}
@media (max-width: 480px) {
  .account-stats-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 28px 0; }
}

/* ============================
   SHIPPING ZONES (CHECKOUT)
   ============================ */
.zone-result-card { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; transition: all .2s; }
.zone-result-card.free-shipping { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.3); }
.zone-result-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.zone-result-name { font-weight: 600; color: var(--secondary); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.zone-result-rate { font-size: 1rem; font-weight: 700; }
.shipping-rate { color: var(--primary); }
.free-badge { background: var(--success); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.zone-result-eta { font-size: .82rem; color: var(--muted); }
.zone-result-msg { font-size: .82rem; color: var(--primary); margin-top: 6px; font-weight: 500; }

/* Shipping method options */
.shipping-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.shipping-method-option { display: flex; align-items: center; padding: 13px 16px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.shipping-method-option.selected { border-color: var(--primary); background: rgba(255,87,51,.03); }
.shipping-method-option input[type=radio] { accent-color: var(--primary); margin-right: 12px; }
.shipping-method-info { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.shipping-method-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.shipping-method-eta { font-size: .78rem; color: var(--muted); font-weight: 400; }
.shipping-method-eta.express { color: var(--primary); font-weight: 600; }
.shipping-method-price { font-weight: 700; font-size: .95rem; color: var(--secondary); }

/* Admin shipping zones */
.states-checklist input[type=checkbox] { accent-color: var(--primary); }

/* ============================
   ADMIN SIDEBAR IMPROVEMENTS
   ============================ */
.nav-section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 12px 20px 4px;
  margin-top: 4px;
}
.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.nav-badge-warning {
  background: var(--accent);
  color: #000;
}
/* Make admin nav links flex so badge floats right */
.admin-nav-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

/* ============================
   PRODUCT MODERATION
   ============================ */
.moderation-card .btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
}
.moderation-card .btn-danger:hover {
  background: #dc2626;
}

/* ============================================================
   MOBILE PASS v2 — COMPREHENSIVE RESPONSIVE OVERHAUL
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small), 360px (tiny)
   Mobile-first thinking applied: buyer pages prioritised
   ============================================================ */

/* ── GLOBAL TOUCH & READABILITY ─────────────────────────────── */
/* Minimum touch target: 44×44px per Apple/Google guidelines */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }

  /* Ensure all interactive elements are tap-friendly */
  button, .btn, a.btn, input[type="submit"],
  .product-card-action-btn, .cart-count,
  .slider-prev, .slider-next,
  .admin-nav-link, .account-nav-link {
    min-height: 44px;
    touch-action: manipulation; /* removes 300ms tap delay */
  }

  /* Better tap highlight on links */
  a { -webkit-tap-highlight-color: rgba(255,87,51,.15); }

  /* Containers full-width with sensible padding */
  .container { padding-left: 14px; padding-right: 14px; }
}

/* ── HEADER — MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-main .container {
    gap: 10px;
    padding: 10px 14px;
    flex-wrap: nowrap;
  }

  /* Logo: smaller on mobile */
  .logo {
    font-size: 1.1rem;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .logo-icon { width: 28px; height: 28px; }

  /* Search bar: takes full row on mobile */
  .search-bar {
    order: 10; /* push below logo+actions */
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  /* Make header a column on mobile: logo+actions on top, search below */
  .header-main .container {
    flex-wrap: wrap;
  }

  /* Header actions: icon-only, smaller */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .header-action-btn {
    padding: 8px 10px;
    font-size: .75rem;
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
  }
  .header-action-btn span { font-size: .6rem; }

  /* Full-width search on second row */
  .search-bar { flex: 0 0 100%; max-width: 100%; margin-top: 4px; }
  .search-cat { display: none; }
  .search-bar input { border-radius: 8px 0 0 8px; padding: 10px 12px; font-size: .85rem; }
  .search-bar button { padding: 0 16px; border-radius: 0 8px 8px 0; }
}

@media (max-width: 480px) {
  .header-action-btn span { display: none; } /* icon only on tiny screens */
  .header-action-btn { padding: 8px 8px; }
}

/* ── CATEGORY NAV — MOBILE ───────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav .container {
    gap: 0;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav .container::-webkit-scrollbar { display: none; }

  .nav-item {
    font-size: .78rem;
    padding: 10px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hide mega menus on mobile (touch devices) */
  .nav-mega { display: none !important; }
}

/* ── HERO SLIDER — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slider-wrap { min-height: 220px; }
  .hero-slide { min-height: 220px; }
  .hero-content { padding: 28px 0; }
  .hero-title { font-size: 1.4rem; margin-bottom: 8px; }
  .hero-subtitle { font-size: .85rem; display: none; } /* hide on small - too cluttered */
  .hero-badge { font-size: .7rem; padding: 4px 12px; margin-bottom: 8px; }
  .hero-eyebrow { font-size: .7rem; margin-bottom: 6px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn-lg { padding: 10px 18px; font-size: .85rem; }
  .slider-prev, .slider-next { width: 32px; height: 32px; font-size: .85rem; }
  .slider-dots { bottom: 10px; gap: 6px; }
  .slider-dot { width: 6px; height: 6px; }
  .slider-dot.active { width: 18px; }
}

@media (max-width: 480px) {
  .hero-slider-wrap { min-height: 180px; }
  .hero-slide { min-height: 180px; }
  .hero-title { font-size: 1.15rem; }
  .hero-actions .btn { padding: 9px 14px; font-size: .8rem; }
}

/* ── CATEGORIES GRID — MOBILE ────────────────────────────────── */
@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-card { padding: 10px 4px; }
  .cat-icon { width: 38px; height: 38px; font-size: .9rem; margin-bottom: 4px; }
  .cat-name { font-size: .65rem; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cat-icon { width: 34px; height: 34px; font-size: .8rem; }
}

@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── PRODUCT CARDS — MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .products-grid, .products-grid-4, .products-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card-name { font-size: .8rem; }
  .price-current { font-size: .9rem; }
  .product-card-body { padding: 10px; }

  /* Show action buttons always on mobile (no hover on touch) */
  .product-card-actions {
    opacity: 1;
    flex-direction: row;
    top: auto;
    bottom: 8px;
    right: 8px;
    gap: 4px;
  }
  .product-card-action-btn { width: 30px; height: 30px; font-size: .8rem; }
}

@media (max-width: 360px) {
  .products-grid, .products-grid-4, .products-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-card-name { font-size: .75rem; }
}

/* ── FLASH DEALS — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .flash-deals-section { padding: 20px 0; }
  .flash-deals-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .flash-title { font-size: 1rem; }
  .flash-card { min-width: 140px; max-width: 140px; }
  .flash-countdown { gap: 6px; }
  .countdown-num { font-size: 1.3rem; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .flash-card { min-width: 130px; max-width: 130px; }
}

/* ── PROMO BANNERS — MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .promo-grid { grid-template-columns: 1fr; gap: 10px; }
  .promo-banner { min-height: 140px !important; padding: 20px; }
  .promo-content h3 { font-size: 1rem; }
  .promo-content p { font-size: .8rem; }
}

/* ── TRUST STRIP — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .trust-strip { padding: 20px 0; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { padding: 12px 10px; }
  .trust-icon { width: 36px; height: 36px; font-size: .9rem; }
  .trust-text h4 { font-size: .8rem; }
  .trust-text p { font-size: .72rem; }
}

@media (max-width: 400px) {
  .trust-items { grid-template-columns: 1fr; }
}

/* ── SECTION HEADERS — MOBILE ────────────────────────────────── */
@media (max-width: 768px) {
  .section-header { margin-bottom: 14px; }
  .section-title { font-size: 1rem; }
  .section-link { font-size: .78rem; }
  .page-section { padding: 24px 0; }
}

/* ── FOOTER — MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand h3, .footer-brand img { margin-bottom: 8px; }
  .footer-col h4 { font-size: .85rem; margin-bottom: 8px; }
  .footer-links a { font-size: .82rem; padding: 3px 0; }
  .payment-badges { flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
  .payment-badge { font-size: .7rem; padding: 3px 8px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .newsletter-form { max-width: 100%; }
}

/* ── PRODUCT DETAIL — MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery { position: static; }
  .gallery-main { max-height: 320px; }
  .gallery-thumb { width: 56px; height: 56px; }
  .product-info h1 { font-size: 1.1rem; }
  .product-price-wrap { flex-wrap: wrap; gap: 8px; align-items: center; }
  .product-current-price { font-size: 1.4rem; }
  .add-to-cart-section { flex-direction: column; gap: 10px; }
  .add-to-cart-section .qty-control { width: 100%; }
  .btn-add-cart { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
  .product-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .product-tab { white-space: nowrap; padding: 10px 14px; font-size: .82rem; }
  .vendor-store-info { flex-direction: column; gap: 12px; }
}

/* ── CART — MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-header { display: none; }

  /* Cart item: card layout on mobile */
  .cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px;
  }
  .cart-item-product {
    grid-column: 1 / -1;
    gap: 10px;
  }
  .cart-item-price,
  .cart-item-total { display: none; } /* shown in product meta instead */
  .cart-item-qty { grid-column: 2; }

  /* Show price inline with name on mobile */
  .cart-item-meta::after {
    content: attr(data-price);
  }

  /* Qty controls: full width row */
  .qty-control { width: 120px; }
}

/* ── CHECKOUT — MOBILE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Summary moves ABOVE the form on mobile */
  .checkout-summary {
    order: -1;
    position: static !important;
  }

  .checkout-section {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .checkout-section h3 { font-size: .9rem; margin-bottom: 12px; }

  .saved-address-option { padding: 10px 12px; }
  .payment-option { padding: 10px 12px; }

  /* Order summary items: compact */
  .order-item { gap: 8px; }
  .order-item-img { width: 48px; height: 48px; }

  /* Shipping method cards */
  .shipping-method-option { padding: 10px 12px; }
  .shipping-method-info { flex-direction: column; gap: 4px; align-items: flex-start; }
  .shipping-method-price { font-size: .85rem; }

  /* Zone result card */
  .zone-result-card { padding: 10px 12px; }
  .zone-result-main { flex-direction: column; gap: 4px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .checkout-section { padding: 12px; }
}

/* ── AUTH PAGES — MOBILE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-page { padding: 16px; align-items: flex-start; padding-top: 24px; }
  .auth-card { padding: 24px 18px; border-radius: 14px; }
  .auth-card-wide { max-width: 100%; }
  .auth-header h1 { font-size: 1.2rem; }
  .auth-header p { font-size: .82rem; }
  .auth-form input { padding: 10px 12px 10px 36px; font-size: .9rem; }
  .auth-form .input-icon-wrap > i { left: 11px; }
  .toggle-pass { right: 10px; }
  .btn-lg.btn-block { padding: 13px; font-size: .95rem; }
}

@media (max-width: 360px) {
  .auth-card { padding: 20px 14px; }
  .auth-form .form-row { grid-template-columns: 1fr; }
}

/* ── ACCOUNT PAGES — MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; gap: 16px; }

  /* Sidebar becomes horizontal scroll nav on mobile */
  .account-sidebar {
    position: static;
    width: 100%;
  }
  .account-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-align: left;
  }
  .account-avatar { width: 52px; height: 52px; flex-shrink: 0; }
  .account-name { font-size: .9rem; }
  .account-email { font-size: .75rem; }

  /* Nav as horizontal scroll row */
  .account-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 8px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav-link {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--light);
    border: 1px solid var(--border);
    white-space: nowrap;
    font-size: .72rem;
    min-height: 52px;
    justify-content: center;
    flex-shrink: 0;
  }
  .account-nav-link i { font-size: 1rem; }
  .account-nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  /* Hide logout and dividers in mobile nav */
  .account-nav .logout-link,
  .account-nav .nav-divider { display: none; }

  .account-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .account-stat-card { padding: 12px 10px; flex-direction: column; text-align: center; gap: 6px; }
  .account-stat-card .stat-value { font-size: 1.2rem; }
  .account-stat-card .stat-label { font-size: .65rem; }

  .account-page-title { font-size: 1.1rem; margin-bottom: 14px; }
  .account-section { padding: 14px; }

  /* Addresses grid */
  .addresses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .account-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .account-stats-grid { grid-template-columns: 1fr; }
  .account-nav-link { padding: 8px 10px; font-size: .68rem; }
}

/* ── ADMIN PANEL — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Admin layout: sidebar drawer */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    z-index: 900;
    height: 100vh;
    overflow-y: auto;
    transition: left .25s ease;
    box-shadow: none;
  }
  .admin-sidebar.open {
    left: 0;
    box-shadow: 4px 0 32px rgba(0,0,0,.3);
  }
  .admin-main { width: 100%; min-width: 0; }

  /* Admin header */
  .admin-header { padding: 12px 16px; gap: 10px; }
  .admin-page-title { font-size: .95rem; }
  .sidebar-toggle { display: flex; }

  /* Admin content */
  .admin-content { padding: 16px; }

  /* Stats grid: 2 columns on tablet, 2 on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-card-icon { width: 40px; height: 40px; font-size: 1rem; }
  .stat-card-value { font-size: 1.2rem; }
  .stat-card-label { font-size: .72rem; }

  /* Admin cards */
  .admin-card { padding: 16px; }
  .admin-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-card-header .btn { align-self: flex-end; }

  /* Admin tables: horizontal scroll with sticky first column */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .data-table { min-width: 560px; }
  .data-table th { padding: 10px 12px; font-size: .72rem; }
  .data-table td { padding: 10px 12px; font-size: .82rem; }

  /* Settings tabs: scrollable horizontal */
  .settings-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .settings-tabs::-webkit-scrollbar { display: none; }
  .stab {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: .78rem;
    white-space: nowrap;
  }

  /* Reports grid */
  .reports-grid { grid-template-columns: 1fr; }

  /* Admin order detail */
  .order-meta-row { flex-direction: column; gap: 12px; }
  .order-detail-grid { grid-template-columns: 1fr; }

  /* Admin product moderation */
  .moderation-card { flex-direction: column; }
  .moderation-img { width: 100%; height: 160px; }
  .moderation-actions { flex-direction: column; gap: 8px; }
  .moderation-decision { flex-direction: column; }
  .moderation-decision input { width: 100%; }

  /* Admin shipping zones */
  .states-checklist { grid-template-columns: 1fr 1fr; max-height: 200px; }

  /* Admin banners / categories two-col grid */
  .admin-grid-2 { grid-template-columns: 1fr; }

  /* Colour picker */
  .colour-picker-grid { grid-template-columns: 1fr; }
  .colour-input-wrap { flex-wrap: wrap; }

  /* Admin vendor approve/reject buttons */
  .admin-approval-actions { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 12px; }
  .admin-card { padding: 12px; border-radius: 10px; }
  .data-table { min-width: 480px; }
}

@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stab { padding: 6px 10px; font-size: .72rem; }
}

/* ── VENDOR DASHBOARD — MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
  /* Same sidebar-drawer behaviour as admin */
  .admin-layout .admin-sidebar {
    position: fixed;
    left: -260px;
  }
  .admin-layout .admin-sidebar.open { left: 0; }

  /* Vendor product list */
  .vendor-store-header { flex-direction: column; gap: 14px; }
  .vendor-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Vendor payouts layout */
  .payout-layout { grid-template-columns: 1fr; }

  /* Vendor register */
  .vendor-register-page { grid-template-columns: 1fr; }
  .vendor-register-hero { padding: 24px 16px; }
  .vendor-perks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .perk { padding: 10px; }
  .vendor-register-form-wrap { padding: 20px 16px; }
}

/* ── LOYALTY PAGE — MOBILE ───────────────────────────────────── */
@media (max-width: 768px) {
  .loyalty-hero { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 20px; }
  .points-num { font-size: 2.5rem; }
  .loyalty-info { gap: 10px; }
  .loyalty-info-item { justify-content: center; }
}

/* ── NOTIFICATIONS — MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .notification-item { gap: 10px; padding: 12px; }
  .notification-icon { width: 32px; height: 32px; font-size: .8rem; flex-shrink: 0; }
  .notification-title { font-size: .85rem; }
  .notification-message { font-size: .78rem; }
  .notification-action { font-size: .75rem; }
}

/* ── PRODUCT COMPARISON — MOBILE ─────────────────────────────── */
@media (max-width: 768px) {
  .compare-table-wrap { border-radius: 8px; }
  .compare-table { min-width: 360px; }
  .compare-product-head img { width: 70px; height: 70px; }
  .compare-product-head a { font-size: .75rem; }
  .compare-price { font-size: .85rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; font-size: .78rem; }
  .compare-label-col { min-width: 90px; font-size: .75rem; }
}

/* ── PAY PAGE — MOBILE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .pay-page { padding: 16px 0; }
  .pay-card { padding: 20px 16px; border-radius: 14px; }
  .pay-header h2 { font-size: 1rem; }
  .pay-amount { font-size: 1.8rem; }
  .bank-detail-row { flex-direction: column; gap: 4px; }
  .bank-detail-row label { min-width: unset; }
}

/* ── SEARCH RESULTS — MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .category-layout, .search-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 800;
    background: #fff;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,.2);
  }
  .filter-sidebar.mobile-open { display: block; }

  /* Filter toggle button — visible on mobile */
  #filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
  }

  .sort-bar { flex-wrap: wrap; gap: 8px; }
  .sort-select { min-width: 140px; }
  .search-result-count { font-size: .82rem; }
}

/* ── OVERLAY — MOBILE (sidebar backdrop) ─────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  backdrop-filter: blur(2px);
}
.overlay.open { display: block; }

/* ── STICKY MOBILE BOTTOM BAR (product detail) ───────────────── */
@media (max-width: 768px) {
  .product-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  }
  .product-sticky-cta .btn { flex: 1; justify-content: center; }

  /* Add bottom padding so sticky CTA doesn't cover content */
  .product-detail-section { padding-bottom: 80px; }
}

/* ── FORM IMPROVEMENTS — MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: .82rem; }
  .form-control { padding: 10px 12px; font-size: .9rem; }
  select.form-control { padding-right: 36px; }
  textarea.form-control { min-height: 80px; }
}

/* ── MISC MOBILE IMPROVEMENTS ────────────────────────────────── */
@media (max-width: 768px) {
  /* Scroll to top button: above bottom nav area */
  .scroll-top-btn { bottom: 20px !important; right: 16px !important; }

  /* Breadcrumb: truncate on mobile */
  .breadcrumb { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Page titles */
  .page-title { font-size: 1.2rem; margin-bottom: 16px; }

  /* Empty state */
  .empty-state { padding: 32px 16px; }
  .empty-state .empty-icon { font-size: 2.5rem; }
  .empty-state h3 { font-size: 1rem; }

  /* Alert messages */
  .alert { padding: 10px 14px; font-size: .85rem; }

  /* Pagination */
  .pagination { flex-wrap: wrap; gap: 4px; }
  .pagination a, .pagination span { padding: 6px 10px; font-size: .82rem; min-width: 34px; }

  /* Badges */
  .badge { font-size: .68rem; }
  .status-badge { font-size: .7rem; padding: 3px 8px; }

  /* Toast notifications */
  .toast-container { bottom: 70px; right: 12px; left: 12px; width: auto; }
  .toast { font-size: .82rem; padding: 10px 12px; }

  /* Modals / overlays */
  .modal { margin: 0; border-radius: 16px 16px 0 0; max-height: 90vh; overflow-y: auto; }

  /* Compare bar */
  .compare-bar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .compare-bar-products { gap: 8px; }
  .compare-bar-product { width: 40px; height: 40px; }
}

/* ── PRINT STYLES (bonus) ────────────────────────────────────── */
@media print {
  .header-top, .header-nav, .search-bar, .header-actions,
  .footer, .trust-strip, .sidebar-toggle, .admin-sidebar,
  .scroll-top-btn, .compare-bar, .toast-container { display: none !important; }
  .admin-layout, .account-layout { grid-template-columns: 1fr !important; }
  .admin-content, .account-content { padding: 0 !important; }
  body { font-size: 12pt; }
}

/* ── SMTP TEST BUTTON ─────────────────────────────────────── */
.smtp-test-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── PAYMENT GATEWAY CARDS ───────────────────────────────────── */
.gateway-grid { display: flex; flex-direction: column; gap: 16px; }
.gateway-card { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.gateway-card.gateway-active { border-color: rgba(34,197,94,.35); }
.gateway-card.gateway-inactive { border-color: var(--border); opacity: .75; }
.gateway-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--light); }
.gateway-name { font-weight: 700; font-size: .95rem; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.gateway-fields { padding: 16px 18px; border-top: 1px solid var(--border); }
.gateway-fields .form-group { margin-bottom: 12px; }
.gateway-fields .form-group:last-child { margin-bottom: 0; }

/* Toggle switch */
.gateway-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.gateway-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.gateway-toggle-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 26px; cursor: pointer; transition: background .2s; }
.gateway-toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gateway-toggle input:checked + .gateway-toggle-slider { background: var(--success); }
.gateway-toggle input:checked + .gateway-toggle-slider::before { transform: translateX(22px); }

/* Loyalty toggle */
.loyalty-toggle-wrap { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: var(--light); border-radius: 10px; border: 1px solid var(--border); }
.loyalty-toggle-info { flex: 1; }
.loyalty-toggle-title { font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.loyalty-toggle-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Mobile */
@media (max-width: 640px) {
  .gateway-header { padding: 12px 14px; }
  .gateway-fields { padding: 14px; }
  .loyalty-toggle-wrap { flex-direction: column; gap: 12px; }
}

/* ── IMPERSONATION BANNER ────────────────────────────────────── */
.impersonation-banner {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(124,58,237,.4);
}
.impersonation-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.impersonation-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.impersonation-icon {
  font-size: 1.1rem;
  color: #DDD6FE;
  flex-shrink: 0;
}
.impersonation-email {
  color: rgba(255,255,255,.7);
  font-size: .8rem;
}
.impersonation-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.impersonation-stop:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

@media (max-width: 600px) {
  .impersonation-inner { padding: 10px 14px; gap: 10px; }
  .impersonation-info { font-size: .78rem; }
  .impersonation-email { display: none; }
}

/* ── UPLOAD DROP AREA ─────────────────────────────────────── */
.upload-drop-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  background: var(--light);
}
.upload-drop-area:hover {
  border-color: var(--primary);
  background: rgba(255,87,51,.03);
}
