/* ═══════════════════════════════════════════════════════════════
   KGShops — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --primary:       #9f5330;
  --primary-dark:  #7d3f24;
  --primary-light: #c46a3f;
  --primary-rgb:   159, 83, 48;
  --dark:          #1a1614;
  --dark-2:        #2d2825;
  --dark-3:        #453d38;
  --text:          #1a1614;
  --text-muted:    #6b6560;
  --text-light:    #9c958e;
  --bg:            #fdfcfa;
  --bg-soft:       #f5f1eb;
  --bg-card:       #ffffff;
  --border:        #e8e2d9;
  --border-light:  #f0ebe3;
  --success:       #2d6a4f;
  --warning:       #b45309;
  --danger:        #b91c1c;
  --info:          #1d4e89;
  --shadow-sm:     0 1px 3px rgba(26,22,20,0.06);
  --shadow:        0 4px 20px rgba(26,22,20,0.08);
  --shadow-lg:     0 16px 48px rgba(26,22,20,0.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --nav-height:    68px;
  --font:          'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'DM Serif Display', Georgia, serif;
  --bg-nav:        rgba(253,252,250,0.92);
  --bg-bottom-nav: rgba(253,252,250,0.96);
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
}

html.dark {
  --primary:       #d4895a;
  --primary-dark:  #b8774a;
  --primary-light: #e0a078;
  --primary-rgb:   212, 137, 90;
  --text:          #e8e0d8;
  --text-muted:    #a09888;
  --text-light:    #8a8078;
  --bg:            #1a1614;
  --bg-soft:       #25201c;
  --bg-card:       #2d2824;
  --border:        #3d3530;
  --border-light:  #352d28;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --shadow:        0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.5);
  --bg-nav:        rgba(26,22,20,0.92);
  --bg-bottom-nav: rgba(26,22,20,0.96);
  --success:       #4ade80;
  --warning:       #fbbf24;
  --danger:        #f87171;
}

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

html { overflow-y: auto; scroll-behavior: smooth; font-size: 16px; }
/* Dark theme scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
html { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: pageFadeIn 0.4s ease-out forwards;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}
input.input-disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; }
textarea { resize: vertical; min-height: 120px; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.hidden { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.32); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: var(--bg-card); color: var(--primary); }
.btn-white:hover { background: var(--bg-soft); color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-disabled, .btn:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; opacity: 0.7; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem; height: var(--nav-height);
  position: relative;
}

.nav-logo { display: flex; align-items: baseline; gap: 0; font-size: 2rem; font-family: var(--font-serif); text-decoration: none; }
.logo-kg { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-right: 0.15rem; }
.logo-shops { color: var(--text-muted); font-weight: 300; font-style: italic; letter-spacing: 1px; font-size: 0.9em; }

/* Search */
.nav-search {
  flex: 1; max-width: 700px; position: relative;
  display: flex; align-items: center;
  margin-right: 1rem;
}
.search-input {
  width: 100%; padding: 0.6rem 1rem; padding-right: 3rem;
  border-radius: 50px; border: 1.5px solid var(--border);
  background: var(--bg-soft); font-size: 0.92rem;
  transition: all var(--transition);
}
.search-input:focus { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14); }
.search-btn {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: 280px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 200; overflow: hidden; display: none;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; transition: background var(--transition);
  cursor: pointer;
  min-width: 0;
}
.search-result-item:hover { background: var(--bg-soft); }
.search-result-img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-info strong { font-size: 0.9rem; display: block; }
.search-result-info span { font-size: 0.82rem; color: var(--primary); }
.search-result-placeholder { background: var(--bg-soft); }
.search-see-all { justify-content: center; color: var(--primary); font-weight: 600; font-size: 0.88rem; }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.95rem; color: var(--text);
  transition: all var(--transition);
}
.nav-link:hover { background: var(--bg-soft); color: var(--primary); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; min-width: max-content; }
.nav-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
  color: var(--text); transition: all var(--transition); position: relative;
}
.nav-icon-btn:hover { background: var(--bg-soft); color: var(--primary); }
.nav-icon-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3px; }
.nav-notif-wrap { position: relative; }

.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 2px;
}
.nav-profile-right {
  position: absolute;
  right: 0;
  padding: 0.35rem;
  z-index: 10;
  background: var(--bg-nav);
  border-radius: 8px;
}
.nav-container {
  padding-right: 3.5rem;
}

/* ── Profile dropdown ── */
.nav-profile-wrap {
  position: absolute;
  right: 0;
  z-index: 15;
}
.nav-profile-btn {
  padding: 0.35rem;
  background: var(--bg-nav);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.nav-profile-btn:hover { background: rgba(255,255,255,0.08); }
.profile-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 100;
}
.profile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.profile-menu-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; flex-shrink: 0;
}
.profile-menu-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.profile-menu-email { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.profile-menu-nav { padding: 0.4rem 0; }
.profile-menu-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.1rem; font-size: 0.85rem; font-weight: 500;
  color: var(--text); text-decoration: none; transition: background var(--transition);
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
}
.profile-menu-link:hover { background: var(--bg-soft); color: var(--primary); }
.profile-menu-link.active { background: rgba(var(--primary-rgb),0.06); color: var(--primary); font-weight: 600; }
.profile-menu-icon { display: flex; align-items: center; flex-shrink: 0; color: var(--text-muted); }
.profile-menu-link:hover .profile-menu-icon { color: var(--primary); }
.profile-menu-link.active .profile-menu-icon { color: var(--primary); }
.profile-menu-logout { color: var(--danger); }
.profile-menu-logout:hover { background: #fee2e2; color: var(--danger); }
.profile-menu-logout:hover .profile-menu-icon { color: var(--danger); }
.profile-menu-divider { height: 1px; background: var(--border); margin: 0.3rem 0; }
/* Desktop: dropdown hidden, button acts as link */
@media (min-width: 769px) {
  .nav-profile-wrap { top: 50%; transform: translateY(-50%); }
  .profile-menu { display: none !important; }
}

/* Mobile */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--bg-card); gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-logout-btn {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text); transition: all var(--transition);
  display: block; text-align: left; font-size: 1rem; width: 100%;
}
.mobile-menu a:hover, .mobile-logout-btn:hover { background: var(--bg-soft); color: var(--primary); }

