/* Shopping experience: product discovery, accessible actions, and bag drawer. */
html { scroll-padding-top: 110px; }
body { color: #164a43; }
body.dialog-open { overflow: hidden; }
main:focus { outline: none; }
a, button, input, select, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #497c67; outline-offset: 4px; }
header { position: sticky; top: 0; z-index: 20; height: 86px; margin: 0; padding: 0 4.5%; background: #f4f6eff5; backdrop-filter: blur(18px); border-bottom: 1px solid #d2ded3; }
header nav { gap: 24px; }
header .brand-logo { width: 178px !important; }
header nav a { font-size: 13px; }
.header-actions { gap: 12px; }
.header-shop { display: none; }
.bag-button { border-radius: 100px; background: #e2eadc; padding: 10px 16px; min-height: 44px; font-size: 13px; }
.bag-button span { border: 0; background: #164a43; color: #fff; padding: 3px 7px; }
.icon-button, .menu-button { min-height: 44px; min-width: 44px; }
.announcement { height: 32px; }
.hero { min-height: 565px; margin-top: 24px; }
.hero-copy { padding-top: 40px; padding-bottom: 26px; }
.hero h1 { font-size: clamp(60px,6vw,92px); margin: 24px 0; }
.hero p { max-width: 400px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.hero .button { gap: 35px; }
.hero-secondary { font-size: 12px; padding: 12px 0; border-bottom: 1px solid #b5c8b8; }
.hero-categories { display: flex; gap: 8px; margin-top: 26px; }
.hero-categories a { font-size: 12px; border: 1px solid #b5c8b8; border-radius: 100px; padding: 7px 15px; }
.hero-categories a:hover { background: #e2eadc; text-decoration: none; }
.hero-foot { margin-top: 20px; padding-top: 10px; font-size: 10px; letter-spacing: 0; gap: 8px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #537e66; flex-shrink: 0; }
.hero-image { border-radius: 18px; }
.section { padding-top: 66px; padding-bottom: 66px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(36px,3.5vw,50px); }
.product-grid { gap: 22px; }
.product-card { padding: 10px 10px 16px; border: 1px solid #dce4d7; border-radius: 16px; background: #fffefa; min-width: 0; transition: box-shadow .2s, border-color .2s; }
.product-card:hover { box-shadow: 0 12px 36px #164a430a; border-color: #adc5b4; }
.product-image { height: 310px; border-radius: 10px; }
.product-image .bottle { width: 154px; }
.product-tag { left: 14px; top: 14px; background: #f4f6efa0; border: 0; font-size: 10px; padding: 4px 8px; }
.product-availability { position: absolute; top: 18px; right: 12px; font-size: 9px; color: #526b61; }
.product-meta, .product-title, .product-card > p, .card-actions { margin-left: 10px; margin-right: 10px; }
.product-meta { font-size: 8px; margin-top: 20px; }
.product-title { display: block; }
.product-title h3 { font-size: 23px; margin-bottom: 6px; }
.product-title .price-label { font-size: 12px; display: block; padding: 0; }
.product-card > p { font-size: 12px; line-height: 1.7; min-height: 62px; margin-bottom: 18px; }
.card-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.quick-add { border: 1px solid #164a43; background: #164a43; color: #fff; border-radius: 8px; padding: 12px 16px; min-height: 46px; font-size: 12px; }
.quick-add:hover { background: #245f55; }
.card-details { font-size: 12px; padding: 12px 0; min-height: 44px; }
.card-details span { margin-left: 6px; }
.shop-intro { padding: 52px 5% 26px; text-align: left; max-width: 1500px; margin: auto; }
.shop-intro h1 { margin: 14px 0 16px; max-width: none; font-size: clamp(42px,5vw,66px); }
.shop-intro p { margin: 0; max-width: 600px; font-size: 14px; }
.shop-intro p br { display: none; }
.shop-section { padding-top: 20px; }
.catalog-search { margin-bottom: 24px; max-width: 560px; }
.catalog-search label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.catalog-search > div { display: flex; align-items: center; background: #fffefa; border: 1px solid #bdcdbf; border-radius: 9px; padding-right: 10px; }
.catalog-search input { width: 100%; min-width: 0; padding: 14px 16px; border: 0; background: transparent; color: #164a43; font-size: 14px; border-radius: 9px; }
.catalog-search button { background: transparent; border: 0; white-space: nowrap; font-size: 12px; min-height: 44px; }
.filters { padding-bottom: 18px; border-color: #d2ded3; }
.filters button { border: 1px solid #cbd8cb; border-radius: 100px; padding: 9px 20px; margin-right: 6px; font-size: 12px; }
.filters button.active { border-color: #164a43; }
.filters select { background: #fffefa; border-radius: 7px; min-height: 44px; }
.catalog-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; font-size: 11px; color: #526b61; }
.catalog-status p { margin: 0; }
#filter-count { font-weight: 600; color: #164a43; }
.collection-empty { padding: 55px 20px; text-align: center; border: 1px dashed #afc3b2; border-radius: 12px; }
.collection-empty h2 { font-size: 30px; }
.collection-empty p { color: #526b61; }
.detail-image { min-height: 600px; border-radius: 16px; position: sticky; top: 110px; align-self: start; }
.detail-copy { padding-top: 12px; }
.detail-copy h1 { margin: 16px 0; font-size: clamp(40px,4.2vw,60px); }
.detail-availability { font-size: 12px; display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.detail-price { font-size: 23px; }
.detail-price small { display: block; margin: 4px 0 0; }
.detail-facts { margin: 20px 0; gap: 8px; }
.detail-facts span { border-radius: 100px; background: #e7eddf; border: 0; }
.purchase-panel { background: #fffefa; border: 1px solid #d2ded3; border-radius: 12px; padding: 20px; margin: 24px 0; }
.pack-selector { border: 0; padding: 0; margin: 0 0 16px; font-size: 14px; }
.pack-selector select { border-radius: 7px; min-height: 46px; background: #f4f6ef; font-size: 14px; }
.purchase-panel .button { border-radius: 8px; font-size: 14px; }
.purchase-panel .preview-note { margin-bottom: 0; font-size: 11px; }
.detail-copy summary, .prose summary { min-height: 30px; font-size: 15px; }
.mobile-purchase { display: none; }
#cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 20px 0 0 20px; padding: 26px; overflow-y: auto; overscroll-behavior: contain; }
#cart-dialog .dialog-head { position: sticky; top: -26px; background: #f4f6ef; z-index: 2; padding: 20px 0 15px; margin-top: -20px; border-bottom: 1px solid #d2ded3; }
.dialog-head .kicker { font-size: 9px; margin-bottom: 8px; }
.dialog-head button { min-width: 44px; min-height: 44px; border-radius: 100px; background: #e5ecdf; font-size: 24px; }
#cart-title { font-size: 32px; outline: none; }
#cart-title span { font-size: 12px; background: #e2eadc; padding: 5px 9px; border-radius: 100px; vertical-align: middle; }
.bag-notice { font-size: 12px; line-height: 1.6; color: #526b61; padding: 12px 14px; background: #e5ecdf; border-radius: 8px; margin: 20px 0 4px; }
.cart-line { grid-template-columns: 80px 1fr; gap: 18px; padding: 24px 0; border-color: #d2ded3; }
.cart-photo { border-radius: 9px; background: #e5ecdf; display: grid; place-items: center; height: 122px; }
.cart-photo img { width: 61px; height: auto; }
.cart-info { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-content: start; }
.cart-info h3 { grid-column: 1 / -1; font-size: 17px; font-weight: 500; }
.cart-line-price { grid-column: 1 / -1; font-size: 12px; color: #526b61; }
.cart-line .quantity { gap: 12px; }
.quantity button { border-radius: 6px; width: 40px; height: 40px; background: #fffefa; }
.cart-line .remove { align-self: center; padding: 10px 0; font-size: 11px; }
.subtotal { font-size: 20px; margin-top: 24px; }
#cart-summary > .muted { font-size: 12px; margin: 12px 0 20px; }
#checkout { border-radius: 8px; font-size: 13px; }
#checkout-status { font-size: 12px; line-height: 1.6; color: #526b61; margin: 10px 0; }
.bag-help { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.bag-continue { background: transparent; border-color: #b5c8b8; border-radius: 8px; margin-top: 24px; font-size: 13px; }
.empty-bag { font-size: 26px; letter-spacing: -.04em; line-height: 1.2; margin: 40px 0 16px; }
#search-dialog { border-radius: 16px; padding: 28px; }
#search-dialog input { border-radius: 8px; min-height: 50px; font-size: 16px; }
#search-results a { min-height: 70px; }
.cookie-banner { z-index: 40; }
.toast { z-index: 60; }
@media (min-width: 1600px) { header { max-width: none; } }
@media (max-width: 1100px) {
  header nav { gap: 16px; }
  header nav a { font-size: 11px; }
  .hero { min-height: 540px; }
  .hero h1 { font-size: 68px; }
  .hero-actions { gap: 10px; }
  .product-image { height: 280px; }
  .product-image .bottle { width: 140px; }
  .product-title h3 { font-size: 21px; }
  .product-card > p { min-height: 82px; }
  .card-actions { gap: 10px; }
}
@media (max-width: 800px) {
  header .brand-logo { width: 155px !important; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 55px; }
  .hero-copy { padding-top: 30px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card > p { min-height: 62px; }
  .detail-image { position: relative; top: auto; min-height: 470px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-image .bottle { width: 240px; transform: rotate(-3deg); }
  body[data-product-id] { padding-bottom: 90px; }
  .mobile-purchase { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 5% calc(14px + env(safe-area-inset-bottom)); background: #f4f6eff5; backdrop-filter: blur(18px); border-top: 1px solid #cbd8cb; }
  .mobile-purchase strong { display: block; font-size: 14px; line-height: 1.25; }
  .mobile-purchase span[data-selected-quantity] { display: block; font-size: 11px; margin-top: 4px; color: #526b61; }
  .mobile-purchase .button { white-space: nowrap; padding: 12px 18px; gap: 20px; min-height: 46px; border-radius: 8px; }
  body[data-product-id] .cookie-banner { bottom: 100px; }
}
@media (max-width: 600px) {
  header { height: 74px; padding: 0 5%; }
  header .brand-logo { width: 140px !important; }
  .header-actions { gap: 5px; }
  .bag-button { padding: 8px 12px; }
  .menu-button { font-size: 12px; }
  .mobile-nav { position: sticky; top: 74px; z-index: 19; background: #f4f6ef; box-shadow: 0 12px 20px #164a430a; }
  .mobile-nav a { font-size: 16px; min-height: 48px; }
  .mobile-search { min-height: 44px; }
  .hero { margin-top: 0; }
  .hero-copy { padding: 30px 0 28px; }
  .hero h1 { font-size: clamp(49px,13vw,70px); margin: 20px 0; }
  .hero p { margin-bottom: 20px; }
  .hero-actions { gap: 8px 18px; }
  .hero-categories { margin-top: 18px; }
  .hero-foot { display: flex; padding-top: 0; margin-top: 18px; font-size: 10px; }
  .hero-image { height: 370px; border-radius: 14px; }
  .hero-image .hero-image-top { font-size: 7px; }
  .hero-image-bottom { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-image { height: 300px; }
  .product-image .bottle { width: 155px; }
  .product-title h3 { font-size: 23px; }
  .product-meta { font-size: 9px; }
  .product-card > p { min-height: 0; font-size: 13px; }
  .product-availability { font-size: 10px; }
  .card-actions { grid-template-columns: 1fr auto; gap: 24px; }
  .quick-add { min-height: 48px; font-size: 13px; }
  .card-details { font-size: 13px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .shop-intro { padding: 36px 5% 14px; }
  .shop-intro h1 { font-size: 43px; }
  .shop-intro p { font-size: 13px; }
  .shop-section { padding-top: 12px; }
  .catalog-search { margin-bottom: 18px; }
  .catalog-search input { font-size: 16px; }
  .filters { gap: 14px; }
  .filters > div { display: flex; gap: 6px; }
  .filters button { padding: 8px 12px; margin: 0; font-size: 11px; flex: 1; }
  .filters label { align-self: flex-start; }
  .catalog-status { align-items: start; font-size: 10px; gap: 10px; }
  .catalog-status p:last-child { text-align: right; }
  .detail-image { min-height: 380px; }
  .detail-image .bottle { width: 195px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h1 { font-size: 42px; }
  .purchase-panel { padding: 16px; }
  #cart-dialog { border-radius: 0; padding: 20px; }
  #cart-dialog .dialog-head { top: -20px; }
  .cart-line { gap: 14px; grid-template-columns: 72px 1fr; }
  .cart-info h3 { font-size: 16px; }
  .cart-line .quantity { gap: 10px; }
  .quantity button { width: 38px; height: 40px; }
  #search-dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } }
/* Quantity ordering uses the same controls and typography as the collection. */
.bulk-banner{display:flex;justify-content:space-between;gap:20px;padding:22px 26px;background:#e3ecde;border:1px solid #c1d0bd;border-radius:12px;margin-block-end:32px;align-items:center}
.bulk-banner span{font-size:22px;white-space:nowrap}
.bulk-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:48px;padding-top:0}
.bulk-controls{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-block-end:24px}
.bulk-controls select{font:inherit;border:1px solid #68796f;border-radius:6px;padding:13px;background:#fff;max-width:100%}
.bulk-product{display:grid;grid-template-columns:110px 1fr;gap:24px;padding:26px 0;border-block-start:1px solid #c3cfc1;align-items:center}
.bulk-product .bottle{width:100%;height:185px;object-fit:contain}.bulk-product h2{font-size:25px;margin:0 0 8px}.bulk-product p{margin:8px 0}.bulk-product .button{margin-top:8px}.bulk-price{font-weight:600}
.bulk-aside{background:#e9eee3;padding:32px;border-radius:16px;align-self:start;overflow-wrap:anywhere}.bulk-aside h2{font-size:52px;margin:12px 0}.bulk-aside h3{font-size:22px}.bulk-aside hr{border:0;border-block-start:1px solid #b7c9b4;margin:26px 0}.bulk-aside p{line-height:1.65}
.saved-label img{display:block;width:100%;height:auto;border:1px solid #bbc8b9;margin-block:15px}.saved-label a{display:block}.saved-label p{font-size:13px}
@media(max-width:760px){.bulk-layout{grid-template-columns:1fr;gap:24px}.bulk-product{grid-template-columns:80px minmax(0,1fr);gap:16px}.bulk-product h2{font-size:22px}.bulk-aside{padding:24px}.bulk-banner{padding:18px}.bulk-banner span{font-size:18px}}
.product-image .supplier-bottle{width:100%;height:100%;object-fit:contain;transform:none;mix-blend-mode:multiply}
.detail-image .supplier-bottle{width:100%;height:560px;max-width:100%;object-fit:contain;transform:none;mix-blend-mode:multiply}
.bulk-product .supplier-bottle{width:100%;height:170px;object-fit:cover;mix-blend-mode:multiply}
.cart-photo img{object-fit:cover;mix-blend-mode:multiply}
@media(max-width:760px){.detail-image .supplier-bottle{height:420px}.bulk-product .supplier-bottle{height:135px}}
@media(max-width:420px){.detail-image .supplier-bottle{height:350px}}
