:root {
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #202824;
  background: #f7f7f3;
  color-scheme: light dark;
  --bg: #f7f7f3;
  --card: #fff;
  --surface: #f0f2ed;
  --line: #e3e6df;
  --muted: #68726c;
  --blue: #214b3c;
  --button: #214b3c;
  --hero: #e9ede6;
  --shadow: 0 12px 32px rgb(25 39 29 / 6%);
  --shadow-hover: 0 18px 42px rgb(25 39 29 / 11%);
  --radius-card: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid #bd8152; outline-offset: 3px; }
button, input, select, textarea { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; }
button { padding: 9px 14px; font-weight: 650; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
input, select, textarea { max-width: 100%; padding: 10px 13px; }
input, textarea { width: 100%; }
textarea { min-height: 100px; resize: vertical; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: inherit; }
h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.035em; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px; background: var(--card); }
.skip-link:focus { top: 12px; }

.store-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: minmax(170px, 245px) minmax(160px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgb(32 40 36 / 7%);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 3px 16px rgb(25 39 29 / 3%);
  backdrop-filter: blur(16px);
}
.store-brand { display: flex; min-width: 0; max-width: 340px; align-items: center; gap: 11px; color: inherit; font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
.store-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-header:has(#continue-shopping) { display: flex; justify-content: space-between; }
.store-header:has(#continue-shopping) .store-brand { margin-right: auto; }
.brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--blue); font-size: 16px; font-weight: 760; }
.business-logo { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: contain; }
.store-search { position: relative; display: block; min-width: 0; }
.store-search::before { position: absolute; top: 50%; left: 15px; width: 14px; height: 14px; border: 1.7px solid var(--muted); border-radius: 50%; content: ""; pointer-events: none; transform: translateY(-58%); }
.store-search::after { position: absolute; top: 55%; left: 28px; width: 6px; height: 1.7px; background: var(--muted); content: ""; pointer-events: none; transform: rotate(45deg); transform-origin: left center; }
.store-search input { height: 44px; padding: 10px 14px 10px 40px; border-color: transparent; border-radius: 999px; background: var(--surface); font-size: 14px; }
.store-search input:focus { border-color: var(--line); background: var(--card); }
.language-control, .theme-control { display: block; }
.language-control select, .theme-control select { min-height: 42px; padding: 8px 30px 8px 11px; border-color: transparent; background-color: var(--surface); font-size: 12px; font-weight: 680; }
.checkout-link, .primary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--button); border-radius: 999px; background: var(--button); color: #fff; font-size: 13px; font-weight: 720; white-space: nowrap; }
.checkout-link:hover, .primary:hover { background: #173a2e; color: #fff; box-shadow: 0 6px 16px rgb(33 75 60 / 17%); }
.checkout-link[aria-disabled=true] { border-color: var(--line); background: var(--surface); color: var(--muted); opacity: 1; }
.shell { width: min(1320px, 100%); margin: auto; padding: 0 24px 64px; }
.state { max-width: 600px; margin: 48px auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); text-align: center; }

.market-tabs { display: flex; max-width: 100%; gap: 26px; overflow-x: auto; margin: 0 0 22px; padding: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.market-tabs button, .market-tabs > a { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 54px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 680; }
.market-tabs button:hover:not(:disabled) { color: var(--blue); transform: none; }
.market-tabs .active { color: var(--blue); }
.market-tabs .active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--blue); content: ""; }
.store-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; margin: 0 0 30px; border-radius: 22px; background: var(--hero); color: #23362d; }
.store-hero:has(.hero-banners[hidden]) { min-height: 245px; padding: clamp(28px, 5vw, 60px); background: radial-gradient(ellipse at 92% 15%, rgb(255 255 255 / 85%), transparent 34%), linear-gradient(115deg, #e8eee6 0%, #edf0e9 56%, #e3e9df 100%); }
.hero-copy { max-width: 660px; }
.hero-eyebrow { margin: 0 0 12px; color: #68796d; font-size: 11px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; color: #1f342a; }
.hero-copy > p:last-child { max-width: 560px; margin-top: 14px; color: #596960; font-size: 15px; }
.mode-note { color: var(--muted); font-size: 14px; }
.hero-banners { min-width: 0; }
.carousel { min-width: 0; }
.carousel-stage { height: clamp(250px, 33vw, 440px); overflow: hidden; border-radius: 22px; background: var(--surface); }
.carousel-slide { position: relative; display: block; width: 100%; height: 100%; color: inherit; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.banner-label { position: absolute; right: 24px; bottom: 24px; left: 24px; width: fit-content; max-width: calc(100% - 48px); padding: 12px 18px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 12px; background: rgb(20 32 25 / 78%); color: white; font-size: 16px; font-weight: 700; backdrop-filter: blur(10px); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.carousel-controls button { width: 42px; min-width: 42px; min-height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--blue); }
.carousel-counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.banner-carousel { position: relative; }
.banner-carousel .carousel-stage { height: auto; aspect-ratio: 3 / 1; }
.store-home .banner-carousel .carousel-stage { aspect-ratio: 16 / 9; }
.home-catalog-link { display: flex; justify-content: center; margin-top: 28px; }
.store-header:has(#market-tabs) { padding-bottom: 0; row-gap: 0; }
.store-header:has(#market-tabs) { grid-template-columns: minmax(170px, 245px) minmax(160px, 1fr) auto; }
.store-preferences { position: sticky; bottom: 0; flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 0 max(0px, env(safe-area-inset-bottom)); margin-top: auto; border-top: 1px solid var(--line); background: var(--card); }
.store-preferences label { display: grid; gap: 6px; font-size: 12px; }
.store-preferences select { width: 100%; min-height: 44px; background: var(--card); }
.store-header > .market-tabs { display: block; grid-row: 2; grid-column: 1 / -1; overflow: visible; margin: 0; border: 0; }
.nav-items { display: flex; align-items: center; gap: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.nav-items > a { position: relative; display: inline-flex; align-items: center; min-height: 50px; flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 680; }
.nav-items > a.active { color: var(--blue); }
.market-tabs .active::after { bottom: 0; }
.category-menu { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(340px, calc(100vw - 48px)); max-width: calc(100vw - 48px); height: 100dvh; max-height: 100dvh; overflow: hidden; margin: 0; padding: 24px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--blue); box-shadow: var(--shadow-hover); }
html:has(#category-menu[open]) { overflow: hidden; }
.category-menu[open] { display: flex; flex-direction: column; }
.category-menu::backdrop { background: rgb(11 19 15 / 45%); backdrop-filter: blur(2px); }
.category-menu-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.category-menu-heading h2 { margin: 0; font-size: 22px; }
.category-menu-heading button { border-radius: 999px; font-size: 12px; }
.subcategory-links { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 16px; }
.category-destination { display: flex; min-height: 48px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--blue); overflow-wrap: anywhere; }
.category-destination:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.category-group { min-width: 0; border-bottom: 1px solid var(--line); }
.category-group summary { min-height: 48px; padding: 14px 4px; cursor: pointer; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.category-children { padding: 0 0 12px 12px; }
.category-types { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.category-types button { justify-content: center; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.category-types button[aria-selected=true] { border-color: var(--button); background: var(--button); color: #fff; }
.category-menu .kind-destination { margin-bottom: 8px; }
.category-group a { margin-bottom: 8px; font-size: 13px; }
.market-tabs .all-categories { display: inline-flex; min-height: 48px; align-items: center; gap: 6px; margin-left: auto; }
.all-categories::after { content: '☰'; margin-left: 8px; }
.shell { padding-top: 24px; }
.home-collections, .home-editorial { margin: 44px 0 56px; }
.home-collections > h2, .home-editorial > h2 { margin: 0 0 22px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.collection-tile { position: relative; display: grid; gap: 14px; min-width: 0; color: inherit; }
.collection-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--surface); }
.collection-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.collection-tile:hover img { transform: scale(1.04); }
.collection-tile > strong { padding-right: 30px; font-size: 16px; }
.collection-arrow { position: absolute; right: 0; bottom: 0; color: var(--blue); font-size: 20px; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.editorial-card { display: block; min-width: 0; overflow: hidden; padding: 0 0 24px; border: 0; border-radius: 22px; background: var(--surface); color: inherit; text-align: left; }
.editorial-card img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; margin-bottom: 22px; }
.editorial-card .item-kind, .editorial-card h3, .editorial-price { display: block; margin: 10px 24px; }
.editorial-card h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; }
.editorial-price { font-size: 16px; }
@media (max-width: 700px) {
  .store-header:has(#market-tabs) { grid-template-columns: minmax(0, 1fr) auto; }
  .store-header > .market-tabs { grid-row: 3; }
  .nav-items { gap: 20px; }
  .category-menu { padding: 20px 14px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .home-collections, .home-editorial { margin: 30px 0 38px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .editorial-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; column-gap: 14px; border-radius: 16px; padding: 0 14px 0 0; }
  .editorial-card img { grid-column: 1; grid-row: 1 / 4; height: 100%; aspect-ratio: 1; margin: 0; }
  .editorial-card .item-kind, .editorial-card h3, .editorial-price { grid-column: 2; margin: 8px 0; }
  .editorial-card .item-kind { align-self: end; }
  .editorial-price { align-self: start; }
  .editorial-card h3 { font-size: 18px; }
  .editorial-price { font-size: 13px; }
}
.banner-carousel .carousel-slide img { object-fit: cover; object-position: center; }
.banner-accessible-controls { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: 0; clip-path: inset(50%); }
.banner-accessible-controls:focus-within { z-index: 2; top: 10px; left: 10px; width: auto; height: auto; overflow: visible; padding: 6px; border-radius: 999px; background: var(--card); clip-path: none; box-shadow: var(--shadow); }
.product-discovery { position: relative; min-width: 0; margin: 30px 0 38px; padding: 0; border: 0; background: transparent; }
.discovery-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.discovery-heading:focus-within { z-index: 2; top: 0; right: 0; width: auto; height: auto; padding: 6px; border-radius: 999px; background: var(--card); clip-path: none; overflow: visible; }
.discovery-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.discovery-heading h2 { margin: 0; }
.discovery-controls { display: flex; flex-shrink: 0; align-items: center; gap: 7px; }
.discovery-controls button { min-width: 44px; border-radius: 999px; font-size: 12px; }
.product-rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-behavior: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.product-rail::-webkit-scrollbar { display: none; }
.discovery-card { display: grid; grid-template-columns: 115px minmax(0, 1fr); width: 320px; min-width: 0; flex: 0 0 320px; gap: 18px; overflow: hidden; padding: 14px; border-radius: 17px; background: var(--card); text-align: left; box-shadow: var(--shadow); }
.discovery-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--blue); }
.discovery-media { display: block; min-width: 0; height: 136px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.discovery-media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.discovery-media .item-placeholder { font-size: 38px; }
.discovery-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; align-items: start; gap: 8px; }
.discovery-copy .item-kind { margin: 0; font-size: 9px; }
.discovery-name { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discovery-price { font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes discovery-arrive { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (max-width: 700px) {
  .product-discovery { margin: 24px 0 30px; padding: 0; }
  .discovery-heading { flex-wrap: wrap; padding: 0 4px; }
  .discovery-heading h2 { font-size: 23px; }
  .discovery-card { width: 278px; flex-basis: 278px; grid-template-columns: 98px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .discovery-media { height: 126px; }
}
.category-pills { display: flex; max-width: 100%; gap: 9px; overflow-x: auto; margin: 0 0 28px; padding: 0 0 4px; scrollbar-width: thin; }
.category-pills button { flex: 0 0 auto; max-width: 240px; overflow: hidden; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #4d5952; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-pills button:hover:not(:disabled) { border-color: #9aaa9d; color: var(--blue); }
.category-pills button.active { border-color: var(--blue); background: #e8eee8; color: var(--blue); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
body:not(.store-home) .section-heading > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:not(.store-home) .section-heading { justify-content: end; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.section-heading label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.section-heading select { min-height: 42px; padding: 8px 32px 8px 12px; background: var(--card); font-size: 12px; }
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-discovery { grid-column: 1 / -1; margin: 18px 0 24px; }
.item-entered { animation: product-arrive .45s ease-out both; }
@keyframes product-arrive { from { transform: translateY(8px); } to { transform: translateY(0); } }
.item-card { display: flex; min-width: 0; flex-direction: column; padding: 10px 10px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.item-card:hover { transform: translateY(-3px); border-color: #d2d9d0; box-shadow: var(--shadow-hover); }
.item-media { position: relative; display: grid; width: 100%; height: auto; aspect-ratio: 1.18; flex: 0 0 auto; place-items: center; overflow: hidden; margin: 0 0 14px; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(145deg, #f2f3ee, #e7ebe4); color: var(--blue); }
.item-media:hover:not(:disabled) img { transform: scale(1.035); }
.item-media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform .35s ease; }
.item-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(ellipse at 50% 0%, rgb(255 255 255 / 78%), transparent 55%), linear-gradient(145deg, #eef1eb, #e5eae2); color: #6e8575; font-family: Georgia, serif; font-size: 48px; font-weight: 600; }
.item-kind { display: block; margin: 0 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.item-card h3 { margin: 5px 2px 0; }
.item-title { display: block; width: 100%; min-height: 0; overflow: hidden; padding: 0; border: 0; background: transparent; color: #222b26; font-size: 15px; font-weight: 720; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.item-title:hover { color: var(--blue); }
.availability { margin: auto 2px 0; padding-top: 12px; color: #6b776f; font-size: 11px; }
.item-price { margin: 10px 2px 11px; color: #1d382b; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.featured-badge { align-self: start; margin: 7px 2px 0; padding: 4px 9px; border-radius: 999px; background: #f5eee5; color: #8b603c; font-size: 10px; font-weight: 720; }
.cart-controls { display: flex; min-height: 42px; align-items: center; gap: 6px; margin: auto 0 0; }
.cart-controls input { width: 54px; min-width: 0; padding: 8px 5px; border-radius: 999px; text-align: center; }
.cart-controls button { min-width: 42px; min-height: 42px; padding: 7px 12px; border-radius: 999px; }
.cart-controls .add { width: 100%; border-color: var(--button); background: var(--button); color: #fff; font-size: 12px; }
.cart-controls .add:hover:not(:disabled) { background: #173a2e; box-shadow: 0 5px 14px rgb(33 75 60 / 16%); }
.catalog-empty { grid-column: 1 / -1; padding: 48px 20px; color: var(--muted); text-align: center; }
.catalog-pages { display: flex; justify-content: center; gap: 10px; margin-top: 28px; scroll-margin-top: 140px; }
.catalog-pages button { border-radius: 999px; }
.catalog-pages #load-more { margin: 0; }
#catalog-heading { scroll-margin-top: 150px; }

.merchant-info { position: relative; overflow: hidden; margin-top: 64px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.merchant-info::before { position: absolute; top: 0; left: 36px; width: 68px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); content: ''; }
.merchant-info h2 { margin: 0 0 28px; font-size: 24px; letter-spacing: -.03em; }
#merchant-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
#merchant-details h3 { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#merchant-details p { margin: 8px 0 0; color: inherit; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
#merchant-details > div { min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.merchant-policy { grid-column: span 1; }
.freshness { grid-column: 1 / -1; color: var(--muted) !important; font-size: 11px !important; }
.store-footer { display: flex; width: min(1320px, 100%); justify-content: space-between; gap: 16px; margin: auto; padding: 24px 24px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.store-footer a { color: var(--muted); }
.whatsapp-top { position: fixed; z-index: 15; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; }
.whatsapp-top img { display: block; width: 56px; height: 56px; border-radius: 50%; background: #20b20d; clip-path: circle(50%); box-shadow: 0 8px 24px rgb(18 40 27 / 20%); }
.whatsapp-top span { max-width: 0; overflow: hidden; padding: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 690; opacity: 0; white-space: nowrap; transition: max-width .3s ease, opacity .2s ease, padding .3s ease; }
.whatsapp-top.is-intro span { max-width: 200px; padding: 10px 14px; opacity: 1; }

.checkout-shell { width: min(1120px, 100%); margin: auto; padding: 40px 24px 64px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: start; gap: 22px; }
.checkout-card { min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.checkout-card h1, .checkout-card h2 { margin: 0 0 18px; }
.checkout-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checkout-line small { display: block; color: var(--muted); }
.checkout-line .cart-controls { grid-column: 1 / -1; }
.totals { margin: 24px 0 0; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; margin: 11px 0; }
.totals dd { margin: 0; font-weight: 720; font-variant-numeric: tabular-nums; }
.checkout-total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; }
.order-form { display: grid; gap: 14px; align-content: start; }
.order-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.order-form input, .order-form select, .order-form textarea { width: 100%; }
.checkout-note, .form-status { color: var(--muted); font-size: 12px; }
.checkout-services-section { margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--surface); }
.checkout-services-section h2 { font-size: 18px; }
.checkout-service { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 10px 0; }
.checkout-service input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; accent-color: var(--button); }
.checkout-service small { display: block; color: var(--muted); }
.form-status { overflow-wrap: anywhere; }
.text-link { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 4px; color: var(--blue); font-size: 12px; font-weight: 680; }
.confirmation-links { display: flex; flex-wrap: wrap; gap: 12px; }
dialog { width: min(720px, calc(100vw - 24px)); max-height: 90dvh; overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: inherit; box-shadow: 0 28px 90px rgb(0 0 0 / 25%); }
dialog::backdrop { background: rgb(11 19 15 / 58%); backdrop-filter: blur(3px); }
.dialog-close { display: block; margin-left: auto; border-radius: 999px; }
.description { white-space: pre-wrap; }
.detail-price { display: block; margin: 16px 0; font-size: 25px; }
#product-detail .carousel-stage { height: min(380px, 48vh); }
.detail-video { display: block; width: 100%; max-height: 320px; margin-top: 16px; border-radius: 14px; background: var(--surface); }
.detail-no-image { padding: 52px 20px; border-radius: 14px; background: var(--surface); color: var(--muted); text-align: center; }
.image-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); }

@media (max-width: 1050px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-header { grid-template-columns: minmax(130px, 210px) minmax(140px, 1fr) auto auto auto; gap: 8px; padding-right: 18px; padding-left: 18px; }
  .store-brand { font-size: 14px; }
}
@media (max-width: 700px) {
  .store-header { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; padding: 10px 14px; }
  .store-brand { max-width: 100%; gap: 8px; font-size: 13px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .business-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .store-search { grid-row: 2; grid-column: 1 / -1; }
  .store-search input { height: 42px; }
  .language-control select, .theme-control select { min-height: 44px; padding: 7px 24px 7px 9px; font-size: 11px; }
  .checkout-link { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .shell { padding: 20px 14px 44px; }
  .market-tabs { gap: 22px; margin-bottom: 16px; }
  .market-tabs button, .market-tabs > a { min-height: 48px; font-size: 12px; }
  .store-hero { margin-bottom: 22px; border-radius: 16px; }
  .store-hero:has(.hero-banners[hidden]) { min-height: 195px; padding: 26px 22px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-copy > p:last-child { font-size: 13px; }
  .carousel-stage { height: clamp(190px, 57vw, 290px); border-radius: 16px; }
  .banner-label { right: 12px; bottom: 12px; left: 12px; max-width: calc(100% - 24px); padding: 9px 12px; font-size: 13px; }
  .category-pills { gap: 7px; margin-bottom: 22px; }
  .category-pills button { min-height: 38px; padding: 6px 12px; font-size: 11px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .section-heading label { width: 100%; justify-content: space-between; }
  .section-heading select { max-width: 76%; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .item-card { padding: 8px 8px 11px; border-radius: 15px; }
  .item-media { aspect-ratio: 1.04; margin-bottom: 11px; border-radius: 10px; }
  .item-card h3 { margin-top: 4px; }
  .item-title { font-size: 13px; }
  .item-kind { font-size: 9px; }
  .item-description { min-height: 34px; margin-top: 5px; font-size: 11px; }
  .availability { padding-top: 9px; font-size: 10px; }
  .item-price { margin: 8px 2px 9px; font-size: 15px; }
  .cart-controls button { min-height: 38px; }
  .cart-controls .add { font-size: 11px; }
  .merchant-info { margin-top: 42px; padding: 28px 22px; border-radius: 20px; }
  .merchant-info::before { left: 22px; }
  .merchant-policy { grid-column: 1 / -1; }
  #merchant-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .store-footer { padding: 20px 14px 30px; font-size: 10px; }
  .whatsapp-top { right: 14px; bottom: 14px; }
  .whatsapp-top img { width: 50px; height: 50px; }
  .whatsapp-top.is-intro span { max-width: min(180px, calc(100vw - 100px)); }
  .checkout-shell { padding: 24px 14px 44px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 14px; }
  .checkout-card { padding: 21px; border-radius: 17px; }
  dialog { padding: 18px; border-radius: 18px; }
  #product-detail .carousel-stage { height: min(270px, 42vh); }
}
@media (max-width: 370px) {
  .store-header { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 5px; padding-right: 9px; padding-left: 9px; }
  .store-brand { gap: 6px; font-size: 11px; }
  .brand-mark, .business-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .language-control select, .theme-control select { max-width: 66px; padding-right: 18px; padding-left: 6px; font-size: 10px; }
  .checkout-link { padding: 7px 8px; font-size: 10px; }
  .shell { padding-right: 10px; padding-left: 10px; }
  .catalog { gap: 8px; }
  .item-card { padding: 7px 7px 9px; }
  .item-title { font-size: 12px; }
  .item-price { font-size: 13px; }
  .cart-controls .add { padding-right: 7px; padding-left: 7px; font-size: 10px; }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  color: #e9eee9;
  --bg: #111914;
  --card: #1a241e;
  --surface: #26342b;
  --line: #34453a;
  --muted: #afbbb1;
  --blue: #bad6c4;
  --button: #315d46;
  --hero: #26372c;
  --shadow: 0 12px 32px rgb(0 0 0 / 15%);
  --shadow-hover: 0 18px 42px rgb(0 0 0 / 26%);
}
:root[data-theme="dark"] .store-hero:has(.hero-banners[hidden]) { background: radial-gradient(ellipse at 92% 15%, rgb(255 255 255 / 5%), transparent 34%), linear-gradient(115deg, #26372c, #202e25); color: #e9eee9; }
:root[data-theme="dark"] .hero-copy h1,
:root[data-theme="dark"] .item-title,
:root[data-theme="dark"] .item-price,
:root[data-theme="dark"] #merchant-details p { color: #e9eee9; }
:root[data-theme="dark"] .hero-copy > p:last-child,
:root[data-theme="dark"] .category-pills button { color: #c1ccc3; }
:root[data-theme="dark"] .item-placeholder { background: radial-gradient(ellipse at 50% 0%, rgb(255 255 255 / 5%), transparent 55%), linear-gradient(145deg, #26362c, #202e25); color: #b5cbbc; }
:root[data-theme="dark"] .category-pills button.active { background: #263c30; color: #d2e7d8; }
:root[data-theme="dark"] .featured-badge { background: #3d3327; color: #e8c99f; }
:root[data-theme="dark"] .checkout-link[aria-disabled=true] { background: var(--surface); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    color: #e9eee9;
    --bg: #111914;
    --card: #1a241e;
    --surface: #26342b;
    --line: #34453a;
    --muted: #afbbb1;
    --blue: #bad6c4;
    --button: #315d46;
    --hero: #26372c;
    --shadow: 0 12px 32px rgb(0 0 0 / 15%);
    --shadow-hover: 0 18px 42px rgb(0 0 0 / 26%);
  }
  :root[data-theme="system"] .store-hero:has(.hero-banners[hidden]) { background: radial-gradient(ellipse at 92% 15%, rgb(255 255 255 / 5%), transparent 34%), linear-gradient(115deg, #26372c, #202e25); color: #e9eee9; }
  :root[data-theme="system"] .hero-copy h1,
  :root[data-theme="system"] .item-title,
  :root[data-theme="system"] .item-price,
  :root[data-theme="system"] #merchant-details p { color: #e9eee9; }
  :root[data-theme="system"] .hero-copy > p:last-child,
  :root[data-theme="system"] .category-pills button { color: #c1ccc3; }
  :root[data-theme="system"] .item-placeholder { background: radial-gradient(ellipse at 50% 0%, rgb(255 255 255 / 5%), transparent 55%), linear-gradient(145deg, #26362c, #202e25); color: #b5cbbc; }
  :root[data-theme="system"] .category-pills button.active { background: #263c30; color: #d2e7d8; }
  :root[data-theme="system"] .featured-badge { background: #3d3327; color: #e8c99f; }
  :root[data-theme="system"] .checkout-link[aria-disabled=true] { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.assistant-launcher { position: fixed; z-index: 20; right: 20px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 52px; height: 52px; padding: 0; border-radius: 50%; background: var(--button); color: #fff; box-shadow: var(--shadow-hover); font-size: 17px; font-weight: 800; }
.assistant-dialog { position: fixed; inset: auto 16px calc(20px + env(safe-area-inset-bottom)) auto; margin: 0; width: min(400px, calc(100vw - 32px)); max-height: min(680px, 85dvh); padding: 20px; }
.assistant-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.assistant-heading h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.assistant-heading button { min-width: 44px; font-size: 11px; }
.assistant-notice, .assistant-demo { color: var(--muted); font-size: 12px; line-height: 1.6; }
.assistant-demo { border: 1px solid var(--line); padding: 8px; border-radius: 8px; }
.assistant-messages { max-height: 36dvh; overflow-y: auto; overscroll-behavior: contain; }
.assistant-message { margin: 12px 0; padding: 12px; border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.assistant-customer { margin-left: 24px; }
.assistant-message strong { font-size: 11px; color: var(--muted); }
.assistant-message p { white-space: pre-wrap; font-size: 14px; line-height: 1.5; margin: 6px 0; }
.assistant-source { display: block; margin-top: 8px; color: var(--blue); font-size: 13px; text-decoration: underline; }
.assistant-form { display: flex; gap: 8px; align-items: end; margin-top: 16px; }
.assistant-form label { flex: 1; min-width: 0; }
.assistant-form textarea { width: 100%; resize: vertical; max-height: 120px; min-height: 58px; padding: 10px; font: inherit; font-size: 14px; color: inherit; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.assistant-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.assistant-actions button, .assistant-actions a { font-size: 11px; }
.assistant-form[hidden] { display: none; }
