/* ==========================================================
   THE SISTERS CAKERYY — boutique patisserie redesign
   Step 1: visual system + responsive styling.
   Keeps the existing HTML and JavaScript class hooks intact.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #292333;
  --muted: #77717d;
  --ivory: #fbf8f4;
  --paper: #fffdfb;
  --lavender: #e9e2f2;
  --lavender-deep: #76658e;
  --blush: #f3e1e3;
  --blue: #e4ebf2;
  --gold: #b49a68;
  --line: #e9e3df;
  --green: #278653;
  --shadow-sm: 0 8px 24px rgba(48, 37, 54, .06);
  --shadow-lg: 0 22px 60px rgba(48, 37, 54, .12);
  --radius: 18px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page: min(1240px, calc(100% - 112px));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
::selection { color: var(--ink); background: var(--lavender); }

/* Shared type */
h1, h2, h3, h4, p, figure { margin-top: 0; }
h1, h2, h3, .product-name { font-family: var(--serif); font-weight: 500; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.13; letter-spacing: -.035em; }
.kicker, .eyebrow {
  color: var(--lavender-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}
.kicker { margin-bottom: 11px; }
.sub { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-align: center;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--lavender-deep); border-color: var(--lavender-deep); }
.btn-wa { background: var(--green); border-color: var(--green); }
.btn-wa:hover { background: #1e7045; border-color: #1e7045; }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: #fff; }
.icon-btn { display: none; border: 0; background: transparent; font-size: 25px; line-height: 1; }

/* Announcement + header */
.announcement {
  padding: 8px 16px;
  color: #51465f;
  background: var(--lavender);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
}
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px max(56px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid rgba(180, 154, 104, .25);
  background: rgba(251, 248, 244, .94);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(180, 154, 104, .55);
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.brand-text small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav a {
  position: relative;
  padding: 8px 0;
  color: #514c56;
  font-size: 11px;
  font-weight: 600;
  transition: color .2s ease;
}
.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--lavender-deep); }
.nav a:hover::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right .btn { min-height: 42px; padding: 10px 15px; font-size: 10px; }
.mobile-nav { display: none; }

/* Hero */
/* .hero {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: 620px;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  margin: 0 auto;
  padding: 68px 0 76px;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; } */
.hero {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: clamp(460px, 68vh, 560px);
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.eyebrow { margin-bottom: 20px; }
.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero h1 em {
  color: var(--lavender-deep);
  font-style: italic;
  font-weight: 500;
}
.hero-copy p {
  max-width: 465px;
  margin: 25px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions .btn { min-width: 158px; }

/* Editorial product collage */
.hero-collage {
  position: relative;
  width: 100%;
  max-width: 590px;
  height: 500px;
  justify-self: end;
  isolation: isolate;
}
.collage-glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 226, 242, .85), rgba(243, 225, 227, .52) 55%, transparent 72%);
  filter: blur(9px);
}
.collage-ring {
  position: absolute;
  inset: 8% 10%;
  border: 1px solid rgba(180, 154, 104, .5);
  border-radius: 50%;
}
.sprinkle { position: absolute; z-index: 8; font-size: 19px; animation: float 5s ease-in-out infinite; }
.s1 { top: 6%; left: 14%; }
.s2 { top: 13%; right: 8%; animation-delay: .7s; }
.s3 { bottom: 13%; left: 7%; animation-delay: 1.3s; }
.s4 { right: 15%; bottom: 5%; animation-delay: 1.8s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.collage-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(245px, 55%);
  aspect-ratio: 4 / 5;
  margin: calc(min(245px, 55%) * -.62) 0 0 calc(min(245px, 55%) * -.5);
  padding: 8px 8px 34px;
  border: 1px solid rgba(180, 154, 104, .22);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: scale(.7);
  transition: transform .7s cubic-bezier(.2,.75,.25,1), opacity .7s;
}
.collage-card .photo {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--a, var(--blush)), var(--b, var(--lavender)));
}
.collage-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage-card .ph { font-size: 66px; }
.collage-card figcaption {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  color: #4c4550;
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
}
.collage-card[data-pos="0"] { z-index: 6; opacity: 1; transform: rotate(-2deg); }
.collage-card[data-pos="1"] { z-index: 5; opacity: 1; transform: translateX(46%) rotate(8deg) scale(.85); }
.collage-card[data-pos="2"] { z-index: 4; opacity: .95; transform: translateX(-46%) rotate(-8deg) scale(.85); }
.collage-card[data-pos="3"], .collage-card[data-pos="4"] { z-index: 3; opacity: 0; transform: scale(.7); }
.collage-card[data-pos="5"] { z-index: 3; opacity: 0; transform: translateX(-70%) rotate(-12deg) scale(.7); }

