@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Outfit:wght@500;600;700&display=swap');

/* ============================================================
   Sweet Cravings Bakery — style.css
   Theme: Parisian Patisserie
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Palette: warm ivory · dusty rose · caramel gold · chocolate
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --ivory       : #fdf8f3;
  --cream       : #fffaf7;
  --rose        : #c9676e;
  --rose-light  : #f5e6e7;
  --rose-dark   : #a84d54;
  --blush       : #f0d8da;
  --caramel     : #c4956a;
  --caramel-lt  : #f5e6d3;
  --chocolate   : #3d2420;
  --mocha       : #7a5555;
  --dust        : #b89c9a;
  --petal       : #eed9d5;
  --white       : #ffffff;

  --font-display : 'Cormorant Garamond', Georgia, serif;
  --font-body    : 'DM Sans', system-ui, sans-serif;

  --nav-h  : 70px;
  --max-w  : 1200px;

  --r-sm   : 8px;
  --r-md   : 14px;
  --r-lg   : 22px;
  --r-xl   : 32px;
  --r-full : 9999px;

  --shadow-sm   : 0 2px 10px rgba(61,36,32,0.06);
  --shadow-md   : 0 4px 24px rgba(61,36,32,0.10);
  --shadow-lg   : 0 8px 40px rgba(61,36,32,0.14);
  --shadow-rose : 0 4px 20px rgba(201,103,110,0.28);

  --ease        : cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce : cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior:smooth; font-size:16px; }
body  {
  font-family: var(--font-body);
  background:  var(--ivory);
  color:       var(--chocolate);
  line-height: 1.6;
  min-height:  100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a   { text-decoration:none; color:inherit; }
ul  { list-style:none; }
button  { cursor:pointer; border:none; background:none; font-family:var(--font-body); }
input, textarea, select { font-family:var(--font-body); }

/* ── Price typography ─────────────────────────────────────── */
/* Amounts shown as clean black numerals — no bold, no colour  */
.price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  /* System font stack — uses Segoe UI on Windows, SF Pro on Mac/iOS,
     Roboto on Android: all have excellent, clean tabular numerals */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: 0;
  line-height: 1;
}
.price-sym {
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.65;
  vertical-align: baseline;
  line-height: 1;
  letter-spacing: 0;
  position: relative;
  top: -0.15em;
}
.price-num {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.01em;
  vertical-align: baseline;
}

/* Strikethrough MRP — dimmed, struck through */
.price-wrap--strike {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: currentColor;
}
/* Small — meta lines, inline mentions, summary row values */
.price-wrap--sm { font-size: 0.85rem; }
/* Large — product card price, checkout total, order total */
.price-wrap--lg { font-size: 1.05rem; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width:100%; max-width:var(--max-w);
  margin:0 auto; padding:0 20px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600; line-height:1.15; color:var(--chocolate);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { color:var(--mocha); line-height:1.75; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 26px; border-radius:var(--r-full);
  font-size:0.9rem; font-weight:500; letter-spacing:0.02em;
  transition:all 0.25s var(--ease); cursor:pointer; border:none; text-align:center;
}

.btn-primary {
  background:var(--rose); color:#fff; box-shadow:var(--shadow-rose);
}
.btn-primary:hover {
  background:var(--rose-dark); transform:translateY(-2px);
  box-shadow:0 6px 28px rgba(201,103,110,0.38);
}
.btn-primary:active { transform:translateY(0); }

.btn-outline {
  background:transparent; color:var(--rose); border:1.5px solid var(--rose);
}
.btn-outline:hover { background:var(--rose-light); transform:translateY(-2px); }

.btn-ghost {
  background: #fff; color: var(--chocolate);
  border: 1.5px solid #d1d5db;
}
.btn-ghost:hover { background: var(--blush); border-color: var(--rose); color: var(--rose); }

.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(239,68,68,0.35); }

