/* ============================================================
   MANGALAGIRI MATTI — HAND MADE CLAY ARTS
   Main Stylesheet
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clay-dark:      #3d1f0d;
  --clay-brown:     #6b3a2a;
  --terracotta:     #c1440e;
  --clay-orange:    #d4622a;
  --clay-mid:       #b85c38;
  --warm-beige:     #e8d5b7;
  --cream:          #f5ede0;
  --off-white:      #faf6f0;
  --natural-green:  #5a7a4a;
  --green-light:    #7a9a6a;
  --text-dark:      #2c1810;
  --text-mid:       #5c3d2e;
  --text-light:     #8b6555;
  --text-muted:     #a08070;
  --border-color:   #d4b896;
  --shadow-color:   rgba(61, 31, 13, 0.12);
  --shadow-hover:   rgba(61, 31, 13, 0.22);

  /* Typography */
  --font-heading:   'Playfair Display', 'Georgia', serif;
  --font-body:      'Lato', 'Segoe UI', sans-serif;
  --font-accent:    'Crimson Text', 'Georgia', serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-mid:    0.35s ease;
  --transition-slow:   0.5s ease;

  /* Layout */
  --max-width:    1280px;
  --header-h:     80px;
}

/* ── 2. BASE RESET ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Clay texture background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(193,68,14,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(107,58,42,0.05) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c1440e' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='10' cy='50' r='1'/%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
  outline: none;
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--clay-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-mid);
  line-height: 1.75;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  color: var(--clay-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
}

/* ── 4. UTILITY CLASSES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-terracotta { color: var(--terracotta); }

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition-mid);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(193,68,14,0.3);
}

.btn-primary:hover {
  background: var(--clay-brown);
  border-color: var(--clay-brown);
  box-shadow: 0 6px 24px rgba(193,68,14,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--clay-dark);
  color: #fff;
  border-color: var(--clay-dark);
}

.btn-dark:hover {
  background: var(--clay-brown);
  border-color: var(--clay-brown);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

/* ── 6. BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-new      { background: var(--natural-green); color: #fff; }
.badge-sale     { background: var(--terracotta);    color: #fff; }
.badge-popular  { background: var(--clay-brown);    color: #fff; }
.badge-out      { background: var(--text-muted);    color: #fff; }

/* ── 7. SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--clay-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clay-brown); }

/* ── 8. TOAST NOTIFICATION ────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--clay-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: 0 4px 20px var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: toastIn 0.3s ease forwards;
  max-width: 320px;
}

.toast.success { border-left: 4px solid var(--natural-green); }
.toast.error   { border-left: 4px solid #e74c3c; }
.toast.info    { border-left: 4px solid var(--terracotta); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ── 9. LOADER ────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--warm-beige);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition-mid), background var(--transition-mid), top var(--transition-mid);
}

.site-header.bar-hidden {
  top: 0;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px var(--shadow-color);
  background: rgba(250, 246, 240, 0.99);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

/* ── Brand / Logo ─────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--warm-beige);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: transform var(--transition-mid);
}

.brand:hover .brand-logo {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clay-dark);
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--terracotta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Main Navigation ──────────────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--terracotta);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ── Header Actions ───────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all var(--transition-fast);
  background: transparent;
}

.search-toggle:hover {
  background: var(--warm-beige);
  color: var(--terracotta);
}

.search-box {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  transition: width var(--transition-mid);
  background: #fff;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
}

.search-box.open {
  width: 240px;
  border-color: var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text-dark);
  border: none;
}

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

.search-icon-inner {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-hover);
  display: none;
  z-index: 200;
  overflow: hidden;
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--cream);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--cream); }

.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--warm-beige);
  flex-shrink: 0;
}

.search-result-info .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.search-result-info .price {
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: 600;
}

/* Cart Icon */
.cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all var(--transition-fast);
  background: transparent;
}

.cart-btn:hover {
  background: var(--warm-beige);
  color: var(--terracotta);
}

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

.cart-count.bump {
  animation: cartBump 0.3s ease;
}

@keyframes cartBump {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* Auth Buttons */
.btn-login {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay-brown);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  transition: all var(--transition-fast);
  background: transparent;
}

.btn-login:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(193,68,14,0.05);
}

.btn-signup {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(193,68,14,0.25);
}

.btn-signup:hover {
  background: var(--clay-brown);
  border-color: var(--clay-brown);
  transform: translateY(-1px);
}

