/* ═══════════════════════════════════════════════════════════
   SWEET MOMENTS — Design System
   Palette: Terracotta Studio
   Fonts: Cormorant Garamond (display) + Cabinet Grotesk (body)
═══════════════════════════════════════════════════════════ */

:root {
  --terracotta:   #B5563E;
  --terra-light:  #D4896A;
  --terra-pale:   #F2E6D9;
  --terra-dark:   #3D2B1F;
  --cream:        #FAF6F1;
  --cream-dark:   #F0E8DE;
  --white:        #FFFFFF;
  --text-dark:    #2C1A10;
  --text-mid:     #6B4C3B;
  --text-light:   #A07860;
  --border:       #E8D8CC;
  --shadow-sm:    0 2px 8px rgba(61,43,31,0.08);
  --shadow-md:    0 8px 32px rgba(61,43,31,0.12);
  --shadow-lg:    0 20px 60px rgba(61,43,31,0.16);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    40px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
em { font-style: italic; color: var(--terracotta); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary.large { padding: 15px 36px; font-size: 1rem; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--terracotta);
  transition: var(--transition);
}
.btn-ghost:hover { background: var(--terracotta); color: var(--white); transform: translateY(-2px); }
.btn-ghost.large { padding: 15px 36px; font-size: 1rem; }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  padding: 12px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta); }

.back-btn {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.back-btn:hover { color: var(--terracotta); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--terra-dark);
  white-space: nowrap;
}
.logo-icon { color: var(--terracotta); font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--terracotta); background: var(--terra-pale); }

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

.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra-pale);
  color: var(--terra-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--terracotta); color: var(--white); }

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--terra-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--terra-pale); color: var(--terracotta); }
.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }

.close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--text-mid);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.close-btn:hover { background: var(--terracotta); color: var(--white); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-light);
  text-align: center;
  padding: 40px;
}
.cart-empty-icon { font-size: 3rem; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--cream);
  margin-bottom: 10px;
  animation: slideIn 0.3s ease;
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--terracotta); font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }
.qty-num { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { margin-left: auto; color: var(--text-light); font-size: 0.8rem; transition: var(--transition); }
.cart-item-remove:hover { color: #e53e3e; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   PAGES
═══════════════════════════════════════════════════════════ */
.page { display: none; min-height: 100vh; padding-top: 72px; }
.page.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px;
  gap: 60px;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,137,106,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--terra-dark);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }

.hero-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181,86,62,0.15) 0%, transparent 50%);
  z-index: 1;
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; line-height: 1; }
.badge-txt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════ */
.section-wrap {
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-wrap.alt-bg {
  max-width: 100%;
  background: var(--cream-dark);
  padding: 80px 0;
}
.section-wrap.alt-bg .section-header,
.section-wrap.alt-bg .products-grid,
.section-wrap.alt-bg .section-cta {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section-header { margin-bottom: 48px; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.section-title { color: var(--terra-dark); }
.section-cta { text-align: center; margin-top: 48px; }

/* ═══════════════════════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cat-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover .cat-img img { transform: scale(1.06); }

.cat-info {
  padding: 24px;
  background: var(--white);
}
.cat-info h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cat-info p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 12px; }
.cat-link { color: var(--terracotta); font-weight: 600; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.products-grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

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

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
}
.product-badge.gift { background: #7B5EA7; }

.product-card-body { padding: 20px; }
.product-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.product-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--terra-dark);
}
.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
}
.add-to-cart-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--terra-dark); transform: scale(1.1); }
.add-to-cart-btn:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; transform: none; }

.out-of-stock-label {
  font-size: 0.75rem;
  color: #e53e3e;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--terra-light); box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   SHOP PAGE
═══════════════════════════════════════════════════════════ */
.shop-header {
  background: linear-gradient(135deg, var(--terra-dark) 0%, var(--terracotta) 100%);
  padding: 60px 32px;
  text-align: center;
  color: var(--white);
}
.shop-header h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 8px; }
.shop-header p { opacity: 0.85; font-size: 1rem; }

.shop-controls {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 8px; }
.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  border: 2px solid var(--border);
  transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.search-wrap input {
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  width: 260px;
  transition: var(--transition);
  outline: none;
}
.search-wrap input:focus { border-color: var(--terracotta); }

.shop-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

.no-products {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mid);
}
.no-products p { font-size: 1.1rem; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL
═══════════════════════════════════════════════════════════ */
.product-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}

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

.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding-top: 8px; }
.product-detail-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.product-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--terra-dark);
  margin-bottom: 16px;
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 24px;
}
.product-detail-desc {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1rem;
}
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag {
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  background: var(--terra-pale);
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qty-selector label { font-weight: 600; font-size: 0.9rem; }
.qty-controls { display: flex; align-items: center; gap: 12px; }
.qty-controls .qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.qty-controls .qty-num { font-size: 1rem; font-weight: 700; min-width: 28px; text-align: center; }

.detail-add-btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

.cod-info {
  margin-top: 20px;
  padding: 16px;
  background: var(--terra-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT
═══════════════════════════════════════════════════════════ */
.checkout-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.checkout-left h2 { margin-bottom: 8px; }
.checkout-sub { color: var(--text-mid); margin-bottom: 40px; }

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.form-section h4 { margin-bottom: 20px; color: var(--terra-dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--terracotta); }
.form-group textarea { resize: vertical; }

.checkbox-group { flex-direction: row; gap: 24px; flex-wrap: wrap; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--terra-pale), var(--cream));
  border-radius: var(--radius-md);
  border: 2px solid var(--terra-light);
  margin-bottom: 28px;
}
.payment-icon { font-size: 2rem; }
.payment-badge strong { display: block; margin-bottom: 4px; }
.payment-badge p { font-size: 0.85rem; color: var(--text-mid); }

.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}
.order-summary h4 { margin-bottom: 20px; font-size: 1.1rem; }

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.summary-item-name { color: var(--text-dark); font-weight: 500; }
.summary-item-qty { color: var(--text-light); font-size: 0.8rem; }
.summary-item-price { font-weight: 600; color: var(--terracotta); }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 0 0;
  margin-top: 4px;
}

