/* ============================================================
   DESIGN TOKENS
   A calm mocha-latte base with a rich chocolate-brown accent.
   Footer & promo moments use a deep espresso surface — a bolder
   contrast layer that leans fully into the chocolate/cocoa
   subject matter while the page body stays light and easy on
   the eyes.
   ============================================================ */
:root {
  /* Backgrounds — depth runs from bg → surface → surface-active */
  --bg: #F2E7D8;
  --bg-secondary: #EAD9C2;
  --surface: #FFFBF4;
  --surface-hover: #EDDFC7;
  --surface-active: #E1CBA9;

  /* Warm contrast layer — footer, promo banner */
  --surface-contrast: #3D2418;
  --surface-contrast-hover: #4A2E1F;

  /* Brand accent */
  --primary: #994e1a;
  --primary-hover: #55341D;
  --primary-tint: #A9795A;
  --primary-muted: rgba(107, 66, 38, 0.12);
  --text-on-primary: #FFFBF4;

  /* Secondary accent (gold — badges, ratings, promo) */
  --accent-gold: #C08A3E;
  --accent-gold-hover: #A8752F;
  --accent-gold-muted: rgba(192, 138, 62, 0.16);

  /* Category tile accents — used only on the "Browse by Category"
     tiles to help each one read distinctly at a glance. */
  --cat-red: #B5584A;
  --cat-blue: #5D8FAE;
  --cat-purple: #8C749F;
  --cat-orange: #C97A3D;
  --cat-brown: #6B4226;
  --cat-pink: #BD7488;
  --cat-teal: #4F9285;
  --cat-gold: #C08A3E;

  /* Text */
  --text: #2E1D14;
  --text-secondary: #5C4433;
  --text-muted: #8F7A68;

  /* Borders */
  --border: rgba(46, 29, 20, 0.12);
  --border-light: rgba(46, 29, 20, 0.07);
  --border-strong: rgba(46, 29, 20, 0.20);

  /* Status */
  --success: #74915F;
  --success-muted: rgba(116, 145, 95, 0.14);
  --warning: #C08A3E;
  --danger: #B5503F;
  --danger-muted: rgba(181, 80, 63, 0.14);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(46, 29, 20, 0.10);
  --shadow: 0 10px 30px rgba(46, 29, 20, 0.14);
  --shadow-lg: 0 20px 50px rgba(46, 29, 20, 0.18);

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--text); font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: 'Inter', sans-serif; border: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links button {
  background: none; color: var(--text-muted);
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links button:hover { background: var(--surface-hover); color: var(--text); }
.nav-links button.active { background: var(--primary-muted); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  background: var(--primary); color: var(--text-on-primary);
  border-radius: var(--radius-pill); padding: 10px 20px;
  font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cart-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.cart-badge {
    background: #f3f3f3;;
    color: var(--text);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}
.hamburger { display: none; background: none; padding: 8px; border-radius: var(--radius-sm); }
.hamburger:hover { background: var(--surface-hover); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: 0.3s; }
.mobile-menu { display: none; }


/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── HOME ── */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-secondary) 55%, var(--surface) 100%);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(107, 66, 38, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 18px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--text);
  max-width: 680px; margin: 0 auto 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--primary); font-style: italic; }
.hero p {
  color: var(--text-muted); font-size: 1.08rem;
  max-width: 500px; margin: 0 auto 40px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: var(--text-on-primary);
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-muted); }
.hero-sweets {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 56px; flex-wrap: wrap;
}
.hero-sweet-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px 24px; text-align: center;
  box-shadow: var(--shadow-sm); min-width: 128px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-sweet-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.hero-sweet-card .emoji { font-size: 2.4rem; margin-bottom: 8px; }