/* ── Flash Messages ───────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem; font-weight: 500; font-size: 0.95rem;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.flash-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }
.flash-close:hover { opacity: 1; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: 0.92rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Google-style field errors (input shake + soft red underline) ── */
.kg-input-error { border-color: #d93025 !important; box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.10) !important; }
.kg-field-error { display: flex; align-items: flex-start; gap: 0.35rem; font-size: 0.75rem; color: #d93025; margin-top: 0.3rem; line-height: 1.4; }
.kg-field-error::before { content: '!'; flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: #d93025; color: #fff; font-size: 0.6rem; font-weight: 700; line-height: 14px; text-align: center; }
.kg-field-success { display: flex; align-items: flex-start; gap: 0.35rem; font-size: 0.75rem; color: #188038; margin-top: 0.3rem; line-height: 1.4; }
.kg-field-success::before { content: '✓'; flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: #188038; color: #fff; font-size: 0.6rem; font-weight: 700; line-height: 14px; text-align: center; }
.otp-sent-to { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; line-height: 1.4; }
@keyframes kg-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.shake { animation: kg-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
html.dark .kg-field-error { color: #fca5a5; }
html.dark .kg-field-error::before { background: #f87171; }
html.dark .kg-field-success { color: #86efac; }
html.dark .kg-field-success::before { background: #22c55e; }
html.dark .kg-input-error { border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important; }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #f5f1eb 0%, #fdfcfa 42%, #ebe4d8 100%);
}

/* Homepage hero — mesh background + 3D stage */
.hero-home {
  display: block;
  background: linear-gradient(145deg, #f8f4ee 0%, #efe6d8 38%, #e6ddd0 72%, #f5efe6 100%);
}
.hero-home .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-mesh { position: absolute; inset: 0; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(56px);
  opacity: 0.45;
}
.hero-orb-1 {
  width: min(52vw, 520px); height: min(52vw, 520px);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.45) 0%, transparent 70%);
  top: -12%; right: -8%; animation: orbDrift1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: min(40vw, 400px); height: min(40vw, 400px);
  background: radial-gradient(circle, rgba(196, 106, 63, 0.35) 0%, transparent 70%);
  bottom: 5%; left: -6%; animation: orbDrift2 22s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 20px) scale(1.04); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -18px); }
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 22, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 20, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 75%);
}
.hero-home .hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 25%, rgba(var(--primary-rgb), 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(45, 40, 37, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(253, 252, 250, 0.3) 0%, transparent 40%, rgba(239, 230, 216, 0.5) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(1.5rem, 3vw, 3rem) 1.5rem clamp(2rem, 4vw, 4rem);
}
@media (min-width: 1025px) {
  .hero-inner {
    grid-template-rows: auto 1fr;
  }
  .hero-content { grid-column: 1; grid-row: 1; }
  .hero-cta-wrap { grid-column: 1; grid-row: 2; align-self: start; justify-content: flex-start; }
  .hero-stage { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* ── Large screens ───────────────────────────────────────────── */
@media (min-width: 1400px) {
  .container { max-width: 1380px; }
  .nav-container { max-width: 1380px; }
  .trust-container { max-width: 1380px; }
  .hero-inner { padding: 3rem 2.5rem clamp(2.5rem, 4.5vw, 4.5rem); }
  .hero-home .hero-content { max-width: 620px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (min-width: 1600px) {
  .container { max-width: 1560px; }
  .nav-container { max-width: 1560px; }
  .trust-container { max-width: 1560px; }
  .hero-inner { padding: 3.5rem 3rem clamp(3rem, 5vw, 5rem); }
  .hero-home .hero-content { max-width: 680px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}
@media (min-width: 1920px) {
  .container { max-width: 1800px; }
  .nav-container { max-width: 1800px; }
  .trust-container { max-width: 1800px; }
  .hero-inner { padding: 4rem 3.5rem clamp(3rem, 5.5vw, 5.5rem); }
  .hero-home .hero-content { max-width: 740px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (min-width: 2560px) {
  .container { max-width: 2240px; }
  .nav-container { max-width: 2240px; }
  .trust-container { max-width: 2240px; }
  .hero-inner { padding: 4.5rem 4rem clamp(3.5rem, 6vw, 6rem); gap: clamp(1.5rem, 3.5vw, 3rem); }
  .hero-home .hero-content { max-width: 800px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
}

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  align-self: center;
  gap: 1.5rem;
}
.btn-handcraft {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}
.handcraft-subtitle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  max-width: 400px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-handcraft:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
  color: #fff;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 2716 / 1880;
  border-radius: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(26, 22, 20, 0.14),
    0 0 0 1px rgba(var(--primary-rgb), 0.1);
  background: transparent;
  transform: translateY(-8px);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 1025px) {
  .hero-home .hero-image-frame {
    width: 100%;
    aspect-ratio: 2716 / 1880;
  }
}

.hero-bg { position: absolute; inset: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(45,40,37,0.06) 0%, transparent 50%);
}

.hero-home .hero-content {
  position: relative; z-index: 1;
  text-align: left;
  padding: 0;
  max-width: 560px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 4rem 2rem; max-width: 800px; margin: 0 auto;
}
.hero-tag {
  display: inline-block; background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  color: var(--primary-dark); padding: 0.4rem 1.2rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400; line-height: 1.05; color: var(--text); margin-bottom: 1.5rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.02);
}
.hero-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  display: inline-block;
}
.hero-subtitle { font-size: 1.12rem; color: var(--text-muted); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-home .hero-subtitle { margin: 0 0 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-home .hero-cta { justify-content: flex-start; }

.hero-cta-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.hero-home .hero-stats { justify-content: flex-start; margin-top: 2.5rem; }
.hero-home .stat {
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
}
.scroll-arrow {
  width: 28px; height: 28px; border-right: 2.5px solid var(--text-light);
  border-bottom: 2.5px solid var(--text-light);
  transform: rotate(45deg); animation: scrollBounce 1.5s infinite;
}
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip { background: var(--dark-2); padding: 1.5rem 0; overflow: hidden; }
.trust-strip .trust-container {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem; flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
  width: max-content;
  animation: trustMove 20s linear infinite;
}
.trust-strip { overflow: hidden; }
@keyframes trustMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-icon { font-size: 1.5rem; }
.trust-item strong { display: block; color: #fff; font-size: 0.9rem; }
.trust-item small { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
/* Trust strip items must stay in one line */
.trust-strip .trust-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

/* ── Section Styles ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; position: relative; }
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400; color: var(--text); margin-bottom: 0.5rem;
}
.section-sub { color: var(--text-muted); font-size: 1rem; }
.section-link {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  background: var(--primary); padding: 0.5rem 1.2rem; border-radius: 50px;
  transition: all var(--transition); text-decoration: none;
}
.section-link:hover { background: var(--primary-dark, var(--primary)); opacity: 0.9; }

/* ── Category Grid ───────────────────────────────────────────── */
.gender-tabs { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 0; }

.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem 1rem; background: var(--bg-soft); border-radius: var(--radius);
  border: 2px solid transparent; transition: all var(--transition);
  text-align: center; font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.category-card:hover { border-color: var(--primary); background: var(--bg-card); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--primary); }
.category-icon { font-size: 2.2rem; }

/* ── Product Grid ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.product-image-wrap {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-soft);
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 3.5rem; background: var(--bg-soft);
}
.product-img-placeholder.sm { font-size: 1.5rem; height: 60px; width: 60px; border-radius: 8px; }
.product-img-placeholder.large { aspect-ratio: 3/4; font-size: 5rem; }

.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--primary); color: #fff;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-oos { background: var(--text-muted); }
.product-badge-lg { font-size: 0.9rem; padding: 0.4rem 0.9rem; }

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,20,0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }
.btn-view-detail {
  background: var(--primary); color: #fff;
  padding: 0.6rem 1.5rem; border-radius: 50px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: all var(--transition); cursor: pointer; border: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-view-detail:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.32); }

.product-info { padding: 1rem; }
.product-category { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.product-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.product-name a:hover { color: var(--primary); }
.product-price { display: flex; flex-direction: column; gap: 0.15rem; }
.price-row { display: flex; align-items: center; gap: 0.5rem; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.price-lg { font-size: 1.5rem; }
.price-mrp { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; display: block; }
.price-discount { font-size: 0.8rem; color: var(--success); font-weight: 700; }
.price-savings { font-size: 0.8rem; color: var(--success); font-weight: 600; }
.low-stock { font-size: 0.8rem; color: var(--warning); font-weight: 600; margin-top: 0.25rem; display: block; }
.out-of-stock { font-size: 0.8rem; color: var(--danger); font-weight: 600; margin-top: 0.25rem; display: block; }

/* ── Banner ──────────────────────────────────────────────────── */
.banner-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 5rem 1.5rem; text-align: center;
}
.banner-content { max-width: 600px; margin: 0 auto; }
.banner-tag {
  display: inline-block; background: rgba(var(--primary-rgb), 0.18);
  border: 1px solid rgba(var(--primary-rgb), 0.35); color: var(--primary-light);
  padding: 0.3rem 1rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.banner-content h2 { font-family: var(--font-serif); font-size: 2.5rem; color: #fff; margin-bottom: 1rem; }
.banner-content p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--dark-2); color: rgba(255,255,255,0.75); padding: 4rem 0 0; border-top: 3px solid var(--primary); position: relative; z-index: 1; }
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.5fr 3fr; gap: 4rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 1rem 0; }
.footer-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { background: rgba(255,255,255,0.08); padding: 0.35rem 0.75rem; border-radius: 50px; font-size: 0.78rem; }
.badge-success  { background: rgba(34,197,94,0.15); color: #16a34a; }
.badge-warning  { background: rgba(245,158,11,0.15); color: #d97706; }
.badge-danger   { background: rgba(239,68,68,0.15); color: #dc2626; }
.badge-info     { background: rgba(59,130,246,0.15); color: #2563eb; }
.badge-primary  { background: rgba(var(--primary-rgb),0.15); color: var(--primary); }
.badge-muted    { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; margin-bottom: 0.5rem; font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1280px; margin: 3rem auto 0; padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; }
.payment-icons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.payment-icons span {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-main {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); padding: 3rem 1.5rem; overflow-x: hidden;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-title { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; text-align: center; margin-bottom: 0.4rem; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font); font-size: 0.9rem; padding: 0.6rem 0.85rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); transition: border-color var(--transition); }
.form-group input[type="date"] { min-height: 2.6rem; color-scheme: light; cursor: pointer; }
html.dark .form-group input[type="date"] { color-scheme: dark; }

/* ── Floating label fields (global) ── */
.floating-group { position: relative; }
.floating-wrap { position: relative; display: flex; flex: 1; }
.floating-wrap input, .floating-wrap textarea {
  width: 100%; padding: 1rem 0.85rem 0.75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; background: var(--bg-card); line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text); font-family: var(--font);
  caret-color: var(--primary);
}
.floating-wrap textarea { min-height: 80px; resize: vertical; padding-top: 1.4rem; }
.floating-wrap input:focus, .floating-wrap textarea:focus {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 3px rgba(159,83,48,0.2);
  outline: none;
}
.floating-wrap input:disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; }
.floating-wrap input::placeholder, .floating-wrap textarea::placeholder { color: transparent; }
.floating-wrap label {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; color: var(--text-muted); pointer-events: none;
  transition: all 0.15s ease; background: var(--bg-card); padding: 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 1.7rem);
}
.floating-wrap textarea + label { top: 1rem; transform: none; }
.floating-wrap input:focus + label,
.floating-wrap input:not(:placeholder-shown) + label,
.floating-wrap textarea:focus + label,
.floating-wrap textarea:not(:placeholder-shown) + label {
  top: -0.6rem; transform: translateY(0); font-size: 0.72rem; color: var(--primary);
}
.floating-wrap input[type="date"] { min-height: 2.6rem; color-scheme: light; cursor: pointer; }
.field-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; }

.input-with-toggle { position: relative; }
.input-with-toggle input { padding-right: 3rem; }
.password-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  font-size: 1rem; cursor: pointer; color: var(--text-muted);
}
.input-with-prefix { display: flex; }
.input-prefix {
  background: var(--bg-soft); border: 1.5px solid var(--border); border-right: none;
  padding: 0.75rem 0.85rem; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 600; color: var(--text-muted); white-space: nowrap; font-size: 0.9rem;
}
.input-with-prefix input, .input-with-prefix .floating-wrap input { flex: 1; min-width: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-with-prefix .floating-wrap label { left: 0.85rem; }

.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; }
.checkbox-label input[type="checkbox"] { width: auto; }
.forgot-link { color: var(--primary); font-size: 0.88rem; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-divider { text-align: center; margin: 1.5rem 0 0.75rem; color: var(--text-light); font-size: 0.8rem; }
.auth-trust { text-align: center; color: var(--text-light); font-size: 0.82rem; }

/* Password Strength */
.password-strength { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 0.3rem; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0; }
.strength-weak   { background: var(--danger); }
.strength-fair   { background: var(--warning); }
.strength-good   { background: var(--info); }
.strength-strong { background: var(--success); }
.password-hint { color: var(--text-muted); font-size: 0.78rem; }

/* CAPTCHA */


/* ── Products Page ───────────────────────────────────────────── */
.products-main { padding: 2rem 0 4rem; min-height: 80vh; }
.products-layout { display: flex; gap: 2rem; margin-top: 1rem; }
.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.products-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; }
.products-count { color: var(--text-muted); font-size: 0.95rem; }

/* Filter Sidebar — sticky on desktop */
.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  width: 220px;
  flex-shrink: 0;
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - 3rem);
  overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.5rem;
  z-index: 10;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-sidebar::-webkit-scrollbar { display: none; }
.products-content { flex: 1; min-width: 0; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filter-header h3 { font-size: 1rem; font-weight: 700; }
.filter-clear { color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; }
.filter-option {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.9rem; padding: 0.45rem 0.5rem; border-radius: 6px;
  color: var(--text); transition: background 0.15s;
}
.filter-option:hover { background: rgba(var(--primary-rgb), 0.06); }
.filter-option input[type="radio"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary);
  flex-shrink: 0; margin: 0;
}
.filter-select {
  padding: 0.6rem 0.8rem; font-size: 0.9rem; width: 100%; cursor: pointer;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.filter-toggle-btn {
  display: none; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; background: var(--bg);
}

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition); color: var(--text); background: var(--bg-card);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Product Detail ───────────────────────────────────────────── */
.product-detail-main { padding: 2rem 0 5rem; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 1.5rem; }
.main-image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); max-height: 65vh; }
.main-img { width: 100%; display: block; max-height: 65vh; object-fit: cover; }
.thumbnail-strip { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2.5px solid transparent; transition: all var(--transition); }
.thumb-active { border-color: var(--primary); }
.thumb:hover { border-color: var(--primary-light); }

/* ── Product title ──────────────────────────── */
.product-detail-name { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin: 0.5rem 0 1rem; line-height: 1.2; }

/* ── Category breadcrumb ────────────────────── */
.pd-category-row { margin-bottom: 0.25rem; }
.pd-category {
  font-size: 0.78rem; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  background: rgba(var(--primary-rgb), 0.08); padding: 0.2rem 0.75rem;
  border-radius: 4px; display: inline-block;
}
.pd-category:hover { background: var(--primary); color: #fff; }

/* ── Price + Stock row ──────────────────────── */
.pd-price-stock {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-light);
}
.pd-price-block { display: flex; flex-direction: column; gap: 0.15rem; }
.pd-price-row { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.pd-current-price { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.pd-mrp { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.pd-discount-badge {
  font-size: 0.9rem; font-weight: 700; color: #fff;
  background: #16a34a; padding: 0.2rem 0.65rem; border-radius: 4px;
}
.pd-savings { font-size: 0.9rem; color: #16a34a; font-weight: 600; }
.pd-stock-block { flex-shrink: 0; }
.pd-stock {
  font-size: 0.82rem; font-weight: 700; padding: 0.25rem 0.85rem;
  border-radius: 20px; display: inline-block;
}
.pd-in  { background: #dcfce7; color: #166534; }
.pd-low { background: #fef3c7; color: #92400e; }
.pd-out { background: #fee2e2; color: #991b1b; }

/* ── Variants ───────────────────────────────── */
.pd-variant-group { margin: 1.25rem 0; }
.pd-variants-row { display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem; }
.pd-variants-row .pd-variant-group,
.pd-variants-row .pd-qty-block { margin:0; }
.pd-variant-group:first-of-type { margin-top: 0; }
.pd-variant-label {
  font-weight: 600; font-size: 0.88rem; margin-bottom: 0.6rem; display: block; color: var(--text-dark);
}
.size-options,
.color-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pd-size-btn {
  min-width: 42px; padding: 0.5rem 0.85rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
  transition: all var(--transition); cursor: pointer; text-align: center;
}
.pd-size-btn:hover { border-color: var(--primary); }
.pd-size-btn.selected {
  border-color: var(--primary); background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}
.pd-color-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.pd-color-btn:hover { border-color: var(--primary); }
.pd-color-btn.selected {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}
.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* ── Quantity ───────────────────────────────── */
.pd-qty-block { margin: 1.25rem 0; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  padding: 0.5rem 0.9rem; background: var(--bg-soft); font-size: 1.2rem;
  font-weight: 700; transition: background var(--transition); cursor: pointer;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  padding: 0.5rem 1rem; font-weight: 600; text-align: center; width: 60px;
  border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
}


.pd-actions { display: flex; gap: 0.85rem; margin: 1.5rem 0; }
#addToCartBtn { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
#addToCartBtn:hover { background: #000; border-color: #000; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.32); transform: translateY(-1px); }
#buyNowBtn { background: var(--primary); border-color: var(--primary); color: #fff; }
#buyNowBtn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* ── Meta info cards ────────────────────────── */
.pd-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  margin: 1.5rem 0; padding: 0;
}
.pd-meta-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; font-size: 0.83rem; color: var(--text-muted);
  background: var(--bg-soft); border-radius: var(--radius-sm);
}

/* ── Description ────────────────────────────── */
.pd-description {
  margin-top: 1.5rem; padding: 1.25rem;
  background: var(--bg-soft); border-radius: var(--radius);
}
.pd-description h3 { font-weight: 700; margin-bottom: 0.65rem; font-size: 0.95rem; }
.pd-description p { color: var(--text-muted); line-height: 1.8; font-size: 0.9rem; }

/* ── Cart ────────────────────────────────────────────────────── */
.cart-main { padding: 2rem 0 5rem; }
.page-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }

.cart-item {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 1.25rem; align-items: start;
  padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; background: var(--bg-card); transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img { width: 90px; height: 110px; border-radius: var(--radius-sm); display: block; overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: var(--radius-sm); }
.cart-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; display: block; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-details small { color: var(--text-muted); font-size: 0.82rem; display: block; }
.cart-item-price { margin-top: 0.5rem; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.cart-item-total { font-weight: 700; font-size: 1rem; }
.cart-remove-btn { color: var(--danger); font-size: 1.1rem; transition: transform var(--transition); }
.cart-remove-btn:hover { transform: scale(1.2); }

.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; align-self: start; position: sticky; top: calc(var(--nav-height) + 1rem); }
.cart-summary h2 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; font-size: 0.93rem; }
.summary-row.text-green { color: var(--success); font-weight: 600; }
.summary-total { font-size: 1.1rem; font-weight: 700; padding-top: 0.75rem; }
.summary-divider { border: none; border-top: 1.5px dashed var(--border); margin: 0.75rem 0; }
.coupon-wrap { margin: 0.6rem 0; }
.coupon-toggle { display:block; width:100%; background:none; border:none; color:var(--primary); font-size:0.85rem; font-weight:500; cursor:pointer; padding:0.25rem 0; text-align:left; }
.coupon-toggle:hover { text-decoration:underline; }
.coupon-input-row { display:flex; gap:0.5rem; align-items:flex-start; margin-top:0.4rem; }
.coupon-floating { flex:1; margin-bottom:0; }
.coupon-floating input { text-transform:uppercase; }
.coupon-applied { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; padding:0.5rem 0.65rem; background:var(--bg-card); border:1px solid var(--success); border-radius:var(--radius-sm); font-size:0.85rem; color:var(--success); font-weight:600; }
.coupon-pop { animation: couponPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes couponPop { 0%{transform:scale(1)} 50%{transform:scale(1.04)} 100%{transform:scale(1)} }
.coupon-error { display:block; font-size:0.8rem; color:var(--danger); margin-top:0.3rem; }
.coupon-discount-row { display:none; }
.free-delivery-hint { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin: 0.5rem 0 1rem; text-align: center; }

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-main { padding: 2rem 0 5rem; }
.checkout-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 2.5rem; padding: 1.25rem 2rem;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 50px;
  box-shadow:
    0 0 0 1px rgba(159,83,48,0.06),
    0 0 0 3px rgba(159,83,48,0.03),
    2px 2px 0 0 #d4ccc2,
    3px 3px 0 0 #c4bcb2,
    4px 4px 8px rgba(26,22,20,0.08);
}
.checkout-steps .step {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
}
.checkout-steps .step.active { color: var(--primary); font-weight: 700; }
.checkout-steps .step.done { color: var(--success); }
.checkout-steps .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
  background: var(--bg-soft); color: var(--text-muted);
}
.checkout-steps .step.active .step-num { background: var(--primary); color: #fff; }
.checkout-steps .step.done .step-num { background: var(--success); color: #fff; }
.step-bar {
  width: 60px; height: 2px; background: var(--border);
  margin: 0 1rem;
}

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }

.address-radio-card { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); margin-bottom: 0.75rem; }
.address-radio-card:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.address-radio { width: auto; margin-top: 3px; accent-color: var(--primary); }
.address-radio-content strong { font-size: 0.9rem; display: block; margin-bottom: 0.25rem; }
.address-radio-content p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.address-radio-content small { font-size: 0.8rem; color: var(--text-muted); }

.checkout-left { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-left .card,
.checkout-right .card {
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(159,83,48,0.06),
    0 0 0 3px rgba(159,83,48,0.03),
    2px 2px 0 0 #d4ccc2,
    3px 3px 0 0 #c4bcb2,
    4px 4px 8px rgba(26,22,20,0.08);
}

.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-radio-card { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.payment-radio-card:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.payment-radio-card input { width: auto; accent-color: var(--primary); }
.payment-radio-card.recommended { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }
.payment-radio-content { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.payment-icon { font-size: 1.5rem; }
.payment-radio-content strong { display: block; font-size: 0.9rem; }
.payment-radio-content small { color: var(--text-muted); font-size: 0.8rem; }
.rec-tag { display: inline-block; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 50px; margin-left: 0.4rem; text-transform: uppercase; letter-spacing: 0.3px; vertical-align: middle; }

.payment-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.25rem 0; color: var(--text-light); font-size: 0.78rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.payment-divider::before,
.payment-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.payment-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.2rem 0.75rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); position: relative;
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(159,83,48,0.06),
    0 0 0 3px rgba(159,83,48,0.03),
    2px 2px 0 0 #d4ccc2,
    3px 3px 0 0 #c4bcb2,
    4px 4px 8px rgba(26,22,20,0.08);
}
.payment-option.disabled { opacity: 0.6; cursor: default; }
.payment-option .payment-icon { font-size: 1.3rem; }
.payment-option-info { text-align: center; }
.payment-option-info strong { display: block; font-size: 0.78rem; }
.payment-option-info small { display: none; }
.payment-option .coming-soon-badge {
  position: absolute; top: -7px; right: -7px;
  font-size: 0.6rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 0.1rem 0.45rem; border-radius: 50px; white-space: nowrap;
}

.checkout-items { margin-bottom: 1rem; }
.checkout-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.checkout-item img { width: 44px; height: 52px; object-fit: cover; border-radius: 6px; margin-top: 2px; }
.checkout-item div:first-of-type { flex: 1; }
.checkout-item strong { display: block; font-size: 0.85rem; }
.checkout-item small { color: var(--text-muted); font-size: 0.78rem; }
.checkout-qty-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; min-width: 90px; }
.checkout-item-total { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.checkout-qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-btn {
  width: 28px; height: 28px; border: none; background: var(--bg-soft); color: var(--text);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover:not(:disabled) { background: var(--border); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-val { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.82rem; }
.checkout-secure { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem; }
.delivery-free { color: var(--success); font-weight: 700; }

/* ── Order Detail ────────────────────────────────────────────── */
.order-detail-main { padding: 0.5rem 0 5rem; }

.od-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted);
  padding: 1rem 0 0.25rem;
}
.od-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.od-breadcrumb a:hover { text-decoration: underline; }
.od-breadcrumb-sep { color: var(--text-light); }

.order-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-top: 0.75rem;
  align-items: start;
}

/* ── Left column cards ── */
.order-detail-left { display: flex; flex-direction: column; gap: 1.25rem; }

.od-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.od-header-meta h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; word-break: break-all; }
.od-date { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }

.od-header-card { position: relative; padding-top: 2.2rem; }
.od-status-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 0.4rem 1.25rem;
  border-radius: 10px 10px 0 0;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 1; text-align: center;
}
.od-status-ribbon.status-cancelled { background: #dc2626; color: #fff; }
.od-status-ribbon.status-delivered { background: #16a34a; color: #fff; }
.od-status-ribbon.status-pending,
.od-status-ribbon.status-confirmed,
.od-status-ribbon.status-processing,
.od-status-ribbon.status-shipped,
.od-status-ribbon.status-out_for_delivery,
.od-status-ribbon.status-replaced,
.od-status-ribbon.status-replace_requested,
.od-status-ribbon.status-replaced_confirmed,
.od-status-ribbon.status-refunded { background: #d97706; color: #fff; }
html.dark .od-status-ribbon { box-shadow: none; }

.od-cancel-card {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25);
  border-radius: 12px; padding: 1rem 1.25rem; margin-top: 0;
}
.od-cancel-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626; margin-top: 0.45rem;
}
.od-cancel-body { flex: 1; min-width: 0; }
.od-cancel-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: #b91c1c; letter-spacing: 0.3px; margin-bottom: 0.3rem;
}
.od-cancel-text {
  font-size: 0.88rem; color: var(--text); line-height: 1.6; margin: 0;
}
html.dark .od-cancel-card {
  background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2);
}
html.dark .od-cancel-dot { background: #ef4444; }
html.dark .od-cancel-label { color: #f87171; }

.order-timeline { margin-top: 1.5rem; }
.timeline-step {
  display: flex; gap: 0.85rem;
  padding-bottom: 1.5rem; position: relative;
}
.timeline-step:not(:last-child)::after {
  content: ''; position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid transparent;
  background: var(--bg-card); flex-shrink: 0; margin-top: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.timeline-dot svg { width: 26px; height: 26px; display: block; border-radius: 50%; }
.timeline-step.done .timeline-dot { border-color: transparent; background: transparent; }
.timeline-step.active .timeline-dot { border-color: var(--primary); background: transparent; box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18); }
.timeline-step.cancelled .timeline-dot { border-color: transparent; background: transparent; }
.timeline-step.cancelled:not(:last-child)::after { background: #fecaca; }
.timeline-content strong { font-size: 0.9rem; display: block; text-transform: capitalize; }
.timeline-content small { color: var(--text-muted); font-size: 0.78rem; }
.timeline-content p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

.od-items-list { display: flex; flex-direction: column; }

.order-item-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.order-item-row:first-child { padding-top: 0; }
.order-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-item-img {
  width: 64px; height: 80px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-info > strong { font-size: 0.92rem; display: block; margin-bottom: 0.2rem; line-height: 1.35; }
.order-item-variants { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.order-item-variants small,
.order-item-qty { color: var(--text-muted); font-size: 0.8rem; display: block; }
.order-item-qty { margin-top: 0.15rem; }
.order-item-total {
  font-weight: 700; white-space: nowrap;
  text-align: right; flex-shrink: 0;
}
.order-item-total small { display: block; text-align: right; font-weight: 500; }

/* ── Right column cards ── */
.order-detail-right {
  display: flex; flex-direction: column; gap: 1.25rem;
}

.od-summary-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.od-summary-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); padding-top: 0.15rem;
}

.od-address-detail {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.9rem; color: var(--text); line-height: 1.5;
}
.od-phone { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }

.od-tracking-info {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem;
}

.od-action-card .card-title { margin-bottom: 0.35rem; }
.od-action-desc {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 1rem; line-height: 1.5;
}

/* ── Account ─────────────────────────────────────────────────── */
.account-main {
  padding: var(--nav-height) 0 5rem; min-height: calc(100dvh - var(--nav-height));
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(160,110,75,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(120,80,55,0.08) 0%, transparent 50%),
    linear-gradient(175deg, #f2e6d8 0%, #e8d9c8 35%, #e0cfbc 65%, #f0e3d4 100%);
}
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.account-sidebar {
  align-self: start; position: sticky; top: calc(var(--nav-height) + 1rem);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; overflow: hidden;
}
.account-avatar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.avatar-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
}
.account-avatar strong { display: block; font-size: 0.92rem; }
.account-avatar small { color: var(--text-muted); font-size: 0.78rem; }
.account-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.account-nav-link, .account-nav-logout {
  display: block; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all var(--transition);
  width: 100%; text-align: left; cursor: pointer;
}
.account-nav-link:hover, .account-nav-logout:hover { background: var(--bg-soft); color: var(--primary); }
.account-nav-logout { color: var(--danger); }
.account-nav-logout:hover { background: #fee2e2; color: var(--danger); }

.account-page-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.account-welcome h1 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 0.25rem; }
.account-welcome p { color: var(--text-muted); margin-bottom: 2rem; }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.account-stat { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: 0 0 0 1px rgba(159,83,48,0.06), 0 0 0 3px rgba(159,83,48,0.03), 2px 2px 0 0 #d4ccc2, 3px 3px 0 0 #c4bcb2, 4px 4px 8px rgba(26,22,20,0.08); }
.account-stat .stat-icon { font-size: 1.5rem; }
.account-stat strong { font-size: 1.2rem; display: block; font-weight: 700; }
.account-stat small { color: var(--text-muted); font-size: 0.78rem; }
.account-section { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 0 0 1px rgba(159,83,48,0.06), 0 0 0 3px rgba(159,83,48,0.03), 2px 2px 0 0 #d4ccc2, 3px 3px 0 0 #c4bcb2, 4px 4px 8px rgba(26,22,20,0.08); }
.section-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.section-row h2 { font-size: 1.1rem; font-weight: 700; }

.order-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; box-shadow: 0 0 0 1px rgba(159,83,48,0.06), 0 0 0 3px rgba(159,83,48,0.03), 2px 2px 0 0 #d4ccc2, 3px 3px 0 0 #c4bcb2, 4px 4px 8px rgba(26,22,20,0.08); }
.order-row-info { flex: 1; }
.order-row-info strong { display: block; font-size: 0.92rem; }
.order-row-info small { color: var(--text-muted); font-size: 0.78rem; }
.order-row-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.order-row-total { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

/* ── Passkey promo banner (dashboard) ── */
.passkey-promo-banner { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; border-radius: var(--radius); background: linear-gradient(135deg, #2d1f15 0%, #3a2818 40%, #4a3520 100%); border: 1px solid rgba(159,83,48,0.3); position: relative; overflow: hidden; }
.passkey-promo-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(159,83,48,0.25) 0%, transparent 60%); pointer-events: none; }
.passkey-promo-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: rgba(159,83,48,0.2); display: flex; align-items: center; justify-content: center; color: #c08a5a; position: relative; z-index: 1; }
.passkey-promo-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.passkey-promo-text strong { display: block; color: #f5ebe0; font-size: 0.95rem; margin-bottom: 0.25rem; }
.passkey-promo-text p { color: #bfa98e; font-size: 0.82rem; margin: 0; line-height: 1.45; }
.passkey-promo-btn { flex-shrink: 0; position: relative; z-index: 1; white-space: nowrap; padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* Passkey card highlight pulse (deep-link from dashboard banner) */
@keyframes passkey-glow {
  0% { box-shadow: 0 0 0 0 rgba(159,83,48,0.45); }
  40% { box-shadow: 0 0 0 8px rgba(159,83,48,0.15); }
  100% { box-shadow: 0 0 0 0 rgba(159,83,48,0); }
}
.passkey-highlight { animation: passkey-glow 2.4s ease-out; border-color: var(--primary) !important; transition: border-color 0.3s; }

.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); position: relative; margin-bottom: 1rem; }
.order-card-ribbon {
  position: absolute; top: 0; right: 1.25rem;
  padding: 0.3rem 0.85rem 0.35rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 1; z-index: 1;
}
.order-card-ribbon.status-cancelled { background: #dc2626; color: #fff; }
.order-card-ribbon.status-delivered { background: #16a34a; color: #fff; }
.order-card-ribbon.status-pending,
.order-card-ribbon.status-confirmed,
.order-card-ribbon.status-processing,
.order-card-ribbon.status-shipped,
.order-card-ribbon.status-out_for_delivery,
.order-card-ribbon.status-replaced,
.order-card-ribbon.status-replace_requested,
.order-card-ribbon.status-replaced_confirmed,
.order-card-ribbon.status-refunded { background: #d97706; color: #fff; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.order-card-header strong { font-size: 1rem; display: block; }
.order-card-header small { color: var(--text-muted); font-size: 0.8rem; }
.order-header-right { display: flex; gap: 0.5rem; align-items: center; }
.order-card-body { padding: 1rem 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.order-card-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.order-card-total { display: flex; align-items: center; gap: 0.5rem; }
.order-card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg-soft); }

.order-status {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; text-transform: capitalize;
}
.status-pending          { background: #fef3c7; color: #92400e; }
.status-confirmed        { background: #dbeafe; color: #1e40af; }
.status-processing       { background: #e0e7ff; color: #3730a3; }
.status-shipped          { background: #d1fae5; color: #065f46; }
.status-out_for_delivery { background: #ecfdf5; color: #047857; }
.status-delivered        { background: #d1fae5; color: #065f46; }
.status-cancelled        { background: #fee2e2; color: #991b1b; }
.status-replaced         { background: #f3e8ff; color: #6b21a8; }
.status-replace_requested { background: #fef3c7; color: #92400e; }
.status-replaced_confirmed { background: #dbeafe; color: #1e40af; }
.status-refunded         { background: #f3f4f6; color: #374151; }

.pay-status { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.pay-pending  { background: #fef3c7; color: #92400e; }
.pay-paid     { background: #d1fae5; color: #065f46; }
.pay-failed   { background: #fee2e2; color: #991b1b; }
.pay-refunded { background: #f3f4f6; color: #374151; }

.cart-preview { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-preview-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.cart-preview-item img { width: 44px; height: 52px; object-fit: cover; border-radius: 6px; }
.cart-preview-info strong { font-size: 0.88rem; display: block; }
.cart-preview-info small { color: var(--text-muted); font-size: 0.78rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 1.25rem; }
.field-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; display: block; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.address-card { background: var(--bg-soft); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; position: relative; }
.address-default { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }
.default-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 3px; margin-bottom: 0.5rem; }
.address-card strong { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.address-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.order-savings { color: var(--success); font-size: 0.8rem; font-weight: 600; }

/* ── Error Page ──────────────────────────────────────────────── */
.error-card { text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text); }

/* ── Empty States ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; margin: 0 auto 1rem;
  color: var(--text-light);
}
.empty-icon svg { opacity: 0.45; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }
.empty-state-sm { text-align: center; padding: 2rem; }
.empty-state-sm p { color: var(--text-muted); margin-bottom: 1rem; }

/* ── Utility Classes ─────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--success); }
.text-red    { color: var(--danger); }
.text-orange { color: var(--warning); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }

/* ── Admin Layout ────────────────────────────────────────────── */
.admin-body { background: var(--bg-soft); min-height: 100vh; }
.admin-nav {
  background: var(--dark); color: #fff; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
  height: 60px; position: sticky; top: 0; z-index: 999;
}
.admin-nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.admin-nav-tag { background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; }
.admin-nav-links { display: flex; gap: 0.25rem; flex: 1; }
.admin-nav-link, .admin-logout-btn {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
}
.admin-nav-link:hover, .admin-logout-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-logout-btn { color: var(--primary-light); cursor: pointer; }

/* ── Admin Sidebar (Cloudflare-style vertical) ───────────────── */
.admin-body--sidebar { display: flex; }

.admin-sidebar {
  width: 260px; min-width: 260px; height: 100vh;
  position: sticky; top: 0;
  background: var(--dark); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto;
}
.admin-sidebar-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 0.75rem;
  position: sticky; top: 0; background: var(--dark); z-index: 1;
}
.admin-sidebar-header a { text-decoration: none; }
.admin-sidebar-badge {
  background: var(--primary); color: #fff; font-size: 0.65rem;
  font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 4px;
  text-transform: uppercase; line-height: 1.2;
}
.admin-sidebar-links {
  flex: 1; display: flex; flex-direction: column;
  padding: 0.75rem; gap: 0.1rem;
}
.admin-sidebar-link {
  padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; border: none; background: none;
  cursor: pointer; font-family: inherit; width: 100%; text-align: left;
  white-space: nowrap;
}
.admin-sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar-link--logout { color: var(--primary-light); }

.admin-sidebar-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin: 0.5rem 0;
}
.admin-sidebar-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-hamburger { display: none; }
.admin-sidebar-overlay { display: none; }

@media (max-width: 768px) {
  .admin-body--sidebar { display: block; }
  .admin-sidebar-hamburger {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0.75rem; left: 0.75rem; z-index: 110;
    width: 36px; height: 36px; border-radius: 8px; border: none;
    background: var(--dark); color: #fff; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  .admin-sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
  .admin-sidebar {
    position: fixed; left: 0; top: 0; z-index: 100;
    transform: translateX(-100%); transition: transform 0.25s ease;
    height: 100vh;
  }
  .admin-sidebar.open { transform: translateX(0); }
}

.admin-body--sidebar .admin-main { flex: 1; min-width: 0; }
.admin-main { padding: 2rem; }
@media (max-width: 768px) { .admin-main { padding: 0.75rem; } }
.admin-container { max-width: 1400px; margin: 0 auto; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-page-header h1 { font-family: var(--font-serif); font-size: 1.8rem; }
.admin-badge { background: var(--primary); color: #fff; padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }

.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.admin-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.admin-stat-val { font-size: 1.4rem; font-weight: 800; display: block; }

.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.admin-card-header h2 { font-weight: 700; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { text-align: left; padding: 0.75rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-soft); }
.admin-table .tr-pending td { background: rgba(159,83,48,0.04); }
.admin-table .tr-pending:hover td { background: rgba(159,83,48,0.08); }
.admin-product-thumb { width: 44px; height: 52px; object-fit: cover; border-radius: 6px; }

.admin-toolbar { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-filter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.admin-search-bar { margin-bottom: 1rem; }
.admin-search-input { width: auto; min-width: 220px; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
.admin-form { display: flex; flex-direction: column; gap: 1.25rem; }

.admin-quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.admin-quick-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.admin-quick-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.admin-quick-card span { font-size: 1.75rem; }
.admin-quick-card strong { font-size: 0.9rem; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.detail-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border-light); }
.detail-table td:first-child { color: var(--text-muted); width: 40%; font-weight: 500; }

.admin-image-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.admin-image-item { position: relative; }
.admin-image-item img { width: 90px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.admin-img-delete { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: var(--danger); }
.admin-image-item.removed { opacity: 0.55; outline: 2px dashed var(--danger); outline-offset: 2px; border-radius: 8px; }
.admin-image-item.removed::after {
  content: 'Will be removed on save';
  position: absolute; bottom: 26px; left: 4px; right: 4px;
  background: var(--danger); color: #fff;
  font-size: 0.62rem; font-weight: 600; padding: 2px 4px;
  border-radius: 4px; text-align: center;
}
.admin-image-item.removed .admin-img-delete { color: var(--primary); }
.primary-badge { display: block; font-size: 0.68rem; background: var(--primary); color: #fff; text-align: center; border-radius: 3px; padding: 1px 4px; margin-top: 2px; }
.badge-active   { color: var(--success); font-weight: 700; font-size: 0.82rem; }
.badge-inactive { color: var(--text-muted); font-weight: 700; font-size: 0.82rem; }
.badge-admin    { color: var(--primary); font-weight: 700; font-size: 0.82rem; }

/* Settings */
.settings-toggles { display: flex; flex-direction: column; gap: 1rem; }
.toggle-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.92rem; font-weight: 500; }
.toggle-label input[type="checkbox"] { width: auto; accent-color: var(--primary); transform: scale(1.3); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up  { animation: fadeUp  0.6s ease both; }
.animate-slide-up { animation: slideUp 0.4s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-quick-links { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .products-layout { display: block; }
  .filter-sidebar { display: none; position: fixed; left: 0; top: 0; bottom: 0; z-index: 500; border-radius: 0; width: 280px; max-height: none; overflow-y: auto; }
  .filter-sidebar.sidebar-open { display: block; box-shadow: var(--shadow-lg); }
  .filter-toggle-btn { display: flex; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .pd-meta { grid-template-columns: 1fr; }
  .pd-actions { flex-direction: column; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { display: none; }
  .nav-profile-wrap { position: relative; }
  .nav-profile-btn { padding: 0.25rem; background: none; }
  .profile-menu { top: calc(100% + 4px); width: 260px; right: 0; position: absolute; }
  .nav-container { overflow: visible; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .order-detail-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .order-detail-right { order: -1; }
  .od-action-card { margin-bottom: 0; }
}

@media (max-width: 1100px) {
  .categories-section .category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
  }
  .categories-section .category-card {
    padding: 1.1rem 0.5rem;
    min-height: 115px;
    font-size: 0.82rem;
  }
  .categories-section .category-icon-wrap {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 1.25rem;
    gap: 1rem;
  }
  .hero-content { order: 1; }
  .hero-stage { order: 2; }
  .hero-cta-wrap { order: 3; }
  .hero-home .hero-content { text-align: center; max-width: 100%; margin: 0 auto; padding: 0; }
  .hero-home .hero-subtitle { margin: 0 auto 1.25rem; }
  .hero-home .hero-cta { justify-content: center; }
  .hero-home .hero-stats { justify-content: center; }
  .hero-stage {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    height: auto;
  }
  .hero-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-image-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10.5;
    max-height: none;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  /* ── Navbar mobile ── */
  .nav-container { padding: 0.35rem 0.75rem; gap: 0.25rem; flex-wrap: wrap; height: auto; min-height: var(--nav-height); }
  .nav-logo { font-size: 1.5rem; flex-shrink: 0; }
  .nav-search { max-width: none; flex: 1 1 100%; order: 5; margin-right: 0; margin-top: 0.25rem; }
  .search-input { font-size: 0.88rem; padding: 0.55rem 0.85rem; padding-right: 2.4rem; }
  .search-btn { width: 28px; height: 28px; right: 0.5rem; }
  .nav-icon-label { display: none; }
  .nav-actions { min-width: 0; gap: 0.15rem; }
  .nav-icon-btn { padding: 0.35rem; }
  .nav-profile-right { position: static; padding: 0; background: none; }
  .nav-avatar { width: 30px; height: 30px; font-size: 0.8rem; margin-bottom: 0; }
  .mobile-menu-btn { padding: 0.35rem; }

  /* ── Hero mobile ── */
  .hero-home .hero { min-height: auto; }
  .hero-inner { padding: 0.75rem 1rem 1.5rem; gap: 0.75rem; }
  .hero-content { padding: 0; }
  .hero-title { font-size: clamp(4.2rem, 19.5vw, 7.5rem); margin-bottom: 0.5rem; line-height: 1.1; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 0.75rem; }
  .hero-tag { font-size: 0.72rem; padding: 0.3rem 0.9rem; margin-bottom: 0.5rem; }
  .hero-cta { gap: 0.5rem; margin-bottom: 0.75rem; }
  .hero-cta .btn-lg { padding: 0.65rem 1.25rem; font-size: 0.88rem; }
  .hero-home .hero-cta { align-items: center; }
  .hero-home .hero-content { max-width: 100%; }
  .hero-image-frame { aspect-ratio: 16 / 10.5; width: 100%; height: auto; border-radius: 14px; transform: none; }
  .hero-orb { filter: blur(48px); }
  .hero-home .hero-stats { margin-top: 1rem; }
  .handcraft-subtitle { font-size: 0.82rem; }
  .btn-handcraft { padding: 0.65rem 1.25rem; font-size: 0.8rem; }

  /* ── Trust strip ── */
  .trust-strip { overflow: hidden; padding: 0.75rem 0; }
  .trust-strip .trust-container { gap: 0.75rem; padding: 0 1rem; animation: trustMove 20s linear infinite; width: max-content; }
  .trust-strip .trust-item { flex-direction: row; text-align: left; gap: 0.4rem; min-width: 0; flex: 0 0 auto; font-size: 0.75rem; white-space: nowrap; }
  .trust-strip .trust-item strong { font-size: 0.7rem; }
  .trust-strip .trust-item small { font-size: 0.6rem; }
  .trust-strip .trust-svg { display: inline-flex; flex-shrink: 0; }
  .trust-item small { font-size: 0.62rem; }
  .trust-svg { width: 26px; height: 26px; }

  /* ── Promo card mobile ── */
  .promo-card { padding: 40px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; }
  .promo-card-wrap { padding: 0 0 24px; }

  /* ── Categories mobile ── */
  .categories-section .category-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .categories-section .category-card {
    padding: 0.75rem 0.5rem;
    min-height: 90px;
    border-radius: 14px;
    font-size: 0.75rem;
    background: var(--bg-card);
    border-width: 1.5px;
    box-shadow: 0 1px 4px rgba(159, 83, 48, 0.06);
  }
  .categories-section .category-card::before { display: none; }
  .categories-section .category-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(159, 83, 48, 0.12), 0 0 0 1.5px var(--primary); }
  .categories-section .category-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    background: rgba(var(--primary-rgb), 0.08);
    border: none;
  }
  .categories-section .category-icon-wrap::after { display: none; }
  .categories-section .category-icon-wrap svg { width: 20px; height: 20px; }
  .categories-section .category-card:hover .category-icon-wrap { transform: scale(1.05); background: var(--primary); }
  .categories-section .category-card:hover .category-icon-wrap svg { color: #fff; }
  .categories-section .cat-section-title { font-size: 0.85rem; margin-bottom: 0.65rem; }
  .categories-section .cat-section { margin-bottom: 1.5rem; }


  /* ── Featured / sections ── */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 1.5rem; text-align: left; }
  .section-title { font-size: 1.5rem; }
  .section-link { position: static; display: inline-block; margin-top: 0.5rem; }

  /* ── Banner ── */
  .banner-section { padding: 3rem 1.25rem; }
  .banner-content h2 { font-size: 1.5rem; }

  /* ── Product grid ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .product-overlay { display: none; }
  .product-info { padding: 0.65rem; }
  .product-info .product-name { margin-bottom: 0.25rem; }
  .product-card .product-info { padding-bottom: 0.5rem; }
  .product-card .product-info::after {
    content: 'Show Details →';
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.35rem;
  }
  .product-name { font-size: 0.82rem; }
  .product-category { font-size: 0.65rem; }
  .price-current { font-size: 0.88rem; letter-spacing: 0.03em; }
  .price-mrp { font-size: 0.72rem; }
  .price-discount { font-size: 0.7rem; }
  .product-badge { font-size: 0.65rem; padding: 0.2rem 0.45rem; top: 0.4rem; left: 0.4rem; }

  /* ── Filter sidebar ── */
  .filter-sidebar { width: 260px; }

  /* ── Products page ── */
  .products-main { padding: 1rem 0 3rem; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 0 0; }
  .footer-container { gap: 1.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; margin-top: 2rem; }

  /* ── Account pages ── */
  .account-main { padding: var(--nav-height) 0 3rem; }
  .account-main > .container { padding-left: 0.35rem; padding-right: 0.35rem; }
  .card { padding: 0.85rem; }
  .account-page-title { font-size: 1.3rem; }
  .account-welcome h1 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-section { padding: 1rem; }
  .section-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .passkey-promo-banner { flex-direction: column; text-align: center; padding: 1.25rem; gap: 0.75rem; }
  .passkey-promo-text p { font-size: 0.8rem; }
  .passkey-promo-btn { width: 100%; text-align: center; }
  .order-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .order-row-total { margin-left: 0; width: 100%; justify-content: space-between; }
  .order-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .order-card-body { flex-direction: column; }
  .address-grid { grid-template-columns: 1fr; }

  /* ── Checkout ── */
  .checkout-steps { border-radius: var(--radius-sm); padding: 0.75rem; gap: 0; overflow-x: auto; }
  .checkout-steps .step { font-size: 0.7rem; gap: 0.3rem; white-space: nowrap; }
  .checkout-steps .step-num { width: 20px; height: 20px; font-size: 0.6rem; }
  .step-bar { width: 24px; margin: 0 0.35rem; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-divider { font-size: 0.7rem; }
  .payment-option-info strong { font-size: 0.72rem; }
  .checkout-left .card,
  .checkout-right .card {
    box-shadow: none;
    border-width: 1.5px;
  }
  .checkout-right .card { padding: 1rem; }
  .checkout-right .card h2 { font-size: 1rem; margin-bottom: 0.75rem; }
  .checkout-right .summary-row { font-size: 0.82rem; }
  .checkout-right .summary-total { font-size: 0.95rem; }
  .checkout-right .btn-lg { padding: 0.65rem 1rem; font-size: 0.88rem; }

  /* ── Product detail ── */
  .product-detail-main { padding: 1rem 0 3rem; }
  .product-detail-name { font-size:1.3rem; padding-left:0.25rem; margin-top:0.3rem !important; margin-bottom:0.5rem !important; }
  .product-title-row { flex-direction:row; align-items:center; justify-content:space-between; }
  .product-actions { margin-top:-0.15rem; }
  .pd-category-row { margin-bottom:0; }
  .pd-current-price { font-size: 1.6rem; letter-spacing: 0.02em; }
  .pd-price-stock { flex-direction: column; align-items: flex-start; }
  .pd-variant-group, .pd-qty-block { margin:0; min-width:0; }
  .pd-variants-row { gap:0.5rem; }
  .pd-meta-item { font-size: 0.78rem; padding: 0.5rem 0.65rem; }
  .thumbnail-strip { gap: 0.4rem; }
  .thumb { width: 52px; height: 52px; }

  /* ── Cart ── */
  .cart-item { flex-direction: column; padding: 0.85rem; }
  .cart-item-img { width: 100%; height: 180px; }
  .cart-item-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .cart-item-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cart-item-controls { grid-column: span 2; flex-direction: row; justify-content: flex-start; }

  /* ── Order detail ── */
  .order-placed-banner { flex-direction: column; text-align: center; padding: 1rem; }
  .order-detail-layout { gap: 1rem; }
  .order-item-row { flex-wrap: wrap; }
  .order-item-img { width: 56px; height: 70px; }
  .od-header-meta h2 { font-size: 1.05rem; }
  .od-breadcrumb { font-size: 0.78rem; padding-top: 0.65rem; }
  .order-detail-main { padding-bottom: 4rem; }

  /* ── Auth ── */
  .auth-main { padding: 1.5rem 0; }
  .auth-main > .container { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* ── Admin ── */
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-nav-links { display: none; }
  .admin-grid-2 { grid-template-columns: 1fr; }

  /* ── Forms ── */
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* ── Navbar ── */
  .nav-container { padding: 0.3rem 0.4rem; gap: 0.15rem; }
  .nav-logo { font-size: 1.3rem; }
  .nav-search { max-width: none; flex: 1 1 100%; order: 5; margin-top: 0.2rem; }
  .search-input { font-size: 0.82rem; padding: 0.45rem 0.65rem; padding-right: 2rem; }
  .search-btn { width: 26px; height: 26px; right: 0.4rem; }
  .nav-icon-btn { padding: 0.25rem; }
  .nav-avatar { width: 26px; height: 26px; font-size: 0.7rem; }

  /* ── Hero ── */
  .hero-title { font-size: clamp(3rem, 15vw, 4.5rem); line-height: 1.1; }
  .hero-subtitle { font-size: 0.85rem; max-width: none; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.68rem; }
  .hero-stats { gap: 0.5rem; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-home .stat { padding: 0.4rem 0.7rem; }

  /* ── Categories ── */
  .categories-section .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
  .categories-section .category-card { padding: 0.55rem 0.35rem; min-height: 72px; font-size: 0.68rem; border-radius: 10px; }
  .categories-section .category-icon-wrap { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 0.25rem; }
  .categories-section .category-icon-wrap svg { width: 16px; height: 16px; }

  /* ── Product grid ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .product-info { padding: 0.5rem; }
  .product-name { font-size: 0.75rem; margin-bottom: 0.25rem; }
  .product-category { font-size: 0.6rem; margin-bottom: 0.15rem; }
  .product-price .price-current { font-size: 0.82rem; letter-spacing: 0.03em; }
  .price-mrp { font-size: 0.65rem; }
  .price-discount { font-size: 0.62rem; }
  .product-card .product-info::after { font-size: 0.65rem; margin-top: 0.25rem; }

  /* ── Footer ── */
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-container { gap: 1rem; }

  /* ── Account ── */
  .account-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .account-stat { padding: 0.75rem; }
  .account-stat strong { font-size: 1rem; }
  .account-stat small { font-size: 0.68rem; }
  .profile-grid { gap: 1rem; }

  /* ── Checkout ── */
  .checkout-steps { justify-content: flex-start; }
  .checkout-steps .step { font-size: 0.65rem; }
  .step-bar { width: 16px; margin: 0 0.25rem; }
  .checkout-layout { gap: 1rem; }
  .checkout-items { margin-bottom: 0.75rem; }
  .checkout-item { font-size: 0.82rem; }
  .checkout-right .card { padding: 0.75rem; }

  /* ── Auth ── */
  .auth-card { padding: 1.25rem; border-radius: var(--radius); }
  .auth-title { font-size: 1.4rem; }

  /* ── Admin ── */
  .admin-stats { grid-template-columns: 1fr 1fr; }

  /* ── Product detail ── */
  .product-detail-name { font-size: 1.1rem; }
  .pd-current-price { font-size: 1.4rem; letter-spacing: 0.02em; }
  .pd-actions { flex-direction: column; }
  .pd-meta { grid-template-columns: 1fr; }
  .pd-variants-row { grid-template-columns:1fr 1fr; }

  /* ── Order detail (480px) ── */
  .order-detail-layout { gap: 0.75rem; }
  .order-detail-main { padding: 0.25rem 0 3rem; }
  .od-header-top { flex-direction: column; gap: 0.5rem; }
  .od-header-meta h2 { font-size: 0.95rem; }
  .order-item-row { gap: 0.75rem; padding: 0.85rem 0; }
  .order-item-img { width: 48px; height: 60px; }
  .order-item-info > strong { font-size: 0.85rem; }
  .order-item-variants small,
  .order-item-qty { font-size: 0.76rem; }
  .order-item-total { font-size: 0.85rem; }
  .od-breadcrumb { font-size: 0.74rem; padding-top: 0.5rem; }
  .timeline-step { padding-bottom: 1rem; gap: 0.65rem; }
  .timeline-step:not(:last-child)::after { top: 22px; }
  .order-detail-left { gap: 0.75rem; }
  .order-detail-right { gap: 0.75rem; }
  .order-detail-left .card,
  .order-detail-right .card { padding: 1rem; }
  .card-title { font-size: 0.95rem; margin-bottom: 0.85rem; }
  .od-action-desc { font-size: 0.78rem; margin-bottom: 0.75rem; }
  .od-address-detail { font-size: 0.85rem; }
  .summary-row { font-size: 0.82rem; }

  /* ── Pagination ── */
  .page-btn { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
}

/* ══════════════════════════════════════════════════════
   ICON FIXES & GENDER TAB UPDATES
   ══════════════════════════════════════════════════════ */

/* SVG icon baseline alignment */
.nav-link-icon,
.trust-svg,
.account-stat-icon,
.admin-quick-icon,
.gender-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-link-icon { width: 20px; height: 20px; }

/* Account sidebar nav links */
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.account-nav-logout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Account stat icons */
.account-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}
.icon-orders    { background: #dbeafe; color: #1e40af; }
.icon-cart      { background: #f5ebe3; color: #7d3f24; }
.icon-savings   { background: #d1fae5; color: #065f46; }
.icon-verified  { background: #d1fae5; color: #065f46; }
.icon-unverified{ background: #fee2e2; color: #991b1b; }

/* Admin nav link flex */
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Admin stat icons */
.admin-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Admin quick card icons */
.admin-quick-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.admin-quick-icon { color: var(--primary); }

/* Trust strip SVG */
.trust-svg { color: rgba(255,255,255,0.85); }

/* ── Category icon wrap ───────────────────────────── */
.category-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(var(--primary-rgb), 0.09);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
  margin-bottom: 0.25rem;
}
.category-card:hover .category-icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

/* Category section heading */
.categories-section .cat-section {
  width: 100%;
  margin: 0 auto 3rem;
  text-align: center;
}
.categories-section .cat-section:last-child {
  margin-bottom: 0;
}
.categories-section .cat-section-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.categories-section .category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
  width: 100%;
  margin: 0 auto;
}
.categories-section .category-card {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem);
  min-height: clamp(120px, 18vw, 155px);
  justify-content: center;
  font-size: clamp(0.88rem, 2vw, 1rem);
  background: linear-gradient(145deg, #fff 0%, #faf7f4 100%);
  border: 1.5px solid rgba(159, 83, 48, 0.12);
  border-radius: 24px;
  box-shadow: 
    0 2px 8px rgba(159, 83, 48, 0.06),
    0 8px 24px rgba(159, 83, 48, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.categories-section .category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(159, 83, 48, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(196, 106, 63, 0.06) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.categories-section .category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(159, 83, 48, 0.12),
    0 8px 16px rgba(159, 83, 48, 0.08),
    0 0 0 2px var(--primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.categories-section .category-icon-wrap {
  width: clamp(56px, 10vw, 72px);
  height: clamp(56px, 10vw, 72px);
  border-radius: 20px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(159, 83, 48, 0.1) 0%, rgba(159, 83, 48, 0.03) 100%);
  border: 1px solid rgba(159, 83, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.categories-section .category-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 -2px 8px rgba(159, 83, 48, 0.08);
}
.categories-section .category-card:hover .category-icon-wrap {
  background: linear-gradient(135deg, rgba(159, 83, 48, 0.2) 0%, rgba(159, 83, 48, 0.08) 100%);
  border-color: rgba(159, 83, 48, 0.2);
  transform: scale(1.1) rotate(2deg);
}
.categories-section .category-icon-wrap svg {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
  color: var(--primary);
  transition: color 0.35s ease;
}
.categories-section .category-card:hover .category-icon-wrap svg {
  color: var(--primary-dark);
}
.categories-section .category-card span {
  color: var(--text);
  font-weight: 500;
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
}
.categories-section .category-card:hover span {
  color: var(--primary-dark);
  font-weight: 600;
}
.cat-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* ── Homepage categories section ───────────────── */
.categories-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  background: linear-gradient(145deg, #f8f4ee 0%, #efe6d8 38%, #e6ddd0 72%, #f5efe6 100%);
  overflow: hidden;
}
.categories-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(var(--primary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(196, 106, 63, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.categories-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 22, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 20, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}
.categories-section {
  position: relative;
}
.categories-section::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.categories-section .section-header {
  text-align: center;
}
.categories-section .section-link {
  position: static;
  transform: none;
  display: inline-block;
  margin-top: 0.5rem;
}
.categories-section .container {
  width: 100%;
  max-width: 1280px;
}

/* ── Gender Tab Buttons (homepage) ───────────────── */
.categories-section .gender-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}
.categories-section .gender-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.gender-tab-men {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.gender-tab-men:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}
.gender-tab-women {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,22,20,0.25);
}
.gender-tab-women:hover {
  background: var(--dark-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,22,20,0.35);
}


/* ── btn-outline for hero (light background) ─────── */
.btn-outline-white {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--dark-3);
}
.btn-outline-white:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--text);
}

/* Shop Women — always solid dark (matches hover state) */
.btn-hero-women {
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--dark);
}
.btn-hero-women:hover {
  background: var(--dark-2);
  color: #fff;
  border-color: var(--dark-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 22, 20, 0.2);
}

/* ── Product placeholder icon colour ────────────── */
.product-img-placeholder {
  color: var(--text-light);
}
.product-img-placeholder svg {
  opacity: 0.4;
}

/* Payment / footer badge icons */
.payment-icon,
.footer-badges .badge,
.card-title-icon,
.meta-item-icon,
.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-icon { width: 32px; height: 32px; color: var(--primary); }
.footer-badges .badge {
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
}
.card-title-icon { margin-right: 0.4rem; vertical-align: middle; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; }
.alert { display: flex; align-items: flex-start; gap: 0.5rem; }
.alert-icon { margin-top: 0.1rem; flex-shrink: 0; }
.password-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.25rem;
}
.placed-icon { display: flex; justify-content: center; margin-bottom: 1rem; color: var(--success); }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.auth-trust { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.category-icon { display: none; }

/* ══════════════════════════════════════════════════════
   UX ENHANCEMENTS
   ══════════════════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 0.75rem 1.25rem; background: var(--primary); color: #fff;
  font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: left 0.2s;
}
.skip-link:focus {
  left: 1rem; top: 0; outline: none;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
}

/* Page load progress */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 10001; transition: width 0.2s ease;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.45);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible, .nav-link:focus-visible { outline-offset: 3px; }

/* Active nav */
.nav-link.active,
.account-nav-link.active,
.admin-nav-link.active {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.09);
  font-weight: 600;
}

/* Mobile menu overlay */
.mobile-menu-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(26,22,20,0.4); z-index: 999;
  backdrop-filter: blur(2px);
}
.mobile-menu-backdrop.open { display: block; }
.mobile-menu { position: relative; z-index: 1000; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Toast notifications */
.toast-container {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px;
  width: auto;
}
.toast {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast-success { background: #065f46; color: #fff; }
.toast-error   { background: #991b1b; color: #fff; }
.toast-info    { background: var(--dark); color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(100%) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .toast-container {
    left: 0; right: 0; top: 0; bottom: auto;
    max-width: 100%; padding: 0.75rem 0.75rem 0;
  }
  .toast {
    border-radius: 10px; width: 100%;
    padding: 1rem 1.1rem;
  }
}

/* Popup overlay */
.popup-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center;
}
.popup-overlay.show { display: flex; }
.reauth-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1001; align-items: center; justify-content: center;
}
.reauth-overlay.show { display: flex; }
.popup-content {
  background: var(--bg-card); border-radius: 16px; padding: 1.75rem; max-width: 340px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.25); animation: popIn 0.4s ease;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-icon {
  width: 70px; height: 70px; margin: 0 auto 1rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.popup-error {
  background: linear-gradient(135deg, rgba(var(--danger, 185, 28, 28), 0.08) 0%, rgba(var(--danger, 185, 28, 28), 0.04) 100%);
  animation: bounce 0.6s ease;
}
.popup-error svg { width: 36px; height: 36px; color: var(--danger); }
.popup-success { background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%); animation: bounce 0.6s ease; }
.popup-success svg { width: 36px; height: 36px; color: var(--primary); }
.popup-warn { background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.04) 100%); animation: bounce 0.6s ease; }
.popup-warn svg { width: 36px; height: 36px; stroke: var(--warning); }
.popup-title.error { color: var(--danger); }
.popup-title.success { color: var(--primary); }
.popup-title.warn { color: var(--warning); }
.popup-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.popup-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 0.75rem 2rem; border-radius: 10px;
  font-weight: 600; border: none; cursor: pointer; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.popup-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3); }
.popup-btn-secondary { background: var(--bg-soft); color: var(--text-muted); }
.popup-btn-secondary:hover { background: var(--border); box-shadow: none; transform: none; }

/* Button loading state */
.btn.is-loading {
  pointer-events: none; opacity: 0.85;
  position: relative; color: transparent !important;
}
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error page */
.error-card { text-align: center; max-width: 420px; }
.error-visual {
  width: 88px; height: 88px; margin: 0 auto 1rem;
  background: rgba(var(--primary-rgb), 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.error-code {
  font-size: 4rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--dark-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
}
.error-actions {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}

/* Empty states */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  background: var(--bg-soft); border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.empty-state h3 { font-size: 1.25rem; margin: 0.75rem 0 0.5rem; color: var(--text); }
.empty-state p { color: var(--text-muted); max-width: 360px; margin: 0 auto 1.5rem; }

/* Breadcrumbs */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* Product overlay — touch devices */
@media (hover: none) {
  .product-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26,22,20,0.7) 0%, transparent 50%);
    justify-content: flex-end; padding-bottom: 1rem;
  }
}
@media (hover: none) and (max-width: 768px) {
  .product-overlay {
    background: linear-gradient(to top, rgba(26,22,20,0.35) 0%, transparent 40%);
    justify-content: flex-end; padding-bottom: 0.5rem;
  }
  .btn-view-detail {
    font-size: 0.7rem; padding: 0.3rem 0.8rem;
  }
}
@media (hover: none) and (max-width: 480px) {
  .product-overlay {
    background: linear-gradient(to top, rgba(26,22,20,0.25) 0%, transparent 35%);
    padding-bottom: 0.35rem;
  }
  .btn-view-detail {
    font-size: 0.6rem; padding: 0.2rem 0.6rem;
  }
}

/* Sticky mobile cart bar */
.cart-main .container,
.cart-page .container,
.checkout-main .container { padding-bottom: 1rem; }
@media (max-width: 768px) {
  .cart-page .cart-summary {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .cart-main .container,
  .cart-page .container,
  .checkout-main .container { padding-bottom: 280px; }
  .back-to-top { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

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

/* ── Hand-craft paper background ── */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(160,110,75,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(120,80,55,0.08) 0%, transparent 50%),
    linear-gradient(175deg, #f2e6d8 0%, #e8d9c8 35%, #e0cfbc 65%, #f0e3d4 100%);
}
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.bg-border-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #9f5330 0px, #9f5330 24px,
    transparent 24px, transparent 28px,
    #9f5330 28px, #9f5330 32px,
    transparent 32px, transparent 36px
  );
  opacity: 0.2;
}
.bg-border-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #9f5330 0px, #9f5330 24px,
    transparent 24px, transparent 28px,
    #9f5330 28px, #9f5330 32px,
    transparent 32px, transparent 36px
  );
  opacity: 0.2;
}
.bg-scribble {
  position: absolute;
  border: 1.5px solid rgba(159,83,48,0.08);
  border-radius: 50%;
}
.bg-scribble-1 {
  width: min(50vw, 500px);
  height: min(50vw, 500px);
  top: -15%;
  right: -10%;
  border-width: 2px;
}
.bg-scribble-2 {
  width: min(30vw, 300px);
  height: min(30vw, 300px);
  bottom: 5%;
  left: -8%;
  border-style: dashed;
}

/* ══════════════════════════════════════════════════════
   DRAWER — mobile slide-in menu (replaces old dropdown)
   ══════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; top: 0; right: 0;
  width: min(300px, 85vw); height: 100%;
  background: var(--bg-card); z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.drawer-header .nav-logo { font-size: 1.6rem; }
.drawer-close {
  background: var(--bg-soft); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
.drawer-close:active { background: var(--border); }

.drawer-user {
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; gap: 10px;
}
.drawer-user-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer; border: none;
  font-family: var(--font); transition: all 0.2s;
}
.drawer-user-btn.primary { background: var(--primary); color: #fff; }
.drawer-user-btn.primary:active { background: var(--primary-dark); }
.drawer-user-btn.outline { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.drawer-user-btn.outline:active { background: var(--border); }

.drawer-user-info {
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.drawer-user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.drawer-user-info div { flex: 1; }
.drawer-user-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.drawer-user-email { font-size: 0.78rem; color: var(--text-muted); }

.drawer-nav { padding: 6px 0; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; color: var(--text); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.drawer-nav a:active, .drawer-nav a.active {
  color: var(--primary); background: rgba(var(--primary-rgb), 0.08);
  border-left-color: var(--primary);
}
.drawer-nav a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

.drawer-nav-divider {
  height: 1px; background: var(--border-light); margin: 6px 20px;
}

.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border-light); }
.drawer-badges { display: flex; flex-direction: column; gap: 8px; }
.drawer-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.78rem;
}
.drawer-badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }

/* Remove old mobile-menu styles */
.mobile-menu-backdrop { display: none !important; }
.mobile-menu { display: none !important; }

/* ══════════════════════════════════════════════════════
   BOTTOM NAV — fixed mobile bottom navigation
   ══════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px; z-index: 900;
  background: var(--bg-bottom-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  display: none;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  text-decoration: none; color: var(--text-muted);
  font-size: 0.6rem; font-weight: 600;
  padding: 6px 0; position: relative;
  border: none; background: none; cursor: pointer;
  font-family: var(--font); transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { 
  width: 22px; height: 22px; 
  transition: transform 0.2s; 
  display: block; 
  stroke: currentColor; 
  fill: none; 
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-item:active { color: var(--primary); }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active svg { transform: scale(1.15); }
.bottom-nav-dot {
  position: absolute; top: 2px; left: calc(50% + 6px);
  background: var(--primary); color: #fff;
  font-size: 0.5rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.bot-spacer { height: 80px; display: none; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .bot-spacer { display: block; }
}

/* ══════════════════════════════════════════════════════
   FOOTER ACCORDION — mobile collapsible footer sections
   ══════════════════════════════════════════════════════ */
.footer-accordion-item { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-accordion-item:first-child { border-top: none; }
.footer-accordion-btn {
  width: 100%; background: none; border: none; color: #fff;
  font-family: var(--font); font-size: 0.86rem; font-weight: 600;
  text-align: left; padding: 13px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; letter-spacing: 0.4px; text-transform: uppercase;
}
.footer-accordion-btn svg {
  width: 14px; height: 14px; color: var(--primary);
  transition: transform 0.3s; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer-accordion-btn.open svg { transform: rotate(180deg); }
.footer-accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.footer-accordion-body.open { max-height: 250px; }
.footer-accordion-body ul {
  list-style: none; padding-bottom: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px;
}
.footer-accordion-body ul li a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.83rem; padding: 5px 0; display: block;
  transition: color 0.2s;
}
.footer-accordion-body ul li a:active { color: #fff; }

@media (min-width: 769px) {
  .footer-accordion-item { border-top: none; }
  .footer-accordion-btn { pointer-events: none; padding: 0 0 14px; font-size: 0.82rem; letter-spacing: 0.8px; }
  .footer-accordion-btn svg { display: none; }
  .footer-accordion-body { max-height: none !important; }
  .footer-accordion-body ul { grid-template-columns: 1fr; padding-bottom: 0; }
}

/* ══════════════════════════════════════════════════════
   PROMO CARD (rounded card style for mobile)
   ══════════════════════════════════════════════════════ */
.promo-card-wrap { padding: 0 5% 28px; }
.promo-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  border-radius: var(--radius-lg); padding: 28px 22px;
  position: relative; overflow: hidden; text-align: center;
}
.promo-card::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 2px, transparent 2px);
  background-size: 22px 22px; pointer-events: none;
}
.promo-tag {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.2);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  color: var(--primary-light); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
  position: relative; z-index: 2;
}
.promo-title {
  font-family: var(--font-serif);
  font-size: 1.65rem; color: #fff; font-weight: 700;
  line-height: 1.2; margin-bottom: 8px;
  position: relative; z-index: 2;
}
.promo-sub {
  color: rgba(255,255,255,0.55); font-size: 0.88rem;
  margin-bottom: 16px; position: relative; z-index: 2;
}
.promo-sub strong {
  color: var(--primary-light); letter-spacing: 1px;
  background: rgba(255,255,255,0.1); padding: 0.15rem 0.7rem;
  border-radius: 4px; border: 1px dashed rgba(var(--primary-rgb), 0.5);
  font-size: 0.95rem;
}
.promo-btn {
  display: inline-block; background: var(--bg-card); color: var(--text);
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem; text-decoration: none;
  position: relative; z-index: 2;
  transition: background 0.2s;
}
.promo-btn:active { background: var(--bg-soft); }

@media (min-width: 769px) {
  .promo-card-wrap { padding: 0; }
  .promo-card { border-radius: 0; padding: 5rem 2rem; }
  .promo-title { font-size: 2.5rem; margin-bottom: 1rem; }
  .promo-tag { font-size: 0.8rem; padding: 0.4rem 1.2rem; margin-bottom: 1rem; }
  .promo-sub { font-size: 1.05rem; margin-bottom: 2rem; }
  .promo-sub strong { font-size: 1.05rem; }
  .promo-btn { padding: 0.85rem 2.5rem; font-size: 1.05rem; border-radius: var(--radius); }
  .promo-btn:hover { background: var(--bg-soft); }
}

/* ══════════════════════════════════════════════════════
   NOTIFICATIONS
   ══════════════════════════════════════════════════════ */
.nav-notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.notif-dropdown {
  position: absolute; top: 100%; right: 0;
  width: 320px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 1500;
  opacity: 0; pointer-events: none;
  transform: translateY(4px); transition: all 0.2s;
}
.notif-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  font-weight: 700; font-size: 0.85rem;
}
.notif-dropdown-viewall { font-size: 0.78rem; color: var(--primary); text-decoration: none; }
.notif-dropdown-body { max-height: 320px; overflow-y: auto; }
.notif-dropdown-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.notif-push-status {
  padding: 10px 16px; border-top: 1px solid var(--border-light);
  font-size: 0.78rem; text-align: center;
}
.notif-push-status span { display: block; }
.notif-push-status small { display: block; color: var(--text-light); margin-top: 2px; }
.notif-push-blocked span { color: var(--danger); }
.notif-push-on span { color: var(--success); }
.notif-push-status .btn-xs { font-size: 0.75rem; padding: 0.35rem 0.85rem; margin: 0; }
.notif-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 16px; color: var(--text-muted); font-size: 0.82rem;
}
.notif-spinner {
  width: 24px; height: 24px; border: 3px solid var(--border-light);
  border-top-color: var(--primary); border-radius: 50%;
  animation: notifSpin 0.7s linear infinite;
}
@keyframes notifSpin { to { transform: rotate(360deg); } }
.notif-dropdown-item {
  display: flex; gap: 10px; padding: 10px 16px;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.notif-dropdown-item:hover { background: var(--bg-soft); }
.notif-dd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.notif-dd-body { flex: 1; min-width: 0; }
.notif-dd-title { font-size: 0.82rem; font-weight: 600; }
.notif-dd-msg { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.notif-dd-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* Notifications page */
.notif-header { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; margin-bottom: 1.5rem; }
.notif-header h1 { font-size: 1.4rem; }
.notif-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.notif-empty svg { margin-bottom: 1rem; color: var(--text-muted); }
.notif-empty h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.notif-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); align-items: flex-start;
}
.notif-item.notif-unread { border-left: 3px solid var(--primary); background: rgba(var(--primary-rgb), 0.03); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
  display: none;
}
.notif-unread .notif-dot { display: block; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.9rem; }
.notif-msg { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }
.notif-actions { display: flex; gap: 6px; flex-shrink: 0; }
.notif-mark-read, .notif-link {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.15s;
}
.notif-mark-read:hover { background: var(--primary); color: #fff; }
.notif-link:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
  .notif-dropdown { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; max-height: 60vh; overflow-y: auto; }
  .notif-dropdown.open { transform: translateY(0); }
  .notif-dropdown-header { position: sticky; top: 0; background: var(--bg-card); z-index: 1; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .notif-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .notif-item { padding: 12px; }
}

/* ══════════════════════════════════════════════════════
   ADMIN NOTIFICATION PAGE
   ══════════════════════════════════════════════════════ */
.admin-notif-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.admin-notif-form-wrap .admin-card { padding: 1.5rem; }
.admin-notif-form-wrap .form-group { margin-bottom: 1.25rem; }
.admin-notif-form-wrap .form-group:last-of-type { margin-bottom: 1.5rem; }
.admin-notif-form-wrap select { width: 100%; padding: 0.65rem 0.85rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; background: var(--bg-card); }
.admin-notif-form-wrap select:focus { border-color: var(--primary); outline: none; }
.admin-notif-form-wrap input { width: 100%; padding: 0.65rem 0.85rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; }
.admin-notif-form-wrap input:focus { border-color: var(--primary); outline: none; }
.admin-notif-form-wrap textarea { width: 100%; padding: 0.65rem 0.85rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; resize: vertical; min-height: 100px; }
.admin-notif-form-wrap textarea:focus { border-color: var(--primary); outline: none; }
.notif-char-count { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.notif-char-count span { font-weight: 600; color: var(--text); }

/* Preview panel */
.admin-notif-preview-wrap .admin-card { padding: 1.5rem; position: sticky; top: calc(var(--nav-height) + 1rem); }
.notif-preview-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-top: 0.5rem;
}
.notif-preview-header { margin-bottom: 8px; }
.notif-preview-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 10px;
  border-radius: 20px; letter-spacing: 0.5px;
}
.notif-preview-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.notif-preview-msg { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.notif-preview-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }
.notif-preview-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5; }
.notif-preview-hint a { color: var(--primary); }

@media (max-width: 900px) {
  .admin-notif-layout { grid-template-columns: 1fr; }
  .admin-notif-preview-wrap .admin-card { position: static; }
}

/* ══════════════════════════════════════════════════════
   ADJUST EXISTING STYLES FOR NEW LAYOUT
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Cart page bottom padding for bottom nav */
  .cart-main .container,
  .cart-page .container,
  .checkout-main .container { padding-bottom: calc(280px + 80px); }
  .back-to-top { bottom: calc(1.5rem + 70px + env(safe-area-inset-bottom)); }
  /* More room for bottom nav on cart summary sticky */
  .cart-summary { padding-bottom: calc(1rem + 70px); }

  /* Force footer-links to grid on mobile (overrides old .footer-links grid) */
  .footer-links { grid-template-columns: 1fr; gap: 0; }
  .footer-container { gap: 1rem; }
}

/* Force bottom-nav hidden on desktop */
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
  .bot-spacer { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   Placed at end to win cascade over earlier definitions
   ═══════════════════════════════════════════════════════════════ */
html.dark {
  .hero { background: linear-gradient(165deg, #25201c 0%, #1a1614 42%, #2d2824 100%); }
  .hero-home { background: linear-gradient(145deg, #25201c 0%, #1a1614 38%, #2d2824 72%, #25201c 100%); }
  .hero-home .hero-gradient { background: radial-gradient(ellipse 90% 70% at 75% 25%, rgba(var(--primary-rgb), 0.2) 0%, transparent 55%), radial-gradient(ellipse 60% 50% at 15% 85%, rgba(0,0,0,0.3) 0%, transparent 50%), linear-gradient(180deg, rgba(26,22,20,0.3) 0%, transparent 40%, rgba(37,32,28,0.5) 100%); }
  .hero-grid-pattern { background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); }
  .hero-home .stat { background: rgba(45,40,36,0.7); backdrop-filter: blur(8px); border-color: rgba(var(--primary-rgb), 0.2); }
  .hero-home .stat .stat-label { color: var(--text-muted); }
  .hero-tag { color: var(--primary-light); }
  .categories-section { background: var(--bg); }
  .categories-section::before { background: radial-gradient(ellipse 80% 60% at 80% 10%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%), radial-gradient(ellipse 50% 40% at 15% 85%, rgba(196, 106, 63, 0.04) 0%, transparent 50%); }
  .categories-section::after { background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); }
  .categories-section .category-card { background: var(--bg-card); color: var(--text); border-color: var(--border); }
  .categories-section .category-card:hover { background: var(--bg-card); border-color: var(--primary); }
  .cat-section-title { color: var(--text); }
  .gender-tab-women { background: var(--border); color: var(--text); }
  .gender-tab-women:hover { background: var(--text-muted); color: var(--bg); }

  /* ── Page backgrounds ──────────────────────────── */
  .auth-main, .cart-page, .about-page, .handcraft-page,
  .artists-page, .checkout-page {
    background: var(--bg) !important;
  }
  .account-main {
    background:
      radial-gradient(ellipse 80% 60% at 15% 20%, rgba(212,137,90,0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 85% 75%, rgba(180,130,90,0.05) 0%, transparent 50%),
      linear-gradient(175deg, #1f1a16 0%, #1a1614 35%, #25201c 65%, #1f1a16 100%) !important;
  }

  /* ── Card / container backgrounds ──────────────── */
  .auth-container, .auth-card, .card, .popup-content,
  .terms-popup-content, .pin-card, .maintenance-card,
  .cart-empty-card {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
  }
  .cart-empty-card { background: rgba(30,26,22,0.85) !important; }

  /* ── Flash messages & alerts ───────────────────── */
  .flash-success, .flash-error,
  .alert-success, .alert-error, .alert-warning {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
  }
  .flash-success, .alert-success { color: #6ee7b7; }
  .flash-error, .alert-error { color: #fca5a5; }

  /* ── Order status badges ───────────────────────── */
  .status-pending:not(.od-status-ribbon):not(.order-card-ribbon), .status-confirmed:not(.od-status-ribbon):not(.order-card-ribbon), .status-processing:not(.od-status-ribbon):not(.order-card-ribbon),
  .status-shipped:not(.od-status-ribbon):not(.order-card-ribbon), .status-out_for_delivery:not(.od-status-ribbon):not(.order-card-ribbon), .status-delivered:not(.od-status-ribbon):not(.order-card-ribbon),
  .status-cancelled:not(.od-status-ribbon):not(.order-card-ribbon), .status-replaced:not(.od-status-ribbon):not(.order-card-ribbon), .status-replace_requested:not(.od-status-ribbon):not(.order-card-ribbon),
  .status-replaced_confirmed:not(.od-status-ribbon):not(.order-card-ribbon), .status-refunded:not(.od-status-ribbon):not(.order-card-ribbon),
  .pay-pending, .pay-paid, .pay-failed, .pay-refunded {
    background: rgba(255,255,255,0.08);
    color: var(--text);
  }

  /* ── Products page filters ─────────────────────── */
  .filter-sidebar { background: var(--bg-card); border-color: rgba(255,255,255,0.08); }
  .filter-option:hover { background: rgba(255,255,255,0.06); }
  .filter-select { border-color: rgba(255,255,255,0.12); }
  .filter-option input[type="radio"] { outline: 1px solid rgba(255,255,255,0.2); outline-offset: 2px; }

  /* ── Product detail badges ─────────────────────── */
  .pd-in { background: rgba(22,163,74,0.2); color: #6ee7b7; }
  .pd-low { background: rgba(245,158,11,0.2); color: #fcd34d; }
  .pd-out { background: rgba(239,68,68,0.2); color: #fca5a5; }

  /* ── Order placed banner ───────────────────────── */
  .order-placed-banner {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
  }

  /* ── Account icons ─────────────────────────────── */
  .icon-orders { background: rgba(59,130,246,0.15); color: #93c5fd; }
  .icon-cart { background: rgba(var(--primary-rgb),0.15); color: var(--primary); }
  .icon-savings { background: rgba(22,163,74,0.15); color: #6ee7b7; }
  .icon-verified { background: rgba(22,163,74,0.15); color: #6ee7b7; }
  .icon-unverified { background: rgba(239,68,68,0.15); color: #fca5a5; }

  /* ── Account nav ───────────────────────────────── */
  .account-nav-logout:hover { background: rgba(239,68,68,0.15); }

  /* ── Page decorative background ────────────────── */
  .bg-decor {
    background:
      radial-gradient(ellipse 80% 60% at 15% 20%, rgba(212,137,90,0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 85% 75%, rgba(180,130,90,0.05) 0%, transparent 50%),
      linear-gradient(175deg, #1f1a16 0%, #1a1614 35%, #25201c 65%, #1f1a16 100%);
  }
  .bg-border-top, .bg-border-bottom { opacity: 0.08; }

  /* ── Cart elements ─────────────────────────────── */
  .cart-item-img { background: rgba(255,255,255,0.06); }
  .cart-item-tag { background: rgba(255,255,255,0.05); color: var(--text-muted); }
  .qty-control { background: rgba(255,255,255,0.06); border-color: var(--border); }
  .qty-btn { background: rgba(255,255,255,0.06); }
  .qty-btn:hover { background: rgba(255,255,255,0.12); }
  .qty-btn:disabled { opacity: 0.3; }
  .qty-input { background: transparent; color: var(--text); }
  .pd-size-btn { background: rgba(255,255,255,0.06); }
  .pd-size-btn:hover { border-color: var(--primary); background: rgba(255,255,255,0.1); }
  .pd-color-btn { background: rgba(255,255,255,0.06); }
  .pd-color-btn:hover { border-color: var(--primary); background: rgba(255,255,255,0.1); }
  .color-swatch { border-color: rgba(255,255,255,0.15); }

  /* ── Footer popup ──────────────────────────────── */
  .popup-content {
    background: var(--bg-card);
    border-color: var(--primary);
  }
  .popup-content.popup-error {
    background: rgba(239,68,68,0.12);
    border-color: #dc2626;
  }
  .popup-content.popup-success {
    background: rgba(var(--primary-rgb),0.12);
    border-color: var(--primary);
  }
  .popup-content.popup-warn {
    background: rgba(245,158,11,0.12);
    border-color: #f59e0b;
  }
  .popup-title { color: var(--text); }
  .popup-title.error { color: #fca5a5; }
  .popup-text { color: var(--text-muted); }
  .popup-btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); }
  .popup-btn-secondary:hover { background: rgba(255,255,255,0.12); }

  /* ── Misc ──────────────────────────────────────── */
  .step-summary { background: rgba(255,255,255,0.04); }
  .captcha-box { background: rgba(255,255,255,0.05); }
  .danger-zone { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
  .terms-popup-content { background: var(--bg-card); }

  /* ── FAQ cards ─────────────────────────────────── */
  .faq-section { background: var(--bg); }
  .faq-group { background: #352f2a; }
  .faq-group-title { border-bottom-color: rgba(255,255,255,0.08); }
}

/* ══════════════════════════════════════════════════════
   REVIEWS
   ══════════════════════════════════════════════════════ */
.star-rating span:hover,
.star-rating span.hovered {
  color: #f59e0b;
}
.product-reviews {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.review-stats-bar {
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .product-reviews { margin-top: 2rem; }
  .star-rating { font-size: 1.6rem; gap: 0.35rem; }
  #reviewPopup .popup-content {
    max-width: 92vw !important;
    padding: 1.25rem;
    margin: 0 0.5rem;
  }
  #reviewPopup .star-rating { font-size: 1.6rem; gap: 0.3rem; }
  #reviewPopup textarea { font-size: 0.85rem; min-height: 80px; }
}

@media (max-width: 480px) {
  #reviewPopup .popup-content {
    max-width: 96vw !important;
    padding: 1rem;
  }
  #reviewPopup .star-rating { font-size: 1.4rem; gap: 0.2rem; }
  #reviewPopup textarea { min-height: 70px; }
  #reviewPopup .popup-btn { padding: 0.6rem 1rem; font-size: 0.88rem; }
}

.product-reviews #reviewsList > div {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .product-reviews #reviewsList > div {
    padding: 0.75rem 0 !important;
    font-size: 0.88rem;
  }
  .product-reviews #reviewsList > div > div {
    gap: 0.4rem;
  }
}

html.dark .review-stats-bar { background: rgba(255,255,255,0.04); }

/* ── Top Progress Bar ─────────────────────────────── */
.page-progress {
  position: fixed; top: 0; left: 0; z-index: 100000;
  height: 3px; background: var(--primary);
  width: 0%; transition: width 0.3s ease, opacity 0.3s ease;
}
.page-progress.done { opacity: 0; }

/* ── Page Loading Overlay ──────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(255,255,255,0.85);
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.loading-overlay.active {
  opacity: 1; pointer-events: all;
}
.loading-overlay .loading-box {
  text-align: center;
  transform: scale(0.88);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loading-overlay.active .loading-box {
  transform: scale(1);
}

/* ── Bouncing Balls ───────────────────────────────── */
.loading-ball-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 76px;
  margin: 0 auto 6px;
  position: relative;
}
.loading-string {
  position: absolute;
  top: 8px;
  left: 6px;
  right: 6px;
  height: 0;
  border-top: 2px solid var(--primary);
  opacity: 0.25;
  z-index: 0;
}
.loading-ball-wrap {
  position: relative;
  width: 24px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
}
.loading-ball-thread {
  width: 1.5px;
  flex: 1;
  background: var(--primary);
  opacity: 0.2;
  margin-bottom: 2px;
  transform-origin: top center;
  animation: threadSwing 2s ease-in-out infinite;
}
.loading-ball {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4895a, #9f5330);
  animation: ballDrop 2s ease-in-out infinite;
  transform-origin: center bottom;
  position: relative;
  flex-shrink: 0;
}
.loading-ball-shadow {
  width: 28px; height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  position: absolute;
  bottom: 1px;
  left: 50%;
  margin-left: -14px;
  animation: shadowPulse 2s ease-in-out infinite;
}
.loading-ball-wrap:nth-child(1) .loading-ball { animation-delay: 0s; }
.loading-ball-wrap:nth-child(1) .loading-ball-shadow { animation-delay: 0s; }
.loading-ball-wrap:nth-child(1) .loading-ball-thread { animation-delay: 0s; }
.loading-ball-wrap:nth-child(2) .loading-ball { animation-delay: 0.18s; }
.loading-ball-wrap:nth-child(2) .loading-ball-shadow { animation-delay: 0.18s; }
.loading-ball-wrap:nth-child(2) .loading-ball-thread { animation-delay: 0.18s; }
.loading-ball-wrap:nth-child(3) .loading-ball { animation-delay: 0.36s; }
.loading-ball-wrap:nth-child(3) .loading-ball-shadow { animation-delay: 0.36s; }
.loading-ball-wrap:nth-child(3) .loading-ball-thread { animation-delay: 0.36s; }
.loading-ball-wrap:nth-child(4) .loading-ball { animation-delay: 0.54s; }
.loading-ball-wrap:nth-child(4) .loading-ball-shadow { animation-delay: 0.54s; }
.loading-ball-wrap:nth-child(4) .loading-ball-thread { animation-delay: 0.54s; }
.loading-ball-wrap:nth-child(5) .loading-ball { animation-delay: 0.72s; }
.loading-ball-wrap:nth-child(5) .loading-ball-shadow { animation-delay: 0.72s; }
.loading-ball-wrap:nth-child(5) .loading-ball-thread { animation-delay: 0.72s; }

@keyframes ballDrop {
  0%   { transform: translateY(-50px) scale(1, 1); }
  9%   { transform: translateY(0)     scale(1.12, 0.82); }
  12%  { transform: translateY(0)     scale(1, 1); }
  20%  { transform: translateY(-28px) scale(1, 1); }
  28%  { transform: translateY(0)     scale(1.06, 0.9); }
  30%  { transform: translateY(0)     scale(1, 1); }
  36%  { transform: translateY(-14px) scale(1, 1); }
  42%  { transform: translateY(0)     scale(1.03, 0.95); }
  44%  { transform: translateY(0)     scale(1, 1); }
  48%  { transform: translateY(-6px)  scale(1, 1); }
  52%  { transform: translateY(0)     scale(1.01, 0.98); }
  54%  { transform: translateY(0)     scale(1, 1); }
  100% { transform: translateY(0)     scale(1, 1); }
}
@keyframes shadowPulse {
  0%   { transform: scaleX(0.25); opacity: 0.2; }
  9%   { transform: scaleX(1.35); opacity: 0.7; }
  12%  { transform: scaleX(1.2);  opacity: 0.6; }
  20%  { transform: scaleX(0.45); opacity: 0.3; }
  28%  { transform: scaleX(1.05); opacity: 0.5; }
  30%  { transform: scaleX(0.95); opacity: 0.45; }
  36%  { transform: scaleX(0.6);  opacity: 0.35; }
  42%  { transform: scaleX(0.9);  opacity: 0.42; }
  44%  { transform: scaleX(0.85); opacity: 0.4; }
  48%  { transform: scaleX(0.7);  opacity: 0.38; }
  52%  { transform: scaleX(0.85); opacity: 0.4; }
  54%  { transform: scaleX(0.8);  opacity: 0.38; }
  100% { transform: scaleX(0.8);  opacity: 0.38; }
}
@keyframes threadSwing {
  0%   { transform: rotate(0deg); }
  9%   { transform: rotate(4deg); }
  12%  { transform: rotate(-2deg); }
  20%  { transform: rotate(2deg); }
  28%  { transform: rotate(-1deg); }
  30%  { transform: rotate(0.5deg); }
  36%  { transform: rotate(-0.5deg); }
  42%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.loading-overlay .loading-text {
  margin-top: 20px; font-size: 18px; color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.loading-overlay .loading-dots {
  display: inline-block; width: 1.2em; text-align: left;
  font-kerning: none;
}
html.dark .loading-overlay { background: rgba(26,22,20,0.85); }
html.dark .loading-ball { background: radial-gradient(circle at 35% 30%, #d4895a, #b87850); }
html.dark .loading-ball-shadow { background: rgba(255,255,255,0.04); }
html.dark .loading-string { border-top-color: var(--primary-light); }
html.dark .loading-ball-thread { background: var(--primary-light); }
html.dark .page-progress { background: var(--primary-light); }

/* ══════════════════════════════════════════════════════
   TESTING BANNER
   ══════════════════════════════════════════════════════ */
.testing-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(146,64,14,0.15);
}

/* ══════════════════════════════════════════════════════
   PRODUCT PAGE — ARTIST SOCIAL LINKS
   ══════════════════════════════════════════════════════ */
.pd-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.pd-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pd-social svg { flex-shrink: 0; }

.pd-social:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

html.dark .pd-social .x-glyph { fill: #e7e9ea; }

/* ══════════════════════════════════════════════════════════════════
   UI Polish — Professional Micro-interactions & Visual Enhancements
   ══════════════════════════════════════════════════════════════════ */

/* ── Image Skeleton Loading ────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.product-image-wrap img,
.hero-image,
.hc-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-image-wrap img.loaded,
.hero-image.loaded,
.hc-img.loaded {
  opacity: 1;
}
.product-image-wrap:not(:has(.product-img-placeholder)) {
  background: linear-gradient(110deg, var(--bg-soft) 8%, var(--border-light) 18%, var(--bg-soft) 33%);
  background-size: 1200px 100%;
  animation: shimmer 1.6s infinite linear;
}
.product-image-wrap:has(img.loaded) {
  animation: none;
  background: none;
}

/* ── Button Ripple Effect ──────────────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(3.5); opacity: 0; }
}

/* ── Section Gradient Dividers ─────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--primary-light) 50%, var(--border) 80%, transparent);
  margin: 0 auto;
  opacity: 0.5;
}
.section-divider-thick {
  height: 3px;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent 5%, rgba(var(--primary-rgb), 0.25) 30%, rgba(var(--primary-rgb), 0.5) 50%, rgba(var(--primary-rgb), 0.25) 70%, transparent 95%);
}

/* ── Product Card Tilt (3D perspective) ────────────────────────── */
.product-grid { perspective: 800px; }
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 20px 50px rgba(26, 22, 20, 0.18), 0 0 0 1px rgba(var(--primary-rgb), 0.06);
  border-color: transparent;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(var(--primary-rgb), 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.product-card:hover::after { opacity: 1; }

/* ── Hero Stat Counter ─────────────────────────────────────────── */
@keyframes countPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.stat-num.counting {
  animation: countPulse 0.3s ease;
}

/* ── Enhanced Trust Strip ──────────────────────────────────────── */
.trust-item {
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.trust-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}
.trust-svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trust-item:hover .trust-svg {
  transform: scale(1.15) rotate(-5deg);
}

/* ── Hero Parallax Depth ───────────────────────────────────────── */
.hero-home .hero-content,
.hero-home .hero-stage {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ── Welcome Banner Glow Pulse ─────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.05); }
}
.wb-glow { animation: glowPulse 6s ease-in-out infinite; }
.wb-glow-b { animation-delay: -3s; }

/* ── Hero Title Gradient Shimmer ───────────────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-accent {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ── Promo Card Hover ──────────────────────────────────────────── */
.promo-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.promo-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(26, 22, 20, 0.2);
}
.promo-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.promo-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(159, 83, 48, 0.35);
}

/* ── Section Headers Polish ────────────────────────────────────── */
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 1rem auto 0;
  border-radius: 2px;
}
.featured-section .section-header::after { margin-left: auto; margin-right: auto; }

/* ── Hero Scroll Hint Bounce Enhancement ───────────────────────── */
@keyframes scrollBounceEnhanced {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%      { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}
.scroll-arrow {
  animation: scrollBounceEnhanced 1.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(var(--primary-rgb), 0.2));
}

/* ── Focus Ring Enhancement (accessibility) ────────────────────── */
.btn:focus-visible,
.product-card:focus-visible,
.wb-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.product-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* ── Smooth Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Product Card Image Zoom Enhanced ──────────────────────────── */
.product-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26, 22, 20, 0.12) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.product-card:hover .product-image-wrap::after { opacity: 1; }

/* ── Theme Toggle ──────────────────────────────────────────────── */
.theme-toggle { cursor: pointer; }
.theme-icon-sun,
.theme-icon-moon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
html:not(.dark) .theme-icon-sun { display: none; }
html.dark .theme-icon-moon { display: none; }
html:not(.dark) .theme-icon-moon { display: block; }
html.dark .theme-icon-sun { display: block; }
html.dark .theme-icon-moon { display: none; }
.theme-toggle:hover .theme-icon-sun { transform: rotate(45deg); }
.theme-toggle:hover .theme-icon-moon { transform: rotate(-20deg) scale(1.1); }

/* ── Nav Link Sliding Underline ─────────────────────────────────── */
.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}
.nav-link:hover {
  background: transparent;
}

/* ── Cart Badge Pulse ──────────────────────────────────────────── */
@keyframes badgePulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-badge.pulse {
  animation: badgePulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Search Input Smooth Expand ────────────────────────────────── */
.nav-search {
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-search:focus-within {
  max-width: 800px;
}

/* ── Footer Link Hover Underline ───────────────────────────────── */
.footer-col a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease, background 0.3s ease;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-col a:hover::after {
  width: 100%;
}

/* ── Auth Card Entrance Animation ──────────────────────────────── */
@keyframes authCardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.auth-main .auth-card {
  animation: authCardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Notification Item Hover ───────────────────────────────────── */
.notif-item {
  transition: all 0.25s ease, border-color 0.25s ease;
}
.notif-item:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
}
.notif-item.notif-unread:hover {
  background: rgba(var(--primary-rgb), 0.06);
}
.notif-mark-read,
.notif-link {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-mark-read:hover,
.notif-link:hover {
  transform: scale(1.15);
}

/* ── Section Reveal on Scroll ──────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered Card Reveal ─────────────────────────────────────── */
.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Account Sidebar Nav Link Hover ────────────────────────────── */
.account-nav-link {
  position: relative;
  overflow: hidden;
}
.account-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.account-nav-link:hover::before,
.account-nav-link.active::before {
  transform: scaleY(1);
}

/* ── Product Card Hover Lift Enhanced ──────────────────────────── */
.product-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
html.dark .product-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ── Button Press Feedback ─────────────────────────────────────── */
.btn:active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.promo-btn:active {
  transform: scale(0.97);
}

/* ── Category Card Icon Bounce ─────────────────────────────────── */
@keyframes iconBounce {
  0%, 100% { transform: scale(1.1) rotate(2deg); }
  50% { transform: scale(1.18) rotate(0deg); }
}
.categories-section .category-card:hover .category-icon-wrap {
  animation: iconBounce 0.6s ease;
}

/* ── Notification Bell Swing ───────────────────────────────────── */
@keyframes bellSwing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  90% { transform: rotate(-1deg); }
}
.nav-icon-btn:hover svg {
  animation: bellSwing 0.7s ease;
}

/* ── Image Fade-In on Load ─────────────────────────────────────── */
img {
  transition: opacity 0.4s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ── Promo Card Hover Glow ─────────────────────────────────────── */
.promo-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.promo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.12);
}

/* ── Discount Badge Bounce ─────────────────────────────────────── */
@keyframes discountBounce {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1px, -1px) rotate(1deg); }
  75% { transform: translate(-1px, 1px) rotate(-1deg); }
}
.product-badge {
  transition: transform 0.25s ease;
}
.product-card:hover .product-badge {
  animation: discountBounce 0.4s ease;
}

/* ── Scroll Arrow Glow Pulse ───────────────────────────────────── */
.scroll-arrow {
  transition: opacity 0.3s ease;
}
.scroll-arrow:hover {
  opacity: 1 !important;
}

/* ── Welcome Banner Entrance ───────────────────────────────────── */
@keyframes bannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-banner {
  animation: bannerSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .product-card { transform: none !important; }
  .product-card:hover { transform: none !important; }
  .product-card::after { display: none; }
  .btn-ripple { animation: none; }
  .wb-glow { animation: none; }
  .hero-accent { animation: none; }
  .trust-item:hover { transform: none; }
  .trust-item:hover .trust-svg { transform: none; }
  .promo-card:hover { transform: none; }
  .promo-btn:hover { transform: none; }
  .scroll-arrow { animation: none; }
  .nav-link::after { transition: none; }
  .footer-col a::after { transition: none; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .reveal-card { opacity: 1; transform: none; transition: none; }
  .auth-main .auth-card { animation: none; }
  .welcome-banner { animation: none; }
  .cart-badge.pulse { animation: none; }
  .categories-section .category-card:hover .category-icon-wrap { animation: none; }
  .nav-icon-btn:hover svg { animation: none; }
  .product-card:hover .product-badge { animation: none; }
  .notif-mark-read:hover,
  .notif-link:hover { transform: none; }
}

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-section {
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(160,110,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(120,80,55,0.06) 0%, transparent 50%),
    linear-gradient(175deg, #f0e3d4 0%, #e8d9c8 35%, #e0cfbc 65%, #ede0d0 100%);
}
.faq-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Service pages ──────────────────────────────────────────── */
.service-page {
  min-height: calc(100dvh - var(--nav-height));
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(160,110,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(120,80,55,0.06) 0%, transparent 50%),
    linear-gradient(175deg, #f0e3d4 0%, #e8d9c8 35%, #e0cfbc 65%, #ede0d0 100%);
  padding: 4rem 1.5rem 5rem;
}
.service-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.service-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.service-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.service-hero-row {
  position: relative;
  text-align: center;
}
.service-hero-text {
  text-align: center;
}
.service-track-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.service-track-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(159,83,48,0.12);
  margin-top: -1px;
}
@media (max-width: 600px) {
  .service-hero-row {
    position: static;
  }
  .service-track-btn {
    position: static;
    transform: none;
    margin-top: 0.75rem;
  }
}
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(159,83,48,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.service-card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.service-card .btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.service-card .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.service-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Register pages (artist / delivery) ─────────────────────── */
.service-under-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  color: #664d03;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.service-under-banner svg {
  flex-shrink: 0;
  color: #664d03;
}
html.dark .service-under-banner {
  background: rgba(255,193,7,0.12);
  border-color: rgba(255,193,7,0.3);
  color: #ffc107;
}
html.dark .service-under-banner svg { color: #ffc107; }
.service-register-wrap {
  max-width: 100%;
}
.service-register-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.service-register-back:hover { color: var(--primary); }
.service-register-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}
@media (min-width: 1400px) {
  .service-register-card { padding: 3rem 4rem; }
}
.service-register-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--text);
  margin-bottom: 0.3rem;
}
.service-register-card .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}
.service-register-card .body-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-register-card .body-text:last-of-type { margin-bottom: 1.5rem; }

/* ── Step indicator ─────────────────────────────────────────── */
.ms-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}
.ms-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.ms-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.ms-step.active .ms-step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.ms-step.done .ms-step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.ms-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.ms-step.active .ms-step-label { color: var(--text); }
.ms-step.done .ms-step-label { color: var(--success); }
.ms-step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  margin: 0 0.35rem;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.ms-step-line.done { background: var(--success); }
@media (max-width: 500px) {
  .ms-step-label { display: none; }
  .ms-step-line { width: 24px; }
}

/* ── Step panels ────────────────────────────────────────────── */
.ms-panel { display: none; }
.ms-panel.active { display: block; }
.ms-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.ms-panel .panel-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.ms-field { margin-bottom: 1.15rem; }
.ms-field label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.ms-field label .optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.78rem;
}
.ms-field input,
.ms-field textarea,
.ms-field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ms-field input:focus,
.ms-field textarea:focus,
.ms-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(159,83,48,0.1);
}
.ms-field textarea { resize: vertical; min-height: 90px; }
.ms-field .field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}
.ms-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .ms-field-row { grid-template-columns: 1fr; }
}

/* ── Radio buttons ──────────────────────────────────────────── */
.ms-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.3rem;
}
.ms-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.ms-radio:hover { border-color: var(--primary); }
.ms-radio input { display: none; }
.ms-radio span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.ms-radio input:checked ~ span { border-color: var(--primary); }
.ms-radio input:checked ~ span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.ms-radio:has(input:checked) {
  border-color: var(--primary);
  background: rgba(159,83,48,0.06);
}
@media (prefers-color-scheme: dark) {
  .ms-radio:has(input:checked) { background: rgba(212,137,90,0.08); }
}

/* ── File upload ────────────────────────────────────────────── */
.ms-upload { position: relative; }
.ms-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.ms-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s;
}
.ms-upload-input:hover + .ms-upload-box,
.ms-upload-input:focus + .ms-upload-box {
  border-color: var(--primary);
  background: rgba(159,83,48,0.03);
}
.ms-upload-text { font-weight: 600; font-size: 0.88rem; }
.ms-upload-hint { font-size: 0.75rem; color: var(--text-light); }
.ms-upload-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-top: 0.5rem;
}
.ms-upload-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.ms-upload-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ms-upload-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-upload-size { font-size: 0.72rem; color: var(--text-light); }
.ms-upload-remove {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ms-upload-remove:hover { border-color: #d93025; color: #d93025; }
.ms-upload-error {
  font-size: 0.75rem;
  color: #d93025;
  margin-top: 0.3rem;
  display: none;
}

/* ── Navigation buttons ─────────────────────────────────────── */
.ms-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.ms-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
  border: none;
}
.ms-btn-next {
  background: var(--primary);
  color: #fff;
}
.ms-btn-next:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.ms-btn-back {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.ms-btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ms-btn-submit {
  background: var(--success);
  color: #fff;
}
.ms-btn-submit:hover {
  background: #245a42;
  transform: translateY(-1px);
}
.ms-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Consent checkbox ───────────────────────────────────────── */
.ms-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.ms-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ms-check-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ms-consent .ms-check {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  transition: all 0.15s ease;
}
.ms-consent input[type="checkbox"]:checked + .ms-check {
  background: var(--primary);
  border-color: var(--primary);
}
.ms-consent input[type="checkbox"]:checked + .ms-check::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ms-consent input[type="checkbox"]:focus-visible + .ms-check {
  box-shadow: 0 0 0 3px rgba(159,83,48,0.2);
}
.ms-consent .ms-consent-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}
.ms-consent .ms-consent-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.ms-consent .ms-consent-text a:hover { text-decoration: underline; }

/* ── Success state ──────────────────────────────────────────── */
.ms-success {
  text-align: center;
  padding: 2rem 1rem;
}
.ms-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(45,106,79,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--success);
}
.ms-success h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.ms-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.service-features li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
}
.service-features li:last-child { border-bottom: none; }
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.service-register-card .btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.service-register-card .btn-primary {
  background: var(--primary);
  color: #fff;
}
.service-register-card .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Error / rate-limit page ────────────────────────────────── */
.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(160,110,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(120,80,55,0.06) 0%, transparent 50%),
    linear-gradient(175deg, #f0e3d4 0%, #e8d9c8 35%, #e0cfbc 65%, #ede0d0 100%);
}
.error-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(159,83,48,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.error-message {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-actions .btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
}
.error-actions .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.error-actions .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.error-actions .btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.error-actions .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 600px) {
  .service-page { padding: 2.5rem 1rem 3rem; }
  .service-register-card { padding: 1.75rem 1.25rem; }
  .error-card { padding: 2rem 1.5rem; }
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1400px) {
  .faq-grid { grid-template-columns: repeat(3, 1fr); }
}
.faq-group {
  background: #2d2825;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.faq-group-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-3);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f2ede4;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.faq-icon::before {
  width: 12px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px; height: 12px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-inner {
  padding: 0 0.25rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(242,237,228,0.65);
}
@media (max-width: 600px) {
  .faq-section { padding: 2.5rem 0; }
  .faq-group { padding: 1.25rem 1rem; }
  .faq-question { font-size: 0.9rem; padding: 0.75rem 0; }
  .faq-answer-inner { font-size: 0.84rem; }
}

/* ── Connect With Us form ────────────────────────────────────── */
.connect-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.connect-form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}
.connect-form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.connect-form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.connect-field { margin-bottom: 1.25rem; }
.connect-field label {
  display: block; font-weight: 600; font-size: 0.85rem;
  margin-bottom: 0.35rem; color: var(--text);
}
.connect-field label .field-hint {
  font-weight: 400; color: var(--text-light); font-size: 0.78rem;
}
.connect-field .input-prefix-wrap {
  display: flex; align-items: stretch;
}
.connect-field .input-prefix {
  display: flex; align-items: center;
  padding: 0 0.75rem;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.92rem; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}
.connect-field .input-prefix + input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.connect-field input,
.connect-field textarea,
.connect-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.connect-field input:focus,
.connect-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(159,83,48,0.12);
}
.connect-field textarea {
  resize: vertical;
  min-height: 100px;
}
.connect-field .char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}
.connect-field .char-count.warn { color: var(--warning); }
.connect-field .char-count.over { color: var(--danger); }
.connect-field .field-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.25rem;
  display: none;
}
.connect-field.has-error .field-error { display: block; }
.connect-field.has-error input,
.connect-field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(185,28,28,0.1);
}
.connect-btn-submit {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.5rem;
}
.connect-btn-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(159,83,48,0.25);
  transform: translateY(-1px);
}
.connect-btn-submit:active {
  transform: scale(0.97);
}
.connect-success-msg {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.connect-success-msg .success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(45,106,79,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.connect-success-msg .success-icon svg { color: var(--success); }
.connect-success-msg h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.connect-success-msg p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .connect-form-card { padding: 1.5rem 1.25rem; }
  .connect-field .input-prefix { padding: 0 0.55rem; font-size: 0.85rem; }
}
