@font-face {
  font-family: Cabinet;
  src: url("fontes/cabinet-grotesk.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("fontes/fraunces-400.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fontes/inter-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fontes/inter-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f8f7f2;
  --white: #fdfcf8;
  --ink: #222c23;
  --green: #263d2e;
  --green-deep: #1c3024;
  --muted: #59635b;
  --line: #cfd2c6;
  --sand: #eeeae0;
  --orange: #f0ab5a;
  --focus: #9b490a;
  --heading: Cabinet, "Arial", sans-serif;
  --gutter: clamp(1.1rem, 4.8vw, 5.25rem);
  --header-height: 4.5rem;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 400 100%/1.5 Inter, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + .65rem); }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, select, input { color: inherit; font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .42; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend { padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 700 1em/1.05 var(--heading); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--orange); }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 90rem); margin-inline: auto; }
.sr-only, .radio-choice input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-170%); padding: .7rem 1rem; border-radius: .5rem; background: var(--paper); }
.skip-link:focus { transform: none; }
.primary, .secondary, .selection-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .65rem;
  min-height: 2.85rem; padding: .7rem 1.2rem; border-radius: 999px;
  font: 600 .9rem/1.3 Inter, system-ui, sans-serif;
  transition: background .16s, color .16s, box-shadow .16s;
}
.primary { background: var(--green); color: white; }
.secondary { border: 1px solid #a9b1a3; color: var(--green); }
.icon-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.icon { display: inline-block; position: relative; flex: 0 0 auto; }
.search-icon, .zoom-icon { width: 15px; height: 15px; border: 1.6px solid currentColor; border-radius: 50%; }
.search-icon::after, .zoom-icon::after { content: ""; position: absolute; width: 7px; height: 1.6px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(47deg); border-radius: 2px; }
.zoom-icon::before { content: "+"; display: block; text-align: center; font: 14px/12px system-ui; }
.bag-icon { width: 15px; height: 14px; margin: 3px 1px 0; border: 1.45px solid currentColor; border-radius: 2px 2px 4px 4px; }
.bag-icon::before { content: ""; position: absolute; width: 6px; height: 5px; top: -6px; left: 50%; transform: translateX(-50%); border: 1.45px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.plus-icon { width: .9rem; height: .9rem; }
.plus-icon::before, .plus-icon::after, .close::before, .close::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 100%; height: 1.5px; background: currentColor; transform: translate(-50%, -50%);
}
.plus-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.close { position: relative; }
.close::before, .close::after { width: 17px; transform: translate(-50%,-50%) rotate(45deg); }
.close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.text-link { font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .22rem; min-height: 2.75rem; }

.masthead { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid #252f2417; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-height); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 2.75rem; }
.brand img { width: clamp(8.2rem, 13vw, 10.6rem); height: auto; }
.category-nav, .header-actions, .footer-links { display: flex; align-items: center; }
.category-nav { gap: clamp(1rem, 2.5vw, 2.6rem); }
.category-nav a, .footer-links a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.category-nav a { font-size: .88rem; position: relative; }
.category-nav a::after { content: ""; position: absolute; bottom: .35rem; inset-inline: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .18s; }
.category-nav a[aria-current="true"]::after { transform: none; }
.header-actions { gap: .7rem; }
.selection-button { white-space: nowrap; border: 1px solid #a4ada0; color: var(--green); min-height: 2.7rem; padding: .45rem .55rem .45rem .9rem; font-size: .84rem; }
.selection-short { display: none; }
.count { display: inline-grid; place-items: center; min-width: 1.6rem; min-height: 1.6rem; padding: 0 .25rem; border-radius: 999px; background: var(--green); color: var(--white); font-size: .77rem; }

.hero { position: relative; isolation: isolate; background: var(--green-deep); color: var(--white); }
.hero-photo, .hero-photo img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 64% 15%; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #122317a3 0%, #1322185a 38%, transparent 67%), linear-gradient(0deg, #111d1370, transparent 24%); }
.hero-inner { position: relative; min-height: clamp(26rem, 36.5vw, 38rem); display: flex; align-items: center; justify-content: space-between; }
.hero-copy { padding: 3rem 0; }
.kicker, .meta { font-size: .78rem; font-weight: 600; letter-spacing: .105em; }
.kicker { display: flex; align-items: center; gap: .75rem; text-transform: uppercase; }
.kicker span { width: 2.15rem; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(4.6rem, 7.4vw, 7.4rem); margin: 1.2rem 0 1.65rem; line-height: .89; letter-spacing: -.055em; }
.hero h1 em { font: italic 400 .97em/1.12 Fraunces, Georgia, serif; color: #ffce8b; letter-spacing: -.065em; }
.hero-action { background: var(--paper); color: var(--green-deep); padding-inline: 1.5rem; }
.cover-product {
  display: flex; align-items: center; position: absolute; right: 0; bottom: 1.4rem; gap: .7rem;
  padding: .38rem .85rem .38rem .38rem; border: 1px solid #e3e2d1a6; border-radius: .75rem;
  background: #15281ee6; color: var(--white); text-align: left;
}
.cover-product img { width: 2.7rem; height: 3rem; object-fit: cover; border-radius: .42rem; }
.cover-product small, .cover-product strong { display: block; }
.cover-product small { font-size: .76rem; color: #e2e4d5; }
.cover-product strong { font: 700 1.05rem/1.2 var(--heading); }
.cover-product .plus-icon { margin-left: .5rem; }

.catalog { padding-block: clamp(2.35rem,4vw,4.75rem) 4rem; min-height: 45vh; }
.catalog-head, .result-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.catalog-head h2 { font-size: clamp(2.5rem,4.5vw,4.45rem); line-height: .97; letter-spacing: -.054em; }
.title-dot { color: #a05323; }
.search-field { display: flex; align-items: center; gap: .75rem; width: min(22.3rem,35%); min-height: 2.9rem; padding: 0 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 2rem; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-field input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font-size: .875rem; padding: .7rem 0; }
.search-field input::placeholder { color: #5f685f; opacity: 1; }
.catalog-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: .8rem; margin-top: 1.55rem; }
.catalog-tools .color-filter { justify-self: end; }
.category-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.category-tabs button { min-height: 2.75rem; padding: .55rem 1.02rem; border: 1px solid var(--line); border-radius: 100px; font-size: .9rem; }
.category-tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.color-filter { position: relative; display: inline-flex; align-items: center; }
.color-filter select { appearance: none; background: transparent; border: 0; border-radius: 5px; min-height: 2.75rem; padding: .45rem 1.6rem .45rem .65rem; font-size: .875rem; }
.color-filter::after { content: ""; height: .42rem; width: .42rem; position: absolute; right: .55rem; top: 42%; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.4px 1.4px 0; pointer-events: none; }
.result-line { grid-column: 1 / -1; margin-top: .85rem; border-top: 1px solid var(--line); min-height: 2.8rem; gap: .6rem; color: var(--muted); font-size: .81rem; }
.result-line .text-link { font-size: .81rem; }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: clamp(.8rem,1.65vw,1.75rem); row-gap: 2rem; }
.card { min-width: 0; }
.card-picture { position: relative; overflow: hidden; isolation: isolate; border-radius: 7px; background: var(--card-bg,#eae9e1); }
.photo-button { display: block; width: 100%; aspect-ratio: 4/4.85; }
.photo-button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.photo-button:focus-visible { outline-offset: -4px; }
.card-open {
  position: absolute; right: .65rem; bottom: .65rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid #c7ccbf;
  background: #fffff5ed; color: var(--green);
}
.card-copy { padding: .8rem .05rem 0; }
.meta { color: var(--muted); font-size: .75rem; letter-spacing: .07em; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card h3 { font-size: clamp(1.14rem,1.55vw,1.65rem); margin-top: .32rem; letter-spacing: -.028em; line-height: 1.13; overflow-wrap: anywhere; }
.card h3 button { font: inherit; letter-spacing: inherit; text-align: left; }
.card-price { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.card-price strong, .tier-price, .line-prices strong { color: var(--green); white-space: nowrap; }
.card-swatches { display: flex; align-items: center; flex-wrap: wrap; min-height: 2.2rem; gap: .08rem; margin: .2rem 0 0 -.25rem; }
.swatch { display: inline-grid; place-items: center; width: 1.82rem; height: 2rem; border-radius: 5px; }
.swatch::before, .color-dot {
  content: ""; display: inline-block; width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--swatch); box-shadow: inset 0 0 0 1px #0002;
}
.swatch[aria-pressed="true"]::before { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.extra-colors { min-width: 1.85rem; height: 2rem; font-size: .8rem; text-decoration: underline; text-underline-offset: .16rem; }
.more-row { text-align: center; }
.more-row:has(button:not([hidden])) { margin-top: 2rem; }
.footer { background: var(--green-deep); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.1rem; }
.footer .brand img { width: 9rem; }
.footer-links { gap: 1.4rem; font-size: .875rem; }

dialog { padding: 0; overflow: hidden; border: 0; border-radius: 1.15rem; color: var(--ink); background: var(--white); box-shadow: 0 18px 85px #14231950; }
dialog::backdrop { background: #101b14a6; }
dialog[open] { animation: dialog-in .18s ease-out; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.05rem .55rem 1.35rem; min-height: 3.25rem; border-bottom: 1px solid var(--line); }
.dialog-bar > span { font-size: .83rem; font-weight: 600; color: var(--muted); }
.dialog-bar .icon-button { background: #eaece4; width: 2.35rem; height: 2.35rem; }
.product-dialog { width: min(55rem,calc(100% - 2rem)); max-height: min(92dvh,50rem); }
.product-dialog[open], #product-form { display: flex; flex-direction: column; min-height: 0; }
.product-body { overflow-y: auto; display: grid; grid-template-columns: 1.04fr 1fr; overscroll-behavior: contain; }
.gallery { position: relative; background: var(--sand); padding: 1rem; display: flex; align-items: center; min-width: 0; }
.zoom-trigger { display: block; width: 100%; cursor: zoom-in; }
#detail-photo { width: 100%; height: clamp(19rem,48vh,29rem); object-fit: contain; }
.zoom-button { position: absolute; right: .7rem; top: .7rem; background: #fffdf7ed; color: var(--green); }
.side-control { display: flex; position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); border-radius: 99px; border: 1px solid var(--line); padding: .18rem; background: #fffdf7f5; }
.side-control button { min-height: 2.3rem; padding: .35rem .75rem; border-radius: 99px; font-size: .8rem; }
.side-control button[aria-pressed="true"] { background: var(--green); color: white; }
.product-fields { padding: clamp(1.2rem,2.5vw,2rem); align-self: center; }
.product-fields h2 { font-size: clamp(1.9rem,3.2vw,3rem); letter-spacing: -.04em; line-height: 1.04; margin: .45rem 0 1.4rem; }
.field-group + .field-group { margin-top: 1.2rem; }
.field-group legend, .qty-field > label { font-size: .9rem; font-weight: 600; }
.field-note { color: var(--muted); font-size: .82rem; font-weight: 400; margin-left: .4rem; }
.variant-options, .tier-choices { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.variant-options, .size-options { margin-top: .55rem; }
.size-options { display: grid; gap: .55rem; }
.size-tier { display: grid; grid-template-columns: 5.15rem minmax(0,1fr); align-items: start; column-gap: .6rem; }
.tier-price { display: flex; align-items: center; min-height: 2.75rem; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.radio-choice { position: relative; display: inline-flex; cursor: pointer; }
.radio-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.color-chip { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 50%; }
.color-chip .color-dot { width: 1.85rem; height: 1.85rem; }
.radio-choice input:checked + .color-chip { box-shadow: inset 0 0 0 1.75px var(--green); }
.size-chip { display: grid; place-items: center; min-height: 2.75rem; min-width: 3.05rem; padding: .35rem .62rem; border: 1px solid #bac2b7; border-radius: .55rem; font-size: .88rem; }
.radio-choice input:checked + .size-chip { color: white; background: var(--green); border-color: var(--green); }
.consultation { color: var(--muted); font-size: .84rem; margin-top: 1.25rem; }
.field-error { font-size: .84rem; color: #91391f; margin-top: .45rem; }
.quantity-error { padding: 0 1.35rem .75rem; }
.product-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: .9rem; padding: .85rem 1.35rem; border-top: 1px solid var(--line); }
.qty-field label { display: block; font-size: .77rem; margin-bottom: .2rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #afb9ac; border-radius: 99px; min-height: 2.75rem; }
.stepper button { display: grid; place-items: center; width: 2.1rem; min-height: 2.75rem; font-size: 1.18rem; border-radius: 99px; }
.stepper input { appearance: textfield; -moz-appearance: textfield; width: 2rem; padding: 0; border: 0; background: none; text-align: center; font-size: 1rem; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.add-button { min-height: 3rem; padding-inline: 1.6rem; }
.add-area { text-align: right; }
.product-subtotal { color: var(--green); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-subtotal:not(:empty) { margin-bottom: .25rem; }
.zoom-dialog { background: var(--paper); width: fit-content; max-width: calc(100% - 1rem); max-height: 96dvh; }
.zoom-dialog img { max-height: 93dvh; max-width: 100%; object-fit: contain; }
.zoom-dialog .close { position: absolute; top: .65rem; right: .65rem; background: var(--white); border: 1px solid var(--line); }
.basket-dialog { margin: 0 0 0 auto; width: min(28rem,100%); height: 100dvh; max-height: 100dvh; border-radius: 1.1rem 0 0 1.1rem; max-width: 100%; }
.basket-dialog[open] { display: flex; flex-direction: column; animation-name: drawer-in; }
.basket-dialog .dialog-bar { padding-block: 1.05rem; }
.basket-dialog h2 { font-size: 2rem; letter-spacing: -.04em; }
.basket-items { padding: 0 1.35rem 1rem; flex: 1; overflow: auto; }
.basket-line { display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.basket-line img { width: 4.5rem; height: 5.6rem; object-fit: contain; background: var(--sand); border-radius: .35rem; }
.basket-line h3 { font-size: 1.25rem; margin: .25rem 0; }
.basket-line .variant-description { font-size: .85rem; }
.line-prices { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem .6rem; margin-top: .35rem; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.line-actions { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.basket-actions { padding: 1rem 1.35rem max(1rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; }
.basket-total { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; font-weight: 600; }
.basket-total strong { color: var(--green); font: 700 1.5rem/1.1 var(--heading); font-variant-numeric: tabular-nums; }
.basket-actions p, .basket-empty p { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.basket-actions .primary { display: flex; }
.basket-actions .text-link { margin-top: .25rem; }
.basket-empty { padding: 3rem 0; }
.basket-empty h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.feedback { position: fixed; z-index: 6; padding: .75rem 1rem; bottom: max(1rem,env(safe-area-inset-bottom)); right: var(--gutter); display: flex; align-items: center; gap: .85rem; color: white; background: var(--green-deep); border: 1px solid #6a795f; border-radius: .7rem; box-shadow: 0 5px 20px #14281926; font-size: .88rem; }
.feedback button { min-height: 2.1rem; color: #ffd092; font-weight: 600; text-decoration: underline; text-underline-offset: .2rem; }

@media (hover:hover) {
  .category-nav a:hover::after { transform: none; }
  .primary:hover, .selection-button:hover { background: #374f3c; color: white; }
  .hero-action:hover { background: #ffd294; color: var(--green-deep); }
  .secondary:hover, .category-tabs button:not([aria-pressed="true"]):hover, .search-shortcut:hover, .icon-button.close:hover { background: #e9ecdf; }
  .cover-product:hover { background: var(--green-deep); border-color: var(--paper); }
  .card-picture:has(.photo-button:hover) img { transform: scale(1.035); }
  .card-open:hover { background: var(--green); color: white; }
  .card h3 button:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .18em; }
}
@keyframes dialog-in { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-in { from { opacity: .6; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@media (min-width:1800px) { .hero-inner { min-height: 41rem; } }
@media (max-width:950px) {
  .category-nav { gap: 1.25rem; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-inner { min-height: clamp(24rem,46vw,27rem); }
}
@media (max-width:750px) {
  :root { --header-height: 3.9rem; }
  .category-nav { display: none; }
  .catalog-head { align-items: flex-start; }
  .search-field { width: 43%; }
  .product-body { grid-template-columns: .92fr 1fr; }
  .product-dialog { max-height: 94dvh; }
}
@media (max-width:640px) {
  :root { --gutter: 1.05rem; }
  .masthead-inner { gap: .4rem; }
  .selection-full { display: none; }
  .selection-short { display: inline; }
  .header-actions { gap: .25rem; }
  .selection-button { min-height: 2.55rem; font-size: .77rem; gap: .46rem; }
  .hero-inner { height: clamp(25.75rem,102vw,32rem); min-height: 0; align-items: flex-end; }
  .hero-photo img { object-position: 42% 10%; }
  .hero::before { background: linear-gradient(90deg,#11201670 0%, transparent 63%), linear-gradient(0deg,#0c1a11e8 0%,#12221672 28%,transparent 65%); }
  .hero-copy { padding: 0 0 1.5rem; }
  .kicker { font-size: .69rem; gap: .5rem; }
  .kicker span { width: 1.35rem; }
  .hero h1 { font-size: clamp(3.65rem,12.5vw,4.7rem); margin: .7rem 0 .85rem; }
  .hero-action { min-height: 2.8rem; font-size: .85rem; padding-inline: 1.1rem; }
  .cover-product { bottom: 1.55rem; padding: .48rem .6rem; gap: .4rem; border-radius: .55rem; }
  .cover-product img { display: none; }
  .cover-product small { font-size: .68rem; }
  .cover-product strong { font-size: .85rem; }
  .cover-product .plus-icon { width: .6rem; height: .6rem; margin-left: .12rem; }
  .catalog { padding-top: 1.85rem; }
  .catalog-head { display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch; gap: .9rem; }
  .catalog-head h2 { font-size: clamp(2.5rem,8vw,3.5rem); }
  .search-field { width: 100%; }
  .search-field input { font-size: 1rem; }
  .catalog-tools { column-gap: .25rem; margin-top: .75rem; }
  .category-tabs { grid-column: 1 / -1; gap: .25rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
  .category-tabs button { padding: .45rem .5rem; font-size: .8rem; }
  .color-filter { grid-column: 2; grid-row: 2; }
  .color-filter select { padding-left: 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.22rem .65rem; }
  .card-copy { padding-top: .63rem; }
  .meta { font-size: .69rem; }
  .card-open { width: 2.15rem; height: 2.15rem; bottom: .4rem; right: .4rem; }
  .card-swatches { gap: 0; }
  .swatch { width: 1.65rem; }
  .result-line { grid-column: 1; grid-row: 2; min-height: 2.75rem; margin: 0; border: 0; justify-content: flex-start; gap: .45rem; flex-wrap: wrap; }
  .footer-inner { align-items: flex-start; padding-block: 1.5rem; }
  .footer-links { flex-direction: column; align-items: flex-end; gap: .2rem; }
  .footer-links a { min-height: 2.15rem; font-size: .82rem; }
  .footer .brand img { width: 7.7rem; }
  .product-dialog, .basket-dialog {
    width: 100%; max-width: 100%; height: auto; max-height: 94dvh;
    margin: auto 0 0; border-radius: 1rem 1rem 0 0;
  }
  .product-body { display: block; }
  .gallery { padding: .65rem; }
  #detail-photo { height: clamp(12.5rem,32dvh,18rem); }
  .side-control { bottom: .6rem; }
  .product-fields { padding: 1rem 1.15rem 1.2rem; }
  .product-fields h2 { margin: .3rem 0 1rem; }
  .product-actions { padding: .55rem 1rem max(.65rem,env(safe-area-inset-bottom)); align-items: flex-end; }
  .add-area { flex: 1; }
  .add-button { width: 100%; min-height: 2.85rem; padding: .6rem; font-size: .84rem; }
  .basket-dialog[open] { height: 87dvh; animation-name: dialog-in; }
  .feedback { left: var(--gutter); right: var(--gutter); justify-content: space-between; }
}
@media (max-width:365px) {
  .brand img { width: 7.05rem; }
  .search-shortcut { display: none; }
  .category-tabs { gap: .12rem; }
  .category-tabs button { padding-inline: .45rem; font-size: .77rem; }
  .result-line { gap: .15rem; }
  .card-meta { flex-wrap: wrap; gap: .12rem .35rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