/* User Menu (after login) */
.user-menu-wrap {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.user-menu-btn:hover {
  border-color: var(--terracotta);
  background: var(--cream);
}

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

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-hover);
  overflow: hidden;
  display: none;
  z-index: 200;
}

.user-dropdown.show { display: block; }

.user-dropdown-header {
  padding: 14px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
}

.user-dropdown-header .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clay-dark);
}

.user-dropdown-header .email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--cream);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--cream);
  color: var(--terracotta);
}

.user-dropdown .logout-btn {
  color: #e74c3c;
  border-bottom: none;
}

/* ── Hamburger Menu ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  background: transparent;
}

.hamburger:hover { background: var(--warm-beige); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clay-dark);
  border-radius: 2px;
  transition: all var(--transition-mid);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Drawer ────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 36px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-white);
  z-index: 999;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateX(-100%);
  transition: transform var(--transition-mid);
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover { color: var(--terracotta); }

.mobile-nav-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.mobile-nav-actions .btn { flex: 1; justify-content: center; }

/* Announcement Bar */
.announcement-bar {
  background: var(--clay-dark);
  color: var(--warm-beige);
  text-align: center;
  padding: 8px var(--space-lg);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar span { color: var(--clay-orange); font-weight: 700; }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 36px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 50%, var(--warm-beige) 100%);
}

/* Decorative clay circles */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(193,68,14,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,58,42,0.06) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
}

/* ── Hero Content ─────────────────────────────────────────── */
.hero-content {
  animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(193,68,14,0.1);
  color: var(--terracotta);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(193,68,14,0.2);
}

.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--clay-dark);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero-title .highlight {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--clay-mid);
  font-style: italic;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clay-dark);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border-color);
  align-self: stretch;
}

/* ── Hero Visual ──────────────────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* Rotating ring */
.hero-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(193,68,14,0.25);
  animation: rotateSlow 20s linear infinite;
}

.hero-ring-2 {
  width: 440px;
  height: 440px;
  border: 1px dashed rgba(107,58,42,0.15);
  animation-duration: 30s;
  animation-direction: reverse;
}

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

/* Dots on ring */
.hero-ring::before,
.hero-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-ring::after {
  top: auto;
  bottom: -5px;
}

.hero-logo-main {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--warm-beige);
  box-shadow:
    0 0 0 12px rgba(193,68,14,0.08),
    0 20px 60px rgba(61,31,13,0.2);
  position: relative;
  z-index: 2;
  animation: floatLogo 4s ease-in-out infinite;
}

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

/* Floating product cards around logo */
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 24px var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  border: 1px solid var(--border-color);
  animation: floatCard 3s ease-in-out infinite;
  z-index: 3;
}

/* Left card — Matti Bommalu */
.hero-float-left {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 0s;
}

/* Right card — God Idols */
.hero-float-right {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1s;
}

/* Override float animation to keep vertical centering */
.hero-float-left,
.hero-float-right {
  animation: floatCardSide 3s ease-in-out infinite;
}

@keyframes floatCardSide {
  0%,100% { transform: translateY(calc(-50% + 0px)); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}

.hero-float-card .card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-color);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */

.categories-section {
  background: var(--cream);
  padding: var(--space-3xl) 0;
  position: relative;
}

.categories-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--clay-orange), var(--clay-brown));
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-mid);
  border: 2px solid transparent;
  box-shadow: 0 2px 12px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193,68,14,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.category-card:hover,
.category-card.active {
  border-color: var(--terracotta);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-hover);
}

.category-card:hover::before,
.category-card.active::before {
  opacity: 1;
}

.category-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  transition: all var(--transition-mid);
  border: 2px solid var(--warm-beige);
}

.category-card:hover .category-icon-wrap,
.category-card.active .category-icon-wrap {
  background: rgba(193,68,14,0.1);
  border-color: var(--terracotta);
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.category-card:hover .category-name,
.category-card.active .category-name {
  color: var(--terracotta);
}

.category-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-count {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(193,68,14,0.08);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* ============================================================
   PRODUCTS SECTION & CARDS
   ============================================================ */

.products-section {
  padding: var(--space-3xl) 0;
  background: var(--off-white);
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  border: 1.5px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b6555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-select:focus { border-color: var(--terracotta); }

/* ── Products Grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
  transition: all var(--transition-mid);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-hover);
  border-color: rgba(193,68,14,0.2);
}

/* Image */
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Image placeholder */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream), var(--warm-beige));
  color: var(--text-muted);
  font-size: 3rem;
}