.hero-sweet-card p { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* Wave divider */
.wave-divider { display: block; width: 100%; height: 56px; }

/* Categories */
.section { padding: 2em 24px; max-width: 1120px; margin: 0 auto; }
.section-title { font-size: 2rem; color: var(--text); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 44px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  background: var(--surface); border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.25s ease;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--cat-accent, var(--primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.cat-card::after {
  content: '→';
  position: absolute; top: 22px; right: 20px;
  font-size: 1.1rem; color: var(--cat-accent, var(--primary));
  opacity: 0; transform: translateX(-6px);
  transition: all 0.25s ease;
}
.cat-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover::after { opacity: 1; transform: translateX(0); }

.cat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--cat-accent, var(--primary)) 16%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cat-accent, var(--primary)) 35%, transparent);
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.cat-card p { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.cat-card.cat-red    { --cat-accent: var(--cat-red); }
.cat-card.cat-blue   { --cat-accent: var(--cat-blue); }
.cat-card.cat-purple { --cat-accent: var(--cat-purple); }
.cat-card.cat-orange { --cat-accent: var(--cat-orange); }
.cat-card.cat-brown  { --cat-accent: var(--cat-brown); }
.cat-card.cat-pink   { --cat-accent: var(--cat-pink); }
.cat-card.cat-teal   { --cat-accent: var(--cat-teal); }
.cat-card.cat-gold   { --cat-accent: var(--cat-gold); }



/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

/* ── Product card ──
   A flat, compact card: image, price+rating, a size/level selector,
   a quantity stepper, and a full-width colored Add to Cart bar. */
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.25s ease; cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.product-body {
  background: var(--surface);
  padding: 16px 14px 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; color: var(--primary); }
#detail-cat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; color: var(--primary) !important; margin-bottom: 6px; }
.product-name { font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.product-desc { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 10px; }

.product-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 12px;
  background: var(--surface-active);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-gold); color: var(--text-on-primary);
  border-radius: var(--radius-pill); padding: 4px 12px;
  font-size: 0.7rem; font-weight: 700;
  z-index: 1;
}

.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.product-price { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.product-rating { font-size: 0.78rem; letter-spacing: 1px; color: var(--border-strong); }
.product-rating .star-filled { color: var(--accent-gold); }

/* Sweetness/size selector — appears on product cards, right under
   the image, and on the product detail page. Selecting an option
   swaps the image + price shown for that product/card immediately. */
.card-option-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.sl-row { display: flex; gap: 16px; flex-wrap: wrap; }
.sl-pill {
  background: none; border: none; padding: 0;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s ease;
}
.sl-pill:hover { color: var(--text-secondary); }
.sl-pill.active { color: var(--text); font-weight: 800; }

.option-block { margin: 18px 0; }
.option-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 10px;
}
/* Detail page keeps the original pill treatment for its selector */
.option-block .sl-row { padding: 0; gap: 6px; }
.option-block .sl-pill {
  border: 1px solid var(--border); background: var(--surface-hover);
  color: var(--text-secondary); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: 0.78rem; font-weight: 600;
}
.option-block .sl-pill:hover { border-color: var(--border-strong); color: var(--text); }
.option-block .sl-pill.active { background: var(--primary); color: var(--text-on-primary); border-color: var(--primary); }

