/* Isolated catalog styling, following the approved editorial HTML proposal. */
:root { --paper:#fbf8f3; --ink:#282321; --wine:#8b242d; --muted:#675c54; --line:#dfd4ca; --ivory:#f1e8df; --accent:#ffbf00; color-scheme:light; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.6 'Century Gothic','Apple Gothic','URW Gothic','Segoe UI',Arial,sans-serif; }
a { color:inherit; text-underline-offset:4px; }
a:hover { color:var(--wine); }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:Georgia,'Times New Roman',serif; font-weight:400; }
.catalog-card h3,.detail-copy h1,.cart-item-identity h2 { font-family:'Century Gothic','Apple Gothic','URW Gothic','Segoe UI',Arial,sans-serif; }
.catalog-width { width:min(1320px,calc(100% - 100px)); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-100px; left:20px; z-index:20; padding:12px; background:var(--paper); }
.skip-link:focus { top:12px; }
.catalog-header { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.wordmark { color:var(--wine); text-decoration:none; font:bold 33px Georgia,serif; letter-spacing:-2px; }
.catalog-header nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px 28px; font-size:13px; }
.catalog-header nav a { text-decoration:none; }
.catalog-hero { display:grid; grid-template-columns:1fr 1fr; margin:32px 0 0; min-height:440px; background:#efe6dc; }
.hero-copy { padding:clamp(26px,5.4vw,78px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.eyebrow { color:var(--wine); font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin-bottom:18px; overflow-wrap:anywhere; }
.hero-copy h1 { color:var(--wine); font-size:clamp(52px,7vw,108px); line-height:.95; letter-spacing:-.065em; margin:0 0 26px; }
.hero-copy h1 em { font-weight:400; }
.hero-intro { max-width:30ch; color:var(--muted); margin-bottom:24px; }
.catalog-button { display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:44px; padding:11px 18px; background:var(--wine); color:white; border:1px solid var(--wine); border-radius:0; text-decoration:none; cursor:pointer; font-size:13px; }
.catalog-button:hover { color:white; background:#6f1921; }
.hero-identity { background:#fff1dc; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 24px; min-width:0; gap:24px; }
/* Reuse the exact welcome artwork; crop its logo area in CSS, leaving the asset intact. */
.welcome-logo { position:relative; overflow:hidden; width:min(100%,500px); aspect-ratio:700 / 410; }
.welcome-logo img { position:absolute; width:238.857143%; max-width:none; height:auto; left:-71.428571%; top:-17.073171%; }
.hero-identity > p { font:italic 20px Georgia,serif; color:var(--wine); text-align:center; margin:0; }
.catalog-browse { margin:52px 0 60px; scroll-margin-top:24px; }
.browse-bar { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
.browse-bar > div { flex:1; min-width:0; }
.browse-bar .eyebrow { margin-bottom:8px; }
.browse-bar h2 { font-size:clamp(32px,3.6vw,52px); line-height:1.05; letter-spacing:-.045em; margin:0; }
.catalog-filters { display:flex; align-items:flex-end; flex-wrap:wrap; justify-content:flex-end; gap:10px; max-width:590px; }
.catalog-filters label { flex:1 1 170px; min-width:0; font-size:11px; color:var(--muted); }
.catalog-filters input,.catalog-filters select { display:block; width:100%; min-width:0; height:44px; margin-top:5px; padding:10px 12px; border:1px solid var(--line); border-radius:0; color:var(--ink); background:#fffdfa; font-size:13px; }
.catalog-results { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 22px; color:var(--muted); font-size:12px; }
.catalog-results p { margin:0; }
.catalog-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px 16px; }
.catalog-card { min-width:0; }
.card-photo { display:block; overflow:hidden; aspect-ratio:1; background:var(--ivory); }
.card-photo img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.card-photo:hover img { transform:scale(1.025); }
.card-category { color:var(--wine); font-size:11px; margin:13px 0 5px; }
.catalog-card h3 { margin:0 0 7px; font-size:22px; line-height:1.15; overflow-wrap:anywhere; }
.catalog-card h3 a { text-decoration:none; }
.card-meta { color:var(--muted); font-size:12px; margin:0 0 9px; overflow-wrap:anywhere; }
.card-price { font-weight:600; color:var(--wine); font-size:15px; margin:0; }
.catalog-empty { grid-column:1/-1; padding:42px 24px; background:var(--ivory); text-align:center; }
.catalog-empty h3 { font-size:30px; margin-bottom:10px; }
.catalog-empty p { margin-bottom:0; color:var(--muted); }
.catalog-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:20px; margin-top:36px; font-size:13px; }
.catalog-pagination a { min-height:44px; display:inline-flex; align-items:center; }
.catalog-footer { padding:22px 0 30px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; color:var(--muted); font-size:12px; }
.catalog-back { margin:26px 0; font-size:13px; }
.catalog-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,5vw,76px); margin-bottom:60px; align-items:start; }
.catalog-gallery { min-width:0; }
.gallery-main { display:block; background:var(--ivory); aspect-ratio:1; }
.gallery-main img { width:100%; height:100%; object-fit:contain; }
.gallery-thumbs { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.gallery-thumbs a { width:76px; height:76px; border:2px solid transparent; padding:3px; }
.gallery-thumbs a[aria-current=true] { border-color:var(--wine); }
.gallery-thumbs img { width:100%; height:100%; object-fit:cover; background:var(--ivory); }
.gallery-hint { margin:12px 0 0; font-size:12px; color:var(--muted); }
.detail-copy { min-width:0; overflow-wrap:anywhere; }
.detail-copy .eyebrow { margin-bottom:13px; }
.detail-copy h1 { font-size:clamp(32px,3.4vw,51px); letter-spacing:-.04em; line-height:1.08; margin-bottom:12px; }
.detail-code { font-size:12px; color:var(--muted); margin-bottom:22px; }
.detail-price { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 0; margin-bottom:24px; }
.detail-price > span { display:block; color:var(--muted); font-size:12px; margin-bottom:4px; }
.detail-price strong { color:var(--wine); font:400 32px Georgia,serif; }
.detail-price small { font:12px 'Segoe UI',sans-serif; margin-left:6px; }
.detail-description { color:var(--muted); margin-bottom:24px; white-space:normal; }
.detail-description p:last-child { margin-bottom:0; }
.detail-pending { font-size:13px; }
.detail-facts { margin:0 0 28px; border-bottom:1px solid var(--line); }
.detail-facts > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:16px; padding:11px 0; border-top:1px solid var(--line); }
dt { color:var(--muted); font-size:12px; }
dd { margin:0; }
.detail-facts dd { text-align:right; font-size:13px; }
.commercial-details h2 { font-size:29px; letter-spacing:-.03em; margin-bottom:20px; }
.commercial-details dl { margin:0; }
.commercial-details dl > div { margin-bottom:19px; }
.commercial-details dt { color:var(--wine); font-weight:600; margin-bottom:5px; }
.commercial-details dd { font-size:14px; }
@media(max-width:1100px) { .browse-bar { display:block; } .catalog-filters { max-width:none; margin-top:22px; } .catalog-filters label { flex-basis:220px; } }
@media(max-width:900px) { .catalog-width { width:calc(100% - 44px); } .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .hero-copy { padding:32px; } .hero-identity { padding:26px 18px; } .catalog-detail { gap:28px; } }
@media(max-width:570px) {
  .catalog-width { width:calc(100% - 28px); }
  .catalog-header { min-height:68px; gap:10px; }
  .wordmark { font-size:28px; }
  .catalog-header nav { font-size:11px; gap:4px 12px; max-width:205px; }
  .catalog-hero { grid-template-columns:1fr; margin-top:15px; }
  .hero-copy { padding:30px 24px; }
  .hero-copy h1 { font-size:66px; margin-bottom:20px; }
  .hero-intro { max-width:32ch; font-size:14px; }
  .hero-identity { padding:24px; gap:14px; }
  .welcome-logo { width:100%; max-width:340px; }
  .hero-identity > p { font-size:18px; }
  .catalog-browse { margin:34px 0 40px; }
  .browse-bar h2 { font-size:36px; }
  .catalog-filters { gap:9px; }
  .catalog-filters label { flex:1 1 calc(50% - 5px); }
  .catalog-filters button { width:100%; }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 12px; }
  .catalog-card h3 { font-size:20px; }
  .card-category { font-size:10px; }
  .card-meta { font-size:11px; }
  .card-price { font-size:14px; }
  .catalog-detail { grid-template-columns:1fr; gap:26px; margin-bottom:40px; }
  .gallery-main { max-width:390px; margin-inline:auto; }
  .detail-copy h1 { font-size:34px; }
  .catalog-back { margin:20px 0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .card-photo img { transition:none; } }

/* Cart stays within the catalog's editorial layout and authenticated navigation. */
[hidden] { display:none !important; }
.catalog-header nav .catalog-cart-link { color:var(--wine); font-weight:700; }
.catalog-messages { margin-top:20px; }
.catalog-message { padding:14px 18px; border-left:3px solid var(--wine); background:var(--ivory); margin-bottom:10px; font-size:14px; }
.catalog-message.error { border-color:#a72d28; }
.catalog-card { display:flex; flex-direction:column; }
.card-photo { flex-shrink:0; }
.catalog-add-form { padding-top:14px; margin-top:auto; }
.cart-add-button { width:100%; gap:6px; padding-inline:10px; }
.detail-add-form { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:0; margin:0 0 28px; }
.detail-add-form a { font-size:13px; }
.cart-heading { margin:0 0 32px; }
.cart-heading .eyebrow { margin-bottom:10px; }
.cart-heading h1 { font-size:clamp(40px,5vw,64px); line-height:1.05; color:var(--wine); letter-spacing:-.04em; margin-bottom:12px; }
.cart-heading > p:last-child { color:var(--muted); font-size:13px; margin-bottom:0; }
.cart-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr); gap:40px; align-items:start; margin-bottom:60px; }
.cart-lines { min-width:0; }
.cart-line { padding:24px 0; border-top:1px solid var(--line); }
.cart-line:last-child { border-bottom:1px solid var(--line); }
.cart-item-identity { display:flex; align-items:center; gap:18px; }
.cart-item-identity > div { min-width:0; }
.cart-item-photo { flex:0 0 84px; width:84px; height:84px; background:var(--ivory); }
.cart-item-photo img { width:100%; height:100%; object-fit:cover; }
.cart-item-identity h2 { font-size:25px; line-height:1.15; margin:0 0 8px; overflow-wrap:anywhere; }
.cart-item-identity h2 a { text-decoration:none; }
.cart-item-identity p { font-size:12px; color:var(--muted); margin:0; overflow-wrap:anywhere; }
.cart-item-prices { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0; }
.cart-item-prices dd { margin-top:4px; font-size:17px; font-weight:600; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cart-item-prices > div:last-child { text-align:right; }
.cart-item-actions { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.cart-quantity-form { display:flex; align-items:flex-end; gap:10px; }
.cart-quantity-form label { color:var(--muted); font-size:12px; }
.cart-quantity-form input { display:block; margin-top:5px; width:94px; min-height:44px; padding:9px 12px; font-size:16px; color:var(--ink); border:1px solid var(--line); border-radius:0; background:#fffdfa; }
.catalog-button-outline { background:transparent; color:var(--wine); border-color:var(--line); }
.catalog-button-outline:hover { background:var(--ivory); color:var(--wine); }
.cart-remove { min-height:44px; border:0; background:transparent; color:var(--wine); padding:10px 0; font-size:12px; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.cart-summary { background:var(--ivory); border-top:3px solid var(--wine); padding:28px; position:sticky; top:24px; min-width:0; }
.cart-summary h2 { font-size:30px; letter-spacing:-.03em; margin-bottom:24px; line-height:1.1; }
.cart-subtotal { margin:0; }
.cart-subtotal dt { font-size:14px; color:var(--ink); }
.cart-subtotal dd { color:var(--wine); font:36px/1.25 Georgia,serif; margin-top:8px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cart-subtotal dd span { font:12px 'Segoe UI',sans-serif; }
.cart-delivery-notice { color:var(--muted); font-size:13px; margin:18px 0; line-height:1.65; }
.cart-unpriced-note { font-size:13px; padding-top:16px; border-top:1px solid var(--line); }
.whatsapp-button { width:100%; margin-top:10px; gap:10px; line-height:1.5; }
.catalog-button:disabled { cursor:not-allowed; opacity:.55; }
.cart-checkout-note,.cart-session-note { color:var(--muted); font-size:12px; line-height:1.6; margin:15px 0 0; }
.cart-session-note { padding-top:15px; border-top:1px solid var(--line); }
.cart-changes { margin-bottom:28px; border-left:3px solid var(--accent); padding:20px 24px; background:#fff1dc; }
.cart-changes h2 { font-size:28px; margin-bottom:8px; }
.cart-changes > p { font-size:14px; margin-bottom:12px; }
.cart-changes ul { padding-left:20px; margin-bottom:0; }
.cart-changes li { margin-bottom:12px; font-size:13px; overflow-wrap:anywhere; }
.cart-changes li span { display:block; color:var(--muted); }
.cart-review-confirm { display:flex; align-items:flex-start; gap:10px; font-size:13px; margin:18px 0 10px; }
.cart-review-confirm input { flex:0 0 auto; width:19px; height:19px; margin:2px 0 0; accent-color:var(--wine); }
.cart-input-warning,.cart-config-notice { color:var(--wine); font-size:13px; margin-top:15px; }
.cart-empty { padding:42px 24px; background:var(--ivory); text-align:center; }
.cart-empty h2 { font-size:34px; margin-bottom:12px; }
.cart-empty p { color:var(--muted); }
.empty-cart-notice { max-width:680px; margin:24px 0 48px; }
@media(max-width:900px) {
  .cart-layout { grid-template-columns:1fr; gap:28px; }
  .cart-summary { position:static; }
}
@media(max-width:570px) {
  .catalog-header nav { padding:10px 0; }
  .catalog-message { padding:12px; font-size:13px; }
  .cart-add-button { font-size:12px; }
  .cart-heading { margin-bottom:24px; }
  .cart-item-photo { flex-basis:70px; width:70px; height:70px; }
  .cart-item-identity { gap:12px; }
  .cart-item-identity h2 { font-size:22px; }
  .cart-item-prices dd { font-size:16px; }
  .cart-item-actions { gap:8px; }
  .cart-quantity-form { gap:8px; }
  .cart-quantity-form input { width:78px; }
  .cart-quantity-form .catalog-button { padding-inline:12px; }
  .cart-summary { padding:23px 20px; }
  .cart-changes { padding:18px; }
  .cart-layout { margin-bottom:40px; }
}

[hidden] { display: none !important; }
