/*
 * Carnicería La 10 storefront. Classic premium shop: paper-white ground, near-black ink,
 * brand black for the top bar, the visit band and the footer; brand gold as the accent
 * (#c49a6c on dark, a deeper gold for text on light so it keeps contrast).
 */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("assets/fonts/libre-caslon-display-400-v1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-wght-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f5f2;
  --surface: #ffffff;
  --ink: #141312;
  --ink-2: #57524c;
  --line: #e3dfd8;
  --line-strong: #cfc9c0;
  --black: #0b0b0b;
  --on-black: #f3efe8;
  --on-black-2: #b8b0a4;
  --gold: #c49a6c;
  --gold-ink: #85602f;
  --gold-soft: rgba(196, 154, 108, 0.16);
  --danger: #a3322a;
  --photo-bg: #2b2420; /* behind photos while they load */
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --font-display: "Libre Caslon Display", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

p,
dd {
  text-wrap: pretty;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--on-black);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-block {
  width: 100%;
}

.button-primary {
  background: var(--black);
  color: var(--on-black);
}

.button-primary:hover {
  background: #2a2724;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-light {
  min-height: 40px;
  padding: 0.45rem 1rem;
  background: var(--surface);
  color: var(--ink);
}

.button-light:hover {
  background: var(--paper);
}

.button-gold {
  background: var(--gold);
  color: var(--black);
}

.button-gold:hover {
  background: #d3ad83;
}

.button-outline-light {
  border-color: rgba(196, 154, 108, 0.55);
  color: var(--on-black);
}

.button-outline-light:hover {
  border-color: var(--gold);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Top bar and header ---------- */

.topbar {
  background: var(--black);
  color: var(--on-black-2);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.topbar p {
  margin: 0;
  padding: 0.55rem var(--gutter);
}

.topbar a {
  color: var(--on-black);
  font-weight: 600;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: auto;
}

/* Not the display face: its old-style "1" makes "La 10" read as "La IO". */
.brand-name {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cart-button:hover {
  border-color: var(--ink);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--black);
  color: var(--on-black);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.cart-count.bump {
  animation: bump 0.45s var(--ease-out);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34ch;
  margin: 1.4rem 0 2rem;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--photo-bg);
  box-shadow: 0 30px 60px -30px rgba(20, 19, 18, 0.55);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.82), rgba(11, 11, 11, 0));
  color: var(--on-black);
}

.hero-caption-text {
  display: grid;
}

.hero-caption-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-caption-price {
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Pillars ---------- */

.pillars {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pillars-list > div {
  padding: 1.6rem 1.5rem 1.7rem 0;
}

.pillars-list > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.pillars dt {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.pillars dd {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Shop ---------- */

.shop {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.shop-head h2,
.visit h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.shop-note {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter:hover {
  border-color: var(--ink);
}

.filter[aria-pressed="true"] {
  border-color: var(--black);
  background: var(--black);
  color: var(--on-black);
}

.shop-status {
  margin: 0 0 1rem;
  color: var(--ink-2);
}

.shop-status:empty {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  animation: rise 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.product-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--photo-bg);
  aspect-ratio: 1;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-media:hover img {
  transform: scale(1.04);
}

.product-media-empty {
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
}

.product-media-empty img {
  width: 34%;
  height: auto;
  opacity: 0.85;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.9rem;
}

.product-meta {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.product-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-name button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.product-name button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.product-price {
  margin: 0.15rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.product-price .per {
  color: var(--ink-2);
  font-weight: 400;
}

.product-price.ask {
  color: var(--gold-ink);
}

.product .button {
  margin-top: auto;
  min-height: 44px;
  font-size: 0.9rem;
}

/* ---------- Visit ---------- */

.visit {
  background: var(--black);
  color: var(--on-black);
}

.visit-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}

.visit-logo {
  width: clamp(150px, 20vw, 240px);
}

.address {
  display: grid;
  gap: 0.1rem;
  margin: 1.25rem 0 1rem;
  color: var(--on-black-2);
  font-style: normal;
  line-height: 1.5;
}

.address strong {
  color: var(--on-black);
  font-weight: 600;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  color: var(--on-black);
  list-style: none;
}

.services li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.services li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit :focus-visible {
  outline-color: var(--gold);
}

.footer {
  background: var(--black);
  border-top: 1px solid rgba(196, 154, 108, 0.18);
  color: var(--on-black-2);
  font-size: 0.82rem;
  text-align: center;
}

.footer p {
  margin: 0;
  padding: 1.25rem var(--gutter) 1.5rem;
}

/* ---------- Dialogs (product sheet and cart drawer) ---------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
}

dialog::backdrop {
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(2px);
}

.close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.close:hover {
  background: var(--paper);
}

.sheet {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

.sheet[open] {
  animation: sheet-in 0.35s var(--ease-out);
}

.sheet-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sheet .close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

.pd-media {
  aspect-ratio: 1;
  background: var(--photo-bg);
}

.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
}

.pd-meta {
  margin: 0 3rem 0.4rem 0;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.pd-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
}

.pd-price {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pd-description {
  margin: 1rem 0 0;
  color: var(--ink-2);
}

.pd-description:empty {
  display: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags:empty {
  display: none;
}

.tags li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 0.8rem;
}

.pd-buy {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.qty-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.stepper-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.stepper-button .icon {
  width: 16px;
  height: 16px;
}

.stepper-button:hover {
  background: var(--paper);
}

.stepper-button:disabled {
  color: var(--line-strong);
  cursor: not-allowed;
  background: transparent;
}

.stepper-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: transparent;
}

.stepper-input[aria-invalid="true"] {
  color: var(--danger);
}

.pd-subtotal {
  margin: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.cart-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pd-notice {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pd-notice strong {
  font-weight: 650;
}

.drawer {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
}

.drawer[open] {
  animation: drawer-in 0.35s var(--ease-out);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.drawer-empty {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 2rem 1.5rem;
  color: var(--ink-2);
}

.drawer-empty p {
  margin: 0;
}

.cart-lines {
  flex: 1;
  margin: 0;
  padding: 0 1.5rem;
  overflow-y: auto;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-thumb {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--photo-bg);
}

.cart-line-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-line-unit {
  margin: 0.1rem 0 0;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.cart-line-subtotal {
  margin: 0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cart-line-controls {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-line .stepper {
  grid-template-columns: 40px 76px 40px;
}

.cart-line .stepper-button {
  min-height: 40px;
}

.cart-line .stepper-input {
  font-size: 0.9rem;
}

.remove {
  min-height: 40px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.remove:hover {
  color: var(--danger);
}

.cart-line.unavailable .cart-line-name,
.cart-line.unavailable .cart-line-thumb {
  opacity: 0.5;
}

.drawer-foot {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery legend {
  float: left;
  width: 100%;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.delivery label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  cursor: pointer;
}

.delivery input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--black);
}

.free-delivery {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  font-size: 0.88rem;
}

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1rem;
}

.total strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 32px);
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--on-black);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
  animation: toast-in 0.4s var(--ease-out);
}

.toast[hidden] {
  display: none;
}

.toast-action {
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid rgba(196, 154, 108, 0.55);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes drawer-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes bump {
  40% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars-list > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .cart-button { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; aspect-ratio: 4 / 3; }
  .sheet-inner { grid-template-columns: minmax(0, 1fr); }
  .pd-media { aspect-ratio: 4 / 3; }
  .visit-inner { grid-template-columns: minmax(0, 1fr); }
  .visit-logo { width: 120px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar p { font-size: 0.78rem; }
  .cart-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-actions .button { flex: 1 1 100%; }
  .pillars-list { grid-template-columns: minmax(0, 1fr); }
  .pillars-list > div { padding: 1.1rem 0 !important; border-left: 0 !important; }
  .pillars-list > div + div { border-top: 1px solid var(--line); }
  .product-name { font-size: 0.95rem; }
  .product .button { padding-inline: 0.5rem; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  .visit-actions .button { flex: 1 1 100%; }
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
