/* Bakers Bites — storefront v2 (professional retail) */
:root {
  --teal: #0D4A50;
  --teal-dark: #08343A;
  --teal-tint: #EAF2F2;
  --gold: #C28A47;
  --gold-dark: #A96F26;
  --cream: #F5EEDC;
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #e7e2d8;
  --text: #23272b;
  --muted: #6f7378;
  --ok: #2e7d43;
  --bad: #b3402e;
  /* aliases used by older pages */
  --brand: #0D4A50;
  --brand-dark: #08343A;
  --accent: #C28A47;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; color: #1b2124; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16.5px; font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-head-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; display: block; background: none; padding: 0; border-radius: 0; }
.main-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: #3a4045; font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: 8px; transition: all .15s;
}
.main-nav a:hover { background: var(--teal-tint); color: var(--teal); text-decoration: none; }
.main-nav a.active { color: var(--teal); background: var(--teal-tint); font-weight: 600; }
.main-nav .cart-link {
  background: var(--teal); color: #fff !important; font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
}
.main-nav .cart-link:hover { background: var(--teal-dark); }

/* ---------- Layout ---------- */
.site-main { max-width: 1120px; margin: 0 auto; padding: 34px 24px 80px; min-height: 60vh; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
  background: linear-gradient(180deg, #FBF7EC, #F5EEDC);
  border: 1px solid var(--line);
  border-radius: 20px; padding: 56px 52px; margin-bottom: 56px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 40px 30px; } }
.hero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.hero h1 { font-size: 40px; margin: 0 0 16px; color: var(--teal-dark); }
@media (max-width: 640px) { .hero h1 { font-size: 30px; } }
.hero p { font-size: 17px; color: #444a50; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 40px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 45px rgba(13, 74, 80, 0.10);
}
.hero-art img { max-width: 100%; max-height: 260px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: #fff;
  padding: 12px 26px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit; transition: all .15s;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-dark); }
