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

:root {
  --primary: #845ec2;
  --primary-dark: #6B48A8;
  --primary-light: #A57BD6;
  --accent: #2ECC71;
  --accent-dark: #27AE60;
  --hub-red: #E74C3C;
  --africa-green: #2ECC71;
  --bg: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F4FB;
  --bg-dark: #1A1A2E;
  --bg-darker: #0F0F1A;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --placeholder: #f0f0f5;
}

/* ============ DARK MODE ============ */
[data-theme="dark"] {
  --bg: #12121D;
  --bg-card: #1C1C2A;
  --bg-soft: #171724;
  --text: #E8EAF2;
  --text-secondary: #A6ACC0;
  --text-light: #7B8196;
  --border: #2B2B3D;
  --border-light: #232335;
  --placeholder: #262636;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.45);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.45), 0 2px 4px -2px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.45), 0 8px 10px -6px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.55);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.65);
}

[data-theme="dark"] .navbar {
  background: rgba(18,18,29,0.85);
}

[data-theme="dark"] .logo-text .source {
  color: var(--text);
}

[data-theme="dark"] .product-image {
  background: var(--placeholder);
}

[data-theme="dark"] .gallery-main,
[data-theme="dark"] .gallery-thumbs {
  background: var(--placeholder);
}

[data-theme="dark"] .mixed-note,
[data-theme="dark"] .delivery-note {
  color: #FBBF24;
}

[data-theme="dark"] .app-splash {
  background: var(--bg);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .auth-page {
  background: var(--bg);
}

[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .notif-dropdown,
[data-theme="dark"] .payment-modal-card {
  background: var(--bg-card);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, select {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  /* Clip horizontal overflow (e.g. notification dropdown) locally so the
     sticky bar is not affected by body/html overflow rules. */
  overflow: hidden;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  height: 72px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  min-width: 0;
}

.logo img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo > span {
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-text .source {
  color: #1A1A1A;
}

.logo-text .hub {
  color: var(--hub-red);
}

.logo-text .africa {
  color: var(--africa-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 0;
}

.search-bar input {
  width: 100%;
  min-width: 120px;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--bg);
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132,94,194,0.1);
}

.search-bar svg {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  width: 16px;
  height: 16px;
}

.nav-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.nav-icon-btn:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ---- Mobile nav ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--bg);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-toggle:hover span {
  background: var(--primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 6px 24px 14px;
  z-index: 999;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

/* ---- Mobile bottom tab bar ---- */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.mobile-tabbar .mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-tabbar .mobile-tab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-tabbar .mobile-tab.active {
  color: var(--primary);
}

.mobile-tabbar .mobile-tab.active svg {
  transform: translateY(-1px) scale(1.06);
}

.tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.tab-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

.tab-count[hidden] {
  display: none;
}

/* ============ HERO ============ */
.hero {
  padding: 60px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 12% 18%, rgba(132, 94, 194, 0.40), transparent 70%),
    radial-gradient(36% 40% at 86% 10%, rgba(46, 204, 113, 0.26), transparent 70%),
    radial-gradient(48% 52% at 78% 88%, rgba(94, 124, 214, 0.24), transparent 70%);
  filter: blur(80px);
  will-change: transform;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -4%, 0) scale(1.15); }
}

/* Soft fade into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* Fine grain to avoid gradient banding */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(42% 46% at 12% 18%, rgba(132, 94, 194, 0.55), transparent 70%),
    radial-gradient(36% 40% at 86% 10%, rgba(46, 204, 113, 0.32), transparent 70%),
    radial-gradient(48% 52% at 78% 88%, rgba(94, 124, 214, 0.34), transparent 70%);
}

