/* ============================================================
   STYLIA — Main Stylesheet
   Royal Blue Theme | Bootstrap 5 base
   ============================================================ */

/* ── Google Font fallback (loaded in header) ─────────────────*/
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text-dark, #1a1a2e);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── CSS Variables ───────────────────────────────────────────*/
:root {
  --primary:       #1a4fa0;
  --primary-dark:  #163d80;
  --primary-light: #e8f0fe;
  --accent:        #f7941d;
  --accent-dark:   #e07e0c;
  --success:       #22c55e;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --text-dark:     #1a1a2e;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg-light:      #f8faff;
  --card-shadow:   0 2px 16px rgba(26,79,160,.08);
  --card-shadow-hover: 0 8px 32px rgba(26,79,160,.16);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --transition:    all .25s ease;
}

/* ── Scrollbar ───────────────────────────────────────────────*/
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────────*/
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ── Links ───────────────────────────────────────────────────*/
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Headings ────────────────────────────────────────────────*/
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-dark); line-height: 1.3; }

/* ── Buttons ─────────────────────────────────────────────────*/
.btn { border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,79,160,.3);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color:#fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }

/* ── Badges ──────────────────────────────────────────────────*/
.badge { font-weight: 600; letter-spacing: .3px; border-radius: 6px; }
.badge.bg-primary { background: var(--primary) !important; }

/* Order status badges */
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-packed    { background: #ede9fe; color: #5b21b6; }
.status-shipped   { background: #ccfbf1; color: #065f46; }
.status-delivered { background: #dcfce7; color: #14532d; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-refunded  { background: #f3f4f6; color: #374151; }

/* ── Cards ───────────────────────────────────────────────────*/
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--card-shadow-hover); }

/* ── Form Controls ───────────────────────────────────────────*/
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-size: .9rem;
  padding: .55rem .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}