.product-img-placeholder span {
  font-size: 0.75rem;
  margin-top: var(--space-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Badges on card */
.product-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* Wishlist button */
.product-wishlist {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 2;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.product-wishlist:hover,
.product-wishlist.active {
  background: #fff;
  color: #e74c3c;
  transform: scale(1.1);
}

/* Quick view overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,31,13,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-mid);
  z-index: 3;
}

.product-card:hover .product-overlay { opacity: 1; }

.quick-view-btn {
  background: #fff;
  color: var(--clay-dark);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(10px);
  transition: all var(--transition-mid);
}

.product-card:hover .quick-view-btn { transform: translateY(0); }
.quick-view-btn:hover { background: var(--terracotta); color: #fff; }

/* Card Body */
.product-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 0.75rem;
  color: var(--warm-beige);
}

.star.filled { color: #f0a500; }
.star.half   { color: #f0a500; opacity: 0.6; }

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

/* Price */
.product-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
}

.product-price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--natural-green);
  background: rgba(90,122,74,0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Stock */
.product-stock {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.stock-in    { color: var(--natural-green); }
.stock-low   { color: var(--clay-orange); }
.stock-out   { color: var(--text-muted); }

/* Card Actions */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.btn-add-cart {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--clay-brown);
  border: 1.5px solid var(--border-color);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-add-cart:hover {
  background: var(--clay-dark);
  color: #fff;
  border-color: var(--clay-dark);
}

.btn-buy-now {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--terracotta);
  color: #fff;
  border: 1.5px solid var(--terracotta);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-buy-now:hover {
  background: var(--clay-brown);
  border-color: var(--clay-brown);
}

/* Out of stock state */
.product-card.out-of-stock .product-img-wrap::after {
  content: 'Out of Stock';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ── Products Loading Skeleton ────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--cream) 25%, var(--warm-beige) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skeleton-img  { aspect-ratio: 1/1; }
.skeleton-body { padding: var(--space-md); }
.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

/* ── Load More ────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */

.features-strip {
  background: var(--clay-dark);
  padding: var(--space-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--warm-beige);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.feature-text .title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 2px;
}

.feature-text .desc {
  font-size: 0.75rem;
  color: rgba(232,213,183,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--clay-dark);
  color: var(--warm-beige);
  padding-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--clay-orange), var(--clay-brown), var(--terracotta));
}

/* Decorative background */
.site-footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,68,14,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Brand Column */
.footer-brand .brand {
  margin-bottom: var(--space-lg);
  display: inline-flex;
}

.footer-brand .brand-logo {
  border-color: rgba(255,255,255,0.15);
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: var(--clay-orange); }

.footer-about {
  font-size: 0.85rem;
  color: rgba(232,213,183,0.75);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-beige);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer Columns */
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(232,213,183,0.75);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link::before {
  content: '›';
  color: var(--terracotta);
  font-size: 1rem;
  line-height: 1;
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

/* Contact Info */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: rgba(232,213,183,0.75);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(193,68,14,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--clay-orange);
  margin-top: -2px;
}

.footer-contact-item a {
  color: rgba(232,213,183,0.75);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover { color: #fff; }

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.85rem;
}

.newsletter-input::placeholder { color: rgba(232,213,183,0.5); }
.newsletter-input:focus { border-color: var(--terracotta); outline: none; }

.newsletter-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--clay-orange); }

/* Footer Bottom */
.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(232,213,183,0.5);
}

.footer-copy span { color: var(--terracotta); }

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(232,213,183,0.5);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: #fff; }

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(193,68,14,0.4);
  cursor: pointer;
  transition: all var(--transition-mid);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 500;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--clay-brown);
  transform: translateY(-3px);
}

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: var(--off-white);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform var(--transition-mid);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.cart-sidebar-header h3 {
  font-size: 1.1rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--text-mid);
  transition: all var(--transition-fast);
}

.cart-close:hover { background: var(--warm-beige); color: var(--terracotta); }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }

.qty-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
}