/* ── Settings two-column layout ─────────────────────────── */
.settings-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.settings-col {
  min-width: 0;
  padding: 0 28px;
}
.settings-col:first-child {
  padding-left: 0;
  border-right: 1px solid #f0f0f5;
}
.settings-col:last-child {
  padding-right: 0;
}
@media (max-width: 820px) {
  .settings-two-col { grid-template-columns: 1fr; }
  .settings-col { padding: 0; border-right: none !important; }
  .settings-col:first-child { border-bottom: 1px solid #f0f0f5; padding-bottom: 20px; margin-bottom: 20px; }
}
/* Inside the white dashboard cards, make action buttons more distinct */
.adm-content .btn-ghost {
  background: #f3f4f6; color: #374151;
  border: 1.5px solid #d1d5db;
  font-weight: 600;
}
.adm-content .btn-ghost:hover {
  background: var(--blush); border-color: var(--rose); color: var(--rose);
}
.adm-content .btn-primary {
  box-shadow: 0 2px 10px rgba(201,103,110,0.3);
}
/* Delete buttons inside action columns — softer red so they don't overpower */
.admin-product-actions .btn-danger,
.review-actions .btn-danger,
.coupon-actions .btn-danger {
  background: #fff1f2;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}
.admin-product-actions .btn-danger:hover,
.review-actions .btn-danger:hover,
.coupon-actions .btn-danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
  transform: none;
}

.btn-sm    { padding:7px 16px; font-size:0.82rem; }
.btn-lg    { padding:14px 36px; font-size:1rem; }
.btn-block { width:100%; display:flex; }
.btn:disabled { opacity:0.5; cursor:not-allowed; pointer-events:none; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position:sticky; top:0; z-index:100;
  height:var(--nav-h);
  background:rgba(253,248,243,0.96);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--petal);
  box-shadow:var(--shadow-sm);
}
.navbar .container {
  height:100%; display:flex;
  align-items:center; justify-content:space-between; gap:16px;
}

.nav-logo { display:flex; flex-direction:column; line-height:1; }
.nav-logo-text    { font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:var(--rose); }
.nav-logo-tagline { font-size:0.65rem; color:var(--dust); letter-spacing:0.1em; text-transform:uppercase; margin-top:2px; }

