/* ═══════════════════════════════════════════════════════════════════════
   ME Ecommerce — Main Stylesheet
   Theme: Clean White + Royal Blue | Professional & Modern
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────────── */
:root {
  --blue:          #1565C0;
  --blue-dark:     #0D47A1;
  --blue-mid:      #1976D2;
  --blue-light:    #42A5F5;
  --blue-pale:     #E3F2FD;
  --blue-pale2:    #BBDEFB;
  --blue-glow:     rgba(21, 101, 192, 0.10);
  --accent:        #FF6F00;
  --accent-light:  #FFA040;
  --white:         #FFFFFF;
  --off-white:     #F8FAFF;
  --surface:       #FFFFFF;
  --surface2:      #F0F5FF;
  --border:        #DBEAFE;
  --border-mid:    #BFDBFE;
  --border-strong: #93C5FD;
  --text-primary:  #0F172A;
  --text-mid:      #334155;
  --text-muted:    #64748B;
  --shadow-sm:     0 1px 4px rgba(21,101,192,0.08);
  --shadow-card:   0 4px 20px rgba(21,101,192,0.10), 0 0 0 1px var(--border);
  --shadow-hover:  0 12px 40px rgba(21,101,192,0.18), 0 0 0 1.5px var(--blue-light);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0 1.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.navbar-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
}

.navbar-search input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.navbar-search input:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.navbar-search input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Live search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(21,101,192,0.14);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.search-dropdown.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-pale); }

.search-result-item .thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface2);
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 3px;
}
.search-result-item .info .name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.search-result-item .info .meta { font-size: 0.75rem; color: var(--text-muted); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}

.cart-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-link-plain {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link-plain:hover { color: var(--blue); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 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 nav drawer */
.mobile-nav {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 100px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(21,101,192,0.1);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 990;
  gap: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { 
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  padding: 0.7rem 0;
  color: var(--text-mid);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav a:last-child { border-bottom: none; }

/* Mobile search inside drawer */
.mobile-search-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.mobile-search-wrap input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-primary);
}
.mobile-search-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════
   CATEGORY NAV BAR (below main navbar)
   ══════════════════════════════════════════════════════════════════════ */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cat-nav a {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-nav a:hover { color: var(--blue); border-bottom-color: var(--blue-light); }
.cat-nav a.active { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* ══════════════════════════════════════════════════════════════════════
   HERO SLIDESHOW
   ══════════════════════════════════════════════════════════════════════ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 450px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slideshow .slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 6s linear;
  transform: scale(1.05);
}

.hero-slideshow .slide.active { 
  opacity: 1; 
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.85) 0%, rgba(21,101,192,0.6) 60%, rgba(30,136,229,0.5) 100%);
  z-index: 1;
}

/* Wave separator */
.hero-slideshow::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content h1 .highlight {
  color: #FDD835;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(21,101,192,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21,101,192,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-mid);
  color: var(--text-mid);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}
.btn-accent:hover {
  background: #E65100;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,111,0,0.3);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.48rem 1rem;
}

.btn-danger {
  background: rgba(220,53,69,0.08);
  border: 1px solid rgba(220,53,69,0.2);
  color: #DC3545;
}
.btn-danger:hover {
  background: rgba(220,53,69,0.14);
  color: #b02a37;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION / CONTAINER
   ══════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3rem 0; }
.section-sm { padding: 1.75rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-title span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.section-divider {
  height: 3px;
  width: 40px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.4rem 0 0;
}

.view-all {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: all var(--transition);
}
.view-all:hover { border-bottom-color: var(--blue); color: var(--blue-dark); }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  padding-top: 8px; /* Prevents translateY(-5px) hover from cutting off */
  margin-top: -8px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  transition: transform var(--transition);
}

.product-card:hover .product-card-img { transform: scale(1.05); }

.product-card-img-placeholder {
  font-size: 3rem;
  color: var(--border-mid);
}

/* Variant count badge on card */
.variant-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.product-card-body {
  padding: 0.85rem 0.9rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-group {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.product-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.product-card-price .currency {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 2px;
}

.product-card-footer {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Stock badge */
.stock-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}
.stock-badge.in-stock {
  background: rgba(21,101,192,0.08);
  color: var(--blue-dark);
  border: 1px solid var(--blue-pale2);
}
.stock-badge.out-stock {
  background: rgba(220,53,69,0.06);
  color: #b02a37;
  border: 1px solid rgba(220,53,69,0.15);
}

/* ══════════════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL ROW (homepage groups)
   ══════════════════════════════════════════════════════════════════════ */
.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-top: 8px; /* Prevents translateY(-5px) hover cutoff */
  margin-top: -8px;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 10px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 5px; }

.scroll-row .product-card {
  min-width: 210px;
  max-width: 210px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Group section on homepage */
.group-section {
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--border);
}
.group-section:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════════════════
   CHIP FILTER ROW
   ══════════════════════════════════════════════════════════════════════ */
.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.chip:hover, .chip.active {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-pale);
}

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0;
}

.product-gallery { position: sticky; top: 100px; }

.product-main-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 2rem;
  transition: border-color var(--transition);
}
.product-main-img:hover { border-color: var(--blue-light); }

.product-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.product-thumb {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  object-fit: contain;
  background: var(--surface2);
  cursor: pointer;
  transition: border-color var(--transition);
  padding: 0.3rem;
}
.product-thumb.active, .product-thumb:hover { border-color: var(--blue); }

.color-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue) !important;
  z-index: 2;
}

/* Variant quality selector */
.variant-selector {
  margin: 1.25rem 0;
}