.cart-item-remove:hover { color: #e74c3c; }

.cart-sidebar-footer {
  padding: var(--space-lg);
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.cart-total-label {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.cart-total-amount {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terracotta);
}

.cart-sidebar-footer .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: var(--space-md); opacity: 0.4; }

/* ============================================================
   SHOP PAGE
   ============================================================ */

.shop-hero {
  background: linear-gradient(135deg, var(--clay-dark) 0%, var(--clay-brown) 100%);
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='0'  cy='0'  r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

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

.shop-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.shop-hero p {
  color: rgba(232,213,183,0.8);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(232,213,183,0.6);
}

.breadcrumb a { color: var(--clay-orange); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(232,213,183,0.4); }

/* ── Shop Layout ──────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  align-items: start;
}

/* ── Sidebar Filters ──────────────────────────────────────── */
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
}

.sidebar-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-size: 0.95rem;
  color: var(--clay-dark);
}

.clear-filters-btn {
  font-size: 0.75rem;
  color: var(--terracotta);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.clear-filters-btn:hover { color: var(--clay-brown); }

.filter-group {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child { border-bottom: none; }

.filter-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-group-title svg {
  transition: transform var(--transition-fast);
}

.filter-group-title.collapsed svg { transform: rotate(-90deg); }

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.filter-option:hover { color: var(--terracotta); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--terracotta);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-option-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  flex: 1;
}

.filter-option-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--cream);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* Price Range */
.price-range-wrap {
  padding: var(--space-sm) 0;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.price-input {
  padding: 8px 10px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-dark);
  width: 100%;
  transition: border-color var(--transition-fast);
}

.price-input:focus { border-color: var(--terracotta); }

.price-range-slider {
  width: 100%;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Shop Main ────────────────────────────────────────────── */
.shop-main {}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.shop-results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-results-count strong {
  color: var(--clay-dark);
  font-weight: 700;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* Active filters chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(193,68,14,0.08);
  color: var(--terracotta);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(193,68,14,0.2);
}

.filter-chip button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}

/* List view */
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
  flex-direction: row;
  max-height: 200px;
}

.products-grid.list-view .product-img-wrap {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 200px;
}

.products-grid.list-view .product-body {
  flex: 1;
}

.products-grid.list-view .product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  gap: var(--space-sm);
  min-width: 140px;
}

/* Mobile filter toggle */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800;
}

.sidebar-overlay.show { display: block; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  border: 1.5px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-section {
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ── Product Gallery ──────────────────────────────────────── */
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
  cursor: zoom-in;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-main:hover .gallery-main-img { transform: scale(1.05); }

.gallery-main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--cream), var(--warm-beige));
}

.gallery-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background: var(--cream);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--terracotta);
  transform: scale(1.05);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Product Info ─────────────────────────────────────────── */
.product-info {}

.product-info-breadcrumb {
  margin-bottom: var(--space-md);
}

.product-info-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(193,68,14,0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.product-info-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.product-info-id {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.product-info-rating .stars { font-size: 1rem; }

.rating-score {
  font-weight: 700;
  color: var(--clay-dark);
  font-size: 0.9rem;
}

.rating-reviews {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-info-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-info-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
}

.product-info-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info-discount {
  background: var(--natural-green);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Stock indicator */
.product-info-stock {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.88rem;
  font-weight: 600;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-dot.in    { background: var(--natural-green); }
.stock-dot.low   { background: var(--clay-orange); }
.stock-dot.out   { background: var(--text-muted); }

/* Description */
.product-info-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Specs */
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.spec-item {}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clay-dark);
}

/* Quantity selector */
.qty-selector-wrap {
  margin-bottom: var(--space-lg);
}

.qty-selector-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.qty-selector-btn:hover {
  background: var(--terracotta);
  color: #fff;
}

.qty-selector-input {
  width: 56px;
  height: 44px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clay-dark);
  border: none;
  border-left: 1.5px solid var(--border-color);
  border-right: 1.5px solid var(--border-color);
  background: #fff;
}

/* Product CTA buttons */
.product-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-cta .btn {
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

/* Delivery info */
.delivery-info {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-color);
}

.delivery-row:last-child { border-bottom: none; }

.delivery-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Share */
.product-share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--text-mid);
}

.share-btn:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* ── Related Products ─────────────────────────────────────── */
.related-section {
  padding: var(--space-3xl) 0;
  background: var(--cream);
}

/* ── Product Tabs (Description / Reviews) ─────────────────── */
.product-tabs-section {
  padding: var(--space-3xl) 0;
  background: var(--off-white);
}

.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--space-xl);
}

