/* ============================================================
   ShopLux — Main Stylesheet
   Mobile-first, auto-scalable for desktop
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6abf4b;
  --primary-dark: #52a336;
  --primary-light: #e8f5e2;
  --accent: #222222;
  --accent2: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #888;
  --text-light: #bbb;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e8e8e8;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --header-h: 64px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input,button,select,textarea { font-family: var(--font-body); }

/* ── Utilities ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.text-muted { color: var(--text-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 40px; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(106,191,75,.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #333; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-full { width: 100%; }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}

/* ── Maintenance Banner ── */
.maintenance-banner {
  background: var(--accent); color: #fff;
  text-align: center; padding: 8px; font-size: .85rem;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: var(--header-h);
  max-width: 1280px; margin: 0 auto;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--accent); letter-spacing: -.5px;
}
.header-search { flex: 1; max-width: 420px; display: none; }
.search-form { display: flex; align-items: center; background: var(--bg); border-radius: 40px; overflow: hidden; padding: 0 14px; gap: 8px; }
.search-input {
  flex: 1; border: none; background: transparent;
  padding: 10px 0; font-size: .88rem; color: var(--text); outline: none;
}
.search-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.search-btn:hover { color: var(--primary); }
.desktop-nav { display: none; gap: 4px; }
.desktop-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem;
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.desktop-nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 200px;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: var(--transition); z-index: 200; overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: none; }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: .88rem; transition: var(--transition); }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.action-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); color: var(--text); }
.action-btn:hover { background: var(--primary-light); color: var(--primary); }
.hamburger {
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 4px;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Search Bar */
.mobile-search {
  padding: 0 16px 10px;
  background: var(--white);
}
.mobile-search form {
  display: flex; align-items: center; background: var(--bg);
  border-radius: 40px; padding: 0 14px; gap: 8px;
}
.mobile-search input { flex: 1; border: none; background: transparent; padding: 9px 0; font-size: .85rem; outline: none; }
.mobile-search button { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.filter-btn { color: var(--text-muted); }

/* Mobile Nav */
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 950; opacity: 0; pointer-events: none; transition: var(--transition);
}
.mobile-overlay.show { opacity: 1; pointer-events: all; }
.mobile-nav {
  position: fixed; left: -300px; top: 0; bottom: 0; width: 280px;
  background: var(--white); z-index: 960; overflow-y: auto;
  transition: left .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { left: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 16px; border-bottom: 1px solid var(--border); }
.close-nav { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }
.mobile-nav-links a { display: block; padding: 13px 20px; font-size: .92rem; border-bottom: 1px solid var(--border); transition: var(--transition); }
.mobile-nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav-links a.nav-sub { padding-left: 36px; font-size: .85rem; color: var(--text-muted); }

/* ── HERO BANNERS ── */
.banner-section { padding: 12px 16px; overflow: hidden; }
.banner-slider { position: relative; border-radius: var(--radius); overflow: hidden; }
.banner-slide {
  border-radius: var(--radius); overflow: hidden;
  display: none; position: relative; min-height: 180px;
  align-items: center;
}
.banner-slide.active { display: flex; }
.banner-slide-inner {
  flex: 1; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.banner-badge {
  display: inline-block; background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px); color: #fff;
  padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600;
  font-family: var(--font-display); width: fit-content;
}
.banner-slide h2 {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 800; color: #fff; line-height: 1.2;
}
.banner-slide p { color: rgba(255,255,255,.85); font-size: .82rem; }
.banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 40px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  transition: var(--transition); width: fit-content;
}
.banner-cta:hover { background: #333; transform: translateY(-2px); }
.banner-cta svg { transition: transform var(--transition); }
.banner-cta:hover svg { transform: translateX(3px); }
.banner-img {
  width: 140px; height: 160px; object-fit: cover;
  flex-shrink: 0; border-radius: 12px;
}
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: var(--transition);
}
.banner-dot.active { background: var(--primary); width: 18px; border-radius: 4px; }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.section-see-all { font-size: .82rem; color: var(--primary); font-weight: 600; }
.section-see-all:hover { text-decoration: underline; }

/* ── CATEGORY CHIPS ── */
.categories-section { padding: 0 16px 16px; }
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 72px; padding: 10px 8px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow); cursor: pointer;
  transition: var(--transition); flex-shrink: 0; text-decoration: none; color: var(--text);
}
.cat-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-chip.active { background: var(--primary); color: #fff; }
.cat-chip img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.cat-chip-placeholder { width: 44px; height: 44px; border-radius: 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.cat-chip span { font-size: .7rem; font-weight: 600; text-align: center; line-height: 1.2; }

/* ── PRODUCT CARDS ── */
.products-section { padding: 0 16px 24px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-wish-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.product-wish-btn:hover { background: #fff; transform: scale(1.12); }
.product-wish-btn svg { width: 16px; height: 16px; }
.product-wish-btn.active svg { fill: #e53935; stroke: #e53935; }
.product-sale-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e53935; color: #fff;
  font-size: .65rem; font-weight: 700; font-family: var(--font-display);
  padding: 3px 8px; border-radius: 20px;
}
.product-new-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700; font-family: var(--font-display);
  padding: 3px 8px; border-radius: 20px;
}
.product-card-body { padding: 10px 12px 12px; }
.product-card-name { font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); line-height: 1.3; }
.product-card-brand { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.product-card-price { display: flex; align-items: center; gap: 6px; }
.price-main { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--text); }
.price-old { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; }
.price-sale { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: #e53935; }

/* ── PRODUCT DETAIL PAGE ── */
.product-detail { background: var(--bg); min-height: 100vh; }
.product-images { position: relative; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.product-main-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-img-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.product-img-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; }
.product-img-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }
.product-thumbnails { display: flex; gap: 8px; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.product-thumbnails::-webkit-scrollbar { display: none; }
.product-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; }
.product-thumb.active { border-color: var(--accent); }
.product-info { padding: 16px; background: var(--white); margin-top: 8px; border-radius: var(--radius); }
.product-cat { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.product-store { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.store-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.store-name { font-size: .82rem; font-weight: 600; }
.store-check { color: var(--primary); font-size: .75rem; }
.follow-btn { margin-left: auto; padding: 6px 14px; border-radius: 40px; font-size: .78rem; background: var(--accent); color: #fff; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.follow-btn:hover { background: #333; }
.product-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.product-old-price { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.size-section, .color-section { margin-bottom: 14px; }
.size-label, .attr-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.size-guide { color: var(--primary); cursor: pointer; font-size: .78rem; }
.size-btns, .color-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--white); font-size: .82rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.color-btn { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: var(--transition); }
.color-btn.active { border-color: var(--accent); transform: scale(1.2); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qty-label { font-size: .82rem; font-weight: 600; }
.qty-ctrl { display: flex; align-items: center; gap: 0; background: var(--bg); border-radius: 40px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; font-weight: 600; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-val { min-width: 32px; text-align: center; font-weight: 700; font-size: .9rem; }
.add-cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--white); border-top: 1px solid var(--border); position: sticky; bottom: 0; z-index: 100; }
.total-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.total-label { font-size: .72rem; color: var(--text-muted); }
.add-cart-btn { display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 13px 24px; border-radius: 40px; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .9rem; transition: var(--transition); }
.add-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.product-tabs { margin-top: 8px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.tab-btns { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 12px; text-align: center; font-size: .82rem; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--text-muted); transition: var(--transition); border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { padding: 16px; display: none; }
.tab-content.active { display: block; }

/* ── CART ── */
.cart-page { padding: 16px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-item { background: var(--white); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; box-shadow: var(--shadow); }
.cart-item-img { width: 72px; height: 86px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .88rem; margin-bottom: 2px; }
.cart-item-attrs { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item-price { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .8rem; }
.cart-remove:hover { color: #e53935; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.summary-total { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.coupon-form { display: flex; gap: 8px; margin-top: 12px; }
.coupon-input { flex: 1; border: 1px solid var(--border); border-radius: 40px; padding: 10px 14px; font-size: .85rem; outline: none; }
.coupon-input:focus { border-color: var(--primary); }

/* ── CHECKOUT ── */
.checkout-page { padding: 16px; }
.checkout-form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.form-control {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: .88rem; outline: none;
  transition: border-color var(--transition); background: var(--white);
}
.form-control:focus { border-color: var(--primary); }
.checkout-section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 18px 0 12px; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); background: var(--white);
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-method input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.pay-method-icon { width: 36px; height: 24px; object-fit: contain; }
.pay-method-label { font-weight: 600; font-size: .88rem; }
.pay-method-desc { font-size: .75rem; color: var(--text-muted); }

/* ── SHOP PAGE ── */
.shop-page { padding: 0 16px 32px; }
.shop-filters { display: none; flex-direction: column; gap: 10px; padding: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.shop-filters.open { display: flex; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group-title { font-size: .82rem; font-weight: 700; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); font-size: .78rem; cursor: pointer; transition: var(--transition); background: var(--white); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sort-select { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: .85rem; outline: none; width: 100%; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.results-count { font-size: .82rem; color: var(--text-muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-link {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: .82rem;
  cursor: pointer; transition: var(--transition); background: var(--white); color: var(--text);
}
.page-link:hover, .page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state svg { opacity: .2; margin: 0 auto 12px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 6px; }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-link { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--text-muted); }
.auth-link a { color: var(--primary); font-weight: 600; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: .8rem; margin: 12px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.auth-divider span { background: var(--white); padding: 0 10px; position: relative; }

/* ── ACCOUNT ── */
.account-page { padding: 16px; }
.account-card { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.account-hero { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius); color: #fff; margin-bottom: 16px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.account-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.account-email { font-size: .8rem; opacity: .85; }
.account-menu { display: flex; flex-direction: column; }
.account-menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; transition: var(--transition); }
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:hover { background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); }

/* ── ORDERS ── */
.order-card { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.order-num { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.order-status { padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; font-family: var(--font-display); }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cfe2ff; color: #084298; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: var(--primary-light); color: var(--primary-dark); }
.status-cancelled { background: #f8d7da; color: #842029; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: 40px; font-size: .85rem; font-weight: 600;
  z-index: 2000; opacity: 0; pointer-events: none; transition: var(--transition);
  white-space: nowrap; max-width: calc(100vw - 32px); box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--primary); }
.toast.error { background: #e53935; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; right: -360px; top: 0; bottom: 0; width: 340px;
  background: var(--white); z-index: 1100; box-shadow: var(--shadow-lg);
  transition: right .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.cart-drawer-header h3 { font-family: var(--font-display); font-weight: 700; }
.cart-drawer-header button { background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cart-drawer-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.cart-drawer-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1099; opacity: 0; pointer-events: none; transition: var(--transition);
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  z-index: 800; padding: 6px 0;
}
.bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px; border: none; background: none; cursor: pointer;
  font-size: .62rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition); font-family: var(--font-display);
  text-decoration: none;
}
.bottom-nav-btn svg { width: 22px; height: 22px; }
.bottom-nav-btn.active { color: var(--primary); }
.bottom-nav-btn:hover { color: var(--primary); }
body { padding-bottom: 70px; }

/* ── FOOTER ── */
.site-footer { background: var(--accent2); color: #fff; margin-top: 32px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 32px 16px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 8px; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.footer-contact a, .footer-contact span { font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-links h4 { font-family: var(--font-display); font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.footer-links ul { display: flex; flex-direction: column; gap: 6px; }
.footer-links li a { font-size: .82rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links li a:hover { color: var(--primary); }
.footer-newsletter h4 { font-family: var(--font-display); font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.footer-newsletter p { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 0; border-radius: 40px; overflow: hidden; background: rgba(255,255,255,.1); }
.newsletter-form input { flex: 1; border: none; background: transparent; padding: 10px 14px; font-size: .82rem; color: #fff; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button { padding: 10px 16px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .82rem; transition: var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-payment-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pay-badge { padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.1); font-size: .68rem; color: rgba(255,255,255,.7); font-weight: 600; font-family: var(--font-display); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-fade-up { animation: fadeInUp .5s ease forwards; }
.animate-stagger > * { opacity: 0; }
.animate-stagger.visible > *:nth-child(1) { animation: fadeInUp .4s .05s ease forwards; }
.animate-stagger.visible > *:nth-child(2) { animation: fadeInUp .4s .10s ease forwards; }
.animate-stagger.visible > *:nth-child(3) { animation: fadeInUp .4s .15s ease forwards; }
.animate-stagger.visible > *:nth-child(4) { animation: fadeInUp .4s .20s ease forwards; }
.animate-stagger.visible > *:nth-child(5) { animation: fadeInUp .4s .25s ease forwards; }
.animate-stagger.visible > *:nth-child(6) { animation: fadeInUp .4s .30s ease forwards; }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ── ADMIN ── */
.admin-sidebar {
  position: fixed; left: -260px; top: 0; bottom: 0; width: 250px;
  background: var(--accent2); color: #fff; z-index: 500;
  transition: left .3s ease; overflow-y: auto;
}
.admin-sidebar.open { left: 0; }
.admin-sidebar-logo { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: .88rem; color: rgba(255,255,255,.7); cursor: pointer; transition: var(--transition); text-decoration: none; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-item .nav-icon { width: 18px; height: 18px; }
.admin-header { position: sticky; top: 0; z-index: 490; background: var(--white); box-shadow: var(--shadow); padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 12px; }
.admin-body { padding: 20px 16px; }
.admin-card { background: var(--white); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.stat-card { background: var(--white); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: .78rem; color: var(--text-muted); }
.stat-trend { font-size: .72rem; font-weight: 600; }
.stat-up { color: var(--primary); }
.stat-down { color: #e53935; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--bg); }
.table-responsive { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.switch-wrap { display: flex; align-items: center; gap: 10px; }
.switch { width: 42px; height: 24px; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; transition: var(--transition); }
.switch.on { background: var(--primary); }
.switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch.on::after { left: 21px; }
.color-swatch-input { display: flex; align-items: center; gap: 8px; }
.color-swatch-input input[type=color] { width: 36px; height: 36px; border: none; border-radius: 8px; cursor: pointer; padding: 0; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.preview-img { max-width: 100px; border-radius: 8px; margin-top: 8px; }

/* ── RESPONSIVE — TABLET ── */
@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-slide h2 { font-size: 1.6rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE — DESKTOP ── */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .hamburger { display: none; }
  .mobile-search { display: none; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .desktop-nav { display: flex; }
  .header-search { display: flex; }
  .container { padding: 0 32px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .banner-section { padding: 24px 32px; }
  .banner-slide { min-height: 260px; }
  .banner-slide h2 { font-size: 2rem; }
  .banner-img { width: 240px; height: 240px; }
  .categories-section { padding: 0 32px 24px; }
  .products-section { padding: 0 32px 32px; }
  .cat-chip { min-width: 90px; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1.5fr; padding: 48px 32px; }
  .admin-sidebar { left: 0; }
  .admin-body { margin-left: 250px; }
  .admin-header { margin-left: 250px; }
  .admin-toggle-btn { display: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; }
  .add-cart-bar { position: static; }
  .shop-page { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 32px; }
  .shop-filters { display: flex !important; }
  .shop-main { min-width: 0; }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}
