/* The collection is the landing, not a row of cards underneath a hero. */
:root {
  --paper: #f6f5f2;
  --panel: #fdfcf9;
  --ink: #221f1c;
  --muted: #625f58;
  --rule: #dbd8d1;
  --surface-soft: #f1eee8;
  --citrus-action: #f2c695;
  --citrus-hover: #ebba85;
  --mast-height: clamp(78px, 10svh, 104px);
  --gutter: clamp(16px, 3.6vw, 64px);
  scrollbar-gutter: stable;
}
.wrap { max-width: 1584px; width: calc(100% - var(--gutter) * 2); }
.site-header { background: var(--paper); border: 0; backdrop-filter: none; }
.header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; min-height: var(--mast-height); }
.gallery-seal { justify-self: start; display: block; width: clamp(48px, 5vw, 73px); }
.gallery-seal img { width: 100%; height: auto; mix-blend-mode: multiply; }
.gallery-wordmark { display: grid; justify-items: center; gap: 6px; padding: 7px 0; }
.gallery-wordmark > span { font: 400 clamp(1.6rem, 2.15vw, 2.35rem)/1 var(--display); letter-spacing: .145em; text-indent: .145em; }
.gallery-wordmark small { font: 650 .75rem/1 var(--sans); letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.header-cart, .gallery-menu summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 4px; color: var(--ink); border: 0; border-radius: 4px; background: transparent; }
.header-cart:hover, .gallery-menu summary:hover { background: transparent; color: var(--citrus-focus); }
.header-cart .icon { width: 20px; height: 20px; }
.header-count, .has-cart .header-count { color: var(--ink); min-width: 1ch; padding: 0; background: none; font: 650 .82rem/1 var(--sans); }
.gallery-menu { position: relative; }
.gallery-menu summary { cursor: pointer; list-style: none; font: 700 .78rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.gallery-menu summary::-webkit-details-marker { display: none; }
.gallery-menu summary svg { fill: none; stroke: currentColor; stroke-width: 1.6; width: 24px; }
.gallery-menu nav { position: absolute; top: calc(100% + 5px); right: 0; min-width: 170px; padding: 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); box-shadow: 0 8px 24px #2b241210; }
.gallery-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .9rem; font-weight: 550; }
.gallery-menu nav a:is(:hover,:focus-visible) { background: var(--citrus-soft); }

.bottle-gallery { display: flex; flex-direction: column; min-height: clamp(490px, calc(100svh - var(--mast-height)), 920px); }
#collection, #citrus-spotlight, #the-spirit { scroll-margin-top: calc(var(--mast-height) + 8px); }
/* Equal side rails anchor the four bottle axes to the page centre. Neither
   the collection label nor the offset colour discs participate in that measurement. */