.product-tab-btn {
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.product-tab-btn:hover { color: var(--terracotta); }

.product-tab-btn.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.product-tab-content { display: none; }
.product-tab-content.active { display: block; }

.product-full-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 720px;
}

/* Reviews */
.reviews-summary {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.reviews-score {
  text-align: center;
  flex-shrink: 0;
}

.reviews-score .big-score {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--clay-dark);
  line-height: 1;
}

.reviews-score .stars { font-size: 1.1rem; margin: 6px 0; }

.reviews-score .total {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-bars { flex: 1; }

.review-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--warm-beige);
  border-radius: 3px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.review-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

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

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clay-dark);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   AUTH PAGES — LOGIN / SIGNUP / FORGOT PASSWORD
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--header-h);
}

/* ── Left Panel — Brand Visual ────────────────────────────── */
.auth-visual {
  background: linear-gradient(145deg, var(--clay-dark) 0%, var(--clay-brown) 60%, var(--terracotta) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-visual-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: var(--space-xl);
  animation: floatLogo 4s ease-in-out infinite;
}

.auth-visual h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.auth-visual p {
  color: rgba(232,213,183,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto var(--space-xl);
}

.auth-visual-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 300px;
}

.auth-visual-feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: rgba(232,213,183,0.9);
  font-size: 0.85rem;
}

.auth-visual-feature span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── Right Panel — Form ───────────────────────────────────── */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--off-white);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-form-header {
  margin-bottom: var(--space-xl);
}

.auth-form-header h1 {
  font-size: 1.8rem;
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
}

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

/* ── Form Elements ────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}

.form-label span {
  color: var(--terracotta);
  margin-left: 2px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.1);
  outline: none;
}

.form-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-input.success {
  border-color: var(--natural-green);
  box-shadow: 0 0 0 3px rgba(90,122,74,0.1);
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input:focus ~ .form-input-icon,
.form-input-wrap:focus-within .form-input-icon {
  color: var(--terracotta);
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.password-toggle:hover { color: var(--terracotta); }

/* Error / helper text */
.form-error {
  font-size: 0.75rem;
  color: #e74c3c;
  display: none;
  align-items: center;
  gap: 4px;
}

.form-error.show { display: flex; }

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Password strength */
.password-strength {
  margin-top: 6px;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--warm-beige);
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}

.strength-text {
  font-size: 0.72rem;
  font-weight: 600;
}

.strength-weak   .strength-fill { width: 25%; background: #e74c3c; }
.strength-fair   .strength-fill { width: 50%; background: var(--clay-orange); }
.strength-good   .strength-fill { width: 75%; background: #f0a500; }
.strength-strong .strength-fill { width: 100%; background: var(--natural-green); }

.strength-weak   .strength-text { color: #e74c3c; }
.strength-fair   .strength-text { color: var(--clay-orange); }
.strength-good   .strength-text { color: #f0a500; }
.strength-strong .strength-text { color: var(--natural-green); }

/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--terracotta);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  box-shadow: 0 4px 16px rgba(193,68,14,0.3);
  letter-spacing: 0.03em;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--clay-brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(193,68,14,0.4);
}

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

.auth-submit-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.auth-submit-btn.loading .btn-spinner { display: block; }
.auth-submit-btn.loading .btn-text    { display: none; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* Footer links */
.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}

.auth-footer-text a {
  color: var(--terracotta);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.auth-footer-text a:hover { color: var(--clay-brown); }

/* Forgot password link */
.forgot-link {
  font-size: 0.82rem;
  color: var(--terracotta);
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  display: block;
  margin-top: -4px;
}

.forgot-link:hover { color: var(--clay-brown); }

/* Terms checkbox */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.terms-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-check a {
  color: var(--terracotta);
  font-weight: 600;
}

/* ── Forgot Password Panel ────────────────────────────────── */
.forgot-panel {
  display: none;
}

.forgot-panel.show {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.back-to-login:hover { color: var(--terracotta); }

/* ── Success Message ──────────────────────────────────────── */
.auth-success-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: rgba(90,122,74,0.08);
  border: 1px solid rgba(90,122,74,0.2);
  border-radius: var(--radius-lg);
  gap: var(--space-md);
}

.auth-success-msg.show { display: flex; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--natural-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.auth-success-msg h3 {
  color: var(--natural-green);
  font-size: 1.2rem;
}

.auth-success-msg p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── OTP / Reset Code Input ───────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--clay-dark);
  background: #fff;
  transition: all var(--transition-fast);
}

.otp-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.1);
  outline: none;
}