.btn.dark { background: var(--teal); color: #fff; }
.btn.small { padding: 8px 15px; font-size: 13.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn.ghost:hover { background: var(--teal-tint); color: var(--teal); transform: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Feature strip ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 56px; }
.perk {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: box-shadow .2s;
}
.perk:hover { box-shadow: 0 8px 24px rgba(13, 74, 80, 0.07); }
.perk .ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.perk .ico svg { width: 22px; height: 22px; stroke: var(--teal); }
.perk h3 { margin: 0 0 5px; }
.perk p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: all .2s;
}
.product-card:hover { box-shadow: 0 14px 34px rgba(13, 74, 80, 0.10); transform: translateY(-2px); }
.product-card .thumb {
  background: linear-gradient(180deg, #FBF7EC, #F1E7D0);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.product-card .thumb img.ph { max-height: 62%; max-width: 62%; opacity: .9; }
.product-card .thumb img.photo { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.product-card h3 { margin: 0; font-size: 15.5px; }
.product-card h3 a { color: inherit; }
.product-card .desc {
  font-size: 13.5px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--teal-dark); }
.gst-note { font-size: 11.5px; color: var(--muted); font-weight: 400; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.badge.stock-ok { background: #e3f1e6; color: var(--ok); }
.badge.stock-low { background: #faf0d8; color: #8a6414; }
.badge.stock-out { background: #f8e5e1; color: var(--bad); }
.badge.status { background: #eef0f2; color: #555; }

.filter-row { display: flex; gap: 8px; margin: 0 0 26px; flex-wrap: wrap; }
.filter-row a {
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 500; color: #3a4045;
}
.filter-row a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.filter-row a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Tables (cart, account) ---------- */
table.cart-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px;
}
table.cart-table th {
  padding: 11px 15px; text-align: left; background: #faf8f3;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
table.cart-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); }
table.cart-table tr:last-child td { border-bottom: none; }
table.cart-table td.r, table.cart-table th.r { text-align: right; }
.qty-input { width: 76px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }

/* ---------- Panels & forms ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 22px;
}
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: #3a4045; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d7d2c8; border-radius: 9px;
  font-size: 14.5px; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 74, 80, 0.12);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .checkout-layout { grid-template-columns: 1fr; } }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary-line.total { border-top: 2px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--teal-dark); }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s;
}
.radio-card:hover { border-color: var(--teal); }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.radio-card input { margin-top: 4px; accent-color: var(--teal); }
.radio-card .lbl { font-weight: 600; font-size: 14.5px; }
.radio-card .sub { font-size: 13px; color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.flash-success { background: #e3f1e6; color: var(--ok); }
.flash-error { background: #f8e5e1; color: var(--bad); }

.loyalty-box {
  background: #FBF6E7; border: 1px solid #ecd9ae; border-radius: 12px;
  padding: 15px 17px; margin-bottom: 16px; font-size: 14px;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--teal-dark); color: #cfdcdc; padding: 44px 24px;
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  font-size: 14px; line-height: 1.8;
}
.site-foot strong { color: #fff; font-size: 15px; }
.site-foot a { color: #a8d0d0; }
.site-foot a:hover { color: #fff; }
.site-foot .muted { color: #8fb0b0; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs a {
  padding: 9px 22px; border-radius: 10px; background: #f1ede3; font-size: 14px; font-weight: 500; color: #3a4045;
}
.tabs a:hover { text-decoration: none; }
.tabs a.active { background: var(--teal); color: #fff; font-weight: 600; }

/* ---------- Detail page thumb ---------- */
.detail-thumb {
  background: linear-gradient(180deg, #FBF7EC, #F1E7D0); border: 1px solid var(--line);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  min-height: 340px; padding: 40px;
}
.detail-thumb img { max-width: 70%; max-height: 260px; opacity: .92; }

/* ---------- Section headers ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 20px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head a { font-size: 14px; font-weight: 500; }

/* ---------- Specials highlight box ---------- */
.specials-box {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  border-radius: 16px; padding: 24px 26px; margin-bottom: 34px; color: #fff;
}
.specials-head {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #F0D9B8; margin-bottom: 14px;
}
.specials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.special {
  display: block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 15px 17px; color: #fff; text-decoration: none; transition: all .15s;
}
a.special:hover { background: rgba(255,255,255,0.15); text-decoration: none; transform: translateY(-1px); }
.special-badge {
  display: inline-block; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .02em;
}
.special-title { font-weight: 700; font-size: 15.5px; }
.special-body { font-size: 13px; color: #d7e4e4; margin-top: 4px; }

/* ---------- Promo banner carousel ---------- */
.promo-carousel { position: relative; margin-bottom: 34px; }
.promo { display: none; }
.promo.on {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden; border-radius: 22px; padding: 42px 48px 48px;
  animation: promoFade .5s ease;
}
@keyframes promoFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .promo.on { grid-template-columns: 1fr; padding: 32px 26px 40px; }
  .promo-offer { font-size: 34px !important; }
}

/* Teal & gold variant */
.promo-teal {
  background:
    radial-gradient(circle at 90% -10%, rgba(194,138,71,.35), transparent 50%),
    linear-gradient(115deg, #062A2F 0%, #0D4A50 70%, #11626B 100%);
  color: #fff; box-shadow: 0 22px 50px rgba(8, 52, 58, .3);
}
.promo-teal .promo-paws {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 13c-2.2 0-4.5 1.6-4.5 3.7 0 1.3 1 2.3 2.3 2.3.8 0 1.5-.5 2.2-.5s1.4.5 2.2.5c1.3 0 2.3-1 2.3-2.3C16.5 14.6 14.2 13 12 13zm-5.2-2.1c.9-.3 1.4-1.5 1-2.6-.4-1.1-1.4-1.8-2.3-1.5-.9.3-1.4 1.5-1 2.6.4 1.1 1.4 1.8 2.3 1.5zm10.4 0c.9.3 1.9-.4 2.3-1.5.4-1.1-.1-2.3-1-2.6-.9-.3-1.9.4-2.3 1.5-.4 1.1.1 2.3 1 2.6zM9.8 9.9c1-.2 1.6-1.4 1.4-2.7-.2-1.3-1.2-2.2-2.2-2-1 .2-1.6 1.4-1.4 2.7.2 1.3 1.2 2.2 2.2 2zm4.4 0c1 .2 2-.7 2.2-2 .2-1.3-.4-2.5-1.4-2.7-1-.2-2 .7-2.2 2-.2 1.3.4 2.5 1.4 2.7z'/%3E%3C/svg%3E");
}
.promo-teal .promo-kick {
  display: inline-block; background: rgba(194,138,71,.18); border: 1px solid rgba(194,138,71,.5);
  color: #EFC98F; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
.promo-teal .promo-offer {
  font-size: 48px; font-weight: 900; line-height: 1.02; letter-spacing: -.015em;
  text-transform: uppercase; margin: 0 0 12px;
  background: linear-gradient(100deg, #FFFFFF 20%, #E8BE7E 60%, #F2D9AC 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo-teal .promo-body { font-size: 16px; color: #BFD6D6; max-width: 460px; margin: 0 0 24px; }
.promo-teal .promo-btn {
  display: inline-block; background: linear-gradient(180deg, #D9A963, #C28A47); color: #08343A;
  font-weight: 800; font-size: 15.5px; padding: 14px 32px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(194,138,71,.4);
}
.promo-teal .promo-ends {
  display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600;
  color: #BFD6D6; background: rgba(255,255,255,.07); padding: 9px 16px; border-radius: 999px;
}

/* Light ribbon variant */
.promo-light {
  background: linear-gradient(115deg, #FDFAF2, #F5EEDC 70%);
  border: 1.5px solid #E4D6B8; color: #1b2124; box-shadow: 0 18px 40px rgba(13,74,80,.10);
}
.promo .promo-ribbon {
  position: absolute; top: 24px; left: -44px; transform: rotate(-45deg);
  background: linear-gradient(180deg, #C0392B, #A93226); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  padding: 7px 58px; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 2;
}
.promo-light .promo-copy { padding-left: 26px; }
.promo-light .promo-kick { display: inline-block; color: #A96F26; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.promo-light .promo-offer { font-size: 46px; font-weight: 900; line-height: 1.0; letter-spacing: -.015em; text-transform: uppercase; margin: 0 0 12px; color: #0D4A50; }
.promo-light .promo-body { font-size: 16px; color: #57606a; max-width: 460px; margin: 0 0 24px; }
.promo-light .promo-btn { display: inline-block; background: #0D4A50; color: #fff; font-weight: 800; font-size: 15.5px; padding: 14px 32px; border-radius: 12px; text-decoration: none; }
.promo-light .promo-ends { font-size: 13.5px; font-weight: 700; color: #A93226; }

/* Shared bits */
.promo-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-copy { position: relative; z-index: 1; }
.promo-art {
  position: relative; background: #fff; border-radius: 18px; padding: 26px;
  display: flex; align-items: center; justify-content: center; min-height: 200px;
  box-shadow: 0 16px 36px rgba(0,0,0,.25); transform: rotate(2.5deg);
}
.promo-light .promo-art { box-shadow: 0 16px 36px rgba(13,74,80,.16); transform: rotate(-2deg); border: 1px solid #EFE7D2; }
.promo-art img { max-width: 78%; max-height: 165px; }
.promo-burst {
  position: absolute; top: -20px; right: -16px; width: 104px; height: 104px;
  background: linear-gradient(160deg, #E8BE7E, #C28A47);
  clip-path: polygon(50% 0%, 61% 12%, 76% 6%, 80% 22%, 96% 24%, 91% 39%, 100% 50%, 91% 61%, 96% 76%, 80% 78%, 76% 94%, 61% 88%, 50% 100%, 39% 88%, 24% 94%, 20% 78%, 4% 76%, 9% 61%, 0% 50%, 9% 39%, 4% 24%, 20% 22%, 24% 6%, 39% 12%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #08343A; font-weight: 900; font-size: 12px; line-height: 1.15; text-transform: uppercase;
  padding: 14px; transform: rotate(12deg); box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 2;
}
.promo-dots { position: absolute; bottom: 16px; left: 48px; display: flex; gap: 7px; z-index: 3; }
.promo-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; padding: 0; cursor: pointer; background: rgba(127,127,127,.4); transition: all .2s; }
.promo-dots button.on { background: #C28A47; width: 24px; }