.gallery-floor { flex: 1; display: grid; grid-template-columns: minmax(0, .47fr) minmax(0, 6fr) minmax(0, .47fr); align-content: center; gap: 16px; padding: clamp(28px, 5vh, 70px) 0; }
.gallery-index { align-self: start; padding-top: 6px; }
.gallery-index h1 { font: 400 clamp(1.08rem, 1.4vw, 1.33rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.gallery-index p { font-size: .82rem; font-weight: 500; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.gallery-index .gallery-spec { margin-top: 21px; font-size: .75rem; white-space: nowrap; }
.gallery-spec span, .gallery-colophon b { padding-inline: 3px; color: #9f988b; font-weight: 400; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.9vw, 34px); }
.gallery-page [hidden] { display: none !important; }
.market-empty { grid-column: 2; padding: clamp(24px,6vw,84px); align-self:center; }
.market-empty h2 { margin: 12px 0; font: 400 clamp(2.1rem,4.5vw,4.4rem)/1.09 var(--display); color:var(--ink); }
.market-empty-note { max-width:40ch; color:var(--muted); }
#retry-market { margin-top:15px; text-decoration:underline; }
.quick-add:disabled { cursor:default; opacity:.7; }
@media (min-width:821px) {
  .products[data-count] { grid-template-columns:repeat(var(--listing-count,4),minmax(0,1fr)); width:min(100%,calc(var(--listing-count,4) * 310px)); justify-self:center; }
  .products[data-count="4"] { width:100%; }
}
@media (max-width:1100px) { .market-empty { grid-column:1/-1; } }
@media (max-width:820px) { .products[data-count="1"] { grid-template-columns:minmax(0,1fr); max-width:310px; width:100%; justify-self:center; } }
.product, .product:hover { min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.product-stage {
  display: grid; place-items: center; position: relative; isolation: isolate; width: 100%;
  height: clamp(223px, min(47svh, 29vw), 474px); aspect-ratio: auto; overflow: visible;
  border-radius: 3px; background: none;
}
.product-stage::before {
  inset: auto; left: 43%; top: 52%; width: min(64%, 170px); height: auto; aspect-ratio: 1;
  transform: translate(-76%, -50%); border: 0; box-shadow: none;
  background: var(--swatch, var(--tone)); transition: transform .32s ease-out;
}
.flavour-citrus { --swatch: #f1cc9c; }
.flavour-feijoa { --swatch: #d6ddc8; }
.flavour-wheat { --swatch: #e5d8c0; }
.flavour-raspberry { --swatch: #e7c8cf; }
.flavour-rose { --swatch: #ebccd6; }
.flavour-cherry { --swatch: #dec1c9; }
.uk-market .flavour-citrus { order: -2; }
.uk-market .flavour-wheat { order: -1; }
.uk-market .product-actions:has(> :not([hidden])) + .stock-badge { margin-top: 1px; }
.uk-market .product-actions:not(:has(> :not([hidden]))) { display: none; }
.stock-badge, .uk-detail-status:not(:empty) {
  display: inline-flex; align-items: center; gap: .45em; margin-top: 12px;
  padding: .35em .72em; min-height: 27px; border-radius: 3px;
  background: #ebe7e1; color: #5b544d; font-size: .79rem; font-weight: 650; line-height: 1.35;
}
.stock-badge.is-in-stock, .uk-detail-status.is-in-stock { background: #e0ecdf; color: #255739; }
.stock-badge::before { content: ''; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }
.uk-market .has-uk-photo .product-stage::before, .detail-visual.has-uk-photo::before { display: none; }
.uk-market .has-uk-photo .product-bottle { object-fit: cover; object-position: center bottom; border-radius: 3px; }
.detail-visual.has-uk-photo img { object-fit: contain; width: 100%; height: 100%; }
.uk-collection-photo {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center;
  margin-block: clamp(32px, 5vw, 80px); background: #efebe4; overflow: hidden;
}
.uk-collection-photo > div { padding: clamp(22px, 4vw, 68px); }
.uk-collection-photo h2 { margin-block: .25em .32em; font: 400 clamp(2.3rem, 5vw, 5rem)/1.05 var(--display); }
.uk-collection-photo > img { width: 100%; height: auto; display: block; }
@media (min-width: 821px) and (max-width: 1120px) {
  .uk-market .products[data-count] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 600px) { .uk-collection-photo { grid-template-columns: minmax(0, 1fr); } }
.product-stage::after { content: none; }
.product-stage .product-bottle {
  position: absolute; inset: 0; margin: auto; height: 100%; width: 100%; max-width: 100%;
  object-fit: contain; object-position: center; filter: none;
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
}
.product-stage:hover .product-bottle { transform: none; }
.stage-details {
  position: absolute; top: auto; right: 50%; bottom: 3px; transform: translateX(50%); white-space: nowrap;
  min-height: 0; padding: 3px 9px; background: var(--paper); color: var(--ink); font-size: .75rem; font-weight: 650;
  border-radius: 2px; box-shadow: 0 0 0 1px var(--rule); opacity: 0; transition: opacity .18s;
}
.product-stage:focus-visible .stage-details { opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-stage:hover .product-bottle { transform: translateY(-5px); }
  .product-stage:hover::before { transform: translate(-72%, -50%); }
  .product-stage:hover .stage-details { opacity: 1; background: var(--paper); }
}
.product-body { padding: 15px 0 0; text-align: center; }
.product-body h2 { --flavour-mark: clamp(1.65rem, 1.36em, 2.25rem); display: flex; align-items: center; justify-content: center; gap: .32em; color: var(--ink); font: 400 clamp(1.2rem, 1.6vw, 1.63rem)/1.15 var(--display); text-transform: uppercase; letter-spacing: .095em; }
.product-body h2 img { flex: none; width: var(--flavour-mark); height: var(--flavour-mark); object-fit: contain; }
.product-note { margin-top: 6px; color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.5; }
.product-actions { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 9px 0 0; padding: 0; border: 0; gap: 12px; }
.product-price { color: var(--ink); font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.quick-add { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; min-height: 44px; background: none; border: 0; border-radius: 4px; color: var(--citrus-focus); font-size: .88rem; font-weight: 650; }
.quick-add .icon { width: 14px; height: 14px; }
.quick-add:hover { background: var(--citrus-soft); }
.product-actions .stepper { grid-template-columns: 36px minmax(16px,auto) 36px; border: 0; border-radius: 4px; background: var(--citrus-soft); }
.product-actions .stepper button { border-radius: 3px; }
.gallery-colophon { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; border-top: 1px solid var(--rule); }
.gallery-colophon span, .gallery-colophon a { color: var(--muted); text-transform: uppercase; font-weight: 650; font-size: .75rem; line-height: 1.4; letter-spacing: .12em; }
.gallery-colophon a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--citrus-edge); text-underline-offset: 5px; }
.gallery-colophon a:hover { color: var(--citrus-focus); }

/* A quiet two-page spread: real bottle cutout across the inner edge of the photograph. */
.citrus-spotlight { margin-top: clamp(18px, 2.4vw, 36px); background: #f5eee2; overflow: clip; }
.spotlight-spread {
  --spread-pad: clamp(30px, 3.5vw, 60px);
  position: relative; display: grid; align-items: center; grid-template-columns: 43% 57%;
  width: min(84%, 1270px); margin-inline: auto; padding-block: var(--spread-pad);
}
.spotlight-copy { z-index: 1; max-width: 37ch; padding: 24px clamp(18px, 2.6vw, 44px) 30px 0; }
.spotlight-kicker { display: flex; align-items: center; gap: 11px; font: 650 .78rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .13em; }
.spotlight-kicker img { width: 31px; height: 31px; object-fit: contain; }
.spotlight-copy h2 { margin: 14px 0 18px; font: 400 clamp(3.9rem, 6.8vw, 7.3rem)/1.01 var(--display); letter-spacing: .065em; text-transform: uppercase; }
.spotlight-note { max-width: 31ch; color: #484139; font-size: 1rem; line-height: 1.68; }
.spotlight-details { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 24px; padding: 7px 19px; border: 0; border-radius: 3px; background: var(--ink); color: #fffaf4; font: 650 .9rem/1.3 var(--sans); }
.spotlight-details:hover { background: #82431f; }
.spotlight-art { position: relative; isolation: isolate; display: grid; grid-template-columns: 20% minmax(0, 1fr); align-items: center; min-width: 0; margin: 0; }
.spotlight-photo { grid-column: 2; width: 100%; height: auto; aspect-ratio: 4/5; max-height: clamp(360px, 65svh, 650px); object-fit: cover; object-position: 62% 48%; background: #e2dbc9; }
.spotlight-bottle { position: absolute; z-index: 1; left: 12.5%; top: 50%; transform: translate(-50%, -50%); height: 91%; width: auto; max-width: none; object-fit: contain; pointer-events: none; }
.spotlight-spec { position: absolute; bottom: var(--spread-pad); left: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 600 .78rem/1.4 var(--sans); }
.spotlight-spec span:first-child { color: var(--ink); text-transform: uppercase; letter-spacing: .085em; }
.spotlight-spec i { display: inline-block; width: 18px; height: 1px; background: #b97747; }
@media (min-width: 821px) {
  :root { scrollbar-gutter: stable both-edges; }
}
@media (min-width: 1101px) {
  .gallery-index { justify-self: start; white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .spotlight-spread { width: 90%; }
  .spotlight-copy h2 { font-size: 4rem; margin-block: 10px 13px; }
  .spotlight-kicker { letter-spacing: .085em; }
  .spotlight-copy { padding-block: 0 20px; }
  .spotlight-details { margin-top: 17px; }
}
@media (max-width: 720px) {
  .spotlight-spread { --spread-pad: 25px; grid-template-columns: minmax(0, 1fr); gap: 22px; width: calc(100% - 2 * clamp(17px, 4.5vw, 28px)); }
  .spotlight-copy { max-width: 100%; padding: 0; }
  .spotlight-kicker img { width: 25px; height: 25px; }
  .spotlight-copy h2 { margin: 10px 0; font-size: clamp(3rem, 11vw, 4.6rem); }
  .spotlight-note { max-width: 37ch; font-size: 1rem; line-height: 1.55; }
  .spotlight-details { margin-top: 16px; }
  .spotlight-art { grid-template-columns: 25% minmax(0, 1fr); }
  .spotlight-photo { max-height: 370px; aspect-ratio: .94; }
  .spotlight-bottle { left: 19%; }
  .spotlight-spec { position: static; flex-wrap: wrap; row-gap: 3px; }
}

.hero { margin-top: clamp(25px, 5vw, 68px); }
.hero h2 { margin: 8px 0 10px; font: 400 clamp(3.25rem, 5.4vw, 5.25rem)/1.05 var(--display); letter-spacing: -.043em; }
.hero h2 em { color: var(--citrus-focus); font-style: normal; }
.footer { min-height: 110px; }
.detail-visual { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.detail-visual::before { content: ''; position: absolute; width: min(61%, 155px); aspect-ratio: 1; border-radius: 50%; background: var(--swatch); z-index: -1; transform: translate(-22%, 2%); }
.detail-visual img { filter: none; }

/* Keep the shop painted behind the opaque loader throughout the handoff. */
.is-loading .gallery-page :is(.site, .cart-dock) { visibility: visible; }
.loader.leaving { animation: gallery-unveil .55s cubic-bezier(.42,0,.25,1) both; pointer-events: auto; }
@keyframes gallery-unveil { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 1100px) {
  .gallery-floor { grid-template-columns: 1fr; gap: 22px; }
  .gallery-index { display: grid; grid-template-columns: auto max-content 1fr; gap: 12px; align-items: baseline; padding: 0; }
  .gallery-index p, .gallery-index .gallery-spec { margin: 0; }
  .gallery-spec { justify-self: end; }
}
@media (max-width: 820px) {
  :root { --mast-height: 78px; }
  .gallery-floor { padding-block: 24px 40px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .product-stage { height: clamp(186px, 49vw, 308px); }
  .product-stage::before { width: min(57%, 145px); }
  .gallery-index { padding-bottom: 6px; }
  .product-body { padding-top: 11px; }
  .bottle-gallery { min-height: auto; }
  .hero h2 { font-size: clamp(2.55rem, 8.4vw, 3.5rem); }
}
@media (max-width: 560px) {
  :root { --mast-height: 72px; }
  .header-inner { gap: 0; }
  .gallery-wordmark { gap: 5px; }
  .gallery-wordmark > span { font-size: 1.45rem; }
  .gallery-wordmark small { letter-spacing: .08em; font-size: .75rem; }
  .gallery-seal { width: 44px; }
  .header-tools { gap: 0; }
  .gallery-menu summary span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .gallery-menu summary svg { width: 21px; }
  .header-cart { gap: 4px; }
  .header-cart .icon { width: 18px; }
  .gallery-floor { gap: 20px; padding-top: 23px; }
  .gallery-index { grid-template-columns: 1fr auto; row-gap: 3px; }
  .gallery-index h1 { font-size: 1.18rem; }
  .gallery-index #collection-count { grid-column: 1; grid-row: 2; }
  .gallery-spec { grid-column: 2; grid-row: 1 / 3; align-self: end; }
  .products { gap: 29px 12px; }
  .product-stage { height: clamp(155px, 48vw, 260px); }
  .product-body h2 { --flavour-mark: 1.6rem; font-size: 1.15rem; letter-spacing: .065em; gap: 5px; }
  .product-note { font-size: .8rem; }
  .product-actions { margin-top: 3px; gap: 6px; }
  .product-actions .stepper { grid-template-columns: 31px minmax(14px, auto) 31px; }
  .gallery-colophon { gap: 8px; }
  .gallery-colophon span, .gallery-colophon a { letter-spacing: .04em; }
  .footer p:nth-child(2) { order: 0; flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .loader.leaving { animation-duration: .01ms; }
}
