/* ==========================================================================
   The Cake Corner — Premium Bakery Website
   Design System & Styles
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --ivory: #FBF8E4;   /* pale yellow */
  --cream: #F3ECC2;   /* buttercream yellow */
  --mint: #A7D8BE;    /* mint green */
  --sage: #7E9B76;    /* sage green */
  --choc: #3E4A34;    /* deep forest sage — headings & primary */
  --coffee: #6E8060;  /* sage — secondary text & links */
  --caramel: #6C9E76; /* mint-sage accent */
  --beige: #DCE8C9;   /* pale sage borders */
  --white: #FFFFFF;
  --body: #4F5A45;
  --line: rgba(62, 74, 52, 0.16);
  --line-soft: rgba(62, 74, 52, 0.09);
  --shadow-sm: 0 4px 14px rgba(62, 74, 52, 0.07);
  --shadow-md: 0 12px 30px rgba(62, 74, 52, 0.11);
  --shadow-lg: 0 24px 60px rgba(62, 74, 52, 0.17);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --ff-head: "Playfair Display", Georgia, serif;
  --ff-body: "Lato", "DM Sans", system-ui, -apple-system, sans-serif;
  --ff-hand: "Caveat", cursive;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--choc); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout Helpers ---------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before { content: "— "; color: var(--beige); }
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead { font-size: 1.08rem; color: var(--coffee); max-width: 54ch; }
.hand { font-family: var(--ff-hand); color: var(--caramel); font-size: 1.5rem; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .sub { margin-bottom: 0; }
.link-arrow {
  font-weight: 700;
  color: var(--coffee);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--choc); border-color: var(--caramel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--choc); color: var(--ivory); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #2C3626; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--choc); border-color: var(--coffee); }
.btn--ghost:hover { background: var(--choc); color: var(--ivory); border-color: var(--choc); transform: translateY(-2px); }
.btn--caramel { background: var(--caramel); color: var(--white); }
.btn--caramel:hover { background: #57865F; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 248, 228, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--choc);
  color: var(--ivory);
  border-radius: 50%;
}
.brand__logo svg { width: 24px; height: 24px; }
.brand__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.35rem; color: var(--choc); line-height: 1; }
.brand__sub { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--caramel); margin-top: 4px; }

.main-nav { display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 700;
  color: var(--coffee);
  padding: 6px 0;
  letter-spacing: .02em;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--caramel); transition: right .3s var(--ease);
}
.main-nav a:hover { color: var(--choc); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--choc); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: none; color: var(--coffee);
  position: relative;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: var(--cream); color: var(--choc); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--caramel); color: #fff;
  font-size: .66rem; font-weight: 700; display: grid; place-items: center;
  line-height: 1;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 80% 0%, #EAF4E3 0%, var(--ivory) 55%, var(--cream) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero__content { max-width: 560px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { font-family: var(--ff-hand); color: var(--caramel); font-size: .82em; }
.hero .lead { margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.benefits { display: flex; gap: 26px; flex-wrap: wrap; }
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit__ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--caramel);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.benefit__ico svg { width: 22px; height: 22px; }
.benefit b { display: block; font-size: .9rem; color: var(--choc); font-family: var(--ff-head); }
.benefit span { font-size: .78rem; color: var(--coffee); }

.hero__media { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -14px; bottom: 40px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-soft);
}
.hero__badge .ico { width: 34px; height: 34px; color: var(--caramel); }
.hero__badge b { font-family: var(--ff-head); color: var(--choc); font-size: 1.05rem; display: block; }
.hero__badge span { font-size: .74rem; color: var(--coffee); }
.hero__leaf { position: absolute; color: var(--beige); opacity: .8; pointer-events: none; }
.hero__leaf--a { top: -10px; left: 6%; width: 90px; }
.hero__leaf--b { bottom: -20px; right: 2%; width: 120px; transform: rotate(160deg); }