.card-qty-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 14px; }
.card-qty-ctrl { display: flex; align-items: center; gap: 10px; }
.card-qty-ctrl button {
  width: 24px; height: 24px; border-radius: 8px;
  border: 1.5px solid var(--border-strong); background: var(--surface-hover);
  color: var(--text); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.card-qty-ctrl button:hover { border-color: var(--primary); color: var(--primary); }
.card-qty-ctrl .qty-val { font-weight: 700; color: var(--text); min-width: 14px; text-align: center; font-size: 0.85rem; }

.add-to-cart-bar {
  width: 100%;
  background: var(--primary); color: var(--text-on-primary);
  border: none; padding: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.2s ease; cursor: pointer;
  margin-top: auto;
}
.add-to-cart-bar:hover { background: var(--primary-hover); }

/* Promo banner — warm cocoa layer for a distinct brand moment */
.promo-banner {
  background: linear-gradient(120deg, var(--surface-contrast) 0%, var(--surface-contrast-hover) 100%);
  color: var(--text-secondary); padding: 56px 24px; text-align: center;
}
.promo-banner h2 { font-size: 2rem; margin-bottom: 12px; color: var(--accent-gold); }
.promo-banner p { color: var(--text-muted); margin-bottom: 28px; }
.promo-code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08); border: 2px dashed rgba(192, 138, 62, 0.45);
  border-radius: var(--radius-sm); padding: 12px 30px;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent-gold);
}

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.testimonial {
  background: var(--surface); border-radius: var(--radius);
  padding: 26px; border: 1px solid var(--border);
}
.testimonial .stars { color: var(--accent-gold); font-size: 1rem; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.testimonial .author { font-weight: 600; color: var(--text); font-size: 0.85rem; }

/* Footer */
footer {
  background: var(--surface-contrast); color: var(--text-muted);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; margin-bottom: 40px; }
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    color: #efefef;
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.footer-brand h3 span {
    color: #ddd3cc;
}
.footer-col h4 {
    color: #f7f7f7;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 0.82rem; margin-bottom: 9px; transition: color 0.2s ease; cursor: pointer; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 22px; font-size: 0.78rem; }

/* ── SHOP PAGE ── */
.shop-header {
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg));
  padding: 56px 24px 36px; text-align: center;
}
.shop-header h1 { font-size: 2.4rem; color: var(--text); margin-bottom: 10px; }
.shop-header p { color: var(--text-muted); }
.shop-body { max-width: 1120px; margin: 0 auto; padding: 36px 24px; }
.shop-filters {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 0.83rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active { background: var(--primary); color: var(--text-on-primary); border-color: var(--primary); }
.shop-meta { margin-left: auto; font-size: 0.82rem; color: var(--text-muted); }

/* ── PRODUCT DETAIL ── */
.product-detail { max-width: 1000px; margin: 0 auto; padding: 48px 24px; }
.back-btn {
  background: none; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px;
  transition: color 0.2s ease;
}
.back-btn:hover { color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.detail-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-active);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  touch-action: pan-y;
}

.detail-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(2.5rem, 8vw, 3.25rem);
    height: clamp(2.5rem, 8vw, 3.25rem);
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgb(155 155 155 / 78%);
    color: #291207;
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    line-height: 1;
    z-index: 2;
    backdrop-filter: blur(0.4rem);
    -webkit-backdrop-filter: blur(0.4rem);
    transition: background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.gallery-arrow:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-arrow-left {
  left: clamp(0.6rem, 3vw, 1rem);
}

.gallery-arrow-right {
  right: clamp(0.6rem, 3vw, 1rem);
}

.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: clamp(0.6rem, 3vw, 1rem);
  transform: translateX(-50%);

  display: none;

  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);

  background: rgba(14, 17, 16, 0.8);
  color: var(--text);

  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  font-weight: 600;

  z-index: 2;
  backdrop-filter: blur(0.35rem);
  -webkit-backdrop-filter: blur(0.35rem);
}

.detail-info h1 { font-size: 2rem; color: var(--text); margin-bottom: 10px; }
.detail-price { font-size: 1.7rem; font-weight: 700; color: var(--primary); margin: 18px 0; }
.detail-desc { color: var(--text-muted); margin-bottom: 22px; line-height: 1.7; }
.detail-meta table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 26px; }
.detail-meta td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.detail-meta td:first-child { color: var(--text-muted); width: 40%; }
.detail-meta td:last-child { font-weight: 500; color: var(--text); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty-ctrl {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden;
}
.qty-ctrl button {
  background: none; width: 36px; height: 36px;
  font-size: 1.1rem; color: var(--text); transition: background 0.2s ease;
}
.qty-ctrl button:hover { background: var(--surface-hover); }
.qty-ctrl span { padding: 0 14px; font-weight: 600; min-width: 32px; text-align: center; color: var(--text); }
.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--success);
  background: var(--success-muted); border-radius: var(--radius-pill); padding: 5px 14px; margin-bottom: 18px;
}

/* ── CART ── */
.cart-page { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.cart-page h1 { font-size: 2rem; color: var(--text); margin-bottom: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 4.5rem; height: 4.5rem; border-radius: var(--radius-sm);
  background: var(--surface-active);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-family: 'Playfair Display', serif; color: var(--text); margin-bottom: 4px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--text); }