.form-label { font-weight: 600; font-size: .875rem; color: #374151; margin-bottom: .4rem; }
.input-group-text { border-color: var(--border); background: var(--bg-light); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--text-dark);
  color: #d1d5db;
  font-size: .8rem;
  padding: .4rem 0;
  line-height: 1;
}
.topbar-text i { color: var(--accent); }
.topbar-links { display: flex; align-items: center; gap: .75rem; justify-content: flex-end; }
.topbar-links a { color: #d1d5db; font-size: .8rem; }
.topbar-links a:hover { color: #fff; }
.topbar-divider { width: 1px; height: 12px; background: #374151; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  z-index: 1030;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}
.footer-logo .logo-text { font-size: 1.5rem; color: #fff; }

/* Header Search */
.header-search { flex: 1; max-width: 600px; position: relative; }
.search-form { position: relative; }
.search-inner {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.1);
}
.search-cat-select {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  font-size: .8rem;
  padding: .5rem .75rem;
  width: 150px;
  flex-shrink: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
}
.search-cat-select:focus { box-shadow: none; border-color: var(--border); }
.search-input {
  border: none;
  border-radius: 0;
  font-size: .9rem;
  padding: .55rem 1rem;
  flex: 1;
}
.search-input:focus { box-shadow: none; }
.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: .55rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 2000;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f3f4f6;
  transition: var(--transition);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--primary-light); }
.suggestion-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink:0; background: #f3f4f6; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-name { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-meta { font-size: .75rem; color: var(--text-muted); }
.suggestion-price { font-size: .875rem; font-weight: 700; color: var(--primary); flex-shrink:0; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.action-btn:hover { background: var(--primary-light); color: var(--primary); }
.action-label { font-size: .65rem; font-weight: 600; margin-top: 2px; color: var(--text-muted); }
.action-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.cart-btn { color: var(--primary); }

/* Mobile search bar */
.mobile-search-bar { background: var(--bg-light); border-bottom: 1px solid var(--border); }

/* ============================================================
   CATEGORY NAV (desktop)
   ============================================================ */
.category-nav {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cat-nav-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  align-items: stretch;
}
.cat-nav-item { position: relative; }
.cat-nav-link {
  display: flex;
  align-items: center;
  padding: .75rem 1.1rem;
  color: rgba(255,255,255,.92);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.cat-nav-link:hover,
.cat-nav-item:hover > .cat-nav-link {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.cat-nav-link.text-accent { color: var(--accent) !important; }
.cat-nav-link.text-success { color: #4ade80 !important; }

/* Category dropdown */
.cat-dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}
.cat-nav-item:hover .cat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cat-dropdown-inner { padding: .5rem 0; }
.cat-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1.1rem .4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .3rem;
  font-size: .8rem;
}
.cat-dropdown-header .view-all { color: var(--primary); font-size: .78rem; font-weight: 600; }
.cat-dropdown-list { list-style: none; padding: 0; margin: 0; }
.cat-dropdown-list li a {
  display: block;
  padding: .45rem 1.1rem;
  font-size: .875rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.cat-dropdown-list li a:hover { background: var(--primary-light); color: var(--primary); padding-left: 1.4rem; }

/* ============================================================
   MOBILE NAV (off-canvas)
   ============================================================ */
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1199;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 300px; max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--primary);
  flex-shrink: 0;
}
.mobile-nav-header .logo-text { color: #fff; font-size: 1.3rem; }
.mobile-nav-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
}
.mobile-nav-close:hover { background: rgba(255,255,255,.35); }

.mobile-nav-user { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.mobile-user-avatar { color: var(--primary); }

.mobile-nav-list {
  list-style: none; margin: 0; padding: .5rem 0;
  flex: 1;
}
.mobile-nav-list li > a,
.mobile-nav-parent {
  display: flex;
  align-items: center;
  padding: .75rem 1.25rem;
  color: var(--text-dark);
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid #f9fafb;
  width: 100%;
  background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; cursor: pointer;
  transition: var(--transition);
}
.mobile-nav-list li > a:hover,
.mobile-nav-parent:hover { background: var(--primary-light); color: var(--primary); }

.mobile-sub-toggle { font-size: .75rem; transition: transform .25s; }
.mobile-sub-toggle.rotated { transform: rotate(180deg); }

.mobile-sub-list {
  list-style: none; padding: 0; margin: 0;
  background: var(--bg-light);
  display: none;
}
.mobile-sub-list.open { display: block; }
.mobile-sub-list li a {
  display: block;
  padding: .6rem 1.25rem .6rem 2.5rem;
  font-size: .85rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f3f4f6;
}
.mobile-sub-list li a:hover { color: var(--primary); background: var(--primary-light); }

.mobile-nav-social {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-social a { color: var(--text-muted); font-size: 1.2rem; }
.mobile-nav-social a:hover { color: var(--primary); }

/* ============================================================
   SECTION HEADERS (homepage sections)
   ============================================================ */
.section-header { margin-bottom: 2rem; }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .25rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: .4rem;
}
.section-subtitle { color: var(--text-muted); font-size: .95rem; }
.section-link { font-size: .875rem; font-weight: 600; color: var(--primary); }
.section-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #f8f9fa;
}
.product-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }

/* Product badges */
.product-badges {
  position: absolute;
  top: .6rem; left: .6rem;
  display: flex; flex-direction: column; gap: .3rem;
  z-index: 2;
}
.product-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
  letter-spacing: .3px;
  line-height: 1.4;
}
.badge-sale     { background: var(--danger);   color: #fff; }
.badge-new      { background: var(--success);  color: #fff; }
.badge-trending { background: var(--accent);   color: #fff; }
.badge-best     { background: var(--primary);  color: #fff; }
.badge-out      { background: #9ca3af;         color: #fff; }

/* Wishlist button on card */
.card-wishlist-btn {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 34px; height: 34px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  opacity: 0;
}
.product-card:hover .card-wishlist-btn { opacity: 1; }
.card-wishlist-btn:hover,
.card-wishlist-btn.active { color: #ef4444; background: #fff2f2; }

/* Quick add overlay */
.card-quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(26,79,160,.92);
  color: #fff;
  text-align: center;
  padding: .65rem;
  font-size: .825rem;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform .25s ease;
  border: none;
  width: 100%;
}
.product-card:hover .card-quick-add { transform: translateY(0); }
.card-quick-add:hover { background: var(--primary-dark); }

/* Card body */
.product-card-body {
  padding: .85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-brand {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .2rem;
}
.product-card-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .3rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--primary); }
.product-card-stars { margin-bottom: .4rem; font-size: .8rem; }
.product-card-stars .text-warning { color: #f59e0b !important; }

.product-card-price {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .5rem;
}
.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.price-original {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: .72rem;
  font-weight: 700;
  background: #fef2f2;
  color: var(--danger);
  padding: .15rem .4rem;
  border-radius: 4px;
}

/* ============================================================
   HERO BANNER / SLIDER
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  overflow: hidden;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
  padding: 3rem 0;
}
.hero-content .badge {
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  padding: .35rem .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  display: inline-block;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero-content p { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns .btn-light {
  color: var(--primary);
  font-weight: 700;
  border-radius: 50px;
  padding: .65rem 1.75rem;
}
.hero-btns .btn-outline-light {
  border-radius: 50px;
  padding: .65rem 1.75rem;
  border-width: 2px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  opacity: 1;
  transition: var(--transition);
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: rgba(255,255,255,.35); }
.carousel-control-prev { left: 1rem; }
.carousel-control-next { right: 1rem; }
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  opacity: .5;
}
.carousel-indicators .active { opacity: 1; width: 24px; border-radius: 4px; }

/* ============================================================
   FEATURED CATEGORIES
   ============================================================ */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  display: block;
}
.category-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-card:hover .category-card-img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,79,160,.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: var(--transition);
}
.category-card:hover .category-card-overlay { background: linear-gradient(to top, rgba(26,79,160,.9) 0%, rgba(26,79,160,.2) 60%); }
.category-card-label { color: #fff; font-weight: 700; font-size: 1.1rem; }
.category-card-count { color: rgba(255,255,255,.8); font-size: .8rem; }

/* ============================================================
   OFFERS / DEAL CARDS
   ============================================================ */
.offer-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.offer-card-bg {
  position: absolute; inset: 0;
  object-fit: cover; opacity: .2;
  width: 100%; height: 100%;
}
.offer-card-content { position: relative; z-index: 1; }
.offer-card .badge { background: var(--accent); }

/* Countdown timer */
.countdown { display: flex; gap: .5rem; margin: .75rem 0; }
.countdown-unit {
  background: rgba(255,255,255,.2);
  border-radius: 6px;
  padding: .35rem .6rem;
  text-align: center;
  min-width: 44px;
}
.countdown-num { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.countdown-label { font-size: .6rem; opacity: .8; letter-spacing: .5px; }

/* ============================================================
   BRANDS STRIP
   ============================================================ */
.brand-strip { background: var(--bg-light); padding: 2.5rem 0; }
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 80px;
}
.brand-logo-wrap:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26,79,160,.1);
}
.brand-logo-img { max-height: 45px; max-width: 120px; object-fit: contain; filter: grayscale(60%); transition: var(--transition); }
.brand-logo-wrap:hover .brand-logo-img { filter: grayscale(0); }
.brand-name-text { font-size: .9rem; font-weight: 700; color: var(--text-dark); text-align: center; }

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
}
.review-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.review-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: .5rem; left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.review-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .9rem; }
.review-product { font-size: .78rem; color: var(--text-muted); }
.review-body { font-size: .88rem; color: #374151; line-height: 1.6; margin-top: .75rem; }

/* ============================================================
   INSTAGRAM GALLERY
   ============================================================ */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.instagram-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.instagram-item:hover img { transform: scale(1.1); }
.instagram-overlay {
  position: absolute; inset: 0;
  background: rgba(26,79,160,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.instagram-item:hover .instagram-overlay { opacity: 1; }

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

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  padding: 3rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text { flex: 1; color: #fff; min-width: 260px; }
.newsletter-text h3 { color: #fff; font-size: 1.4rem; margin-bottom: .25rem; }
.newsletter-text p { opacity: .85; margin: 0; font-size: .95rem; }
.newsletter-form { flex: 1; min-width: 300px; }
.newsletter-input-group { display: flex; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.newsletter-email {
  border: none;
  border-radius: 0;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  flex: 1;
}
.newsletter-email:focus { box-shadow: none; }
.newsletter-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--accent-dark); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 0;
}
.footer-heading {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: .3px;
}
.footer-tagline { color: rgba(255,255,255,.7); font-size: .9rem; margin: .5rem 0 .75rem; }
.footer-about { color: #fff; line-height: 1.7; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-social a.whatsapp-social:hover { background: #25D366; }

.payment-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  font-size: .75rem;
  padding: .3rem .7rem;
  border-radius: 20px;
  margin-right: .4rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #94a3b8; font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: .3rem; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .875rem;
  color: #94a3b8;
}
.footer-contact-list i { color: var(--primary); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.footer-contact-list a { color: #94a3b8; }
.footer-contact-list a:hover { color: #fff; }

.trust-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: .3rem .75rem;
  font-size: .75rem;
  color: #94a3b8;
}
.trust-badge i { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
  margin-top: 3rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 1050;
  transition: var(--transition);
}
.whatsapp-float:hover {
  background: #128C7E;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  background: #333;
  color: #fff;
  font-size: .78rem;
  padding: .3rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ============================================================
   PRODUCT LISTING PAGE
   ============================================================ */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.filter-section { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #f3f4f6; }
.filter-section:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.filter-title { font-size: .875rem; font-weight: 700; color: var(--text-dark); margin-bottom: .75rem; }

/* Price range */
.price-range-inputs { display: flex; gap: .5rem; align-items: center; }
.price-range-inputs input { width: 80px; font-size: .82rem; padding: .3rem .5rem; }
.price-range-sep { color: var(--text-muted); font-size: .8rem; }

/* Color swatches in filter */
.color-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.color-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.color-swatch:hover, .color-swatch.active { border-color: var(--primary); transform: scale(1.15); }
.color-swatch::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: inherit;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}
.sort-bar .results-count { font-size: .875rem; color: var(--text-muted); }
.sort-bar .results-count strong { color: var(--text-dark); }
.sort-select { font-size: .875rem; padding: .35rem .75rem; min-width: 180px; }
.view-toggle .btn { padding: .35rem .6rem; font-size: .9rem; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-gallery { position: relative; }
.product-main-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #f8f9fa;
  cursor: zoom-in;
  position: relative;
}
.product-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-thumb-list {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Variant selectors */
.variant-section { margin-bottom: 1.25rem; }
.variant-label { font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: var(--text-dark); }
.variant-label span { font-weight: 400; color: var(--text-muted); }
.size-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-btn {
  min-width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 .6rem;
  display: flex; align-items: center; justify-content: center;
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); }
.size-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.size-btn.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.color-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.color-btn:hover, .color-btn.active { border-color: var(--primary); transform: scale(1.15); }
.color-btn .color-inner {
  position: absolute; inset: 2px;
  border-radius: 50%;
  background: inherit;
}

/* Quantity stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px; height: 44px;
  border: none;
  background: var(--bg-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text-dark);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
  width: 56px; height: 44px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
.qty-input:focus { outline: none; box-shadow: none; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table thead th {
  background: var(--bg-light);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: .85rem 1rem;
  border: none;
}
.cart-table td { padding: 1rem; vertical-align: middle; border-color: #f3f4f6; }
.cart-product-img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-product-name { font-weight: 600; font-size: .9rem; }
.cart-product-variant { font-size: .78rem; color: var(--text-muted); }
.cart-remove { color: var(--text-muted); font-size: .85rem; cursor: pointer; background: none; border: none; padding: 0; }
.cart-remove:hover { color: var(--danger); }

.cart-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .9rem;
}
.cart-summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid var(--border);
  margin-top: .5rem;
  padding-top: 1rem;
}
.coupon-input-group { display: flex; gap: .5rem; }
.coupon-input-group input { flex: 1; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.checkout-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.checkout-section-title i { color: var(--primary); }

.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: .75rem;
}
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.payment-option-icon { font-size: 1.5rem; color: var(--primary); }

.shipping-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: .5rem;
}
.shipping-option:hover { border-color: var(--primary); }
.shipping-option.selected { border-color: var(--primary); background: var(--primary-light); }

/* ============================================================
   ORDER TRACKING
   ============================================================ */
.track-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 1.5rem 0;
}
.track-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.track-step::before {
  content: '';
  position: absolute;
  top: 18px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--primary); }

.track-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin: 0 auto .5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.track-step.done .track-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.track-step.current .track-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(247,148,29,.2);
  animation: pulse 1.5s infinite;
}
.track-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.track-step.done .track-label,
.track-step.current .track-label { color: var(--text-dark); }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(247,148,29,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(247,148,29,.1); }
}

/* ============================================================
   ORDER CONFIRMATION
   ============================================================ */
.order-success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(34,197,94,.3);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.order-number-box {
  background: var(--primary-light);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: .75rem 1.5rem;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.img-lazy { opacity: 0; transition: opacity .3s ease; }
.img-lazy.loaded { opacity: 1; }

.sticky-sidebar { position: sticky; top: 100px; }

.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent)  !important; }
.bg-primary   { background-color: var(--primary) !important; }
.bg-light-blue { background: var(--primary-light) !important; }

.stars .bi-star-fill  { color: #f59e0b; }
.stars .bi-star-half  { color: #f59e0b; }
.stars .bi-star       { color: #d1d5db; }

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-slide { min-height: 360px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: .9rem; }
  .category-nav { display: none; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .track-progress { flex-direction: column; align-items: flex-start; gap: 0; }
  .track-step { display: flex; align-items: center; gap: 1rem; flex: none; width: 100%; text-align: left; padding: .5rem 0; }
  .track-step::before { top: 0; bottom: -100%; right: auto; left: 19px; width: 2px; height: 100%; }
  .track-icon { flex-shrink: 0; margin: 0; }
}

@media (max-width: 767.98px) {
  .site-header .header-inner { flex-wrap: wrap; }
  .hero-slide { min-height: 280px; }
  .section-title { font-size: 1.3rem; }
  .product-thumb { width: 56px; height: 56px; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: .3rem; }
  .checkout-section { padding: 1.25rem; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
}

@media (max-width: 575.98px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .cart-table thead { display: none; }
  .cart-table td { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; font-size: .78rem; color: var(--text-muted); }
  .coupon-input-group { flex-direction: column; }
  .newsletter-input-group { flex-direction: column; border-radius: var(--radius-sm); }
  .newsletter-email, .newsletter-btn { border-radius: var(--radius-sm) !important; }
}

/* ============================================================
   PRINT (invoice)
   ============================================================ */
@media print {
  .site-header, .category-nav, .site-footer,
  .newsletter-strip, .whatsapp-float,
  .mobile-nav, .topbar, nav { display: none !important; }
  body { font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}