.nav-links { display:flex; align-items:center; gap:28px; }
.nav-links a {
  font-size:0.88rem; font-weight:500; color:var(--mocha);
  letter-spacing:0.02em; position:relative; padding-bottom:3px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1.5px; background:var(--rose);
  transition:width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color:var(--rose); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

.nav-right { display:flex; align-items:center; gap:10px; }

.nav-cart {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background:var(--cream); border:1.5px solid var(--petal);
  color:var(--chocolate); font-size:1.1rem;
  transition:all 0.2s; text-decoration:none;
}
.nav-cart:hover { background:var(--blush); border-color:var(--rose); color:var(--rose); }

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

.nav-toggle {
  display:none; flex-direction:column; gap:5px;
  width:28px; cursor:pointer; padding:4px;
  background:none; border:none;
}
.nav-toggle span {
  display:block; width:100%; height:2px;
  background:var(--chocolate); border-radius:2px; transition:all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container {
  position:fixed; bottom:24px; right:24px; z-index:9999;
  display:flex; flex-direction:column; gap:10px; pointer-events:none;
}
.toast {
  display:flex; align-items:center; gap:10px;
  padding:12px 18px; background:var(--chocolate); color:white;
  border-radius:var(--r-md); font-size:0.87rem; font-weight:500;
  box-shadow:var(--shadow-lg);
  animation:toastIn 0.35s var(--ease-bounce) both;
  pointer-events:auto; max-width:320px;
}
.toast.success { background:#1c4a11; border-left:4px solid #84cc16; }
.toast.error   { background:#7f1d1d; border-left:4px solid #f87171; }
.toast.info    { background:var(--rose-dark); border-left:4px solid var(--rose); }
.toast.leaving { animation:toastOut 0.3s var(--ease) forwards; }

@keyframes toastIn  { from{opacity:0;transform:translateX(110%)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { from{opacity:1;transform:translateX(0)}   to{opacity:0;transform:translateX(110%)} }

/* ── Page Header ─────────────────────────────────────────── */
.page-header { padding:48px 0 28px; text-align:center; }
.page-header h1 { margin-bottom:8px; }
.page-header p  { font-size:1rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding:64px 0; }
.section-header { text-align:center; margin-bottom:44px; }
.section-label {
  display:inline-block; font-size:0.72rem; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--caramel); font-weight:600; margin-bottom:10px;
}
.section-header h2 { margin-bottom:12px; }
.section-header p  { font-size:0.97rem; max-width:480px; margin:0 auto; }

/* ── Hero (index.html) ───────────────────────────────────── */
.hero {
  position:relative;
  min-height:calc(100vh - var(--nav-h));
  display:flex; align-items:center; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(240,216,218,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(245,230,211,0.45) 0%, transparent 45%);
}
/* Two-column layout: text left, image right */
.hero-container {
  display:flex; align-items:stretch; justify-content:space-between;
  gap:48px; width:100%;
}
.hero-content {
  position:relative; z-index:1; flex:1; min-width:0;
  max-width:540px;
  animation:heroIn 0.9s var(--ease) both;
  display:flex; flex-direction:column; justify-content:center;
}

/* ── Rounded rectangle hero frame — fills full right column ── */
.hero-img-wrap {
  position:relative; z-index:1;
  flex:0 0 min(46vw, 500px);
  min-height:520px;
  animation:heroIn 1.1s var(--ease) both;
  display:flex; flex-direction:column;
}
.hero-img-frame {
  position:relative;
  width:100%; flex:1;
  border-radius:28px;
  overflow:hidden;
  box-shadow:
    0 40px 80px rgba(61,32,32,0.20),
    0 12px 32px rgba(201,103,110,0.16),
    0 0 0 1px rgba(201,103,110,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5);
  background:var(--blush);
  min-height:480px;
}

/* Each slide — absolutely fills the frame */
.hero-slide {
  position:absolute; inset:0;
  width:100%; height:100%;
  background-size:cover;
  background-position:center;
  background-color:var(--blush);
  display:flex; align-items:center; justify-content:center;
  opacity:0;
  z-index:0;
  will-change:transform,opacity;
}
.hero-slide.active {
  opacity:1;
  z-index:2;
}
.hero-slide.exit {
  z-index:1;
}

/* ── Transitions ─────────────────────────────────────── */
/* Transition: zoom-fade */
.hero-slide.t-zoomfade.active {
  animation:hsZoomIn 1.1s var(--ease) forwards;
}
.hero-slide.t-zoomfade.exit {
  animation:hsZoomOut 0.9s var(--ease) forwards;
}
@keyframes hsZoomIn  { from{opacity:0;transform:scale(1.12)} to{opacity:1;transform:scale(1)} }
@keyframes hsZoomOut { from{opacity:1;transform:scale(1)}    to{opacity:0;transform:scale(0.9)} }

/* Transition: spin-reveal (3D Y-axis) */
.hero-slide.t-spin.active {
  animation:hsSpinIn 0.85s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-slide.t-spin.exit {
  animation:hsSpinOut 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes hsSpinIn  { from{opacity:0;transform:perspective(600px) rotateY(-90deg) scale(.8)} to{opacity:1;transform:perspective(600px) rotateY(0deg) scale(1)} }
@keyframes hsSpinOut { from{opacity:1;transform:perspective(600px) rotateY(0deg) scale(1)}   to{opacity:0;transform:perspective(600px) rotateY(90deg) scale(.8)} }

/* Transition: slide-up */
.hero-slide.t-slideup.active {
  animation:hsSlideUpIn 0.9s var(--ease) forwards;
}
.hero-slide.t-slideup.exit {
  animation:hsSlideUpOut 0.8s var(--ease) forwards;
}
@keyframes hsSlideUpIn  { from{opacity:0;transform:translateY(60px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes hsSlideUpOut { from{opacity:1;transform:translateY(0) scale(1)}     to{opacity:0;transform:translateY(-60px) scale(.97)} }

/* Transition: diagonal wipe */
.hero-slide.t-diag.active {
  animation:hsDiagIn 1s var(--ease) forwards;
}
.hero-slide.t-diag.exit {
  animation:hsDiagOut 0.85s var(--ease) forwards;
}
@keyframes hsDiagIn  { from{opacity:0;transform:translate(-40px,40px) scale(1.08)} to{opacity:1;transform:translate(0,0) scale(1)} }
@keyframes hsDiagOut { from{opacity:1;transform:translate(0,0) scale(1)} to{opacity:0;transform:translate(40px,-40px) scale(.95)} }

/* ── Trending label badge ────────────────────────────── */
.hero-trending-badge {
  display:none; /* badge moved inline to slide overlay */
}
.hero-trending-badge.visible {
  display:none;
}

/* ── Trending title overlay (appears above frame) ───── */
.hero-trending-label {
  position:absolute;
  top:16px; left:16px;
  display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(201,103,110,0.25);
  border-radius:var(--r-full);
  padding:6px 14px 6px 10px;
  font-size:0.72rem; font-weight:700;
  color:var(--rose);
  letter-spacing:0.1em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 4px 20px rgba(0,0,0,0.12);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.5s ease, transform 0.5s ease;
  transform:translateY(-8px);
  z-index:20;
}
.hero-trending-label.visible {
  opacity:1;
  transform:translateY(0);
}

/* ── Dot indicators ─────────────────────────────────── */
.hero-dots {
  display:flex; gap:6px; align-items:center; justify-content:center;
  margin-top:14px;
  z-index:10;
}
.hero-dot {
  width:7px; height:7px;
  border-radius:var(--r-full);
  background:var(--petal);
  transition:background 0.3s, width 0.3s;
  cursor:pointer;
}
.hero-dot.active {
  background:var(--rose);
  width:22px;
}

/* Cake name label */
.hero-cake-name {
  position:absolute;
  bottom:0; left:0; right:0;
  background:linear-gradient(to top, rgba(30,10,10,0.72) 0%, rgba(30,10,10,0.3) 60%, transparent 100%);
  color:#fff;
  font-size:1.15rem;
  font-weight:600;
  font-family:var(--font-display);
  font-style:italic;
  letter-spacing:0.02em;
  padding:32px 20px 18px;
  opacity:0;
  transition:opacity 0.5s ease 0.5s;
  pointer-events:none;
  z-index:5;
  display:flex; align-items:flex-end;
}
.hero-slide.active .hero-cake-name { opacity:1; }

.hero-img-placeholder {
  font-size:clamp(5rem,12vw,9rem);
  line-height:1; user-select:none; pointer-events:none;
  color:var(--rose);
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--caramel-lt); color:var(--caramel);
  font-size:0.76rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase;
  padding:6px 14px; border-radius:var(--r-full); margin-bottom:20px;
}
.hero h1 {
  font-size:clamp(2.8rem,6vw,5rem); font-weight:700;
  line-height:1.05; margin-bottom:20px;
}
.hero h1 em { color:var(--rose); font-style:italic; }
.hero-desc  { font-size:1.05rem; max-width:460px; margin-bottom:34px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.hero-stats {
  display:flex; gap:28px; flex-wrap:wrap;
  margin-top:48px; padding-top:28px; border-top:1px solid var(--petal);
}
.hero-stat-num {
  font-family:var(--font-display); font-size:1.9rem; font-weight:700;
  color:var(--rose); line-height:1; display:block;
}
.hero-stat-label { font-size:0.74rem; color:var(--dust); text-transform:uppercase; letter-spacing:0.08em; }

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

/* ── Category Marquee / Highlight Strip ──────────────────── */
.highlight-strip {
  background:var(--rose); color:white;
  padding:12px 0; overflow:hidden; white-space:nowrap;
}
.strip-inner {
  display:inline-flex; gap:48px;
  animation:marquee 22s linear infinite;
  font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; font-weight:500;
}
.strip-inner span { opacity:0.75; }
.strip-inner strong { opacity:1; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Filter Bar (products.html) ──────────────────────────── */
.filter-bar { padding:8px 0 20px; }
.filter-search-row {
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:16px;
}
.search-wrap { flex:1; min-width:200px; position:relative; }
.search-icon {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:var(--dust); pointer-events:none; font-size:1rem;
}
.search-input {
  width:100%; height:44px; padding:0 44px;
  border:1.5px solid var(--petal); border-radius:var(--r-full);
  background:var(--cream); font-size:0.9rem; color:var(--chocolate);
  outline:none; transition:border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color:var(--dust); }
.search-input:focus {
  border-color:var(--rose); box-shadow:0 0 0 3px rgba(201,103,110,0.12);
}

.category-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.cat-tab {
  padding:7px 18px; border-radius:var(--r-full); border:1.5px solid var(--petal);
  background:var(--cream); font-size:0.83rem; font-weight:500; color:var(--mocha);
  cursor:pointer; transition:all 0.2s; white-space:nowrap;
}
.cat-tab:hover  { border-color:var(--rose); color:var(--rose); background:var(--rose-light); }
.cat-tab.active { background:var(--rose); border-color:var(--rose); color:white; }

.results-count { font-size:0.82rem; color:var(--dust); margin-bottom:14px; }

/* ── Product Grid ────────────────────────────────────────── */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(255px,1fr));
  gap:24px;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background:var(--cream); border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--petal);
  transition:transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  display:flex; flex-direction:column;
  animation:cardIn 0.5s var(--ease) both;
}
.product-card:hover { transform:translateY(-7px); box-shadow:var(--shadow-lg); }

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

.product-badge {
  position:absolute; top:12px; left:12px;
  padding:4px 10px; border-radius:var(--r-full);
  font-size:0.7rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  background:var(--rose); color:white; box-shadow:0 2px 8px rgba(201,103,110,0.45);
}

.product-body { padding:18px; display:flex; flex-direction:column; gap:5px; flex:1; }
.product-category {
  font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--caramel); font-weight:600;
}
.product-name {
  font-family:var(--font-display); font-size:1.22rem; font-weight:600;
  color:var(--chocolate); line-height:1.22;
}
.product-desc {
  font-size:0.82rem; color:var(--dust); line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden;
}
.product-footer {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:auto;          /* pushes footer to card bottom regardless of content height */
  padding-top:14px; border-top:1px solid var(--petal);
}
.product-price {
  font-size:1.05rem; font-weight:400; line-height:1;
}
.add-to-cart-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--rose); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.22s var(--ease-bounce);
  box-shadow: 0 2px 10px rgba(201,103,110,0.28);
}
.add-to-cart-btn:hover {
  background: var(--rose-dark); transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(201,103,110,0.42);
}
.add-to-cart-btn.added {
  background: #166534; box-shadow: 0 2px 10px rgba(22,101,52,0.3);
  transform: none; font-size: 0.8rem;
}

@keyframes cardIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
/* ── Delivery Timing Badge ─────────────────────────────────── */
.delivery-badge {
  position:absolute; bottom:10px; right:10px;
  padding:4px 9px; border-radius:var(--r-full);
  font-size:0.66rem; font-weight:700; letter-spacing:0.04em;
  background:rgba(61,36,32,0.72); color:#fffaf7;
  backdrop-filter:blur(4px);
  white-space:nowrap;
}

/* ── Customise Modal Chips ─────────────────────────────────── */
.cm-section { margin-bottom:18px; }
.cm-label {
  font-size:0.78rem; font-weight:700; color:var(--chocolate);
  text-transform:uppercase; letter-spacing:0.08em;
  margin-bottom:10px;
}
.cm-chips {
  display:flex; flex-wrap:wrap; gap:8px;
}
.cm-chip {
  padding:7px 15px; border-radius:var(--r-full);
  border:1.5px solid var(--petal); background:var(--ivory);
  font-size:0.82rem; font-weight:500; color:var(--mocha);
  cursor:pointer; transition:all 0.18s;
}
.cm-chip:hover { border-color:var(--rose); color:var(--rose); }
.cm-chip.active {
  background:var(--rose); border-color:var(--rose);
  color:#fff; font-weight:700;
}
#cm-add-btn:hover { background:var(--rose-dark); transform:translateY(-1px); }


/* ── Empty State ─────────────────────────────────────────── */
.empty-state { grid-column:1/-1; text-align:center; padding:80px 20px; }
.empty-state-icon { font-size:3.8rem; margin-bottom:16px; opacity:0.45; }
.empty-state h3   { color:var(--mocha); margin-bottom:8px; }
.empty-state p    { font-size:0.9rem; }

/* ── Cart Page ───────────────────────────────────────────── */
.cart-layout {
  display:grid; grid-template-columns:1fr;
  gap:28px; padding:32px 0 64px;
}
.cart-section-title {
  font-family:var(--font-display); font-size:1.35rem; font-weight:600;
  margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--petal);
}
.cart-item {
  display:flex; gap:16px; padding:18px;
  background:var(--cream); border:1px solid var(--petal);
  border-radius:var(--r-md); margin-bottom:12px; transition:box-shadow 0.2s;
}
.cart-item:hover { box-shadow:var(--shadow-sm); }
.cart-item-img { width:80px; height:80px; border-radius:var(--r-sm); object-fit:cover; flex-shrink:0; }
.cart-item-details { flex:1; min-width:0; }
.cart-item-name {
  font-family:var(--font-display); font-size:1.1rem; font-weight:600;
  margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cart-item-cat {
  font-size:0.72rem; color:var(--caramel);
  text-transform:uppercase; letter-spacing:0.08em; margin-bottom:10px;
}
.cart-item-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.qty-btn {
  width:28px; height:28px; border-radius:50%;
  border:1.5px solid var(--petal); background:var(--ivory);
  font-size:1rem; color:var(--chocolate);
  display:flex; align-items:center; justify-content:center;
  transition:all 0.2s; cursor:pointer;
}
.qty-btn:hover { border-color:var(--rose); background:var(--rose-light); color:var(--rose); }
.qty-value { min-width:22px; text-align:center; font-weight:600; font-size:0.95rem; }

.cart-item-remove {
  font-size:0.78rem; color:var(--dust); cursor:pointer;
  transition:color 0.2s; background:none; border:none; padding:0; margin-left:2px;
}
.cart-item-remove:hover { color:#ef4444; }

.cart-item-price-col {
  text-align:right; display:flex; flex-direction:column;
  justify-content:space-between; flex-shrink:0;
}
.cart-item-unit-price  { font-size:0.78rem; color:var(--dust); }
.cart-item-total-price { font-size:1rem; font-weight:400; }

/* Cart Summary Sidebar */
.cart-summary {
  background:var(--cream); border:1px solid var(--petal);
  border-radius:var(--r-lg); padding:24px;
  height:fit-content; position:sticky; top:calc(var(--nav-h) + 16px);
}
.summary-title  { font-family:var(--font-display); font-size:1.35rem; margin-bottom:20px; }
.summary-rows   { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.summary-row    {
  display:flex; justify-content:space-between; align-items:center;
  font-size:0.9rem; color:var(--mocha);
}
.summary-row.total {
  padding-top:12px; border-top:1px solid var(--petal);
  font-weight:600; font-size:1rem; color:var(--chocolate);
}
.summary-val { font-size:1rem; font-weight:400; }

.cart-empty-msg { text-align:center; padding:60px 0; }
.cart-empty-msg .icon { font-size:3.5rem; margin-bottom:14px; opacity:0.4; display:block; }

/* ── Checkout Page ───────────────────────────────────────── */
.checkout-layout {
  display:grid; grid-template-columns:1fr;
  gap:28px; padding:32px 0 64px;
}
.form-section {
  background:var(--cream); border:1px solid var(--petal);
  border-radius:var(--r-lg); padding:28px;
}
.form-section-title {
  font-family:var(--font-display); font-size:1.35rem;
  margin-bottom:22px; padding-bottom:14px; border-bottom:1px solid var(--petal);
}
.form-row   { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:18px; }
.form-label {
  display:block; font-size:0.82rem; font-weight:600;
  color:var(--mocha); margin-bottom:7px; letter-spacing:0.02em;
}
.form-label .req { color:var(--rose); margin-left:2px; }
.form-control {
  width:100%; padding:11px 15px;
  border:1.5px solid var(--petal); border-radius:var(--r-sm);
  background:var(--ivory); font-size:0.92rem; color:var(--chocolate);
  outline:none; transition:border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color:var(--rose); box-shadow:0 0 0 3px rgba(201,103,110,0.10);
}
.form-control::placeholder { color:var(--dust); }
.form-control.is-invalid   { border-color:#ef4444; }
textarea.form-control      { resize:vertical; min-height:90px; }

select.form-control {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b89c9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
  padding-right:36px; cursor:pointer;
}

.form-error       { font-size:0.77rem; color:#ef4444; margin-top:4px; display:none; }
.form-error.show  { display:block; }

/* Order Success */
.order-success { display:none; text-align:center; padding:60px 20px; }
.order-success.show { display:block; animation:successIn 0.6s var(--ease-bounce) both; }
.success-icon  { font-size:4rem; margin-bottom:16px; display:block; }
.order-success h2 { color:var(--rose); margin-bottom:10px; }
.order-id-badge {
  display:inline-block; background:var(--rose-light); color:var(--rose-dark);
  font-size:0.84rem; font-weight:700; padding:7px 16px; border-radius:var(--r-full);
  margin:12px 0 24px; letter-spacing:0.05em; font-family:monospace;
}
@keyframes successIn { from{opacity:0;transform:scale(0.88)} to{opacity:1;transform:scale(1)} }

/* Order Summary Sidebar (Checkout) */
#summary-side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  height: fit-content;
}
.order-summary-card {
  background:var(--cream); border:1px solid var(--petal);
  border-radius:var(--r-lg); padding:24px;
  height:fit-content;
}
.order-summary-title { font-family:var(--font-display); font-size:1.35rem; margin-bottom:18px; }
.order-items-list {
  display:flex; flex-direction:column; gap:10px;
  margin-bottom:16px; max-height:280px; overflow-y:auto; scrollbar-width:thin;
}
.order-item-row   { display:flex; gap:12px; align-items:center; }
.order-item-img   { width:52px; height:52px; border-radius:var(--r-sm); object-fit:cover; flex-shrink:0; }
.order-item-info  { flex:1; min-width:0; }
.order-item-name  { font-size:0.88rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.order-item-qty   { font-size:0.77rem; color:var(--dust); }
.order-item-price { font-size:0.9rem; font-weight:400; flex-shrink:0; }

.order-summary-divider { height:1px; background:var(--petal); margin:14px 0; }
.order-total-row {
  display:flex; justify-content:space-between; align-items:baseline; font-weight:600;
}
.order-total-label { font-size:0.95rem; }
.order-total-val   { font-size:1.05rem; font-weight:400; }

/* ── Confirmation Page ───────────────────────────────────── */
.confirmation-wrap {
  min-height:calc(100vh - var(--nav-h));
  display:flex; align-items:center; justify-content:center;
  padding:40px 20px;
}
.confirmation-card {
  background:var(--cream); border:1px solid var(--petal);
  border-radius:var(--r-xl); padding:48px 40px;
  width:100%; max-width:520px;
  box-shadow:var(--shadow-md); text-align:center;
  animation:successIn 0.6s var(--ease-bounce) both;
}
.confirmation-icon  { font-size:4rem; margin-bottom:16px; display:block; }
.confirmation-card h2 { color:var(--rose); margin-bottom:8px; }
.confirmation-card > p { margin-bottom:24px; }
.confirmation-details {
  background:var(--ivory); border:1px solid var(--petal);
  border-radius:var(--r-md); padding:18px; text-align:left; margin:20px 0;
}
.confirmation-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:0.87rem; padding:6px 0; border-bottom:1px solid var(--petal);
}
.confirmation-row:last-child { border-bottom:none; }
.confirmation-row span:first-child { color:var(--dust); }
.confirmation-row span:last-child  { font-weight:600; color:var(--chocolate); }
.confirmation-total { font-family:var(--font-display); font-size:1.3rem; color:var(--rose); }


/* ═══════════════════════════════════════════════════
   FOOTER — All frontend pages
   ═══════════════════════════════════════════════════ */

.footer {
  background: var(--chocolate);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  margin-top: auto;
}

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

/* Brand column */
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo-text  { color: #fff; font-size: 1.3rem; }
.footer-brand .nav-logo-tagline { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-brand p {
  font-size: 0.86rem; line-height: 1.7;
  color: rgba(255,255,255,0.55); margin-top: 14px;
}

/* Link columns */
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-links ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links li {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-links li:hover { color: rgba(255,255,255,0.9); }
.footer-links a {
  color: inherit; text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--rose); }

/* Bottom bar */
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 18px 0;
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { max-width: 100%; }
}
@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer { padding: 40px 0 0; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
}

/* ═══════════════════════════════════════════════════
   FRONTEND MOBILE — Comprehensive responsive fixes
   ═══════════════════════════════════════════════════ */

/* ── 768px tablet ─────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar */
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column;
    align-items: stretch; padding: 8px 0 16px;
    border-bottom: 1px solid var(--petal);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 500; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; font-size: 0.95rem; border-bottom: 1px solid var(--petal); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding: 32px 0 24px; }
  .hero-container { flex-direction: column; align-items: stretch; text-align: center; gap: 28px; }
  .hero-content { max-width: 100%; }
  .hero-img-wrap { flex: none; width: 100%; min-height: 280px; }
  .hero-img-frame { min-height: 260px; border-radius: 20px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-desc { font-size: 0.92rem; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; margin-top: 28px; }

  /* Product grid — always 2 cols on mobile portrait */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 1rem; }
  .product-footer { padding-top: 10px; flex-wrap: wrap; gap: 6px; }
  .add-to-cart-btn { width: 100%; justify-content: center; }

  /* Filter bar */
  .search-wrap { min-width: 100%; }
  .filter-search-row { flex-direction: column; align-items: stretch; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }

  /* Sections */
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: 1.6rem; }
  .section { padding: 48px 0; }

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

  /* Cart */
  .cart-item { flex-wrap: wrap; gap: 10px; }
  .cart-qty { justify-content: flex-start; }

  /* Contact section */
  section[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Orders page */
  .order-card { border-radius: 12px; }
  .order-actions-row { flex-wrap: wrap; gap: 8px; }
  .order-actions-row .btn { flex: 1; min-width: 120px; }
  .timeline { gap: 0; }
  .tl-step { flex: 1; }
  .tl-label { font-size: 0.62rem; }

}

/* ── 480px mobile ─────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 58px; }

  .hero { padding: 28px 0 24px; }
  .hero-img-wrap { width: 100%; min-height: 240px; }
  .hero-img-frame { min-height: 220px; border-radius: 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stats { gap: 14px; padding-top: 18px; }

  /* Products — 2 cols forced */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px 10px 12px; gap: 3px; }
  .product-name { font-size: 0.9rem; }
  .product-price { font-size: 0.88rem; }
  .add-to-cart-btn { font-size: 0.72rem; padding: 7px 10px; }

  /* Buttons */
  .btn { padding: 10px 18px; font-size: 0.86rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }


  /* CTA */
  .cta-section h2, section[style*="background:var(--rose)"] h2 { font-size: 1.4rem; }

  /* Orders page */
  .section { padding: 32px 0; }

  /* Checkout */
  .payment-method-grid { grid-template-columns: 1fr 1fr; }
  .checkout-summary { padding: 16px; }

  /* Cart */
  .cart-item-img { width: 56px; height: 56px; }
  .qty-btn { width: 28px; height: 28px; font-size: 0.85rem; }

  /* Product card footer — stack vertically on very small */
  .product-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .add-to-cart-btn { width: 100%; }
}

/* ── 360px (small Android phones) ───────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .products-grid { gap: 8px; }
  .product-body { padding: 8px; }
  .product-name { font-size: 0.82rem; }
  .product-price { font-size: 0.8rem; }
  .add-to-cart-btn { font-size: 0.68rem; padding: 6px 8px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-img-wrap { width: 100%; min-height: 200px; }
  .hero-img-frame { min-height: 190px; }
  .nav-logo-text { font-size: 1.1rem; }
  .nav-cart-btn { padding: 6px 12px; font-size: 0.78rem; }
}