/* Small editorial ticker */
.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 20px;
  border-top: 1px solid rgba(180, 154, 104, .28);
  border-bottom: 1px solid rgba(180, 154, 104, .28);
  background: #f2edf3;
  color: #65586e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ticker span:nth-child(even) { color: var(--gold); }

/* Sections */
.section { width: var(--page); margin: 0 auto; padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}
.section-head .sub { max-width: 390px; margin: 0 0 4px; font-size: 12px; line-height: 1.8; }

/* Collections */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px; }
.category {
  position: relative;
  display: flex;
  min-height: 178px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  overflow: hidden;
  padding: 23px;
  border: 1px solid rgba(90, 75, 100, .08);
  border-radius: 5px;
  background: var(--blush);
  transition: transform .25s ease, box-shadow .25s ease;
}
.category:nth-child(3n+2) { background: var(--lavender); }
.category:nth-child(3n) { background: var(--blue); }
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cat-emoji { margin-bottom: auto; font-size: 30px; }
.category b { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.category small { color: #6f6874; font-size: 11px; }
.category em { margin-top: 7px; color: var(--lavender-deep); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .08em; }

/* Catalogue */
.catalogue {
  width: 100%;
  max-width: none;
  padding-right: max(56px, calc((100% - 1240px) / 2));
  padding-left: max(56px, calc((100% - 1240px) / 2));
  background: #f3eff4;
}
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 27px; }
.search, .sort {
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #e1dbe3;
  border-radius: 4px;
  outline: none;
  background: var(--paper);
  font-size: 12px;
}
.search { flex: 1 1 240px; }
.search:focus, .sort:focus { border-color: var(--lavender-deep); box-shadow: 0 0 0 3px rgba(118, 101, 142, .09); }
.filters { display: flex; flex: 1 1 100%; flex-wrap: wrap; order: 3; gap: 7px; }
.filter {
  padding: 8px 13px;
  border: 1px solid #ded7e2;
  border-radius: 3px;
  background: transparent;
  color: #625b67;
  font-size: 10px;
  font-weight: 600;
  transition: .2s ease;
}
.filter:hover { border-color: var(--lavender-deep); }
.filter.active, .size-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 17px; }
.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e3e8;
  border-radius: 5px;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.product-image {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
  place-items: center;
  background: linear-gradient(145deg, var(--blush), var(--lavender) 60%, var(--blue));
  cursor: pointer;
}
.product-image .ph { font-size: 55px; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-badge, .tag-seasonal {
  position: absolute;
  top: 11px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-badge { left: 10px; background: var(--ink); color: #fff; }
.tag-seasonal { right: 10px; border: 1px solid rgba(180, 154, 104, .3); background: rgba(255,253,251,.92); color: #786444; }
.quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  padding: 9px 14px;
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: .25s ease;
}
.product-card:hover .quick-view { opacity: 1; transform: translate(-50%, 0); }
.product-info { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 15px 15px 16px; }
.product-category { color: var(--lavender-deep); font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.product-name { font-size: 17px; line-height: 1.3; cursor: pointer; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.price { color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 700; }
.price .from, .price .unit { color: var(--muted); font-size: 10px; font-weight: 500; }
.card-wa { padding: 7px 10px; border-radius: 3px; background: var(--lavender); color: #554866; font-size: 9px; font-weight: 700; transition: .2s ease; white-space: nowrap; }
.card-wa:hover { background: var(--green); color: #fff; }
.empty { grid-column: 1 / -1; padding: 55px 15px; color: var(--muted); text-align: center; }

/* Ordering steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.step { padding: 29px 25px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.num {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 23px;
  border: 1px solid rgba(180, 154, 104, .6);
  border-radius: 50%;
  background: var(--lavender);
  color: #554866;
  font-family: var(--serif);
  font-size: 19px;
  place-items: center;
}
.step h3 { margin-bottom: 8px; font-size: 21px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--blush); }
.story-image { position: relative; display: grid; min-height: 470px; overflow: hidden; background: var(--lavender); font-size: 100px; place-items: center; }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: flex; max-width: 650px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; padding: 70px clamp(35px, 7vw, 105px); }
.story-copy h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.story-copy p { max-width: 480px; margin: 0; color: #625964; font-size: 13px; line-height: 1.9; }
.story-copy .btn { align-self: flex-start; margin-top: 12px !important; }

/* QR */
.qr-section { padding-top: 88px; padding-bottom: 88px; }
.qr-wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 55px; }
.qr-copy p { max-width: 490px; margin: 15px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-actions .btn { font-size: 10px; }
.qr-card { justify-self: center; padding: 12px; border: 1px solid rgba(180,154,104,.6); border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-sm); }
.qr-card-inner { padding: 23px; border: 1px solid var(--line); background: #f5f0f5; text-align: center; }
.qr-title { color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.15; }
.qr-title small { display: block; margin-top: 6px; color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.qr-card img { width: min(240px, 100%); margin: 16px auto; padding: 7px; border-radius: 3px; background: #fff; }
.qr-card p { margin: 0; font-size: 11px; font-weight: 600; line-height: 1.6; }
.qr-url { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }

/* CTA + footer */
.cta {
  padding: 86px 24px;
  background: linear-gradient(125deg, #51445f, #76658e);
  color: #fff;
  text-align: center;
}
.cta .kicker { color: #e9d9b7; }
.cta h2 { margin-bottom: 13px; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta p { max-width: 540px; margin: 0 auto 25px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.85; }
.cta .btn-wa { background: #278653; border-color: #278653; }
.footer { padding: 62px max(56px, calc((100% - 1240px) / 2)) 22px; background: #292333; color: #e8e1e9; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 35px; }
.footer .brand-text { color: #fff; }
.footer .brand-text small { color: #c9b98f; }
.footer-top > div > p { max-width: 240px; margin: 14px 0 0; color: #c0b8c4; font-size: 11px; line-height: 1.8; }
.footer h4 { margin: 3px 0 13px; color: #d8c79f; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.footer-top a { display: block; padding: 4px 0; color: #d0c9d2; font-size: 11px; transition: color .2s ease; }
.footer-top a:hover { color: #fff; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 43px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #bcb3c0; font-size: 8px; letter-spacing: .13em; }

/* Product detail modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(35, 29, 42, .64); backdrop-filter: blur(5px); }
.modal.open { display: flex; }
.modal-box { position: relative; display: grid; width: min(860px, 100%); max-height: min(88vh, 760px); grid-template-columns: 1fr 1fr; overflow: auto; border-radius: 7px; background: var(--paper); box-shadow: var(--shadow-lg); }
.close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 23px; place-items: center; }
.modal-media { position: relative; display: grid; min-height: 360px; overflow: hidden; background: linear-gradient(145deg, var(--blush), var(--lavender), var(--blue)); font-size: 80px; place-items: center; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 42px 35px; }
.modal-content h3 { margin: 0; font-size: 31px; line-height: 1.2; }
.eggless-line { color: var(--lavender-deep); font-size: 11px; font-weight: 700; }
.modal-content .sub { margin: 0; font-size: 12px; line-height: 1.8; }
.size-label { margin-top: 9px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn { padding: 8px 13px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 11px; font-weight: 600; }
.modal-price { margin: 8px 0 5px; font-size: 26px; }
.modal-content > .btn { width: 100%; }

/* Tablet */
@media (max-width: 1050px) {
  :root { --page: min(100% - 64px, 900px); }
  .header { padding-right: 32px; padding-left: 32px; gap: 18px; }
  .nav { gap: 15px; }
  .nav a { font-size: 10px; }
  .header-right .btn { padding-inline: 11px; }
  .hero { min-height: 560px; gap: 25px; }
  .hero-collage { height: 430px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalogue { padding-right: 32px; padding-left: 32px; }
  .footer { padding-right: 32px; padding-left: 32px; }
}
@media (max-width: 800px) {
  :root { --page: calc(100% - 48px); }
  .header { min-height: 72px; padding: 10px 24px; }
  .nav, .header-right .btn-wa { display: none; }
  .icon-btn { display: block; }
  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: var(--shadow-sm);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding: 65px 0 40px; text-align: center; }
  .hero-copy { max-width: 650px; margin: auto; }
  .hero h1 { margin-inline: auto; font-size: clamp(3.2rem, 9vw, 5rem); }
  .hero-copy p { margin: 20px auto 25px; }
  .hero-actions { justify-content: center; }
  .hero-collage { width: min(100%, 540px); height: 410px; justify-self: center; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue { padding-right: 24px; padding-left: 24px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 360px; }
  .story-copy { max-width: none; padding: 48px 24px 55px; }
  .qr-wrap { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer { padding: 50px 24px 20px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

/* Phones */
@media (max-width: 520px) {
  :root { --page: calc(100% - 36px); }
  html { scroll-padding-top: 78px; }
  body { font-size: 14px; }
  .announcement { padding: 8px 10px; font-size: 8px; letter-spacing: .09em; }
  .header { min-height: 66px; padding: 8px 18px; }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text { font-size: 23px; } 
  .brand-text small { margin-top: 4px; font-size: 7px; letter-spacing: .14em; }
  .icon-btn { font-size: 23px; }
  .mobile-nav { padding-right: 18px; padding-left: 18px; }
  .hero { padding-top: 48px; padding-bottom: 26px; }
  .eyebrow { margin-bottom: 14px; font-size: 9px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.02; }
  .hero-copy p { max-width: 340px; margin: 17px auto 21px; font-size: 12px; line-height: 1.8; }
  .hero-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn { min-width: 0; min-height: 44px; padding: 10px 8px; font-size: 9px; }
  .hero-collage { height: 310px; margin-top: 2px; }
  .collage-card { width: min(190px, 58%); margin: calc(min(190px, 58%) * -.62) 0 0 calc(min(190px, 58%) * -.5); padding: 6px 6px 29px; }
  .collage-card figcaption { bottom: 5px; font-size: 10px; }
  .collage-card .ph { font-size: 48px; }
  .sprinkle { font-size: 15px; }
  .ticker { gap: 9px; padding: 12px 8px; font-size: 7px; letter-spacing: .11em; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 23px; }
  h2 { font-size: 2.15rem; }
  .section-head .sub { font-size: 11px; }
  .categories { gap: 9px; }
  .category { min-height: 145px; padding: 15px; gap: 3px; }
  .cat-emoji { font-size: 25px; }
  .category b { font-size: 17px; }
  .category small { font-size: 9px; }
  .category em { font-size: 8px; }
  .catalogue { padding: 58px 18px; }
  .toolbar { gap: 8px; margin-bottom: 18px; }
  .search { flex-basis: 100%; width: 100%; }
  .sort { flex: 1; width: 100%; }
  .filters { gap: 6px; }
  .filter { padding: 7px 9px; font-size: 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-card { border-radius: 4px; }
  .product-image { aspect-ratio: 1 / 1.08; }
  .product-image .ph { font-size: 42px; }
  .product-badge, .tag-seasonal { top: 7px; padding: 4px 5px; font-size: 6px; letter-spacing: .05em; }
  .product-badge { left: 6px; }
  .tag-seasonal { right: 6px; }
  .product-info { gap: 4px; padding: 10px 9px 11px; }
  .product-category { font-size: 7px; letter-spacing: .1em; }
  .product-name { font-size: 14px; line-height: 1.25; }
  .product-bottom { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 9px; }
  .price { font-size: 13px; }
  .card-wa { width: 100%; padding: 7px 5px; font-size: 8px; text-align: center; }
  .quick-view { display: none; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 13px; padding: 17px; }
  .num { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
  .step h3 { align-self: end; margin-bottom: 4px; font-size: 18px; }
  .step p { font-size: 11px; }
  .story-image { min-height: 270px; }
  .story-copy { gap: 10px; padding: 38px 20px 43px; }
  .story-copy h2 { font-size: 2.35rem; }
  .story-copy p { font-size: 12px; }
  .qr-wrap { grid-template-columns: 1fr; gap: 30px; }
  .qr-section { padding-top: 58px; padding-bottom: 58px; }
  .qr-copy p { font-size: 12px; }
  .qr-actions { display: grid; grid-template-columns: 1fr; }
  .qr-actions .btn { width: 100%; }
  .qr-card { width: min(100%, 310px); }
  .qr-card-inner { padding: 18px; }
  .cta { padding: 62px 20px; }
  .cta h2 { font-size: 2.2rem; }
  .cta p { font-size: 11px; }
  .footer { padding: 43px 20px 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 25px 17px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer .brand-text { font-size: 21px; }
  .footer h4 { font-size: 15px; }
  .footer-top a { overflow-wrap: anywhere; font-size: 10px; }
  .copyright { flex-direction: column; margin-top: 30px; font-size: 7px; }
  .modal { align-items: center; padding: 20px; }
  .modal-box { width: 100%; max-width: 400px; max-height: 92dvh; grid-template-columns: 1fr; border-radius: 20px; }
  .modal-media { min-height: 0; max-height: none; aspect-ratio: 4 / 3; font-size: 55px; }
  .modal-content { gap: 8px; padding: 22px; }
  .modal-content h3 { padding-right: 30px; font-size: 25px; }
  .modal-price { font-size: 23px; }
  .close { top: 9px; right: 10px; width: 34px; height: 34px; }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .brand-text { font-size: 23px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-collage { height: 275px; }
  .product-grid { gap: 8px; }
  .product-info { padding: 9px 7px; }
  .product-name { font-size: 13px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* =====================================================================
   PRODUCT PAGE: Amazon-style full-screen view (replaces the old popup)
   Phones/portrait: photo on top, details below, sticky price + order bar.
   Desktop / landscape: photo on the left, details on the right.
   ===================================================================== */
.modal { padding: 0; align-items: stretch; justify-content: center; background: #f5eff7; backdrop-filter: none; }
.modal-box {
  display: flex; flex-direction: column;
  width: 100%; max-width: 640px; height: 100dvh; max-height: none;
  margin: 0 auto; border-radius: 0; box-shadow: 0 0 60px rgba(48, 37, 54, .12);
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper);
}
.modal.open .modal-box { animation: sheetIn .26s cubic-bezier(.2, .8, .25, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.modal-media { flex: none; width: 100%; min-height: 0; max-height: 62dvh; aspect-ratio: 1 / 1; }
@media (max-width: 820px) and (orientation: portrait) and (min-height: 880px) and (max-aspect-ratio: 9 / 18) {
  /* very tall phones (Realme GT 6T etc.): taller photo */
  .modal-media { aspect-ratio: 4 / 5; max-height: 66dvh; }
}
.modal-content { flex: 1 0 auto; justify-content: flex-start; gap: 8px; padding: 22px 20px 20px; }
.modal-content h3 { margin: 4px 0; padding-right: 0; font-size: 26px; }

.buybar {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
  box-shadow: 0 -8px 24px rgba(48, 37, 54, .08);
}
.buybar .modal-price { flex: none; margin: 0; font-size: 24px; line-height: 1; }
.buybar .btn { flex: 1; width: auto; min-height: 50px; }

.close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 6; width: 42px; height: 42px; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }

/* Desktop and landscape: two columns, full screen */
@media (orientation: landscape) and (min-width: 640px), (min-width: 1100px) {
  .modal-box {
    display: grid; max-width: 1280px; overflow: hidden;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  }
  .modal-media { grid-column: 1; grid-row: 1 / 3; height: 100%; max-height: none; aspect-ratio: auto; }
  .modal-content { grid-column: 2; grid-row: 1; min-height: 0; overflow-y: auto; padding: 64px 44px 20px; }
  .buybar { grid-column: 2; grid-row: 2; position: static; padding: 16px 44px 28px; box-shadow: none; }
  .close { position: absolute; top: 16px; right: 16px; }
}
/* Landscape phones (short screens) */
@media (orientation: landscape) and (max-height: 520px) {
  .modal-content { padding: 20px 24px 10px; }
  .modal-content h3 { font-size: 22px; }
  .buybar { padding: 10px 24px 14px; }
  .buybar .btn { min-height: 44px; }
}

/* Very narrow phones: nothing may push the page sideways */
@media (max-width: 520px) {
  .qr-wrap { grid-template-columns: minmax(0, 1fr); }
  .qr-wrap > * { min-width: 0; }
  h2, .qr-copy h2 { overflow-wrap: anywhere; }
}
