:root {
  color-scheme: light;
  --ink: #24342b;
  --dark: #172a23;
  --paper: #f2f0e9;
  --gold: #d4b782;
  --line: #bdbbb1;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #8d5827; outline-offset: 3px; }
.top { background: var(--dark); color: var(--paper); padding: 15px clamp(16px, 5vw, 72px); display: flex; gap: 10px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.top a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top a:focus-visible { outline-color: var(--gold); }
a.brand { display: inline-grid; font: 600 clamp(18px, 4vw, 26px)/1.15 Georgia, serif; letter-spacing: .06em; text-decoration: none; }
.brand small,.eyebrow { font: 700 .75rem/1.4 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.brand small { color: var(--gold); }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; padding-block: clamp(28px, 5vw, 60px); }
h1,h2,h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.7rem, 8vw, 5rem); margin: .25em 0; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-top: 0; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card img,.product-photo { width: 100%; aspect-ratio: 1.12; object-fit: cover; display: block; border-radius: 3px; }
.product-photo { max-width: 420px; }
.actions { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.panel { border: 1px solid var(--line); border-radius: 3px; padding: clamp(14px, 4vw, 32px); margin-top: 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
label { display: grid; gap: 6px; margin-block: 8px; }
input,select,textarea,button,.cta { font: inherit; min-height: 44px; }
input:not([type=checkbox]),select,textarea { width: 100%; padding: 8px; border: 1px solid #777a70; background: #fffefa; color: var(--ink); }
button,.cta { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #826839; background: var(--gold); color: var(--dark); text-decoration: none; cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.check input { width: 20px; min-height: 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.row input[type=number] { width: 90px; }
dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); gap: 10px; }
dd { margin: 0; font-size: 1.35rem; }
footer { font-size: .9rem; }

/* Valle Andino storefront. The administration uses the shared controls above. */
.storefront {
  --ink: #25352b;
  --dark: #172b22;
  --paper: #f5efe4;
  --gold: #d8bb83;
  --wine: #522b36;
  --muted: #535b50;
  --edge: #d9cbb8;
  background: radial-gradient(ellipse at 70% 28%, #fff9ee, transparent 60%), var(--paper);
}
.storefront p { margin-block: 0 1em; }
.storefront :focus-visible { outline-color: #98662f; }
.storefront [id] { scroll-margin-top: 24px; }
.store-shell { width: min(1260px, calc(100% - clamp(36px, 10vw, 144px))); margin-inline: auto; }
.store-skip { position: absolute; left: 16px; top: 12px; z-index: 2; background: var(--paper); padding: 10px 16px; transform: translateY(-180%); }
.store-skip:focus { transform: none; }
.storefront .top {
  padding: 13px clamp(20px, 5vw, 80px);
  color: var(--ink);
  background: #f8f2e7;
  border-bottom: 1px solid var(--edge);
  gap: 6px 20px;
}
.storefront .brand { display: inline-flex; gap: 10px; font-size: clamp(16px, 2vw, 23px); letter-spacing: .08em; }
.storefront .brand svg { width: 36px; flex: none; }
.storefront .brand small { display: block; color: var(--wine); font-size: .56rem; margin-top: 4px; }
.storefront .top nav { align-items: center; gap: 8px clamp(12px, 2vw, 30px); font-size: .82rem; }
.storefront .top nav a { text-decoration: none; }
.storefront .top nav a:hover { text-decoration: underline; }
.storefront .store-cart-link { border: 1px solid var(--edge); padding: 0 12px; }
#count { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: var(--paper); font-size: .7rem; }
.storefront .eyebrow { color: var(--wine); margin-bottom: 11px; letter-spacing: .17em; }
.storefront h1,.storefront h2,.storefront h3 { letter-spacing: -.045em; }
.storefront h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); margin-bottom: .25em; }
.store-hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); background: radial-gradient(ellipse at bottom left,#314537,var(--dark) 65%); color: #fbf3e6; }
.store-hero-copy { align-self: center; padding: clamp(42px, 5.5vw, 90px) clamp(22px, 5vw, 80px); }
.storefront .store-hero .eyebrow,.storefront .store-checkout .eyebrow { color: var(--gold); }
.storefront .store-hero h1 { font-size: clamp(3rem, 5.2vw, 5.75rem); line-height: 1.01; margin: 12px 0 22px; }
.store-hero-copy > p:not(.eyebrow) { max-width: 31ch; color: #e2dbca; margin-bottom: 25px; }
.store-hero-image { position: relative; min-height: 395px; }
.store-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 52%; }
.store-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#172b224f,transparent 45%),linear-gradient(0deg,#43271735,transparent 52%); pointer-events: none; }
.storefront button,.storefront .cta {
  min-height: 48px; justify-content: center; gap: 15px; padding: 11px 18px; border: 1px solid transparent;
  background: var(--wine); color: #fff8ed; font-size: .88rem; font-weight: 700; line-height: 1.25;
  transition: background-color .18s, color .18s, border-color .18s;
}
.storefront button:hover:not(:disabled),.storefront .cta:hover { background: #713b47; }
.storefront .store-hero .cta,.storefront .store-checkout button[type=submit],.storefront #order .cta {
  background: var(--gold); color: #24291d;
}
.storefront .store-hero .cta:hover,.storefront .store-checkout button[type=submit]:hover,.storefront #order .cta:hover { background: #ecd4a4; }
.storefront .store-secondary { border-color: #9f877b; background: transparent; color: var(--wine); }
.storefront .store-secondary:hover { border-color: var(--wine); background: var(--wine); color: #fff8ed; }
.storefront .store-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-weight: 700; font-size: .85rem; }
.collection { padding-block: clamp(48px, 7vw, 100px) clamp(38px, 5vw, 70px); }
.store-section-head { display: flex; justify-content: space-between; align-items: end; gap: 15px 40px; margin-bottom: 22px; }
.store-section-head > p { max-width: 36ch; color: var(--muted); }
.storefront #notice:empty,.product-status:empty { margin: 0; }
.storefront #notice:not(:empty) { color: var(--wine); }
.storefront .catalog { gap: clamp(14px, 2.2vw, 32px); grid-template-columns: repeat(3,minmax(0,1fr)); }
.storefront .card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: #fffbf2; border: 1px solid var(--edge); box-shadow: 0 8px 24px #3523170b; }
.store-card-photo { display: block; overflow: hidden; }
.storefront .card img { max-width: none; aspect-ratio: 1.21; border-radius: 0; transition: transform .35s; }
.store-card-photo:hover img { transform: scale(1.035); }
.store-card-copy { padding: clamp(16px, 2vw, 27px); flex: 1; display: flex; flex-direction: column; }
.store-card-copy h3 { font-size: clamp(1.65rem, 2.9vw, 2.8rem); margin: 0 0 10px; }
.storefront .store-card-description { color: var(--muted); margin-bottom: 18px; }
.store-card-price { margin-top: auto; padding-block: 12px; border-top: 1px solid var(--edge); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.store-stock { color: #435848; font-size: .78rem; }
.store-card-actions { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; }
.product-detail { margin-top: clamp(25px, 5vw, 62px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #fffbf2; border: 1px solid var(--edge); }
.storefront .product-detail > img { height: 100%; min-height: 340px; max-width: none; border-radius: 0; }
.product-detail-copy { align-self: center; padding: clamp(20px, 4vw, 56px); }
.product-detail-copy > .store-text-link { margin-bottom: 12px; }
.product-detail-price { display: block; font: 1.55rem Georgia,serif; margin-block: 15px 7px; }
.gift { border-block: 1px solid var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 16px 35px; padding-block: clamp(20px, 4vw, 42px); margin-bottom: clamp(38px, 6vw, 78px); }
.gift h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
.gift p:last-child { margin-bottom: 0; color: var(--muted); }
.store-checkout { background: radial-gradient(ellipse at top right,#314537,var(--dark) 68%); color: #fff5e4; padding-block: clamp(38px, 6vw, 80px); }
.store-checkout .store-demo { color: #ddd5c3; font-size: .9rem; }
.store-checkout input:focus-visible,.store-checkout a:focus-visible,.store-checkout button:focus-visible,.store-checkout select:focus-visible { outline-color: var(--gold); }
.store-empty { border: 1px solid #9b9e84; padding: clamp(16px, 3vw, 26px); margin-top: 23px; }
.store-checkout .store-secondary,.storefront #order .store-secondary { border-color: var(--gold); color: #f9edda; background: transparent; }
.store-checkout .store-secondary:hover,.storefront #order .store-secondary:hover { color: var(--dark); background: var(--gold); }
.storefront .store-cart-row { display: grid; grid-template-columns: minmax(135px,1fr) auto minmax(75px,auto) auto; align-items: center; border-color: #777f6d; }
.store-cart-item { display: flex; align-items: center; gap: 12px; }
.store-cart-item img { width: 50px; height: 50px; object-fit: cover; flex: none; }
.storefront .store-quantity { gap: 5px; flex-wrap: nowrap; }
.storefront .store-quantity label { gap: 2px; font-size: .72rem; }
.storefront .store-quantity input { width: 64px; }
.storefront .store-quantity button { width: 44px; min-height: 44px; padding: 0; background: #f5ead4; color: var(--ink); font-size: 1.2rem; }
.storefront .store-quantity button:hover:not(:disabled) { background: var(--gold); }
.storefront .store-remove { background: transparent; color: #f3e8d7; text-decoration: underline; padding-inline: 8px; }
.storefront #checkout { padding: clamp(16px, 3vw, 34px); margin-top: 26px; background: #fcf6ea; color: var(--ink); }
.storefront #checkout :focus-visible { outline-color: #98662f; }
.storefront #checkout h3,.storefront #order h3 { font-size: 1.8rem; margin-block: 0 14px; }
.storefront #checkout label { font-size: .88rem; font-weight: 700; }
.store-payment { border-top: 1px solid var(--edge); padding-top: 14px; }
.store-payment p:not(#total) { max-width: 64ch; color: var(--muted); font-size: .87rem; }
.storefront #total { font-weight: 700; }
.storefront #order:not(:empty) { padding: 22px; margin-top: 24px; border: 1px solid #9b9e84; }
.storefront #order button,.storefront #order .cta { margin: 0 8px 8px 0; }
.store-experience { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 26px clamp(26px, 6vw, 82px); padding-block: clamp(38px, 7vw, 90px); }
.store-experience img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.store-experience p:not(.eyebrow) { color: var(--muted); max-width: 38ch; }
.store-footer { background: #1a2d24; color: #f0e3cc; }
.store-footer .store-shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 26px; }

@media (max-width: 930px) {
  .storefront .catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .store-hero,.store-experience { grid-template-columns: 1fr; }
  .store-hero-copy { padding: 33px 22px; }
  .store-hero-image { min-height: clamp(200px, 53vw, 360px); }
  .store-section-head,.gift { display: block; }
  .gift .cta { margin-top: 16px; }
}
@media (max-width: 560px) {
  .storefront .top nav { gap: 6px 12px; }
  .storefront .store-bodega { display: none; }
  .storefront .catalog,.product-detail { grid-template-columns: minmax(0, 1fr); }
  .storefront .product-detail > img { min-height: 0; }
  .storefront .store-cart-row { grid-template-columns: minmax(0,1fr) auto; }
  .store-cart-item { grid-column: 1 / -1; }
  .storefront .store-remove { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront button,.storefront .cta,.storefront .card img { transition: none; }
}
