:root {
  --paper: #fffdf8;
  --ivory: #f7f5ed;
  --ink: #183f42;
  --muted: #65736c;
  --line: #dce1d5;
  --coral: #b77860;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
.runtime-notice { margin: 24px; padding: 18px; border: 1px solid var(--line); background: var(--ivory); border-radius: 8px; }
.runtime-notice p { margin: 0 0 12px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 15px/1.5 var(--sans); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled, a[aria-disabled="true"] { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 15px; padding: 12px; background: var(--ink); color: white; z-index: 20; }
.skip:focus { top: 10px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; max-width: 1440px; height: 112px; margin: auto; padding: 20px 64px; }
.brand { display: flex; align-items: center; text-decoration: none; max-width: 240px; }
.brand-logo { display: block; max-width: 220px; width: 100%; height: 58px; object-fit: contain; object-position: left center; }
.brand-fallback { font: 400 26px var(--serif); }
.brand-cropped { position: relative; display: block; width: 160px; max-width: 160px; aspect-ratio: var(--logo-ratio); overflow: hidden; flex: 0 0 auto; }
.brand-cropped .brand-logo { position: absolute; display: block; max-width: none; object-fit: fill; }
.header-catalog { margin-left: auto; text-decoration: none; font-size: 12px; padding: 8px 0; }
.header-catalog:hover { text-decoration: underline; text-underline-offset: 5px; }
.cart-button { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 9px 0 9px 20px; font-size: 12px; }
.cart-button svg { width: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-button b { background: var(--ink); color: white; border-radius: 20px; min-width: 22px; height: 22px; line-height: 22px; font-size: 10px; font-weight: 500; padding: 0 5px; }
.hero { max-width: 1312px; margin: 8px auto 70px; display: grid; grid-template-columns: 1fr 1fr; background: #eeeede; }
.hero-copy { align-self: center; padding: 45px 35px 45px 64px; }
.hero h1 { font: 400 clamp(45px,4.5vw,67px)/1.08 var(--serif); letter-spacing: -.05em; margin-bottom: 25px; }
.hero p { max-width: 380px; font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 31px; }
.hero-photo { aspect-ratio: 4/5; max-height: 575px; background: white; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-image { width: 100%; height: 100%; object-fit: contain; }
.button { display: inline-flex; gap: 30px; align-items: center; justify-content: space-between; min-height: 48px; padding: 14px 22px; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-size: 12px; transition: background .15s; }
.button:hover { background: #2a5657; }
.button span { font-size: 20px; line-height: 1; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #e6eadd; }
.full-width { width: 100%; }
.catalog { max-width: 1312px; margin: auto; padding: 0 24px 70px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.catalog h2 { font: 400 42px/1.1 var(--serif); letter-spacing: -.035em; margin: 0; }
.search-field { width: min(330px,42%); position: relative; }
.search-field input { width: 100%; height: 43px; border: 1px solid #d0d8ca; border-radius: 2px; background: var(--paper); padding: 0 12px 0 38px; font-size: 12px; color: var(--ink); }
.search-field svg { position: absolute; top: 13px; left: 13px; width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.catalog-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.categories, .genders { display: flex; flex-wrap: wrap; gap: 5px; }
.categories button, .genders button { border: 1px solid transparent; background: transparent; padding: 10px 16px; border-radius: 2px; font-size: 12px; min-height: 40px; }
.genders button { border-color: #d4ddcc; }
.categories button:hover, .genders button:hover { background: #e7ebdf; }
.categories button[aria-pressed="true"], .genders button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.results { min-height: 40px; margin: 0; padding: 14px 0; font-size: 10px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 35px 22px; }
.product-card { min-width: 0; }
.product-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/5; background: white; border-radius: 2px; overflow: hidden; text-decoration: none; }
.card-image { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.product-photo:hover .card-image { transform: scale(1.025); }
.logo-placeholder { max-width: 68%; max-height: 40%; opacity: .72; }
.photo-fallback { display: block; font: 400 25px var(--serif); padding: 24px; text-align: center; }
.product-brand { color: var(--muted); font-size: 9px; letter-spacing: .12em; margin: 14px 0 6px; text-transform: uppercase; }
.product-card h3 { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-color { color: var(--muted); font-size: 10px; margin: -5px 0 9px; }
.price-block { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 13px; white-space: nowrap; }
.normal-price { color: #859083; font-size: 10px; white-space: nowrap; }
.offer-badge { background: #a85f4b; color: white; font-size: 9px; padding: 3px 6px; line-height: 1.2; border-radius: 2px; white-space: nowrap; }
.product-sizes { font-size: 9px; color: var(--muted); margin: 9px 0 11px; line-height: 1.5; }
.card-colors, .detail-colors { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.color-swatch { width: 15px; height: 15px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(30,55,35,.18); box-shadow: 0 0 0 2px var(--ivory); text-decoration: none; }
.color-swatch[aria-current="page"] { outline: 1px solid #6e806b; outline-offset: 3px; }
.empty-state { text-align: center; padding: 35px 15px; }
.empty-state p { font: 400 26px var(--serif); margin-bottom: 24px; }
.site-footer { max-width: 1440px; margin: 0 auto; padding: 30px 64px 44px; border-top: 1px solid var(--line); display: flex; gap: 30px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.footer-name { font: 400 23px var(--serif); color: var(--ink); margin-right: auto; }
.whatsapp-float { position: fixed; bottom: 22px; right: 24px; width: 51px; height: 51px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 5px 16px #183f4225; z-index: 5; }
.whatsapp-float svg { width: 29px; fill: currentColor; stroke: none; }
.product-page { max-width: 1230px; margin: 10px auto 62px; padding: 0 30px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; }
.detail-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/5; background: white; overflow: hidden; }
.detail-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.gallery-thumb { width: 63px; height: 79px; padding: 3px; background: white; border: 1px solid transparent; border-radius: 2px; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { align-self: start; padding: 26px 0 0; }
.detail-info .product-brand { margin-top: 0; margin-bottom: 15px; }
.detail-info h1 { font: 400 37px/1.16 var(--serif); letter-spacing: -.035em; margin-bottom: 15px; }
.detail-color { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.detail-price { display: flex; flex-wrap: wrap; gap: 11px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-price .price { font-size: 24px; }
.detail-price .normal-price { font-size: 14px; }
.detail-price .offer-badge { font-size: 11px; padding: 4px 7px; }
.field-title { display: block; font: 500 12px var(--sans); margin: 25px 0 13px; }
.detail-colors { gap: 13px; }
.detail-colors .color-swatch { width: 23px; height: 23px; }
.size-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.size-button { min-width: 66px; min-height: 55px; padding: 9px 11px; border: 1px solid #cbd7c4; border-radius: 2px; background: var(--paper); font-size: 12px; }
.size-price { display: block; font-size: 9px; margin-top: 4px; opacity: .8; }
.size-button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.detail-quantity { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 24px; }
.detail-quantity .field-title { margin: 0; }
.detail-info > .button { margin-top: 10px; }
.quantity { display: flex; align-items: center; }
.quantity button { width: 31px; height: 31px; border: 1px solid #d8dece; background: transparent; font-size: 17px; }
.quantity span { font-size: 12px; min-width: 35px; text-align: center; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(490px,100%); height: 100dvh; max-height: 100dvh; max-width: 100%; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: -10px 0 70px #173e4320; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: #173e4355; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 28px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cart-head h2 { margin: 0; font: 400 31px var(--serif); }
.close { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; background: transparent; border: 1px solid #d2dccb; border-radius: 50%; font-size: 24px; }
.cart-body { overflow: auto; flex: 1 1 auto; padding: 0 28px; }
.cart-row { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 13px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.cart-thumb { height: 83px; background: white; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { display: block; font-size: 12px; line-height: 1.45; text-decoration: none; margin-bottom: 5px; }
.cart-info p { font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.cart-costs { text-align: right; font-size: 11px; white-space: nowrap; }
.cart-costs strong { font-weight: 500; }
.remove { display: block; margin: 10px 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 9px; }
.cart-footer { padding: 22px 28px 26px; border-top: 1px solid var(--line); flex-shrink: 0; }
.total { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-size: 13px; }
.total strong { font: 400 27px var(--serif); }
.cart-footer p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 13px 0 18px; }
.cart-footer .button { width: 100%; }
.order-form { padding: 24px 0 12px; }
.order-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 25px; padding: 18px 0 0; min-width: 0; }
.order-form legend { padding-right: 12px; font: 400 24px var(--serif); }
.order-form label { display: block; margin: 15px 0 7px; font-size: 12px; }
.order-form input:not([type="checkbox"]):not([type="radio"]), .order-form textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid #cbd7c4; border-radius: 2px; background: white; color: var(--ink); font-size: 14px; }
.order-form textarea { resize: vertical; }
.order-form .check-label { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.check-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.delivery-options { display: flex; gap: 24px; flex-wrap: wrap; }
.field-help, .shipping-notice { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 0; }
.shipping-notice { border-left: 2px solid var(--coral); padding-left: 12px; margin-top: 18px; }
.cart-footer .order-code { margin: 4px 0; font-size: 10px; }
.cart-footer .form-hint { margin: 4px 0 12px; }
.consult-order { display: block; padding: 13px 0 0; text-align: center; font-size: 11px; text-underline-offset: 4px; }
.clear-order { display: block; padding: 8px 0 0; margin: auto; border: 0; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.payment-dialog { width: min(520px,calc(100% - 24px)); padding: 0; max-height: calc(100dvh - 24px); border: 0; background: var(--paper); color: var(--ink); border-radius: 4px; }
.payment-dialog::backdrop { background: #173e4366; }
.payment-body { padding: 24px 28px 28px; text-align: center; }
.payment-body p { font-size: 12px; line-height: 1.6; margin: 20px 0; }
.payment-body .button { width: 100%; justify-content: center; margin-top: 10px; }
.qr-image { display: block; width: min(300px,100%); height: auto; margin: auto; }
.payment-body .payment-amount { font-size: 13px; }
.payment-amount strong { display: block; font: 400 32px var(--serif); margin-top: 6px; }
@media (max-width:1250px) {
  .site-header { padding: 20px 38px; }
  .hero { margin: 5px 24px 53px; }
  .hero-copy { padding-left: 42px; }
  .hero h1 { font-size: 54px; }
  .hero p { font-size: 14px; }
  .catalog { padding: 0 38px 60px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .categories button, .genders button { padding: 9px 12px; font-size: 11px; }
  .product-page { gap: 38px; padding: 0 35px; }
  .site-footer { padding: 28px 38px 40px; }
}
@media (max-width:760px) {
  .site-header { height: 90px; padding: 17px 22px; gap: 15px; }
  .brand { max-width: 176px; }
  .brand-logo { height: 49px; max-width: 176px; }
  .brand-cropped { width: 120px; max-width: 120px; }
  .brand-cropped .brand-logo { max-width: none; }
  .brand-fallback { font-size: 22px; }
  .header-catalog { display: none; }
  .cart-button { padding-left: 0; gap: 8px; font-size: 10px; }
  .cart-button svg { width: 19px; }
  .hero { grid-template-columns: 1fr; margin: 0 16px 41px; }
  .hero-copy { padding: 31px 26px 30px; }
  .hero h1 { font-size: 44px; margin-bottom: 18px; }
  .hero p { font-size: 13px; margin-bottom: 23px; max-width: 310px; }
  .hero-photo { max-height: 410px; width: 100%; aspect-ratio: 4/5; }
  .catalog { padding: 0 22px 42px; }
  .catalog-heading { display: block; margin-bottom: 17px; }
  .catalog h2 { font-size: 34px; margin-bottom: 19px; }
  .search-field { width: 100%; }
  .catalog-filters { display: block; padding-bottom: 15px; }
  .categories { gap: 4px; margin-bottom: 12px; }
  .categories button { padding: 9px 10px; min-height: 37px; font-size: 10px; }
  .genders { gap: 7px; }
  .genders button { min-height: 33px; padding: 7px 13px; font-size: 10px; }
  .results { font-size: 9px; min-height: 40px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 14px; }
  .product-brand { font-size: 7px; margin: 12px 0 5px; letter-spacing: .09em; }
  .product-card h3 { font-size: 11px; line-height: 1.45; margin-bottom: 8px; }
  .card-color { font-size: 9px; }
  .price { font-size: 11px; }
  .normal-price { font-size: 8px; }
  .offer-badge { font-size: 8px; padding: 3px 5px; }
  .price-block { gap: 6px; }
  .product-sizes { font-size: 8px; margin: 8px 0 10px; }
  .card-colors { gap: 7px; }
  .card-colors .color-swatch { width: 13px; height: 13px; }
  .site-footer { padding: 25px 24px 88px; display: flex; gap: 17px; font-size: 10px; }
  .site-footer p { flex-basis: 100%; }
  .footer-name { font-size: 22px; }
  .whatsapp-float { width: 47px; height: 47px; right: 18px; bottom: 18px; }
  .whatsapp-float svg { width: 27px; }
  .product-page { display: block; padding: 0 20px; margin: 0 auto 39px; }
  .detail-gallery { max-width: 500px; margin: auto; }
  .detail-info { padding-top: 26px; }
  .detail-info h1 { font-size: 31px; margin-bottom: 13px; }
  .detail-info .product-brand { font-size: 8px; margin-bottom: 11px; }
  .detail-color { font-size: 11px; margin-bottom: 18px; }
  .detail-price { padding-bottom: 21px; margin-bottom: 21px; }
  .detail-price .price { font-size: 23px; }
  .detail-price .normal-price { font-size: 12px; }
  .field-title { font-size: 11px; margin-top: 23px; }
  .size-button { min-width: 45px; min-height: 42px; font-size: 11px; }
  .detail-quantity { margin-top: 23px; }
  .cart-head { padding: 24px 22px 19px; }
  .cart-head h2 { font-size: 30px; }
  .cart-body { padding: 0 22px; }
  .cart-row { grid-template-columns: 56px minmax(0,1fr) auto; gap: 11px; padding: 20px 0; }
  .cart-thumb { height: 72px; }
  .cart-name { font-size: 11px; }
  .cart-info p { font-size: 9px; }
  .cart-costs { font-size: 10px; }
  .quantity button { width: 29px; height: 29px; }
  .quantity span { min-width: 30px; font-size: 11px; }
  .cart-footer { padding: 19px 22px 24px; }
  .cart-footer p { font-size: 10px; }
  .cart-footer .button { font-size: 11px; padding-left: 18px; padding-right: 18px; }
  .order-form input:not([type="checkbox"]):not([type="radio"]), .order-form textarea { font-size: 16px; }
  .total strong { font-size: 26px; }
}
@media (max-width:380px) {
  .site-header { padding-left: 18px; padding-right: 18px; }
  .brand { max-width: 152px; }
  .cart-button > span { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-photo { max-height: 370px; }
  .catalog { padding-left: 19px; padding-right: 19px; }
  .categories button { padding-left: 8px; padding-right: 8px; }
  .cart-body, .cart-footer { padding-left: 18px; padding-right: 18px; }
  .cart-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.checkout-submit { width: 100%; justify-content: center; text-align: center; }
.order-feedback { padding: 12px; border: 1px solid #c7d5d0; background: #f0f6f2; font-size: 12px; line-height: 1.5; }
.order-feedback[data-state="error"] { background: #fff0e6; border-color: #d9b89d; }
.order-feedback[data-state="pending"] { background: #fff8e5; border-color: #d9c99c; }

.payment-body h3 { font: 400 23px/1.35 var(--serif); }
.payment-body .order-feedback { text-align: left; }

.delivery-map { height: 220px; width: 100%; border-radius: 12px; overflow: hidden; margin: .5rem 0; background: #edf0ec; }
.order-form select { width:100%; padding:.75rem; border:1px solid #bac5bb; border-radius:8px; background:white; font:inherit; }
#payment-upload input { max-width:100%; margin:1rem 0; }
#payment-upload,#payment-receipt { padding:.5rem 0; }
#prefer-whatsapp { display:block; margin-top:1rem; }

.consult-note { font-size:12px; line-height:1.5; color:var(--muted); }

/* P4-008: a compact checkout and a separate map touch surface. */
.cart-footer { padding: 12px 22px max(14px,env(safe-area-inset-bottom)); }
.cart-footer .total { margin-bottom: 10px; }
.cart-footer .checkout-submit { margin: 0; }
#clear-order { margin: 8px 0 18px; }
.field-error,.size-error { color: #963822; font-size: 14px; margin: 7px 0 15px; }
[aria-invalid="true"],.invalid-sizes .size-button { border-color: #963822 !important; outline: 1px solid #963822; }
.location-choice { margin-bottom: 18px; }
.location-field { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid #cbd7c4; border-radius: 2px; background: white; color: var(--ink); font-size: 14px; text-align: left; }
.location-field svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#location-change { margin-left: auto; font-size: 12px; text-decoration: underline; }
@media (max-width:600px) { .location-field { font-size: 16px; } }
.payment-body .payment-amount { margin: 0 0 8px; }
.payment-amount strong { font-size: 34px; display: block; }
.payment-body .qr-image { height: auto; max-height: 260px; max-width: 100%; object-fit: contain; margin: 16px auto 10px; }
#payment-qr .button,#payment-upload .button,#payment-receipt .button,#payment-error .button { width: 100%; margin-bottom: 10px; }
#qr-reference { margin: 12px 0; font-size: 13px; }
#receipt-preview { max-width: 100%; max-height: 160px; object-fit: contain; margin: 8px auto; }
#receipt-name { overflow-wrap: anywhere; font-size: 13px; }
#receipt-help { color: #963822; }
#payment-upload .clear-order { display: block; margin: 16px auto; }
.location-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: 0; margin: 0; overflow: hidden; }
.location-dialog[open] { display: flex; flex-direction: column; }
.location-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-shrink: 0; }
.location-head h2 { flex: 1; font: 500 17px/1.4 var(--sans); margin: 0; }
.location-map-frame { position: relative; flex: 1; min-height: 150px; }
#delivery-map { position: absolute; inset: 0; background: #edf0ec; }
.location-pin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; background: #315a42; border: 3px solid white; border-radius: 50% 50% 50% 0; transform: translate(-50%,-100%) rotate(-45deg); box-shadow: 0 2px 6px #3338; z-index: 500; pointer-events: none; }
.location-pin::after { content: ''; position: absolute; inset: 6px; background: white; border-radius: 50%; }
#delivery-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.location-actions { flex-shrink: 0; padding: 10px 18px max(14px,env(safe-area-inset-bottom)); background: white; display: grid; gap: 8px; }
.location-actions p { margin: 0; font-size: 13px; line-height: 1.4; }
.location-actions p:empty { display: none; }
.location-actions .button { width: 100%; }

@media (max-width: 600px) {
  .payment-dialog .cart-head { padding: 16px 20px; }
  .payment-dialog .cart-head h2 { font-size: 28px; }
  .payment-body { padding: 12px 20px 16px; }
  #payment-qr { display: flex; flex-direction: column; gap: 6px; }
  #payment-qr > p,#payment-qr .button { margin: 0; }
  #payment-qr .button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  #payment-qr .qr-image { max-height: 220px; margin: 2px auto; }
  #payment-qr .payment-amount strong { margin-top: 2px; }
  #qr-reference,#qr-shipping { font-size: 11px; }
}

/* P4-009: recovery actions and a small copy control next to the total. */
#payment-resume .button { display: flex; width: 100%; min-height: 48px; margin: 10px 0; }
.qr-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
.qr-total .payment-amount { flex: 1; }
#payment-qr #copy-amount { width: auto; flex: none; margin: 0; padding: 10px 16px; min-height: 40px; }
.location-head h2 { text-align: center; }

/* P4-012: avisos administrados y stock por talla. */
.shop-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px max(24px, calc((100% - 1240px) / 2)); background: var(--ivory); border-bottom: 1px solid var(--line); }
.shop-notice p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.shop-notice .button { flex-shrink: 0; }
.pause-notice { background: #f8ecd9; }
.cart-quote { display: block; margin: 0 0 14px; font-size: 12px; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.detail-stock { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .shop-notice { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px 22px; } .shop-notice .button { text-align: center; } }

/* P4-013: cotización dentro de la portada. */
.hero-quote { margin-top: 24px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hero .hero-quote p { margin: 0; font-size: inherit; color: inherit; }
.hero-quote a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Ajustes acotados de portada y acceso: misma altura del hero anterior. */
.site-header { background:#f2f3e9; border-bottom:1px solid #dfe4d6; }
.header-links { display:flex; align-items:center; gap:18px; font-size:12px; }
.header-links a { text-decoration:none; color:var(--ink); }.header-links a:hover { text-decoration:underline; }
.header-menu { display:none; position:relative; font-size:12px; }.header-menu summary { cursor:pointer; padding:10px 0; }
.header-menu nav { position:absolute; z-index:12; right:0; top:100%; width:190px; padding:12px; background:#fbfcf5; border:1px solid #dfe4d6; box-shadow:0 6px 20px #183f4217; }
.header-menu nav a { display:block; padding:10px; color:var(--ink); text-decoration:none; }
.pickup-information { max-width:1184px; margin:35px auto; padding:24px; background:#f2f3e9; color:var(--ink); }
.pickup-information h2 { font-family:var(--serif); font-size:24px; }.pickup-information p,.pickup-information li { font-size:14px; line-height:1.7; }
.carousel { display:flex; position:relative; flex-direction:column; }
.carousel-view { width:100%; height:100%; min-height:0; flex:1; display:flex; }
.carousel-view a { display:flex; width:100%; height:100%; }.carousel-image { width:100%; height:100%; object-fit:contain; }
.carousel-controls { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 20px); display:flex; align-items:center; justify-content:center; gap:7px; padding:2px 8px; border-radius:14px; background:#fcfcf0ed; }
.carousel-controls button { border:0; background:transparent; color:var(--ink); min-width:40px; min-height:44px; cursor:pointer; font-size:17px; }
.carousel-dots { display:flex; }.carousel-dots button { opacity:.4; font-size:25px; min-width:28px; }.carousel-dots button[aria-pressed=true]{opacity:1;}
.product-description { margin:20px 0; }.product-description p { white-space:pre-line; font-size:14px; line-height:1.7; color:var(--muted); max-width:480px; overflow-wrap:anywhere; }
@media(max-width:1100px) { .header-links { gap:12px; font-size:11px; }.site-header { gap:17px; } }
@media(max-width:760px) { .header-links { display:none; }.header-menu:not([hidden]) { display:block; margin-left:auto; }.site-header { gap:12px; }.pickup-information{margin:24px 16px;padding:20px;} }

/* Con banners, portada horizontal completa y acceso breve al catálogo/cotización. */
.hero.has-banners { display:flex; flex-direction:column; margin-bottom:38px; background:transparent; }
.has-banners .hero-photo.carousel { order:-1; width:100%; aspect-ratio:auto; max-height:none; overflow:visible; background:transparent; }
.has-banners .carousel-view { flex:none; width:100%; height:auto; aspect-ratio:16/5; background:#eeeede; }
.has-banners .carousel-controls { position:static; transform:none; margin:2px auto; padding:0 8px; background:transparent; }
.has-banners .hero-copy { align-self:stretch; display:flex; align-items:center; gap:24px; padding:15px 24px; background:#f0f2e7; }
.has-banners .hero-copy > p { display:none; }
.has-banners .hero-copy > .button { display:none; }
.has-banners .hero-quote { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; margin:0; font-size:13px; line-height:1.6; }
.has-banners .hero-quote p { max-width:none; }.has-banners .hero-quote a { white-space:nowrap; }
.shipping-cost { font-weight:700; font-size:14px; line-height:1.6; }
.cart-quote { font-weight:700; font-size:13px; margin-bottom:10px; }
@media(max-width:760px) { .hero.has-banners { margin-bottom:28px; }.has-banners .hero-copy { align-items:flex-start; flex-direction:column; gap:9px; padding:13px 16px; }.has-banners .hero-quote { font-size:12px; }.shipping-cost { font-size:13px; } }

/* 015: navegación compacta y banner en su proporción real. */
:root { --paper:#fff; --ivory:#f3f8f8; --line:#d9e5e4; --muted:#557373; }
html { scroll-padding-top:84px; }.product-card { background:#fff; }.product-card > :not(.product-photo) { margin-left:12px; margin-right:12px; }
.site-header { position:sticky; top:0; z-index:50; max-width:none; width:100%; height:72px; margin:0; padding:10px 28px; display:grid; grid-template-columns:1fr auto 1fr; gap:16px; background:#12646b; color:#fff; border:0; transition:transform .18s ease; }

.menu-toggle { justify-self:start; border:0; background:transparent; color:inherit; width:44px; height:44px; padding:9px; }.menu-toggle svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; }
.site-header .brand { justify-self:center; max-width:180px; color:#fff; }.site-header .brand-cropped { width:136px; max-width:136px; }.site-header .brand-logo { max-width:180px; height:42px; filter:grayscale(1) invert(1); mix-blend-mode:screen; }.site-header .brand-cropped .brand-logo { max-width:none; height:100%; }.site-header .brand-fallback { font-size:26px; white-space:nowrap; }
.site-header .cart-button { justify-self:end; padding:0; min-width:44px; min-height:44px; gap:6px; color:#fff; }.site-header .cart-button > span { display:none; }.site-header .cart-button svg { width:24px; }.site-header .cart-button b { min-width:18px; height:18px; line-height:18px; background:#fff; color:#12646b; }
.menu-open { overflow:hidden; }.menu-backdrop { position:fixed; z-index:40; inset:var(--drawer-top,72px) 0 0; border:0; background:#123e4459; cursor:default; }
.shop-drawer { position:fixed; z-index:45; top:var(--drawer-top,72px); left:0; width:min(340px,86vw); height:calc(100dvh - var(--drawer-top,72px)); padding:22px; overflow:auto; background:#fff; color:var(--ink); box-shadow:8px 12px 30px #123e441c; }
.drawer-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }.drawer-heading h2 { margin:0; font:400 27px var(--serif); }.drawer-heading button { width:44px; height:44px; border:0; background:transparent; font-size:28px; }
#header-links { display:flex; flex-direction:column; align-items:stretch; gap:0; margin:0; font-size:16px; }#header-links a { padding:16px 8px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }#header-links a:hover { background:var(--ivory); }
.hero.has-banners { max-width:none; width:100%; margin:0 0 30px; }.has-banners .carousel-view { display:block; aspect-ratio:auto; height:auto; background:transparent; }.has-banners .carousel-view > a { display:block; width:100%; height:auto; }.has-banners .carousel-image { display:block; width:100%; height:auto; object-fit:contain; }.has-banners .hero-copy { background:#e9f2f1; justify-content:center; padding:14px 24px; }
@media(max-width:760px) { .site-header { height:64px; padding:8px 14px; gap:8px; }.site-header .brand-cropped { width:120px; max-width:120px; }.site-header .brand-logo { height:38px; }.site-header .brand-fallback { font-size:24px; }.has-banners .hero-copy { padding:13px 18px; } }
@media(prefers-reduced-motion:reduce) { .site-header { transition:none; } }

/* 017: una única imagen a todo el ancho, sin columna lateral. */
html { scroll-padding-top:72px; }.site-header { height:60px; padding-top:8px; padding-bottom:8px; transform:none; transition:none; }
.hero.has-banners { display:block; max-width:none; width:100%; height:auto; margin:0 0 24px; background:transparent; }
.has-banners .hero-copy { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); }
.has-banners .hero-photo.carousel { position:relative; order:0; width:100%; height:auto; background:transparent; }
.has-banners .carousel-view { width:100%; height:auto; aspect-ratio:auto; display:block; flex:none; }
.has-banners .carousel-view > a,.has-banners picture { display:block; width:100%; height:auto; }
.has-banners .carousel-image { display:block; width:100%; height:auto; object-fit:contain; }
.has-banners .carousel-controls { position:static; transform:none; width:max-content; height:24px; margin:0 auto; padding:0; background:transparent; }
.carousel-controls button { min-height:24px; height:24px; min-width:28px; padding:0; line-height:24px; }
/* PC: one stable frame. Original panoramas retain their known crop; other photos stay whole. */
@media(min-width:761px) {
  .has-banners .carousel-view { position:relative;aspect-ratio:5.8/1;height:auto;overflow:hidden; }
  .has-banners .carousel-view > a,.has-banners .carousel-view > picture { position:absolute;inset:0;height:100%; }
  .has-banners .carousel-view picture { height:100%; }
  .has-banners .carousel-view .carousel-image { height:100%;aspect-ratio:auto;object-fit:contain;object-position:center; }
  .has-banners .banner-legacy .carousel-image { object-fit:cover; }
}
@media(max-width:760px) { .site-header { height:60px; }.hero.has-banners { margin-bottom:20px; } }

/* 018: pie compacto y sucursales sólo a petición. */
.site-footer { width:100%; max-width:none; margin:0; padding:30px 24px 26px; display:flex; flex-direction:column; justify-content:center; gap:12px; border:0; background:#12646b; color:#fff; text-align:center; }
.site-footer .footer-tagline { margin:0; max-width:900px; font-size:22px; font-weight:600; line-height:1.5; letter-spacing:.04em; overflow-wrap:anywhere; }
.footer-social { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }.footer-social a { display:flex; align-items:center; justify-content:center; width:36px; height:36px; color:#fff; }.footer-social svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.footer-bottom { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px 20px; font-size:11px; line-height:1.6; }.footer-legal { display:flex; justify-content:center; gap:16px; }.site-footer .footer-legal a { color:#fff; text-decoration:underline; text-underline-offset:3px; }.site-footer .footer-test-notice { margin:0; font-size:11px; line-height:1.5; color:#e0eeee; }
.branches-dialog { position:fixed; inset:0; width:min(580px,calc(100% - 32px)); max-width:none; max-height:calc(100dvh - 40px); margin:auto; padding:0; border:0; border-radius:8px; overflow:hidden; background:var(--paper); color:var(--ink); }
.branches-dialog[open] { display:flex; flex-direction:column; }.branches-dialog::backdrop { background:#123e4466; }.branches-dialog .cart-head { padding:18px 22px; }.branches-dialog .close { width:44px; height:44px; }.branches-body { padding:22px; min-height:0; overflow:auto; max-height:60dvh; font-size:14px; line-height:1.7; }.branches-info { margin:0 0 18px; }.branches-list { list-style:none; margin:0; padding:0; }.branches-list li { padding:13px 0; border-top:1px solid var(--line); }.branches-empty { margin:0; }
@media(max-width:760px) { .site-footer { padding:28px 20px 24px; gap:10px; }.site-footer .footer-tagline { font-size:18px; }.footer-bottom { flex-direction:column; gap:6px; }.branches-body { padding:18px 20px; } }

body.branches-open { overflow:hidden; }

/* Configuración local de identidad; el logo anterior conserva sus reglas históricas. */
.site-header,.site-footer { background:var(--header-color,#12646b);color:var(--header-foreground,#fff); }
.site-header .brand,.site-header .cart-button,.site-footer .footer-legal a,.site-footer .footer-test-notice { color:inherit; }
.site-header .brand-custom { width:auto;max-width:180px;aspect-ratio:auto;overflow:visible; }
.site-header .brand-custom .brand-logo { position:static;max-width:180px;max-height:42px;width:auto;height:auto;object-fit:contain;filter:none;mix-blend-mode:normal; }
.legal-page { max-width:850px;margin:36px auto;padding:0 24px;line-height:1.8;overflow-wrap:anywhere;min-height:50vh; }.legal-page h1 { font-size:32px; }.legal-text p { white-space:pre-line; }.legal-text a { text-decoration:underline; }.legal-links { display:flex;flex-wrap:wrap;gap:18px; }.legal-text li { margin-bottom:8px; }

/* Categorías generales y refinamientos canónicos: una selección visible. */
.catalog-filters { display:block; }.canonical-filters { margin:12px 0 8px; }
.categories { flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:4px;padding:0 0 8px;border-bottom:1px solid var(--line);scrollbar-width:thin; }
.categories button { flex:none;white-space:nowrap;font-size:13px;padding:10px 16px;border-radius:0; }
.filter-controls { display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap; }
.filter-controls label { display:grid;gap:5px;font-size:12px;min-width:150px; }
.filter-controls select { width:100%;max-width:240px;height:40px;box-sizing:border-box;padding:8px 28px 8px 10px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font-size:13px; }
.filter-chips-row { display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:10px; }
.filter-chips { display:flex;flex-wrap:wrap;gap:7px; }
.filter-chip { border:1px solid #b8cbc9;background:#eef5f3;color:var(--ink);border-radius:20px;padding:7px 12px;font-size:12px; }
.filter-clear { padding:4px 0;border:0;background:none;text-decoration:underline;color:var(--ink);font-size:12px; }
.filter-toggle { display:none; }.catalog .results { margin:14px 0; }
@media(max-width:760px){
 .categories { margin-bottom:12px; }.categories button { font-size:12px;padding:10px 13px;min-height:40px; }
 .filter-toggle { display:block;border:1px solid var(--line);background:#fff;border-radius:4px;padding:11px 16px;font-size:14px; }
 .filter-controls { display:none; }.filter-controls.is-open { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 10px;margin-top:12px; }
 .filter-controls label { min-width:0; }.filter-controls select { max-width:100%;min-width:0;font-size:14px; }
 .filter-chip { max-width:100%;overflow-wrap:anywhere;text-align:left; }
}

.footer-social .social-brand { width:26px;height:26px;fill:none;stroke:none; }.branch-card { padding:20px 0;border-bottom:1px solid var(--line); }.branch-card h2 { margin:0 0 9px;font-size:23px; }.branch-card p { margin:0 0 10px; }.branch-card a { text-decoration:underline;text-underline-offset:3px; }

/* 025: superficies sobrias, menú legible y sucursales como extensión de la tienda. */
:root { --ivory:#fafbfa;--line:#e1e7e5; }
.product-card { border:1px solid var(--line);border-radius:4px; }
.shop-drawer { width:min(370px,90vw);padding:24px;background:#fff; }
.drawer-heading { margin-bottom:22px; }.drawer-heading button { width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:27px; }
#header-links { font-size:18px;line-height:1.4; }#header-links .menu-internal,#header-links .menu-external { display:grid;gap:5px; }
#header-links a { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:13px 12px;border:0;border-radius:4px; }
#header-links .menu-external { margin-top:23px;padding-top:22px;border-top:1px solid var(--line); }
#header-links a:hover { background:#f4f7f6; }#header-links a[aria-current="page"] { background:color-mix(in srgb,var(--header-color,#12646b) 12%,#fff);box-shadow:inset 3px 0 var(--header-color,#12646b);font-weight:600; }
.menu-external-icon { font-size:21px;font-weight:400; }
.back-to-store { display:inline-flex;align-items:center;gap:8px;justify-self:start;font-size:13px;line-height:1.35;text-decoration:none; }.back-to-store:hover { text-decoration:underline;text-underline-offset:4px; }.back-to-store > :first-child { flex:none;font-size:20px; }
body[data-page="branches"] { min-height:100dvh;display:flex;flex-direction:column; }
.branches-page { flex:1;width:100%;max-width:1312px;min-height:0;margin:42px auto 64px;padding:0 24px; }
.branches-page h1 { font:400 42px/1.1 var(--serif);letter-spacing:-.035em;margin:0 0 30px; }
.branches-page-list { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px; }
.branches-page .branch-card { display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0;padding:26px;background:#fff;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere; }
.branches-page .branch-card h2 { margin:0;font:400 27px/1.2 var(--serif); }.branches-page .branch-card p { margin:0;line-height:1.7;color:var(--muted); }.branches-page .branch-card a { margin-top:auto;padding-top:8px;text-decoration:underline;text-underline-offset:4px;font-size:14px; }
@media(max-width:760px){.shop-drawer { padding:24px; }.branches-page { margin:30px auto 40px;padding:0 20px; }.branches-page h1 { font-size:34px;margin-bottom:24px; }.branches-page-list { grid-template-columns:minmax(0,1fr);gap:16px; }.branches-page .branch-card { padding:22px; }.back-to-store { font-size:12px;gap:6px; }}