/* ---------- Category Cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  text-align: center;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--beige); }
.cat-card__media { overflow: hidden; aspect-ratio: 1 / 1; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.08); }
.cat-card__body { padding: 16px 12px 18px; }
.cat-card__body b { font-family: var(--ff-head); color: var(--choc); font-size: 1rem; display: block; }
.cat-card__body span { font-size: .76rem; color: var(--caramel); font-weight: 700; letter-spacing: .04em; }

/* ---------- Product Cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.prod-grid--shop { grid-template-columns: repeat(4, 1fr); }
.prod-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--beige); }
.prod-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.07); }
.prod-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--white); color: var(--coffee);
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.prod-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card__name { font-family: var(--ff-head); font-size: 1.12rem; color: var(--choc); margin-bottom: 4px; }
.prod-card__desc { font-size: .82rem; color: var(--coffee); margin-bottom: 14px; flex: 1; }
.prod-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card__price { font-weight: 700; color: var(--choc); font-size: 1.05rem; }
.prod-card__price s { color: var(--beige); font-weight: 400; font-size: .82rem; margin-left: 6px; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--choc); color: var(--ivory); border: none;
  display: grid; place-items: center; flex: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.add-btn:hover { background: var(--caramel); transform: scale(1.08); }
.add-btn svg { width: 17px; height: 17px; }

/* ---------- Story Section ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story__media { position: relative; }
.story__img { width: 100%; aspect-ratio: 5 / 5.6; object-fit: cover; border-radius: var(--radius-lg) 120px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.story__stat {
  position: absolute; right: -18px; top: 40px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 22px; text-align: center; box-shadow: var(--shadow-md);
}
.story__stat b { display: block; font-family: var(--ff-head); font-size: 1.8rem; color: var(--caramel); }
.story__stat span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coffee); }
.values { margin-top: 26px; display: grid; gap: 18px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value__ico { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--cream); color: var(--caramel); display: grid; place-items: center; }
.value__ico svg { width: 22px; height: 22px; }
.value b { display: block; font-family: var(--ff-head); color: var(--choc); font-size: 1.05rem; }
.value span { font-size: .86rem; color: var(--coffee); }

/* ---------- Testimonials ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.rev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rev-stars { display: flex; gap: 3px; color: var(--caramel); }
.rev-stars svg { width: 17px; height: 17px; }
.rev-card p { font-size: .95rem; color: var(--body); font-style: italic; margin: 0; flex: 1; }
.rev-person { display: flex; align-items: center; gap: 12px; }
.rev-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.rev-person b { display: block; font-family: var(--ff-head); color: var(--choc); font-size: 1rem; }
.rev-person span { font-size: .78rem; color: var(--caramel); }
.sample-note { text-align: center; margin-top: 22px; font-size: .78rem; color: var(--coffee); opacity: .75; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--choc), #2C3626);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 54px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative; overflow: hidden;
}
.newsletter h2 { color: var(--ivory); margin-bottom: 8px; }
.newsletter p { color: var(--beige); margin: 0; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(251,248,228,.25);
  background: rgba(251,248,228,.08); color: var(--ivory); min-width: 0;
}
.newsletter input::placeholder { color: rgba(251,248,228,.55); }
.newsletter input:focus { outline: none; border-color: var(--caramel); background: rgba(251,248,228,.14); }
.newsletter .msg { font-size: .82rem; margin-top: 12px; min-height: 20px; }
.newsletter .msg.ok { color: #CFE8D2; }
.newsletter .msg.err { color: #f3b9a3; }
.newsletter__leaf { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: .12; color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer { background: var(--choc); color: var(--beige); padding-top: 76px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 54px;
}
.footer-brand .brand__name { color: var(--ivory); }
.footer-brand .brand__logo { background: var(--caramel); }
.footer-brand .brand__sub { color: var(--caramel); }
.footer-brand p { margin-top: 18px; font-size: .9rem; color: rgba(220,232,201,.78); max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251,248,228,.08); color: var(--beige);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--caramel); color: var(--white); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: var(--caramel); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--ff-body); font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .9rem; color: rgba(220,232,201,.85); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { color: var(--ivory); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: rgba(220,232,201,.85); }
.footer-contact svg { width: 18px; height: 18px; color: var(--caramel); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: var(--ivory); }
.footer-bottom {
  border-top: 1px solid rgba(251,248,228,.14);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(220,232,201,.72);
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--ivory); }

/* ---------- Cart Drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(74,45,32,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  z-index: 1000; backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--ivory); z-index: 1001;
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--cream); }
.cart-empty { text-align: center; color: var(--coffee); padding: 50px 10px; }
.cart-empty svg { width: 56px; height: 56px; color: var(--beige); margin-bottom: 14px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item b { font-family: var(--ff-head); color: var(--choc); font-size: 1rem; display: block; }
.cart-item .meta { font-size: .76rem; color: var(--coffee); }
.cart-item .price { font-weight: 700; color: var(--choc); margin-top: 4px; display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; background: transparent; border: none; color: var(--choc); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 26px; text-align: center; font-size: .86rem; font-weight: 700; color: var(--choc); }
.cart-item .remove { background: none; border: none; color: var(--coffee); font-size: .74rem; text-decoration: underline; padding: 0; }
.cart-item .remove:hover { color: #a3372a; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total span { color: var(--coffee); }
.cart-total b { font-family: var(--ff-head); font-size: 1.5rem; color: var(--choc); }
.cart-note { font-size: .74rem; color: var(--coffee); margin-top: 12px; text-align: center; }

/* ---------- Search Overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(74,45,32,.5); z-index: 1100;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  display: flex; justify-content: center; padding-top: 12vh;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
  background: var(--ivory); width: min(640px, calc(100% - 40px));
  border-radius: var(--radius-lg); padding: 26px; height: fit-content; max-height: 70vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateY(-16px); transition: transform .3s var(--ease);
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); padding-bottom: 14px; }
.search-field svg { width: 22px; height: 22px; color: var(--caramel); flex: none; }
.search-field input { flex: 1; border: none; background: transparent; font-size: 1.15rem; color: var(--choc); }
.search-field input:focus { outline: none; }
.search-results { overflow-y: auto; margin-top: 10px; }
.search-results .res {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 8px; border-radius: var(--radius-sm); transition: background .2s var(--ease);
}
.search-results .res:hover { background: var(--cream); }
.search-results .res img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.search-results .res b { font-family: var(--ff-head); color: var(--choc); font-size: 1rem; }
.search-results .res span { font-size: .78rem; color: var(--coffee); }
.search-results .res .p { font-weight: 700; color: var(--choc); }
.search-hint { text-align: center; color: var(--coffee); font-size: .86rem; padding: 30px 10px; }

/* ---------- Modal (Quick View) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(74,45,32,.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__panel {
  background: var(--ivory); border-radius: var(--radius-lg); overflow: hidden;
  width: min(940px, 100%); max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98); transition: transform .35s var(--ease);
}
.modal.open .modal__panel { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(251,248,228,.9); color: var(--choc); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.modal__close:hover { background: var(--white); }
.modal__grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.modal__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.modal__body { padding: 34px; }
.modal__body .price { font-family: var(--ff-head); font-size: 1.9rem; color: var(--caramel); margin: 6px 0 12px; }
.modal__body .desc { color: var(--coffee); font-size: .94rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coffee); margin-bottom: 7px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--choc);
}
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--caramel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--coffee); font-size: .84rem; font-weight: 700;
  transition: all .2s var(--ease);
}
.chip.active { background: var(--choc); color: var(--ivory); border-color: var(--choc); }
.modal__actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; justify-content: center; min-width: 150px; }
.wa-btn { background: #25D366; color: #fff; }
.wa-btn:hover { background: #1eb355; transform: translateY(-2px); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(120% 130% at 50% 0%, #EAF4E3, var(--cream));
  padding: 68px 0 60px; text-align: center; position: relative; border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--coffee); max-width: 60ch; margin-inline: auto; }
.breadcrumb { font-size: .8rem; color: var(--caramel); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--choc); }

/* ---------- Filters (shop) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--coffee); font-weight: 700; font-size: .85rem;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--caramel); color: var(--choc); }
.filter-btn.active { background: var(--choc); color: var(--ivory); border-color: var(--choc); }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 18px;
}
.gallery-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(74,45,32,.55));
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; color: var(--ivory);
  font-family: var(--ff-head); font-size: 1.05rem; opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgba(40,24,15,.92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(251,248,228,.14); border: none; color: var(--ivory);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(251,248,228,.28); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); font-weight: 700; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.25rem; }
.blog-card p { font-size: .88rem; color: var(--coffee); flex: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; color: var(--coffee); }
.info-list svg { width: 20px; height: 20px; color: var(--caramel); flex: none; margin-top: 3px; }
.info-list a:hover { color: var(--choc); }
.form-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-note { font-size: .8rem; color: var(--coffee); background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 22px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%);
  background: var(--choc); color: var(--ivory); padding: 14px 24px; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 1300; font-size: .9rem; font-weight: 700;
  transition: transform .4s var(--ease); display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #A7D8BE; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86%); background: var(--ivory);
  z-index: 1001; transform: translateX(100%); transition: transform .4s var(--ease);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav ul { display: grid; gap: 4px; }
.mobile-nav a {
  display: block; padding: 14px 12px; border-radius: var(--radius-sm);
  font-family: var(--ff-head); font-size: 1.25rem; color: var(--choc);
  transition: background .2s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--cream); }
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid--shop { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .news-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
  .hero__content { max-width: 100%; order: 2; }
  .hero__media { order: 1; max-width: 460px; margin-inline: auto; }
  .hero__img { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .rev-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .newsletter { grid-template-columns: 1fr; padding: 38px 30px; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__media img { min-height: 260px; max-height: 300px; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding: 60px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .prod-grid--shop { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .benefits { gap: 16px; }
  .benefit { flex: 1 1 100%; }
  .newsletter form { flex-direction: column; }
  .newsletter form .btn { justify-content: center; }
  .gallery-grid { columns: 1; }
  .form-card { padding: 24px; }
  .modal__body { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
  .story__stat { right: 0; }
}

@media (max-width: 380px) {
  .prod-grid, .prod-grid--shop { grid-template-columns: 1fr; }
}