.cart-item-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cart-item-ctrl button {
  background: var(--bg); border-radius: 6px; width: 28px; height: 28px;
  font-size: 0.9rem; color: var(--text); border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.cart-item-ctrl button:hover { background: var(--surface-hover); border-color: var(--primary); }
.cart-item-ctrl span { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; color: var(--text); }
.remove-btn { background: none !important; color: var(--text-muted) !important; border: none !important; font-size: 1.1rem !important; }
.remove-btn:hover { color: var(--danger) !important; }

.cart-summary {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 26px;
  position: sticky; top: 88px;
}
.cart-summary h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 12px; color: var(--text-muted); }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; font-weight: 700; font-size: 1rem; color: var(--text); }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }
.coupon-row input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.85rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--bg); color: var(--text);
}
.coupon-row input::placeholder { color: var(--text-muted); }
.coupon-row input:focus { border-color: var(--primary); background: var(--surface); }
.coupon-row button {
  background: var(--surface-active); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s ease;
}
.coupon-row button:hover { border-color: var(--primary); color: var(--primary); }
.empty-cart { text-align: center; padding: 72px 24px; }
.empty-cart .emoji { font-size: 4rem; margin-bottom: 18px; }
.empty-cart h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 10px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 28px; }

/* ── CHECKOUT ── */
.checkout-page { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.checkout-page h1 { font-size: 2rem; color: var(--text); margin-bottom: 10px; }
.checkout-page > p { color: var(--text-muted); margin-bottom: 36px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.checkout-form { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 30px; }
.form-section { margin-bottom: 30px; }
.form-section h3 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group label .opt { color: var(--text-muted); font-weight: 400; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 80px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px;
  cursor: pointer; transition: all 0.2s ease;
}
.payment-option:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-muted); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option .pay-icon { font-size: 1.4rem; }
.payment-option .pay-info strong { display: block; font-size: 0.9rem; color: var(--text); }
.payment-option .pay-info span { font-size: 0.78rem; color: var(--text-muted); }
.payment-option-unavailable { opacity: 0.55; }
.payment-option-unavailable:hover { border-color: var(--border); background: none; }
.payment-option-unavailable .pay-info span { color: #9C6B2E; }
/* ── CONFIRMATION ── */
.confirm-page { max-width: 600px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.confirm-icon { font-size: 5rem; margin-bottom: 22px; }
.confirm-page h1 { font-size: 2.2rem; color: var(--text); margin-bottom: 12px; }
.confirm-page > p { color: var(--text-muted); margin-bottom: 36px; }
.confirm-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 30px; text-align: left; margin-bottom: 26px;
}
.confirm-card h3 { font-family: 'Playfair Display', serif; color: var(--text); margin-bottom: 18px; }
.confirm-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.confirm-row:last-child { border: none; }
.confirm-row span:first-child { color: var(--text-muted); }
.order-num { display: inline-block; background: var(--primary-muted); color: var(--primary); border-radius: var(--radius-sm); padding: 5px 16px; font-weight: 700; font-size: 1.1rem; margin-bottom: 22px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--surface-active); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 15px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; flex-direction: column; }
  .mobile-menu.open {
    display: flex; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px 24px;
  }
  .mobile-menu.open button {
    background: none; text-align: left; padding: 11px 0;
    font-size: 0.95rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-light);
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px 44px; }
  .hero-sweets { gap: 10px; }
  .hero-sweet-card { min-width: 92px; padding: 15px 12px; }

  .detail-img { height: 100%; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── COMPACT 2-UP PRODUCT GRID (phones) ──
   Two cards per row instead of one. Every dimension inside the card
   is scaled down together (image, type, controls, button) so the
   card reads as a deliberately compact design rather than a shrunk
   desktop card. Touch targets are kept >= 32px via padding. */
@media (max-width: 640px) {
  .shop-body,
  .section { padding-left: 14px; padding-right: 14px; }

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

  .product-card { border-radius: 14px; }
  .product-card:hover { transform: none; }

  .product-body { padding: 10px 10px 0; }

  .product-img { border-radius: 10px; margin-bottom: 8px; }

  .product-badge { top: 8px; left: 8px; padding: 3px 9px; font-size: 0.6rem; }

  .product-cat { font-size: 0.6rem; margin-bottom: 2px; letter-spacing: 0.03em; }

  .product-name {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
  }

  /* Description is the first thing to go when space is tight —
     the name + price + rating carry the card at this size. */
  .product-desc { display: none; }

  .product-price-row { margin-bottom: 6px; }
  .product-price { font-size: 0.92rem; }
  .product-rating { font-size: 0.62rem; letter-spacing: 0.5px; }

  .option-block { margin: 8px 0; }
  .card-option-label { font-size: 0.58rem; margin-bottom: 4px; }
  .sl-row { gap: 8px; row-gap: 4px; }
  .sl-pill { font-size: 0.72rem; }

  .card-qty-row { margin: 8px 0 10px; }
  .card-qty-ctrl { gap: 8px; }
  .card-qty-ctrl button {
    width: 26px; height: 26px;
    padding: 6px; /* enlarges the tap target without growing the visual box */
    background-clip: content-box;
  }
  .card-qty-ctrl .qty-val { font-size: 0.76rem; min-width: 12px; }

  .add-to-cart-bar {
    padding: 11px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    min-height: 34px;
  }
}

/* Extra-narrow phones (SE-class, ~360px and below): trim gaps and
   type another notch so two columns don't feel squeezed. */
@media (max-width: 360px) {
  .shop-body,
  .section { padding-left: 10px; padding-right: 10px; }
  .products-grid { gap: 8px; }
  .product-body { padding: 8px 8px 0; }
  .product-name { font-size: 0.74rem; }
  .product-price { font-size: 0.86rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }

/* ── HERO 2.0 — text overlaid on top of a full-bleed image, ──
   arranged so it *reads* as text-left / image-right. The <img>
   spans the entire hero; the text block sits above it (z-index)
   with a scrim gradient behind it for contrast. ── */
.hero2 {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 32px 24px 64px;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.hero2-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero2-media picture {
  display: block;
  width: 100%; height: 100%;
}
.hero2-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 78% center;
}
.hero2-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    var(--bg) 34%,
    rgba(242, 231, 216, 0.88) 46%,
    rgba(242, 231, 216, 0.35) 62%,
    rgba(242, 231, 216, 0) 78%
  );
}
.hero2-content {
  position: relative;
  z-index: 3;
  max-width: 480px;
  padding: 64px 5vw;
}
.hero2-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.hero2-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero2-content h1 em { color: var(--primary); font-style: italic; }
.hero2-content > p {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 400px; margin-bottom: 22px;
}
.hero2-stars {
  color: var(--accent-gold); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 10px;
}
.hero2-stat {
  font-weight: 600; color: var(--text); font-size: 0.95rem; margin-bottom: 16px;
}
.hero2-checks { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.hero2-checks li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
}
.hero2-checks li span.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-muted); color: var(--success);
  font-size: 0.65rem; flex-shrink: 0;
}

@media (max-width: 860px) {
  .hero2 { min-height: 620px; margin: 20px 16px 48px; align-items: flex-end; }
  .hero2-media img { object-position: center 30%; }
  .hero2-scrim {
    background: linear-gradient(
      to top,
      var(--bg) 0%,
      var(--bg) 48%,
      rgba(242, 231, 216, 0.9) 62%,
      rgba(242, 231, 216, 0.15) 82%,
      rgba(242, 231, 216, 0) 100%
    );
  }
  .hero2-content { max-width: 100%; padding: 32px 24px 40px; }
  .hero2-content > p { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero2 { min-height: 540px; }
  .hero2-content h1 { font-size: 1.7rem; }
}

.revolut{
  height: 1.5em;
  width: 1.5em;
}

/* Wave divider */
.trust-badges {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 24px;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  min-width: 0;
  flex: 1 1 0;
}
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.trust-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}