.variant-selector-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.variant-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-mid);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.variant-btn:hover {
  border-color: var(--blue-light);
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.variant-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.variant-btn .v-code {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 500;
}

/* Product info panel */
.product-info .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.product-info .breadcrumb a { color: var(--blue); }

.product-code-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale2);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.product-info h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.3rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.product-price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-specs {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.25rem 0;
}
.product-specs table { width: 100%; border-collapse: collapse; }
.product-specs td {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.product-specs td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
  background: var(--white);
}
.product-specs td:last-child { color: var(--text-primary); font-weight: 600; }
.product-specs tr:last-child td { border-bottom: none; }

.add-to-cart-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.qty-input {
  width: 78px;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.65rem;
  outline: none;
  transition: border-color var(--transition);
}
.qty-input:focus { border-color: var(--blue); }

/* ══════════════════════════════════════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--blue-light); }

.cart-item-img {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  padding: 0.4rem;
  border: 1px solid var(--border);
}

.cart-item-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; }
.cart-item-code { font-size: 0.72rem; color: var(--text-muted); }
.cart-item-price { color: var(--blue-dark); font-weight: 700; margin-top: 0.3rem; font-size: 0.9rem; }

.cart-item-qty { display: flex; align-items: center; gap: 0.45rem; }

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-mid);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.cart-item-actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.cart-item-subtotal { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); }

.order-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
}
.order-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}
.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT
   ══════════════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  padding: 2rem 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-control::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ══════════════════════════════════════════════════════════════════════
   ORDER CONFIRMATION
   ══════════════════════════════════════════════════════════════════════ */
.confirmation-box {
  max-width: 560px;
  margin: 3rem auto;
  text-align: center;
}

.success-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--blue);
  margin: 0 auto 1.25rem;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.order-number-display {
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-pale2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.05em;
}

/* Status timeline */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}
.status-timeline::before {
  content: '';
  position: absolute;
  top: 15px; left: 5%; right: 5%;
  height: 2px;
  background: var(--border-mid);
}

.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; z-index: 1; }

.timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.timeline-dot.active { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }
.timeline-dot.done   { border-color: var(--blue); background: var(--blue); color: var(--white); }
.timeline-label { font-size: 0.68rem; color: var(--text-muted); text-align: center; }

/* ══════════════════════════════════════════════════════════════════════
   STATUS PILL
   ══════════════════════════════════════════════════════════════════════ */
.status-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pending   { background: rgba(255,179,0,0.1); color: #E65100; border: 1px solid rgba(255,179,0,0.3); }
.status-confirmed { background: var(--blue-pale); color: var(--blue-dark); border: 1px solid var(--blue-pale2); }
.status-shipped   { background: rgba(100,149,237,0.1); color: #1565C0; border: 1px solid rgba(100,149,237,0.25); }
.status-delivered { background: rgba(34,197,94,0.08); color: #15803D; border: 1px solid rgba(34,197,94,0.2); }
.status-cancelled { background: rgba(220,53,69,0.06); color: #b02a37; border: 1px solid rgba(220,53,69,0.15); }

/* ══════════════════════════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
   ══════════════════════════════════════════════════════════════════════ */
.flash-messages {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 340px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slide-in-right 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.flash-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.flash-danger  { background: #FFF5F5; border: 1px solid #FED7D7; color: #b02a37; }
.flash-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.flash-info    { background: var(--blue-pale); border: 1px solid var(--blue-pale2); color: var(--blue-dark); }

/* ══════════════════════════════════════════════════════════════════════
   FEATURES STRIP
   ══════════════════════════════════════════════════════════════════════ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.feature-item { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon { font-size: 1.75rem; flex-shrink: 0; }
.feature-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.feature-text span   { font-size: 0.74rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1320px;
  margin: 0 auto 2rem;
}

.footer-logo { height: 40px; object-fit: contain; margin-bottom: 0.85rem; filter: brightness(10); }

.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.55rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
   ══════════════════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 2.25rem 1.5rem;
}
.page-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--white); margin-bottom: 0.3rem; }
.page-header p  { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════════════
   FILTERS / SORT BAR
   ══════════════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sort-select {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--blue); }

/* ══════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-link {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--white);
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.page-link.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ══════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3    { font-size: 1.2rem; margin-bottom: 0.5rem; }
.empty-state p     { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════════════════════════════
   TRACK ORDER
   ══════════════════════════════════════════════════════════════════════ */
.track-form { max-width: 480px; margin: 3rem auto; text-align: center; }

.order-status-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-detail  { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .cart-layout     { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .features-strip  { grid-template-columns: repeat(2, 1fr); }
  .order-summary   { position: static; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE / SMALL TABLET
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { height: 75px; padding: 0 1rem; gap: 1rem; }
  .navbar-logo img { height: 45px; max-width: 180px; }
  .mobile-nav { top: 75px; }
}
@media (max-width: 640px) {
  .navbar { height: 65px; padding: 0 0.75rem; gap: 0.5rem; }
  .navbar-logo { gap: 0.25rem !important; }
  .navbar-logo img { height: 36px; max-width: 130px; }
  .navbar-actions { gap: 0.75rem; margin-left: auto; }
  .navbar-search { display: none; }
  .hamburger     { display: flex; }
  .nav-link-plain{ display: none; }
  .mobile-nav { top: 65px; padding: 0.75rem 1rem 1rem; }

  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero::after { height: 40px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-strip { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
  .section { padding: 2rem 0; }
  .container { padding: 0 1rem; }
  .variant-btns { gap: 0.45rem; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
}