[data-theme="dark"] .hero-texture {
  opacity: 0.5;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(132,94,194,0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span {
  color: inherit;
}

.hero h1 span[data-i18n="hero.title2"] {
  color: var(--primary);
}

.hero h1 span[data-i18n="hero.title4"] {
  color: var(--africa-green);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease,
              filter 0.2s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  filter: grayscale(0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(132, 94, 194, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(132, 94, 194, 0.42);
}

.btn-outline {
  background: rgba(132, 94, 194, 0.08);
  color: var(--primary);
  border: none;
}

.btn-outline:hover {
  background: rgba(132, 94, 194, 0.16);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline {
  background: rgba(165, 123, 214, 0.16);
  color: var(--primary-light);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(165, 123, 214, 0.26);
  color: #fff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(rgba(132, 94, 194, 0.4) 2px, transparent 2px);
  background-size: 15px 15px;
  z-index: 0;
}

.hero-visual::before {
  top: 2%;
  right: 6%;
  width: 120px;
  height: 120px;
}

.hero-visual::after {
  bottom: 6%;
  left: 4%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(rgba(46, 204, 113, 0.42) 2px, transparent 2px);
}

.hero-image-wrapper {
  width: 420px;
  height: 420px;
  background: rgba(132,94,194,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: conic-gradient(from 140deg,
    rgba(132, 94, 194, 0.65),
    rgba(46, 204, 113, 0.55),
    rgba(94, 124, 214, 0.6),
    rgba(132, 94, 194, 0.65));
  filter: blur(38px);
  opacity: 0.65;
  z-index: -2;
}

.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(132, 94, 194, 0.4);
  z-index: -1;
  animation: hero-ring-spin 60s linear infinite;
}

@keyframes hero-ring-spin {
  to { transform: rotate(360deg); }
}

.hero-carousel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-placeholder {
  font-size: 8rem;
  opacity: 0.6;
}

/* Floating trust cards */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: hero-floaty 5.5s ease-in-out infinite;
  will-change: transform;
}

.hero-float--secure {
  top: 22px;
  right: -30px;
}

.hero-float--authentic {
  bottom: 34px;
  left: -34px;
  animation-delay: 0.7s;
}

.hero-float-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-float-icon svg {
  width: 19px;
  height: 19px;
}

.hero-float-icon--shield {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.hero-float-icon--badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.hero-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-float-text strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.hero-float-text > span {
  font-size: 0.72rem;
  color: var(--text-light);
}

@keyframes hero-floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.hero-stat h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============ SECTION HEADERS ============ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============ CATEGORIES (BENTO) ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 20px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.category-card--feature {
  grid-column: span 2;
  grid-row: span 2;
}

.category-card--wide {
  grid-column: span 2;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-img {
  transform: scale(1.06);
}

.category-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(132,94,194,0.08);
}

.category-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(17,17,30,0.72), rgba(17,17,30,0.15));
}

.category-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.category-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.category-card--feature .category-card-body {
  padding: 26px 30px;
}

.category-card--feature h3 {
  font-size: 1.45rem;
}

.category-card--feature p {
  font-size: 0.85rem;
}

.category-card--feature .category-card-fallback {
  font-size: 4.5rem;
}

.category-card--wide .category-card-body {
  padding: 20px 24px;
}

.category-card--wide h3 {
  font-size: 1.2rem;
}

/* ============ PRODUCTS ============ */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.products-toolbar--sort {
  justify-content: flex-end;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.all-products-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.all-products-more[hidden] {
  display: none;
}

.product-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  /* Keep cards in a row the same height and bottom-align their content. */
  display: flex;
  flex-direction: column;
}

.product-card .product-image {
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(17,17,30,0.85);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(12px);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-quick-add {
  transform: translateY(0);
  opacity: 1;
}

.product-quick-add svg {
  width: 16px;
  height: 16px;
}

@media (hover: none) {
  .product-quick-add {
    display: none;
  }
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-new {
  background: var(--accent);
  color: white;
}

.badge-hot {
  background: var(--warning);
  color: white;
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: var(--transition-fast);
  color: var(--text-light);
}

.product-wishlist:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.product-wishlist.active {
  color: var(--danger);
}

.product-wishlist svg {
  width: 16px;
  height: 16px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.product-actions {
  margin-top: auto;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-location {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--warning);
  font-size: 0.8rem;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.825rem;
}

@media (hover: hover) {
  .product-actions {
    display: none;
  }
}

/* ============ DEALS BANNER ============ */
.deals-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.deals-content {
  position: relative;
  z-index: 1;
}

.deals-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.deals-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.deals-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

.deals-timer {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.timer-block {
  text-align: center;
}

.timer-block .number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 1.8rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.timer-block .label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(132,94,194,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.newsletter p {
  opacity: 0.8;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
  border-color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  padding: 14px 28px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    padding-right: 130px;
  }
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.gallery-main {
  width: 100%;
  height: 480px;
  background: var(--placeholder);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  margin-bottom: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
}

.detail-info h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail-price .price-current {
  font-size: 2rem;
}

/* Shipping / estimated total panel on product detail */
.detail-shipping {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.detail-shipping-row.total {
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-weight: 700;
  color: var(--text);
}

.detail-shipping-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.detail-shipping-label svg {
  color: var(--primary);
}

.detail-shipping-value {
  font-weight: 600;
  color: var(--text);
}

.detail-shipping-value.free {
  color: var(--success);
}

.detail-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 68ch;
}

.detail-desc p {
  margin: 0 0 12px;
}

.detail-desc p:last-child {
  margin-bottom: 0;
}

.detail-options {
  margin-bottom: 28px;
}

.option-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.option-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.option-btn:hover {
  border-color: var(--primary-light);
}

.option-btn.active {
  border-color: var(--primary);
  background: rgba(132,94,194,0.05);
  color: var(--primary);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 28px;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  background: var(--bg);
  font-size: 1.1rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.quantity-selector button:hover {
  background: var(--primary);
  color: white;
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.detail-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 16px 28px;
}

/* ============ CART PAGE ============ */
.cart-page {
  padding: 40px 0 80px;
}

.cart-page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--placeholder);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-item-right {
  text-align: right;
}

.cart-item-remove {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-row.total span:last-child {
  color: var(--primary);
  font-size: 1.3rem;
}

.coupon-form {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.coupon-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.coupon-form button {
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.coupon-form button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  transition: var(--transition);
}

.checkout-btn:hover {
  box-shadow: 0 8px 25px rgba(132,94,194,0.4);
  transform: translateY(-2px);
}

/* ============ PRODUCTS PAGE ============ */
.page-header {
  padding: 40px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.products-page {
  padding: 40px 0 80px;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.products-layout > * {
  min-width: 0;
}

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

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.sidebar-section ul li {
  padding: 8px 0;
}

.sidebar-section ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.sidebar-section ul li a:hover {
  color: var(--primary);
}

.sidebar-section ul li a.active {
  color: var(--primary);
  font-weight: 600;
}

.price-range {
  display: flex;
  gap: 12px;
  align-items: center;
}

.price-range input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }

  .nav-center { gap: 20px; }
  .nav-links { gap: 16px; }
  .search-bar { flex-basis: 200px; }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .category-card--wide { grid-column: span 1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-banner { grid-template-columns: 1fr; padding: 40px; }
  .deals-timer { justify-content: center; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: block; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 12px; }
  .category-card--feature h3 { font-size: 1.15rem; }
  .category-card--feature .category-card-body { padding: 18px 20px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 48px 0; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .navbar .container {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    height: auto;
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: 14px;
    row-gap: 12px;
  }
  .nav-center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }
  .nav-center .search-bar {
    flex: 1 1 100%;
    max-width: none;
    flex-basis: auto;
  }
  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .logo {
    font-size: 0.95rem;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    justify-self: stretch;
  }
  .logo img {
    height: 36px;
    width: 36px;
  }
  .deals-banner {
    padding: 28px 20px;
    gap: 28px;
    text-align: center;
  }
  .deals-content h2 { font-size: 1.6rem; }
  .deals-content p { font-size: 0.9rem; }
  .deals-content .btn { width: 100%; justify-content: center; }
  .deals-timer { gap: 10px; }
  .timer-block .number {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .section-header h2 { font-size: 1.5rem; }
  .cart-count { top: 0; right: 0; }
  .product-actions { flex-direction: column; }
  .logo { font-size: 0.82rem; gap: 6px; }
  .logo img { height: 32px; width: 32px; }
  .nav-actions { gap: 4px; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-icon-btn svg { width: 18px; height: 18px; }
  .nav-toggle { width: 36px; height: 36px; }
  .deals-banner { padding: 24px 16px; }
  .deals-content h2 { font-size: 1.35rem; }
  .deals-timer { gap: 8px; }
  .timer-block .number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .timer-block .label { font-size: 0.6rem; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

.contact-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.contact-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
  color: white;
}

.contact-btn:hover {
  transform: scale(1.1);
}

.contact-btn svg {
  width: 28px;
  height: 28px;
}

.whatsapp-btn {
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

.whatsapp-btn:hover {
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.email-btn {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(132,94,194,0.4);
}

.email-btn:hover {
  box-shadow: 0 6px 20px rgba(132,94,194,0.5);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 18px;
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(140%) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--success);
}

.toast.show::after {
  animation: toast-progress var(--toast-duration, 2500ms) linear forwards;
}

.toast--cart::after { background: var(--primary-light); }

.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: white;
}

.toast--cart .toast-icon { background: var(--primary); }

.toast-icon svg { width: 15px; height: 15px; }

.toast.show .toast-icon {
  animation: toast-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

.toast-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.toast-title { font-weight: 600; }

.toast-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-action {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.toast-action:hover { color: #fff; }

@keyframes toast-progress {
  to { transform: scaleX(1); }
}

@keyframes toast-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ============ EMPTY CART ============ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ============ AUTH / LOGIN ============ */
.nav-auth {
  display: flex;
  align-items: center;
}

.nav-auth-btn {
  padding: 9px 18px;
}

.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition-fast);
  max-width: 200px;
}

.user-chip:hover {
  border-color: var(--primary-light);
}

.user-chip > svg {
  width: 14px;
  height: 14px;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.user-chip.open > svg {
  transform: rotate(180deg);
}

.user-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1001;
}

.user-chip.open .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-header > div {
  min-width: 0;
}

.dropdown-header .user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 1rem;
}

.dropdown-header strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.dropdown-header span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.user-dropdown a:hover {
  background: var(--bg);
  color: var(--danger);
}

.user-dropdown a svg {
  width: 16px;
  height: 16px;
}

.auth-page {
  min-height: calc(100vh - 72px);
  padding: 60px 0 80px;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 44px;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.auth-card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(132,94,194,0.3);
}

.auth-alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.auth-error {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

.auth-success {
  background: rgba(16,185,129,0.08);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg);
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132,94,194,0.1);
  background: var(--bg-card);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-label input {
  accent-color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.forgot-link:hover {
  color: var(--primary-dark);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  margin-top: 16px;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-social {
  width: 100%;
  padding: 13px 26px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.auth-social:hover {
  background: var(--bg);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.auth-social:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.social-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-alt {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-light);
}

.auth-alt a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .auth-card { padding: 32px 24px; }
  .user-name { display: none; }
  .user-chip { padding: 6px; }
}

/* ============ CHECKOUT ============ */
.checkout-page {
  padding: 40px 0 80px;
}

.checkout-page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-card-header svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.checkout-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-fields textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg);
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: var(--transition);
}

.delivery-fields textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132,94,194,0.1);
  background: var(--bg-card);
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.checkout-item-qty {
  font-size: 0.8rem;
  color: var(--text-light);
}

.checkout-item-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.summary-row.discount {
  color: var(--success);
}

.remove-coupon {
  color: var(--text-light);
  font-size: 0.75rem;
  text-decoration: underline;
}

.mixed-note,
.delivery-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
}

.mixed-note {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--warning);
}

.delivery-note {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--warning);
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pay-option:hover {
  border-color: var(--primary-light);
}

.pay-option.active {
  border-color: var(--primary);
  background: rgba(132,94,194,0.05);
}

.pay-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.pay-option.active .pay-radio {
  border-color: var(--primary);
}

.pay-option.active .pay-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.pay-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.pay-option.active .pay-title {
  color: var(--primary);
}

.pay-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.secure-note svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* ============ PAYMENT MODAL ============ */
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,15,26,0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.payment-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-card {
  width: 92%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px);
  transition: var(--transition);
}

.payment-modal.show .payment-modal-card {
  transform: translateY(0);
}

.payment-modal-card h3 {
  font-size: 1.2rem;
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.payment-modal-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.payment-modal-card .btn {
  margin-top: 16px;
}

.payment-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 4px solid rgba(132,94,194,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.payment-order-id {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.payment-error-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
}

.payment-error-msg {
  color: var(--danger);
  font-weight: 600;
}

.payment-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-actions .btn {
  margin-top: 0;
  display: inline-flex;
}

/* ============ ORDER CONFIRMATION ============ */
.order-confirmation {
  text-align: center;
  padding: 60px 20px;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  font-size: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-confirmation h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.order-confirmation p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 8px;
}

.confirm-order-id {
  font-weight: 700;
  color: var(--primary);
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============ ORDERS PAGE ============ */
.orders-page {
  padding: 40px 0 80px;
}

.orders-page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.orders-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 3px solid var(--border-light);
}

.order-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-id strong {
  font-size: 1.1rem;
}

.order-badge {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.order-total {
  text-align: right;
}

.order-total strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
}

.order-total span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.order-card-body {
  padding: 16px 24px;
}

.order-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.order-item-qty {
  font-size: 0.8rem;
  color: var(--text-light);
}

.order-item-price {
  font-weight: 700;
  font-size: 0.9rem;
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.order-payment-note {
  color: var(--warning);
}

.order-cancel-btn {
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
}

.order-cancel-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* --- Orders stats --- */
.orders-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.orders-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.orders-stat-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  background: rgba(132,94,194,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.orders-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.orders-stat strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: var(--text);
}

/* --- Orders filters --- */
.orders-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* --- Order status icon --- */
.order-status-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.7);
}

.order-id > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

/* --- Order progress timeline --- */
.order-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.order-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.order-progress-step.done {
  color: var(--success);
}

.order-progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--bg-card);
  color: var(--text-light);
}

.order-progress-step.done .order-progress-dot {
  color: white;
}

.order-progress-line {
  flex: 1;
  height: 3px;
  margin: 0 10px;
  margin-bottom: 22px;
  background: var(--border);
}

.order-progress-line.done {
  background: var(--success);
}

/* --- Payment badges --- */
.order-pay-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-pay-badge.paid {
  background: rgba(16,185,129,0.12);
  color: var(--success);
}

.order-pay-badge.unpaid {
  background: rgba(245,158,11,0.12);
  color: #B45309;
}

.order-pay-badge.failed {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
}

.order-pay-badge.partial {
  background: rgba(59,130,246,0.12);
  color: #2563EB;
}

.order-paid {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.order-paid span {
  color: var(--text-light);
}

.order-paid strong {
  color: var(--success);
}

.order-items {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.order-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-date {
  color: var(--text-light);
}

.order-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-footer-actions .btn {
  padding: 9px 18px;
}

@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .orders-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .checkout-card { padding: 20px; }
  .order-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-total { text-align: left; }
  .orders-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .orders-stat { padding: 14px; }
  .order-progress { padding: 14px 16px; }
  .order-footer-actions { width: 100%; justify-content: flex-start; }
}

/* ============ NOTIFICATIONS ============ */
.nav-bell {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-wrap {
  position: relative;
}

.notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.notif-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.notif-header strong {
  font-size: 0.9rem;
}

.notif-header button {
  background: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.notif-header button:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.notif-item:hover {
  background: var(--bg);
}

.notif-item.read {
  opacity: 0.55;
}

.notif-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}

.notif-item.read .notif-dot {
  background: var(--text-light);
}

.notif-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}

.notif-content span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============ FAVOURITES PAGE ============ */
.favourites-page {
  padding: 40px 0 80px;
}

.favourites-page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* ============ PROFILE PAGE ============ */
.profile-page {
  padding: 40px 0 80px;
}

.profile-page > .container > h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.profile-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--primary);
  border-radius: var(--radius-xl);
  color: white;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
}

.profile-header h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.profile-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
}

.profile-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.profile-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: var(--bg);
  padding-left: 24px;
}

.profile-menu-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.profile-menu-item span:not(.profile-menu-arrow) {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-menu-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
}

.profile-menu-item select.currency-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-menu-item select.currency-select:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-menu-item select.language-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-menu-item select.language-select:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-menu-item .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.profile-menu-item .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-menu-item .switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.profile-menu-item .switch .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.profile-menu-item .switch input:checked + .slider {
  background: var(--primary);
}

.profile-menu-item .switch input:checked + .slider::before {
  transform: translateX(20px);
}

.bulk-order-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(132,94,194,0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.bulk-order-icon {
  font-size: 2.4rem;
}

.bulk-order-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.bulk-order-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.profile-signout {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 2px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.profile-signout:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* ============ EDIT PROFILE ============ */
.edit-profile-page {
  padding: 40px 0 80px;
}

.edit-profile-page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* ============ LEGAL PAGE ============ */
.legal-page {
  padding: 40px 0 80px;
}

.legal-page > .container > h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.legal-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  margin-bottom: 24px;
}

.legal-intro-icon {
  font-size: 2.4rem;
}

.legal-intro h2 {
  font-size: 1.2rem;
}

.legal-intro p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.policy-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.policy-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.policy-title {
  flex: 1;
}

.policy-title strong {
  display: block;
  font-size: 0.95rem;
}

.policy-title small {
  font-size: 0.75rem;
  color: var(--text-light);
}

.policy-chevron {
  color: var(--text-light);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.policy-toggle:not(.active) .policy-chevron {
  transform: rotate(-90deg);
}

.policy-body {
  padding: 20px;
}

.policy-body ul {
  list-style: disc;
  padding-left: 20px;
}

.policy-body li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-contact {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}

.legal-contact-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.legal-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.legal-contact p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-support-email {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .notif-dropdown { width: 280px; right: -80px; }
}

/* ============ APP SPLASH ============ */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

.app-splash.hide {
  opacity: 0;
  pointer-events: none;
}

.app-splash-inner {
  text-align: center;
  padding: 20px;
}

.app-splash-logo {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-splash-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(132, 94, 194, 0.15);
  border-top-color: var(--primary);
  border-right-color: rgba(132, 94, 194, 0.45);
  animation: app-splash-spin 1s linear infinite;
}

.app-splash-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(132, 94, 194, 0.3);
}

.app-splash-title {
  margin-top: 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.app-splash-tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 1.2px;
}

@keyframes app-splash-spin {
  to { transform: rotate(360deg); }
}

/* ============ SKELETON LOADERS ============ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
}

.skeleton-category {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.skeleton-thumb {
  aspect-ratio: 1 / 1;
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-sm);
  margin: 12px 20px 0;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 90%; }

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

/* ============ SCROLLBAR & SELECTION ============ */
::selection {
  background: rgba(132, 94, 194, 0.28);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============ MOBILE BOTTOM TAB BAR ============ */
@media (max-width: 768px) {
  .mobile-tabbar {
    display: flex;
  }

  .nav-toggle,
  .mobile-menu,
  .mobile-menu.open {
    display: none;
  }

  .nav-actions .nav-icon-btn[href="cart.html"],
  .nav-actions .nav-auth {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .contact-buttons {
    display: none;
  }

  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .mobile-tabbar .mobile-tab span {
    line-height: 1.1;
  }

  .sidebar-section {
    margin-bottom: 20px;
  }

  .sidebar-section h3 {
    margin-bottom: 10px;
  }

  .sidebar-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-section ul li {
    padding: 0;
  }

  .sidebar-section ul li a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    font-size: 0.8rem;
  }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