/* ── Alert Box ────────────────────────────────────────────── */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

.auth-alert.show { display: flex; }

.auth-alert.error {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.2);
  color: #c0392b;
}

.auth-alert.success {
  background: rgba(90,122,74,0.08);
  border: 1px solid rgba(90,122,74,0.2);
  color: var(--natural-green);
}

.auth-alert.info {
  background: rgba(193,68,14,0.06);
  border: 1px solid rgba(193,68,14,0.15);
  color: var(--clay-brown);
}

/* ============================================================
   CART PAGE
   ============================================================ */

.cart-page-section {
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl);
  min-height: 80vh;
}

.cart-page-header {
  margin-bottom: var(--space-xl);
}

.cart-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
}

.cart-page-header .cart-item-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cart-page-header .cart-item-count span {
  color: var(--terracotta);
  font-weight: 700;
}

/* ── Cart Layout ──────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

/* ── Cart Items Table ─────────────────────────────────────── */
.cart-items-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
}

.cart-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cart-table-body {
  divide-y: 1px solid var(--border-color);
}

/* Cart Row */
.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background var(--transition-fast);
}

.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--off-white); }

/* Product cell */
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-product-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cart-product-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cart-product-info {}

.cart-product-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-product-name a {
  color: inherit;
  transition: color var(--transition-fast);
}

.cart-product-name a:hover { color: var(--terracotta); }

.cart-product-category {
  font-size: 0.72rem;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cart-product-id {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Price cell */
.cart-price-cell {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clay-dark);
}

/* Quantity cell */
.cart-qty-cell {}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  flex-shrink: 0;
}

.cart-qty-btn:hover {
  background: var(--terracotta);
  color: #fff;
}

.cart-qty-num {
  width: 40px;
  height: 34px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clay-dark);
  border: none;
  border-left: 1.5px solid var(--border-color);
  border-right: 1.5px solid var(--border-color);
  background: #fff;
  outline: none;
}

/* Subtotal cell */
.cart-subtotal-cell {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* Remove cell */
.cart-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--cream);
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-remove-btn:hover {
  background: #fde8e8;
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Cart footer row */
.cart-table-footer {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cart-coupon-form {
  display: flex;
  gap: var(--space-sm);
}

.coupon-input {
  padding: 9px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: #fff;
  width: 200px;
  transition: border-color var(--transition-fast);
}

.coupon-input:focus {
  border-color: var(--terracotta);
  outline: none;
}

.coupon-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--clay-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.coupon-btn:hover { background: var(--clay-brown); }

.cart-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.cart-continue-link:hover { color: var(--terracotta); }

/* ── Order Summary ────────────────────────────────────────── */
.order-summary-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
}

.order-summary-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
}

.order-summary-header h3 {
  font-size: 1rem;
  color: var(--clay-dark);
}

.order-summary-body {
  padding: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--cream);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row .label { color: var(--text-mid); }

.summary-row .value {
  font-weight: 700;
  color: var(--clay-dark);
}

.summary-row .value.free {
  color: var(--natural-green);
}

.summary-row.discount .value { color: var(--natural-green); }

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-md) 0;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0 0;
}

.summary-total-row .label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clay-dark);
}

.summary-total-row .value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
}

.order-summary-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.order-summary-footer .btn {
  justify-content: center;
  width: 100%;
}

/* Savings badge */
.savings-badge {
  background: rgba(90,122,74,0.1);
  border: 1px solid rgba(90,122,74,0.2);
  border-radius: var(--radius-md);
  padding: 10px var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--natural-green);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-badge-item span:first-child { font-size: 1rem; }

/* ── Empty Cart ────────────────────────────────────────────── */
.cart-empty-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
}

.cart-empty-page .empty-icon {
  font-size: 5rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
  display: block;
}

.cart-empty-page h2 {
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
}

.cart-empty-page p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cart-empty-page .btn {
  margin: 0 auto;
}

/* Suggested products in empty cart */
.cart-suggestions {
  margin-top: var(--space-3xl);
}

.cart-suggestions .section-header {
  margin-bottom: var(--space-xl);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-section {
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl);
  min-height: 90vh;
}

