/* ==========================================================
   SMØROSA — BISCOITERIA AFETIVA
   Visual inspirado no mockup aprovado pelo cliente.
   ========================================================== */

:root {
  --pink: #f2dcd7;
  --pink-soft: #f8ebe7;
  --pink-deep: #e7c5bd;
  --sage: #879d7e;
  --sage-dark: #506b52;
  --sage-deeper: #334f3a;
  --butter: #fff0a5;
  --cream: #fffaf5;
  --white: #fffdf9;
  --ink: #26362b;
  --muted: #6d756d;
  --line: rgba(67, 85, 68, 0.14);
  --shadow: 0 22px 60px rgba(76, 66, 52, 0.12);
  --soft-shadow: 0 10px 28px rgba(79, 68, 55, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 84px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* Garante que o atributo HTML `hidden` sempre vença regras de layout como display:grid/flex. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
svg { display: block; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sage-deeper);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ==========================================================
   TYPOGRAPHY / UTILITIES
   ========================================================== */
.kicker {
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-size: .72rem;
  letter-spacing: .19em;
  font-weight: 700;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.button,
.add-button,
.outline-button,
.whatsapp-button,
.cart-button {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button:hover,
.add-button:hover,
.outline-button:hover,
.whatsapp-button:hover,
.cart-button:hover { transform: translateY(-2px); }
.button:focus-visible,
.add-button:focus-visible,
.outline-button:focus-visible,
.whatsapp-button:focus-visible,
.cart-button:focus-visible,
.icon-close:focus-visible,
.quantity button:focus-visible,
.menu-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(80, 107, 82, .32);
  outline-offset: 3px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(248, 235, 231, .9);
  border-bottom: 1px solid rgba(88, 105, 88, .08);
  backdrop-filter: blur(18px);
}
.header-row {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; width: 162px; }
.brand img { width: 100%; height: 62px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 36px); font-size: .9rem; font-weight: 600; }
.main-nav a { position: relative; padding: 10px 2px; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 1px;
  background: var(--sage-dark);
  transform: translateX(-50%);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 70%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.instagram-mini { width: 36px; height: 36px; display: grid; place-items: center; }
.instagram-mini svg { width: 20px; fill: none; stroke: var(--sage-deeper); stroke-width: 1.7; }
.cart-button {
  min-height: 46px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--sage);
  color: white;
  box-shadow: 0 7px 18px rgba(80, 107, 82, .2);
  font-weight: 700;
}
.cart-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-button strong {
  min-width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(255,255,255,.18); font-size: .75rem;
}
.menu-button { display: none; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 575px;
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at 13% 12%, rgba(255,240,165,.6), transparent 16%),
    linear-gradient(110deg, #f2d6d0 0%, #f1d5ce 43%, #e8c6be 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .32;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-grid { display: grid; grid-template-columns: .9fr 1.25fr; align-items: center; gap: 28px; }
.hero-copy { position: relative; z-index: 5; padding-left: clamp(0px, 2vw, 24px); }
.hero-copy h1 {
  margin: 0;
  max-width: 590px;
  color: var(--sage-deeper);
  font: 600 clamp(3.25rem, 6vw, 5.65rem)/.78 var(--serif);
  letter-spacing: -.045em;
}
.hero-copy h1 em { font-weight: 500; }
.hero-copy h1 span { display: inline-block; margin-top: 12px; font-size: .58em; line-height: .88; letter-spacing: -.02em; font-style: normal; font-weight: 500; }
.hero-lead { max-width: 450px; margin: 24px 0 28px; font-size: 1.04rem; color: #435646; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 25px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(72, 98, 75, .2);
}
.plain-link { padding: 9px 3px; background: transparent; color: var(--sage-deeper); cursor: pointer; font-weight: 700; }
.hero-art { position: relative; min-height: 430px; }
.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 250, 245, .72);
  box-shadow: var(--shadow);
  background: #efd5ce;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { width: 330px; height: 330px; right: 3%; top: 0; border-radius: 42% 42% 20% 42%; transform: rotate(3deg); }
.hero-photo-left { width: 282px; height: 282px; left: 2%; top: 76px; border-radius: 28% 28% 44% 24%; transform: rotate(-5deg); }
.hero-photo-front { width: 235px; height: 235px; left: 34%; bottom: -8px; border-radius: 50%; transform: rotate(2deg); border-width: 7px; }
.hero-tag {
  position: absolute;
  right: 8%; bottom: 5%;
  width: 116px; height: 116px;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--sage-deeper);
  text-align: center;
  box-shadow: var(--soft-shadow);
  transform: rotate(7deg);
}
.hero-tag span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-tag strong { font: 600 1.45rem/1 var(--serif); }
.line-doodle { position: absolute; color: rgba(76, 106, 78, .48); font-family: var(--serif); font-size: 3rem; z-index: 6; }
.doodle-one { left: 4%; top: 0; transform: rotate(-8deg); }
.doodle-two { right: 0; top: 47%; font-size: 2.3rem; }
.doodle-three { left: 25%; bottom: 3%; font-size: 2.3rem; }
.hero-wave {
  position: absolute;
  left: -5%; right: -5%; bottom: -1px;
  height: 58px;
  background: var(--cream);
  clip-path: polygon(0 50%, 8% 66%, 17% 58%, 28% 72%, 38% 49%, 51% 68%, 63% 50%, 75% 63%, 87% 51%, 100% 68%, 100% 100%, 0 100%);
}

/* ==========================================================
   PRODUCTS
   ========================================================== */
.products { padding: 58px 0 72px; background: var(--cream); }
.section-title { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-title h2,
.about-copy h2 {
  margin: 0;
  font: 600 clamp(2.6rem, 5vw, 4.25rem)/.92 var(--serif);
  color: var(--sage-deeper);
  letter-spacing: -.03em;
}
.section-title h2 em, .about-copy h2 em { font-weight: 500; }
.section-title > p:last-child { margin: 12px 0 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(68, 58, 48, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(68, 58, 48, .11); }
.product-media { position: relative; aspect-ratio: 1.08 / 1; overflow: hidden; background: var(--pink-soft); }
.product-image-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.product-image-trigger:focus-visible { outline: 3px solid rgba(80,107,82,.38); outline-offset: -4px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .25s ease; }
.product-card:hover .product-media img, .product-image-trigger:hover img, .product-image-trigger:focus-visible img { transform: scale(1.035); }
.product-image-trigger:active img { transform: scale(1.015); filter: brightness(.96); }
.heart-mark {
  position: absolute; right: 13px; bottom: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,253,249,.88); color: var(--sage-dark); font: 600 1.5rem var(--serif);
}
.product-body { padding: 17px 16px 16px; }
.product-body h3 { margin: 0; font: 600 1.45rem/1 var(--serif); letter-spacing: .01em; color: #253b2c; }
.tagline { margin: 4px 0 0; color: var(--sage-dark); font: 500 1.04rem/1.05 var(--serif); }
.description { min-height: 58px; margin: 12px 0 10px; color: #555f56; font-size: .78rem; line-height: 1.5; }
.price { display: block; margin-bottom: 12px; color: var(--sage-deeper); font-size: 1.05rem; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quantity {
  display: grid; grid-template-columns: 30px 28px 30px; align-items: center;
  min-height: 39px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff;
}
.quantity button { height: 100%; background: transparent; color: var(--sage-deeper); cursor: pointer; }
.quantity output { text-align: center; font-weight: 700; font-size: .82rem; }
.add-button {
  min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 12px; border-radius: 9px; background: var(--sage); color: white; font-weight: 700; font-size: .82rem;
}
.add-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.add-button.is-added { background: var(--sage-deeper); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about { padding: 44px 0; background: linear-gradient(90deg, #f2d8d2 0%, #f7e6e1 100%); border-top: 1px solid rgba(89, 93, 79, .06); border-bottom: 1px solid rgba(89, 93, 79, .06); }
.about-grid { display: grid; grid-template-columns: 1fr .7fr; align-items: center; gap: 50px; }
.about-copy { max-width: 650px; padding: 10px 0; }
.about-copy h2 { font-size: clamp(2.4rem, 4vw, 3.65rem); }
.about-copy > p:not(.kicker) { max-width: 640px; margin: 17px 0 22px; color: #4d5a4e; }
.outline-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border: 1px solid rgba(67, 89, 70, .35); border-radius: 999px;
  background: transparent; color: var(--sage-deeper); font-weight: 700; font-size: .82rem;
}
.cookie-stickers { position: relative; min-height: 160px; }
.sticker { position: absolute; display: grid; place-items: center; font-family: var(--serif); filter: drop-shadow(0 12px 12px rgba(78,58,43,.14)); text-shadow: 0 3px 0 rgba(255,255,255,.55); }
.sticker-heart { left: 9%; top: 40px; font-size: 7rem; color: #e7a082; transform: rotate(-12deg); }
.sticker-tree { left: 42%; top: 12px; font-size: 6.5rem; color: var(--sage); transform: rotate(6deg); }
.sticker-star { right: 8%; top: 42px; font-size: 5.3rem; color: #edb17f; transform: rotate(11deg); -webkit-text-stroke: 1px rgba(88,107,80,.28); }

/* ==========================================================
   INSTAGRAM
   ========================================================== */
.instagram { padding: 30px 0; background: #fff8f2; }
.instagram-row { display: grid; grid-template-columns: 315px 1fr; gap: 24px; align-items: center; }
.instagram-copy { display: flex; gap: 15px; align-items: flex-start; border-right: 1px solid var(--line); padding-right: 24px; }
.instagram-copy > svg { flex: 0 0 auto; width: 28px; margin-top: 2px; fill: none; stroke: var(--sage-deeper); stroke-width: 1.6; }
.instagram-copy h2 { margin: 0; font: 600 1.65rem/1 var(--serif); }
.instagram-copy a { display: inline-block; margin: 4px 0 1px; font-weight: 700; font-size: .88rem; }
.instagram-copy p { margin: 0; color: var(--muted); font-size: .72rem; }
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.instagram-grid a { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1.45/1; }
.instagram-grid a::after {
  content: "@smorosa"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(52,79,58,.44); color: white; opacity: 0; transition: opacity .25s ease; font-weight: 700; font-size: .8rem;
}
.instagram-grid a:hover::after { opacity: 1; }
.instagram-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.instagram-grid a:hover img { transform: scale(1.06); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { padding: 18px 0; background: #f3dfda; border-top: 1px solid rgba(80,98,80,.08); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 110px; height: 44px; object-fit: contain; object-position: left; }
.footer-brand p { margin: 0; color: #657066; font-size: .65rem; line-height: 1.5; }
.footer-links { display: flex; gap: 10px; font-size: .72rem; font-weight: 700; color: var(--sage-deeper); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px 5px 7px;
  border: 1px solid rgba(80,107,82,.1);
  border-radius: 999px;
  background: rgba(255,253,249,.42);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.footer-social img { width: 30px; height: 30px; object-fit: contain; }
.footer-social:hover, .footer-social:focus-visible { transform: translateY(-2px); background: rgba(255,253,249,.82); box-shadow: 0 8px 18px rgba(68,58,48,.09); outline: none; }
.footer-social:active { transform: translateY(0) scale(.97); }

/* ==========================================================
   CART DRAWER
   ========================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(34, 44, 36, .25);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity .25s ease;
}
.overlay.is-visible { opacity: 1; }
.cart-drawer {
  position: fixed;
  z-index: 220;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: min(390px, calc(100vw - 28px));
  height: calc(100dvh - 28px - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  background: rgba(255,253,249,.985);
  border: 1px solid rgba(73,92,74,.14);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(52,45,39,.22);
  transform: translateX(calc(100% + 34px));
  transition: transform .34s cubic-bezier(.22,.9,.3,1);
  overflow: hidden;
}
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 13px; border-bottom: 1px solid var(--line); }
.drawer-header .kicker { margin-bottom: 3px; }
.drawer-header h2 { margin: 0; font: 600 2rem/1 var(--serif); color: var(--sage-deeper); }
.icon-close { width: 38px; height: 38px; display: grid; place-items: center; background: transparent; color: #6f796f; font-size: 1.8rem; cursor: pointer; border-radius: 50%; }
.drawer-scroll { padding: 14px 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.empty-cart { padding: 70px 22px; text-align: center; color: var(--muted); }
.empty-cart > span { display: block; font: 500 4rem/1 var(--serif); color: var(--sage); }
.empty-cart h3 { margin: 10px 0 5px; font: 600 1.6rem var(--serif); color: var(--sage-deeper); }
.empty-cart p { margin: 0 0 20px; }
.cart-items { display: grid; gap: 8px; }
.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.cart-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.cart-item h3 { margin: 0 0 2px; font-size: .82rem; }
.cart-item .unit-price { color: var(--sage-deeper); font-weight: 700; font-size: .78rem; }
.cart-controls { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.cart-controls button { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--sage-deeper); cursor: pointer; }
.cart-controls strong { min-width: 18px; text-align: center; font-size: .72rem; }
.remove-item { padding: 4px; background: transparent; color: #b86f68; cursor: pointer; font-size: .72rem; }
.item-total { color: var(--sage-deeper); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.order-form { padding-top: 14px; }
.subtotal-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 10px; font: 600 1.15rem var(--serif); }
.subtotal-row strong { color: var(--sage-deeper); font-family: var(--sans); font-size: .95rem; }
.form-divider { height: 1px; margin: 2px 0 14px; background: var(--line); }
.order-form > h3 { margin: 0; font: 600 1.35rem var(--serif); }
.form-hint { margin: 2px 0 12px; color: var(--muted); font-size: .7rem; }
.field { display: grid; gap: 5px; margin-bottom: 9px; }
.field > span { font-size: .69rem; color: #606d61; font-weight: 700; }
.field input,
.field textarea {
  width: 100%; border: 1px solid rgba(71,91,72,.18); border-radius: 10px;
  background: #fff; color: var(--ink); padding: 10px 11px; outline: none; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus { border-color: rgba(80,107,82,.55); box-shadow: 0 0 0 3px rgba(80,107,82,.08); }
.form-error { min-height: 18px; margin: 2px 0 7px; color: #a84f49; font-size: .72rem; }
.whatsapp-button {
  width: 100%; min-height: 48px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 11px; background: var(--sage); color: white; box-shadow: 0 10px 22px rgba(70,100,75,.16);
  font-weight: 700;
}
.whatsapp-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.redirect-note { margin: 9px 12px 0; text-align: center; color: var(--muted); font-size: .64rem; }

/* ==========================================================
   FLOATING CART / TOAST
   ========================================================== */
.floating-cart {
  position: fixed; z-index: 190; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px)); min-height: 54px;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 18px; border-radius: 999px; background: var(--sage-deeper); color: white;
  box-shadow: 0 15px 38px rgba(42,63,47,.25); cursor: pointer; font-weight: 700;
}
.floating-cart strong { font-size: .78rem; }
.toast {
  position: fixed; z-index: 300; left: 50%; bottom: 24px;
  max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 999px;
  background: var(--sage-deeper); color: white; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 700;
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 900px); }
  .header-row { grid-template-columns: 150px 1fr auto; }
  .brand { width: 145px; }
  .main-nav { gap: 16px; font-size: .8rem; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .hero-art { min-height: 390px; }
  .hero-photo-main { width: 285px; height: 285px; }
  .hero-photo-left { width: 235px; height: 235px; }
  .hero-photo-front { width: 205px; height: 205px; }
  .product-grid { gap: 13px; }
  .description { min-height: 76px; }
  .instagram-row { grid-template-columns: 280px 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; --shell: calc(100% - 28px); }
  .site-header { min-height: var(--header-height); }
  .header-row { min-height: var(--header-height); grid-template-columns: 1fr auto; gap: 10px; }
  .brand { width: 128px; }
  .brand img { height: 48px; }
  .header-actions { gap: 7px; }
  .instagram-mini { display: none; }
  .cart-button { min-height: 42px; padding: 0 12px; }
  .cart-button > span { display: none; }
  .menu-button {
    display: grid; position: absolute; left: 50%; transform: translateX(-50%);
    width: 42px; height: 42px; place-content: center; gap: 4px; border-radius: 10px; background: transparent; cursor: pointer;
  }
  .menu-button span { width: 20px; height: 2px; border-radius: 2px; background: var(--sage-deeper); transition: .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 14px; right: 14px; top: calc(100% + 8px);
    display: grid; gap: 0; padding: 8px;
    background: rgba(255,253,249,.98); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--soft-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 11px 12px; border-radius: 9px; }
  .main-nav a:hover { background: var(--pink-soft); }

  .hero { min-height: auto; padding: 42px 0 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { text-align: center; padding-left: 0; }
  .hero-copy h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .hero-copy h1 span { font-size: .55em; }
  .hero-lead { margin-inline: auto; max-width: 500px; }
  .hero-cta-row { justify-content: center; }
  .hero-art { width: min(100%, 520px); min-height: 395px; margin-inline: auto; }
  .hero-photo-main { width: 270px; height: 270px; right: 2%; }
  .hero-photo-left { width: 225px; height: 225px; left: 0; top: 90px; }
  .hero-photo-front { width: 190px; height: 190px; left: 35%; bottom: 0; }
  .hero-tag { width: 96px; height: 96px; }

  .products { padding: 46px 0 56px; }
  .product-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 18px; }
  .product-card { display: grid; grid-template-columns: .94fr 1.06fr; }
  .product-media { height: 100%; min-height: 290px; aspect-ratio: auto; }
  .description { min-height: 0; }
  .buy-row { grid-template-columns: 1fr; }
  .quantity { width: 92px; }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .cookie-stickers { min-height: 130px; max-width: 440px; width: 100%; margin-inline: auto; }
  .instagram-row { grid-template-columns: 1fr; }
  .instagram-copy { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
  .footer-row { align-items: flex-start; }

  .floating-cart { display: flex; }
  .toast { bottom: 82px; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 22px); }
  .hero-copy h1 { font-size: clamp(3rem, 17vw, 4.35rem); }
  .hero-lead { font-size: .92rem; }
  .hero-art { min-height: 335px; }
  .hero-photo-main { width: 225px; height: 225px; right: 0; }
  .hero-photo-left { width: 184px; height: 184px; top: 82px; }
  .hero-photo-front { width: 162px; height: 162px; left: 34%; }
  .hero-tag { width: 78px; height: 78px; right: 4%; bottom: 3%; }
  .hero-tag strong { font-size: 1.15rem; }
  .line-doodle { font-size: 2rem; }

  .section-title h2 { font-size: 3rem; }
  .product-card { grid-template-columns: 1fr; }
  .product-media { min-height: 0; aspect-ratio: 1.1/1; }
  .product-body { padding: 15px; }
  .buy-row { grid-template-columns: auto 1fr; }
  .quantity { width: auto; }

  .about { padding: 34px 0; }
  .about-copy h2 { font-size: 2.75rem; }
  .cookie-stickers { min-height: 105px; }
  .sticker-heart { font-size: 5.3rem; top: 25px; }
  .sticker-tree { font-size: 5rem; top: 0; }
  .sticker-star { font-size: 4.1rem; top: 28px; }
  .instagram-grid { gap: 6px; }
  .instagram-grid a { aspect-ratio: 1/1; }

  .footer-row { flex-direction: column; }
  .footer-links { width: 100%; justify-content: flex-end; }

  .cart-drawer {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: min(88dvh, 760px);
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% + 24px));
  }
  .cart-drawer.is-open { transform: translateY(0); }
  .drawer-header { padding: 18px 18px 12px; }
  .drawer-scroll { padding: 12px 14px calc(24px + env(safe-area-inset-bottom)); }
  .cart-item { grid-template-columns: 54px 1fr auto; }
  .cart-item img { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   AJUSTES VISUAIS V3 — MOCKUP APROVADO
   Mantém a experiência funcional e aproxima o site da arte.
   ========================================================== */

/* Hero mais editorial e com transição realmente ondulada */
.hero {
  min-height: 610px;
  padding: 78px 0 112px;
  background:
    radial-gradient(circle at 9% 12%, rgba(255,240,165,.48), transparent 18%),
    radial-gradient(circle at 78% 36%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(108deg, #f3d8d2 0%, #f0d0c8 48%, #e8c4ba 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  z-index: -1;
}
.hero-grid {
  grid-template-columns: .84fr 1.3fr;
  gap: 34px;
}
.hero-copy h1 {
  font-size: clamp(3.45rem, 6vw, 5.95rem);
  line-height: .79;
}
.hero-lead { max-width: 430px; }
.hero-art { min-height: 445px; }
.hero-photo {
  border-color: rgba(255,250,245,.88);
  box-shadow: 0 24px 54px rgba(89, 65, 52, .16);
}
.hero-photo-main {
  width: 350px;
  height: 350px;
  right: 0;
  top: -5px;
  border-radius: 44% 44% 22% 44%;
}
.hero-photo-left {
  width: 300px;
  height: 300px;
  left: 0;
  top: 80px;
  border-radius: 28% 32% 44% 26%;
}
.hero-photo-front {
  width: 245px;
  height: 245px;
  left: 36%;
  bottom: -10px;
  border-width: 8px;
}
.hero-tag {
  right: 4%;
  bottom: 4%;
  width: 122px;
  height: 122px;
}
.hero-wave {
  left: -1px;
  right: -1px;
  bottom: -2px;
  height: 104px;
  clip-path: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fffaf5' d='M0 46 C150 92 295 10 445 50 C590 89 720 100 865 53 C1010 7 1140 3 1275 45 C1395 83 1495 82 1600 44 L1600 120 L0 120 Z'/%3E%3C/svg%3E");
}

/* Produtos com mais profundidade e detalhes laterais do mockup */
.products {
  position: relative;
  isolation: isolate;
  padding: 68px 0 44px;
  overflow: hidden;
}
.products::before,
.products::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 330px;
  top: 180px;
  background-size: cover;
  background-position: center;
  opacity: .23;
  filter: saturate(.78) contrast(.92);
  pointer-events: none;
}
.products::before {
  left: -155px;
  border-radius: 42% 58% 45% 55%;
  transform: rotate(8deg);
  background-image: linear-gradient(rgba(255,250,245,.08), rgba(255,250,245,.08)), url("assets/instagram-fallback/fallback-02.webp");
}
.products::after {
  right: -155px;
  border-radius: 55% 45% 58% 42%;
  transform: rotate(-8deg);
  background-image: linear-gradient(rgba(255,250,245,.08), rgba(255,250,245,.08)), url("assets/instagram-fallback/fallback-05.webp");
}
.product-grid {
  max-width: 1010px;
  margin-inline: auto;
  gap: 18px;
}
.product-card {
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(68,58,48,.075);
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(68,58,48,.13);
}

/* Faixa "Sobre" como na arte aprovada */
.about {
  padding: 16px 0 28px;
  background: var(--cream);
  border: 0;
}
.about-grid {
  grid-template-columns: .9fr 1.25fr;
  gap: 30px;
  padding: 25px 28px;
  border: 1px solid rgba(89,93,79,.06);
  border-radius: 28px;
  background: linear-gradient(95deg, #f1d4ce 0%, #f6dfda 56%, #f7e6e1 100%);
  box-shadow: 0 10px 30px rgba(81,64,54,.055);
}
.about-copy { max-width: 520px; padding: 0; }
.about-copy h2 { font-size: clamp(2.15rem, 3.3vw, 3.1rem); }
.about-copy > p:not(.kicker) {
  margin: 12px 0 16px;
  font-size: .88rem;
  line-height: 1.55;
}
.outline-button {
  min-height: 42px;
  padding: 0 21px;
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 20px rgba(70,100,75,.14);
}
.outline-button:hover {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  align-items: stretch;
  min-width: 0;
}
.about-gallery figure {
  margin: 0;
  min-height: 155px;
  overflow: hidden;
  border-radius: 14px;
  background: #efd6d0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.about-gallery figure:hover img { transform: scale(1.035); }

/* Carrinho híbrido: botão flutuante quando fechado + painel flutuante ao abrir */
.overlay {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.cart-drawer {
  top: calc(var(--header-height) + 18px);
  right: 22px;
  width: min(390px, calc(100vw - 44px));
  height: min(760px, calc(100dvh - var(--header-height) - 40px));
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(52,45,39,.2);
}
.floating-cart {
  left: auto;
  right: 22px;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: none;
  width: auto;
  min-width: 285px;
  max-width: min(380px, calc(100% - 44px));
  min-height: 54px;
  display: flex;
  padding: 0 18px;
  background: var(--sage-deeper);
  box-shadow: 0 16px 38px rgba(42,63,47,.28);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
body.cart-open .floating-cart {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.toast { bottom: 88px; }

@media (max-width: 1100px) {
  .hero-photo-main { width: 315px; height: 315px; }
  .hero-photo-left { width: 265px; height: 265px; }
  .hero-photo-front { width: 220px; height: 220px; }
  .products::before,
  .products::after { display: none; }
  .about-grid { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 760px) {
  .hero {
    padding: 46px 0 92px;
  }
  .hero-wave { height: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 405px; }
  .hero-photo-main { width: 280px; height: 280px; }
  .hero-photo-left { width: 228px; height: 228px; }
  .hero-photo-front { width: 192px; height: 192px; }

  .about-grid {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .about-copy { max-width: none; text-align: center; }
  .about-copy > p:not(.kicker) { margin-inline: auto; }
  .about-gallery figure { min-height: 135px; }

  .overlay {
    background: rgba(34,44,36,.25);
    backdrop-filter: blur(3px);
    pointer-events: auto;
  }
  .cart-drawer {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px - env(safe-area-inset-top));
    border-radius: 22px;
  }
  .floating-cart {
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(520px, calc(100% - 24px));
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .hero-art { min-height: 345px; }
  .hero-photo-main { width: 232px; height: 232px; }
  .hero-photo-left { width: 190px; height: 190px; }
  .hero-photo-front { width: 165px; height: 165px; }
  .hero-tag { width: 82px; height: 82px; }
  .products { padding-top: 48px; }
  .about-grid { border-radius: 22px; padding: 19px; }
  .about-gallery { gap: 6px; }
  .about-gallery figure { min-height: 102px; border-radius: 10px; }

  .cart-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    border-radius: 24px 24px 0 0;
  }
}

/* ==========================================================
   LOTES / DISPONIBILIDADE — V4
   ========================================================== */
.lot-strip {
  position: relative;
  z-index: 4;
  margin-top: -18px;
  padding: 0 0 18px;
  background: var(--cream);
}
.lot-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(80, 107, 82, .12);
  border-radius: 20px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 12px 34px rgba(70, 61, 49, .08);
}
.lot-card[data-status="open"] { background: linear-gradient(100deg, #fffdf9 0%, #fff7d4 100%); }
.lot-card[data-status="closed"],
.lot-card[data-status="between"] { background: linear-gradient(100deg, #fffdf9 0%, #f7e5e0 100%); }
.lot-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--sage-deeper);
  font: 600 1.55rem var(--serif);
}
.lot-card-copy { min-width: 0; }
.lot-eyebrow {
  margin: 0 0 2px;
  color: var(--sage-dark);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.lot-card h2 {
  margin: 0;
  color: var(--sage-deeper);
  font: 600 1.55rem/1.05 var(--serif);
}
.lot-card-copy > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .83rem; }
.lot-card-delivery {
  min-width: 175px;
  padding: 11px 14px;
  border-left: 1px solid var(--line);
  text-align: right;
}
.lot-card-delivery span { display: block; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.lot-card-delivery strong { display: block; margin-top: 2px; color: var(--sage-deeper); font-size: .88rem; }

.product-meta-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.stock-note {
  max-width: 145px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.25;
  text-align: right;
}
.stock-note.is-low { color: #9a6a33; font-weight: 700; }
.stock-note.is-soldout { color: #9d5f61; font-weight: 700; }
.stock-note.is-open { color: var(--sage-dark); font-weight: 700; }
.product-card.is-unavailable .product-media img { filter: saturate(.55) opacity(.78); }
.add-button:disabled,
.quantity button:disabled {
  cursor: not-allowed;
  transform: none !important;
  opacity: .52;
  box-shadow: none;
}
.add-button:disabled { background: #9eaa9d; }

.pix-callout {
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--sage-deeper);
  font: 500 1rem/1.25 var(--serif);
  text-align: center;
}
.pix-callout strong { font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; }

/* ==========================================================
   CHECKOUT / PIX — V4
   ========================================================== */
.cart-lot-summary {
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fff7d8;
  color: var(--sage-deeper);
  font-size: .75rem;
  line-height: 1.4;
}
.cart-lot-summary strong { display: block; font-size: .82rem; }
.payment-fieldset {
  margin: 13px 0 10px;
  padding: 0;
  border: 0;
}
.payment-fieldset legend {
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 800;
  color: #606d61;
}
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.payment-option.is-featured { background: #fffbdf; border-color: rgba(135,157,126,.3); }
.payment-option input { margin-top: 3px; accent-color: var(--sage-dark); }
.payment-option span { display: grid; gap: 2px; }
.payment-option strong { color: var(--sage-deeper); font-size: .77rem; }
.payment-option strong b { color: #8e6d2f; font-weight: 700; }
.payment-option small { color: var(--muted); font-size: .66rem; line-height: 1.3; }
.discount-row,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: .78rem;
}
.discount-row { color: #6f815f; }
.total-row {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--sage-deeper);
  font-size: .92rem;
}
.total-row strong { font-size: 1rem; }
.checkout-note {
  margin: 9px 4px 0;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.35;
  text-align: center;
}

.store-mode-warning {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99;
  max-width: 340px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff4cc;
  color: #665222;
  box-shadow: var(--soft-shadow);
  font-size: .72rem;
}

@media (max-width: 760px) {
  .lot-strip { margin-top: -8px; }
  .lot-card { grid-template-columns: auto 1fr; gap: 12px; padding: 15px 16px; }
  .lot-card-delivery { grid-column: 1 / -1; min-width: 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .product-meta-line { align-items: center; }
  .pix-callout { border-radius: 16px; }
}

@media (max-width: 520px) {
  .lot-card-icon { width: 38px; height: 38px; }
  .lot-card h2 { font-size: 1.32rem; }
  .stock-note { max-width: 120px; }
}

/* ==========================================================
   CATÁLOGO DINÂMICO / PRODUTOS AVULSOS — v4.1
========================================================== */
.regular-products-block {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid rgba(71, 99, 75, .12);
}
.regular-section-title { margin-bottom: 30px; }
.product-kind-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .9);
  color: var(--sage-dark);
  font: 700 .67rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(59, 65, 54, .08);
  backdrop-filter: blur(6px);
}

@media (max-width: 760px) {
  .regular-products-block { margin-top: 44px; padding-top: 38px; }
}

/* ==========================================================
   CATÁLOGO 4 ITENS — v4.3
========================================================== */
@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1180px;
  }
  .product-body { padding: 16px 15px 17px; }
  .product-body h3 { font-size: 1rem; }
  .description { font-size: .7rem; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
}

/* ==========================================================
   GALERIAS + INSTAGRAM DINÂMICO — v4.4.1
========================================================== */
.gallery-open-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(32, 46, 34, .78);
  color: #fff;
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .03em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}
.gallery-open-button:hover { transform: translateY(-1px); background: rgba(32, 46, 34, .9); }

.instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.instagram-tile { isolation: isolate; }
.instagram-tile span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--sage-dark);
  font: 700 .62rem/1 var(--sans);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.instagram-tile:hover span,
.instagram-tile:focus-visible span { opacity: 1; transform: translateY(0); }
.instagram-tile.is-fallback::before {
  content: "arquivo SMØROSA";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,253,249,.82);
  color: var(--sage-dark);
  font: 700 .55rem/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.gallery-open { overflow: hidden; }
.product-gallery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(36, 31, 28, .62);
  backdrop-filter: blur(8px);
}
.product-gallery-modal {
  position: relative;
  width: min(1040px, 96vw);
  max-height: min(860px, 92vh);
  overflow: auto;
  border-radius: 28px;
  background: var(--warm-white, #fffdf9);
  box-shadow: 0 30px 80px rgba(38, 31, 27, .25);
}
.product-gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,253,249,.94);
  color: var(--sage-dark);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(53,45,39,.12);
}
.product-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  min-height: 610px;
}
.product-gallery-visual {
  padding: 22px;
  background: #efe0db;
}
.product-gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 510px;
  overflow: hidden;
  border-radius: 21px;
  background: rgba(255,255,255,.42);
}
.product-gallery-stage > img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  border-radius: 21px;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(255,253,249,.91);
  color: var(--sage-dark);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(49,40,35,.13);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gallery-arrow span { display: block; line-height: 1; transition: transform .2s ease; }
.gallery-arrow:hover, .gallery-arrow:focus-visible {
  transform: translateY(-50%) scale(1.09);
  background: rgba(255,253,249,.99);
  border-color: rgba(80,107,82,.24);
  box-shadow: 0 12px 28px rgba(49,40,35,.2);
  outline: none;
}
.gallery-arrow-prev:hover span, .gallery-arrow-prev:focus-visible span { transform: translateX(-3px); }
.gallery-arrow-next:hover span, .gallery-arrow-next:focus-visible span { transform: translateX(3px); }
.gallery-arrow:active { transform: translateY(-50%) scale(.94); box-shadow: 0 4px 12px rgba(49,40,35,.15); }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.product-gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gallery-thumb:hover, .gallery-thumb:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(49,40,35,.12); outline: none; }
.gallery-thumb:active { transform: translateY(0) scale(.96); }
.gallery-thumb.is-active { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(135,157,126,.12); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px 48px 48px;
}
.product-gallery-copy h2 {
  margin: 3px 0 2px;
  font: 600 clamp(2.1rem, 4vw, 3.6rem)/.95 var(--serif);
  color: var(--sage-dark);
}
.product-gallery-tagline {
  margin: 5px 0 24px;
  color: #93776f;
  font: italic 600 1.15rem/1.3 var(--serif);
}
.product-gallery-description {
  margin: 0 0 24px;
  color: #554c47;
  font: 400 .92rem/1.7 var(--sans);
}
.product-gallery-price {
  display: block;
  margin-bottom: 8px;
  color: var(--sage-dark);
  font: 700 1.35rem/1 var(--sans);
}
.product-gallery-stock {
  margin: 0 0 24px;
  color: #718073;
  font: 600 .78rem/1.4 var(--sans);
}
.product-gallery-add { width: 100%; min-height: 48px; justify-content: center; }
.product-gallery-add:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 820px) {
  .product-gallery-backdrop { padding: 10px; align-items: end; }
  .product-gallery-modal { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; }
  .product-gallery-layout { grid-template-columns: 1fr; min-height: 0; }
  .product-gallery-visual { padding: 14px; }
  .product-gallery-stage { min-height: 46vh; }
  .product-gallery-stage > img { height: 46vh; }
  .product-gallery-copy { padding: 28px 24px 34px; }
  .product-gallery-copy h2 { font-size: 2.35rem; }
}

@media (max-width: 560px) {
  .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instagram-tile span { opacity: 1; transform: none; font-size: .56rem; }
  .instagram-tile.is-fallback::before { display: none; }
  .gallery-open-button { padding: 7px 10px; font-size: .62rem; }
  .gallery-thumb { flex-basis: 62px; width: 62px; height: 54px; }
}

/* Microinterações táteis — v4.4.1 */
.product-gallery-close { transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.product-gallery-close:hover, .product-gallery-close:focus-visible { transform: rotate(4deg) scale(1.06); background: #fff; box-shadow: 0 10px 24px rgba(53,45,39,.18); outline: none; }
.product-gallery-close:active { transform: scale(.94); }
.gallery-open-button:active, .add-button:active, .outline-button:active, .whatsapp-button:active { transform: scale(.97); }
.add-button, .outline-button, .whatsapp-button { transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease; }
.add-button:hover, .outline-button:hover, .whatsapp-button:hover { filter: brightness(.98); box-shadow: 0 8px 20px rgba(49,40,35,.1); }
