/* Phase 2: scoped functional corrections; approved brand.css is unchanged. */
.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;
}
.bag-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
}
.bag-backdrop[hidden] { display: none; }
.remove-item {
  background: none;
  border: 0;
  padding: 3px 0;
  color: var(--gold);
  font: 12px/1.6 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line > div:first-child { min-width: 0; }
.qty { flex-shrink: 0; }
.qty button { position: relative; }
.qty button::before { content: ''; position: absolute; inset: -8px 0; }
.drawer button:focus-visible,
.drawer input:focus-visible,
.archive summary:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
}
.drawer h2 { margin-bottom: 12px; }
#bagNote { margin-bottom: 14px; }
.reserve-image-note {
  height: 230px;
  border: 1px solid #a17e49;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.reserve-image-note p {
  max-width: 250px;
  font: 12px/1.7 var(--body);
  color: #d1bd99;
}
.after .collection-price { margin: 0 0 22px; color: var(--gold); }
html { scroll-padding-top: 150px; }
@media (max-width: 850px) {
  html { scroll-padding-top: 200px; }
}
@media (max-width: 800px) {
  .nav .links { display: flex; }
}

/* A text-only notice, never substitute packaging imagery. */
.reserve-image-note { margin: 0; }
/* Tasting Menu: show each approved 3:2 photograph in full, never cropped or stretched. */
.flavor img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
#detail img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
/* Box ordering: Signature Assortment or Curate Your Own, in the existing palette. */
.purchase-options { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }
.purchase-options .cta { width: 100%; }
.purchase-options .cta:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.option-note { margin: 2px 0 0 !important; font: 11px/1.6 var(--body); letter-spacing: .04em; color: #d1bd99 !important; }
.line-option { margin: 4px 0 0; font: 500 10px/1.5 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.line-flavors { list-style: none; margin: 6px 0 8px; padding: 0 0 0 12px; border-left: 1px solid #8c7040; font-size: 13px; line-height: 1.7; color: #eadcc4; }
.line-flavors-pending { margin: 4px 0 8px; font: italic 14px var(--display); color: #d1bd99; }
.line-links { display: flex; gap: 18px; }
.order-summary { list-style: none; margin: 10px 0; padding: 0; }
.order-summary > li { padding: 12px 0; border-bottom: 1px solid #6f5e3d; }
.order-total { font: 500 22px var(--display); color: var(--gold); }
dialog.curator { width: min(980px, 95vw); max-width: 95vw; max-height: 92vh; padding: 26px 30px 0; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 0, #164234, #0a1a13 70%); border: 1px solid #c49c58; box-shadow: 0 30px 90px #000a; }
.curator > .kicker { margin-top: 4px; }
.curator h3 { font: italic 40px/1.1 var(--display); color: #f4d8a2; margin: 6px 0 4px; }
.curator-meta { color: #e3d2b3; font-size: 14px; margin-bottom: 20px; }
.curator-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.curator-flavor { border: 1px solid #80613b; background: linear-gradient(150deg, #163326, #091a12); padding: 8px 8px 14px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.curator-flavor.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px #e8d3a566, 0 0 0 1px #4c1321; }
.curator-flavor img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid #a9844c; margin: 0; }
.curator-flavor h4 { margin: 12px 0 2px; font: italic 24px/1.15 var(--display); color: #f4d8a2; }
.curator-flavor-note { font-size: 12px; color: #e3d2b3; margin: 0 0 10px; }
.curator-qty { justify-content: center; gap: 14px; }
.curator-qty button { width: 34px; height: 34px; font-size: 18px; line-height: 1; }
.curator-qty button:disabled { opacity: .35; cursor: not-allowed; }
.curator-qty output { min-width: 2ch; font: 500 24px var(--display); color: var(--light); }
.curator-footer { position: sticky; bottom: 0; margin: 22px -30px 0; padding: 14px 30px 18px;
  background: linear-gradient(180deg, #2e0e16f2, #1e0a10); border-top: 1px solid #c49c58; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; }
.curator-progress { grid-column: 1 / -1; height: 3px; background: #ffffff1f; }
.curator-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b78b45, #f0d199); transition: width .25s; }
.curator-counter { font: 500 12px/1.5 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.curator-actions { display: flex; gap: 12px; }
.curator-actions .cta:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.curator button:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
@media (max-width: 800px) {
  .curator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .curator-flavor h4 { font-size: 19px; }
  .curator-flavor-note { display: none; }
}
@media (max-width: 560px) {
  dialog.curator { padding: 18px 14px 0; width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-inline: 0; }
  .curator h3 { font-size: 30px; }
  .curator-qty { gap: 8px; }
  .curator-footer { margin: 16px -14px 0; padding: 12px 14px 14px; grid-template-columns: 1fr; }
  .curator-actions .cta { flex: 1; padding: 12px 10px; }
}
/* Collections: four equal columns on desktop, two on tablet, one on mobile.
   Subgrid rows align photographs, names, quantities, prices and buttons. */
#shop { max-width: 1560px; padding-inline: 4%; }
#shop .shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; align-items: stretch; }
#shop .product { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; padding: 8px; }
#shop .product > .product-zoom { grid-row: 1; }
#shop .product > .photo-caption { grid-row: 2; }
#shop .product > div { grid-row: 3 / span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-items: start; padding: 18px 12px 22px; }
#shop .product > div > .num { grid-row: 1; }
#shop .product > div > .kicker { grid-row: 2; }
#shop .product > div > h3 { grid-row: 3; align-self: center; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.12; margin: 6px 0 0; }
#shop .product > div > p { grid-row: 4; margin: 10px 0 0; font-size: 14px; }
#shop .product > div > .price { grid-row: 5; margin: 12px 0 14px; font-size: 32px; }
#shop .product > div > .purchase-options { grid-row: 6; align-self: end; }
#shop .product .num { font-size: 36px; }
.product-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid #a17e49; background: #0a1a13; cursor: zoom-in; }
.product-zoom:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
/* Each approved photograph is shown whole: same 3:2 frame, never cropped or stretched. */
#shop .shop-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border: 0; }
.photo-caption { margin: 6px 0 0 !important; font: italic 13px/1.4 var(--display); color: #d1bd99 !important; text-align: center; letter-spacing: .02em; }
#shop .purchase-options { max-width: none; }
#shop .purchase-options .cta { padding: 12px 10px; letter-spacing: .12em; font-size: 10px; }
#havana .collection > img.feature-photo { object-fit: contain; background: #0a1a13; }
.after { margin-top: 0; }
.after > .section { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 1199px) {
  #shop .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  #shop .product > div > h3 { font-size: 30px; }
}
@media (max-width: 599px) {
  #shop .shop-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Product photographs in the curator, bag and confirmation. */
.curator-header { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.curator-header > div { min-width: 0; }
.curator-product { flex: 0 0 auto; width: 180px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #0a1a13; border: 1px solid #a9844c; margin: 0 !important; }
.curator-header .curator-meta { margin-bottom: 4px; }
.curator-photo-note { font: italic 13px var(--display); color: #d1bd99; }
.line { align-items: flex-start; }
.line-details { flex: 1; min-width: 0; }
.line-thumb { flex: 0 0 auto; width: 84px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #0a1a13; border: 1px solid #8c7040; }
.order-summary .line-thumb { display: block; margin-bottom: 8px; width: 120px; }
@media (max-width: 560px) {
  .curator-header { gap: 12px; }
  .curator-product { width: 110px; }
  .line-thumb { width: 64px; }
}
/* Brand film: the exact commercial opens the hero; text and controls stay outside the 16:9 frame. */
.film { position: relative; padding: clamp(22px, 3vh, 38px) 5% clamp(22px, 3vh, 34px); background: radial-gradient(ellipse at 50% 0%, #174b37, #081c15 68%); border-bottom: 1px solid #806433; text-align: center; }
.film:after { content: ''; position: absolute; inset: 14px; border: 1px solid #b99455; pointer-events: none; }
.film-intro { position: relative; z-index: 1; margin: 0 auto clamp(12px, 2vh, 20px); }
.film-intro p { margin: 0; }
.film-tagline { font: italic 400 clamp(24px, 2.4vw, 36px)/1.15 var(--display); color: var(--light); margin: 6px 0 4px !important; }
.film-motto { font: 500 11px/1.6 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: #c9a965; }
.film-frame { position: relative; z-index: 1; margin: 0 auto; width: clamp(min(100%, 480px), calc((100svh - 410px) * 1.7773), min(100%, 1200px)); aspect-ratio: 910 / 512; background: #050c09; border: 1px solid #b99455; box-shadow: 0 0 0 6px #0b2a1f, 0 0 0 7px #6f5630, 0 26px 60px rgba(0,0,0,.55); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050c09; }
.film-frame:fullscreen { width: 100%; height: 100%; border: 0; box-shadow: none; }
.film-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #e8d3a5; background: rgba(8, 28, 21, .72); color: #e8d3a5; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.film-play[hidden] { display: none; }
.film-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.film-play:hover, .film-play:focus-visible { background: rgba(76, 19, 33, .85); transform: translate(-50%, -50%) scale(1.05); }
.film-controls { position: relative; z-index: 1; width: clamp(min(100%, 480px), calc((100svh - 410px) * 1.7773), min(100%, 1200px)); margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.film-buttons { display: flex; align-items: center; gap: 6px; }
.film-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(216, 180, 109, .45); background: transparent; color: #e8d3a5; cursor: pointer; padding: 0; transition: .2s; }
.film-icon:hover, .film-icon:focus-visible { border-color: #e8d3a5; background: rgba(216, 180, 109, .12); }
.film-icon svg { width: 18px; height: 18px; fill: currentColor; }
.film-icon .i-play, .film.is-paused .film-icon .i-pause, .film-icon .i-muted, .film.is-muted .film-icon .i-sound { display: none; }
.film.is-paused .film-icon .i-play, .film.is-muted .film-icon .i-muted { display: block; }
.film-volume input { width: 92px; accent-color: #d8b46d; vertical-align: middle; }
.film-time { font: 12px/1 var(--body); letter-spacing: .06em; color: #cdb88f; min-width: 84px; text-align: left; margin-left: 6px; font-variant-numeric: tabular-nums; }
.film-actions { display: flex; align-items: center; gap: 12px; }
.film-actions .cta { width: auto; margin: 0; }
.film-sound { padding: 13px 22px; border: 1px solid #d8b46d; background: linear-gradient(120deg, rgba(216,180,109,.16), rgba(76,19,33,.55)); color: #f0dcae; font: 600 11px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.film-sound:hover, .film-sound:focus-visible { background: linear-gradient(120deg, #ebcc8d, #b88c43); color: #192016; }
.film:not(.is-muted) .film-sound { visibility: hidden; }
@media (max-width: 850px) {
  .film { padding: 22px 4% 22px; }
  .film:after { inset: 8px; }
  .film-frame, .film-controls { width: 100%; }
  .film-controls { justify-content: center; }
  .film-actions { width: 100%; flex-direction: column; gap: 10px; }
  .film-actions > * { width: 100% !important; }
  .film:not(.is-muted) .film-sound { display: none; }
  .film-play { width: 62px; height: 62px; }
}
@media (max-width: 420px) { .film-volume { display: none; } }
@media (prefers-reduced-motion: reduce) { .film-play, .film-icon, .film-sound { transition: none; } }
/* Film refinements: one control row on desktop; balanced tagline on small screens. */
.film-tagline { text-wrap: balance; }
@media (min-width: 851px) {
  .film-controls { flex-wrap: nowrap; gap: 16px; }
  .film-volume input { width: 76px; }
  .film-time { min-width: 74px; }
  .film-actions { gap: 10px; flex-shrink: 0; }
  .film-sound, .film-actions .cta { padding: 12px 16px; letter-spacing: .12em; gap: 10px; }
}
@media (max-width: 850px) { .film-tagline { font-size: 24px; } }
/* Havana After Hours: show the whole approved photograph (3:2, never cropped), sized so the
   full section fits on one screen. */
.after .collection > img { height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: contain; }
@media (min-width: 851px) {
  .after > .section { padding-top: 48px; padding-bottom: 48px; }
  .after .collection { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .after .collection > img { width: min(52vw, 700px, calc((100svh - 290px) * 1.5)); margin: 26px 26px 26px 0; border: 1px solid #6f5630; }
  .after .copy { padding-block: 34px; }
}
/* Bag: "Continue shopping" sits beneath checkout as a quiet antique-gold outline button. */
.drawer #checkout .continue-shopping { width: 100%; margin: 4px 0 15px; background: transparent; color: #e8d3a5; border: 1px solid #c5ad80; }
.drawer #checkout .continue-shopping:hover, .drawer #checkout .continue-shopping:focus-visible { background: rgba(216, 180, 109, .12); color: #f8efdf; filter: none; }
/* Contact & inquiries: compact card in the established emerald and antique gold. */
.contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; padding: 44px 52px; border: 1px solid #9a783e; background: radial-gradient(ellipse at 20% 20%, #1a4635, #091d15 72%); box-shadow: 0 20px 65px #0005; }
.contact-intro h2 { font-size: clamp(40px, 4.2vw, 62px); margin: 10px 0 14px; }
.contact-intro h2 em { color: var(--gold); }
.contact-intro p { color: #e4d1b5; margin: 0 0 22px; max-width: 520px; }
.contact-intro .cta.contact-cta { width: auto; margin: 0 0 14px; }
.contact-address { margin: 0 !important; font: 13px/1.5 var(--body); letter-spacing: .06em; }
.contact-address a, .footer-contact a, .bag-help a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(216, 180, 109, .5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-address a:hover, .footer-contact a:hover, .bag-help a:hover { color: #f8efdf; }
.contact-topics { list-style: none; margin: 0; padding: 0; border-left: 1px solid #806433; }
.contact-topics li { padding: 11px 0 11px 22px; color: #e9dcc4; font: 15px/1.5 var(--body); border-bottom: 1px solid rgba(128, 100, 51, .45); }
.contact-topics li:last-child { border-bottom: 0; }
.contact-topics li:before { content: '◆'; color: var(--gold); font-size: 8px; margin-right: 12px; vertical-align: middle; }
.footer-contact { margin: 6px 0 14px; color: #e4d1b5; font: 14px/1.7 var(--body); }
.bag-help { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(197, 173, 128, .35); color: #cdb88f; }
@media (max-width: 850px) {
  .contact-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .contact-intro .cta.contact-cta { width: 100%; }
  .contact-topics { border-left: 0; border-top: 1px solid #806433; }
  .contact-topics li { padding-left: 4px; }
}
/* Pre-launch announcement: the existing burgundy notice bar, set as a quiet italic line. */
.notice.prelaunch { letter-spacing: .02em; text-transform: none; padding: 9px 5%; }
.notice.prelaunch p { margin: 0 auto; max-width: 980px; font: italic 400 14px/1.45 var(--display); color: #f0dcae; text-wrap: balance; }
@media (max-width: 600px) { .notice.prelaunch p { font-size: 12.5px; } }