/* ── Steps Progress ───────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  transition: all var(--transition-mid);
  flex-shrink: 0;
  z-index: 1;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-mid);
}

.checkout-step.active .step-circle {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(193,68,14,0.15);
}

.checkout-step.active .step-label { color: var(--terracotta); font-weight: 700; }

.checkout-step.done .step-circle {
  background: var(--natural-green);
  border-color: var(--natural-green);
  color: #fff;
}

.checkout-step.done .step-label { color: var(--natural-green); }

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border-color);
  margin: 0 var(--space-sm);
  transition: background var(--transition-mid);
  flex-shrink: 0;
}

.step-connector.done { background: var(--natural-green); }

/* ── Checkout Layout ──────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

/* ── Checkout Form Card ───────────────────────────────────── */
.checkout-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
}

.checkout-card-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-card-header h3 {
  font-size: 1rem;
  color: var(--clay-dark);
}

.checkout-card-header .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-card-body {
  padding: var(--space-xl) var(--space-lg);
}

/* Form grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

.form-full { grid-column: 1 / -1; }

/* Checkout form inputs */
.checkout-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.checkout-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.1);
  outline: none;
}

.checkout-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

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

.checkout-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.03em;
}

.checkout-label span { color: var(--terracotta); margin-left: 2px; }

.checkout-field-error {
  font-size: 0.72rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}

.checkout-field-error.show { display: block; }

/* ── Payment Options ──────────────────────────────────────── */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.payment-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.payment-option:hover { border-color: var(--terracotta); }

.payment-option.selected {
  border-color: var(--terracotta);
  background: rgba(193,68,14,0.04);
}

.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.payment-option-info {}

.payment-option-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--clay-dark);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.payment-option-title .pay-icon { font-size: 1.1rem; }

.payment-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* UPI QR panel */
.upi-qr-panel {
  display: none;
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.upi-qr-panel.show { display: block; }

.upi-qr-code {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: var(--space-sm);
}

.upi-id-display {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clay-dark);
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  display: inline-block;
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upi-id-display:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ── Checkout Order Summary ───────────────────────────────── */
.checkout-summary-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow-color);
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
}

.checkout-summary-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary-header h3 { font-size: 1rem; color: var(--clay-dark); }

.checkout-summary-toggle {
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}

.checkout-order-items {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  max-height: 280px;
  overflow-y: auto;
}

.checkout-order-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
}

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

.checkout-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  position: relative;
}

.checkout-item-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.checkout-item-info { flex: 1; min-width: 0; }

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

.checkout-item-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkout-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terracotta);
  flex-shrink: 0;
}

.checkout-summary-totals {
  padding: var(--space-md) var(--space-lg);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--cream);
}

.checkout-summary-row:last-of-type { border-bottom: none; }
.checkout-summary-row .label { color: var(--text-mid); }
.checkout-summary-row .value { font-weight: 700; color: var(--clay-dark); }
.checkout-summary-row .value.free { color: var(--natural-green); }

.checkout-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-top: 2px solid var(--border-color);
}

.checkout-grand-total .label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clay-dark);
}

.checkout-grand-total .value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* Place order button */
.place-order-btn {
  width: 100%;
  padding: 16px;
  background: var(--terracotta);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  letter-spacing: 0.03em;
}

.place-order-btn:hover:not(:disabled) {
  background: var(--clay-brown);
}

.place-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.place-order-btn .btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.place-order-btn.loading .btn-spinner { display: block; }
.place-order-btn.loading .btn-text    { display: none; }

/* ── Order Confirmation Screen ────────────────────────────── */
.order-confirmation {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.order-confirmation.show { display: flex; }

.confirm-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--natural-green), #7ab86a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  box-shadow: 0 8px 32px rgba(90,122,74,0.3);
  animation: confirmPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes confirmPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
}

.confirm-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.confirm-order-id {
  background: var(--cream);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  width: 100%;
}

.confirm-order-id .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.confirm-order-id .order-id-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.05em;
}

.confirm-details {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--space-lg);
  border-bottom: 1px solid var(--cream);
  font-size: 0.88rem;
}

.confirm-detail-row:last-child { border-bottom: none; }
.confirm-detail-row .label { color: var(--text-muted); }
.confirm-detail-row .value { font-weight: 700; color: var(--clay-dark); }

.confirm-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.confirm-note {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(193,68,14,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(193,68,14,0.15);
  font-size: 0.82rem;
  color: var(--clay-brown);
  line-height: 1.6;
  width: 100%;
  text-align: left;
}