.cod-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--terra-pale);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   CONFIRMATION
═══════════════════════════════════════════════════════════ */
.confirmation-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.confirmation-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.confirm-icon { font-size: 4rem; margin-bottom: 20px; animation: bounce 0.6s ease; }
@keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.confirmation-card h2 { margin-bottom: 12px; }
.confirm-sub { color: var(--text-mid); margin-bottom: 32px; line-height: 1.7; }
.confirm-details {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.8;
}
.confirm-cod {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--terra-pale);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PAGE
═══════════════════════════════════════════════════════════ */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-header h2 { margin-bottom: 6px; }
.admin-header p { color: var(--text-mid); font-size: 0.95rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border);
}
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--terra-dark); }

.admin-products { display: flex; flex-direction: column; gap: 12px; }

.admin-product-row {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.admin-product-row:hover { border-color: var(--terra-light); box-shadow: var(--shadow-sm); }

.admin-prod-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream-dark);
}
.admin-prod-info { flex: 1; min-width: 0; }
.admin-prod-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.admin-prod-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 12px; flex-wrap: wrap; }
.admin-prod-price { font-weight: 700; color: var(--terracotta); font-size: 1rem; white-space: nowrap; }
.admin-prod-actions { display: flex; gap: 8px; }

.edit-btn, .delete-btn {
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.edit-btn { background: var(--terra-pale); color: var(--terracotta); }
.edit-btn:hover { background: var(--terracotta); color: var(--white); }
.delete-btn { background: #FEE2E2; color: #DC2626; }
.delete-btn:hover { background: #DC2626; color: var(--white); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.status-dot.available { background: #22C55E; }
.status-dot.unavailable { background: #EF4444; }

.empty-admin {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mid);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-admin p { margin-bottom: 20px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3 { font-size: 1.3rem; }

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
  background: var(--cream);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone:hover { border-color: var(--terracotta); background: var(--terra-pale); }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { font-size: 2.5rem; }
.upload-placeholder p { font-weight: 600; color: var(--text-dark); }
.upload-placeholder span { font-size: 0.8rem; color: var(--text-light); }
.upload-preview { max-height: 200px; border-radius: var(--radius-sm); object-fit: contain; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--terra-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 500;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer { background: var(--terra-dark); color: rgba(255,255,255,0.8); margin-top: 80px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--white); }
.footer-brand .logo-icon { color: var(--terra-light); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links h5, .footer-contact h5 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--terra-light); }
.footer-contact p { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 48px 24px; gap: 40px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; max-width: 400px; margin: 0 auto; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .section-wrap { padding: 60px 20px; }
  .shop-controls { flex-direction: column; align-items: stretch; }
  .search-wrap input { width: 100%; }
  .admin-header { flex-direction: column; }
  .admin-product-row { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .confirmation-card { padding: 40px 24px; }
  .checkout-wrap { padding: 32px 20px; }
  .product-detail-wrap { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .hero { padding: 32px 16px; }
  .hero-badge { left: 0; bottom: -16px; }
  .modal { width: 95%; }
  .modal-body { padding: 20px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card-body { padding: 14px; }
}