.portal-original-price {display:block;flex-basis:100%;color:var(--muted);font-size:.9rem;text-decoration:line-through;}
.product-footer {flex-wrap:wrap;}
.cart-original-price {display:block;font-size:.85rem;color:var(--muted);font-weight:400;}
.product-stock-count {margin:.3rem 0;color:var(--success);font-size:.9rem;font-weight:650;}
.payment-proof-notice {font-weight:800;font-size:1.05rem;color:var(--wine);}
.site-menu {position:relative;margin-left:auto;}
.site-menu summary {cursor:pointer;padding:.6rem .8rem;font-weight:750;color:var(--wine);}
.site-menu .browse-mode-tabs {position:absolute;top:100%;right:0;width:230px;margin:0;display:grid;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-strong);}
.brand-directory {width:min(1180px,calc(100% - 32px));margin:25px auto;padding:20px 0;}
.brand-directory h2 {font-family:var(--heading);color:var(--wine);margin:.4rem 0 1rem;font-size:1.8rem;}
.brand-buttons {display:flex;gap:12px;overflow-x:auto;padding:4px 0 12px;}
.brand-button {flex:0 0 auto;border:1px solid var(--line);background:var(--paper);color:var(--wine);border-radius:12px;padding:16px 24px;min-height:60px;font-size:1.1rem;font-weight:800;}
.brand-button:hover,.brand-button:focus-visible {border-color:var(--wine);outline:2px solid var(--orange);outline-offset:2px;}
.brand-button img {max-width:120px;max-height:42px;object-fit:contain;}
.brand-button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}
.brand-button span {font-size:.85rem;}
.brand-button.reverse-logo {background:var(--wine-dark);color:white;}
.filters {position:sticky;top:var(--header-height,74px);z-index:35;background:var(--paper);box-shadow:0 8px 20px #351b1312;}
#catalog-section {scroll-margin-top:calc(var(--header-height,74px) + 12px);}
.bestseller-controls {display:flex;gap:8px;}
.bestseller-controls button {border:1px solid var(--wine);border-radius:50%;background:white;color:var(--wine);width:46px;height:46px;font-size:1.8rem;line-height:1;}
.best-sellers-track {scroll-behavior:smooth;scroll-snap-type:x proximity;}
.best-seller-card {scroll-snap-align:start;}
.pickup-actions,.coordinate-input-row {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;}
.pickup-actions a,.delivery-pin-tools a {color:var(--wine);font-weight:750;}
.delivery-pin-tools {padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--paper);}
.delivery-pin-tools label {display:block;margin-top:14px;}
.coordinate-input-row input {min-width:0;flex:1 1 190px;padding:12px;border:1px solid var(--line);border-radius:8px;}
.messenger-float {position:fixed;right:18px;bottom:22px;z-index:42;display:flex;align-items:center;gap:8px;border-radius:30px;background:var(--wine);color:white;text-decoration:none;padding:12px 16px;box-shadow:var(--shadow-strong);font-weight:750;}
.messenger-float svg {width:28px;height:28px;fill:currentColor;}
body.modal-open .messenger-float,body.recipe-modal-open .messenger-float {display:none;}
.order-receipt {border:2px solid var(--success);border-radius:12px;padding:18px;margin-top:18px;background:white;overflow:auto;}
.order-receipt table {width:100%;border-collapse:collapse;margin:16px 0;}
.order-receipt td,.order-receipt th {text-align:left;padding:8px 4px;border-bottom:1px solid var(--line);font-size:.9rem;}
@media (max-width:700px) {
 .header-inner {gap:8px;}.header-actions {gap:6px;}.site-menu summary {padding:8px 5px;}.brand-copy {display:none;}
 .filters {display:grid;grid-template-columns:1fr 1fr;max-height:35vh;overflow:auto;gap:8px;}.filters label {grid-column:auto!important;}.filters .filter-search {grid-column:1/-1!important;}
 .bestseller-controls {display:none;}.messenger-float {bottom:92px;right:12px;padding:11px;}.messenger-float span {display:none;}
 .brand-directory {margin:16px auto;}.brand-button {padding:12px 18px;}
}
#printable-order-receipt {display:none;}
@media print {
 body {background:white!important;overflow:visible!important;}
 body > * {display:none!important;}
 body > #printable-order-receipt {display:block!important;padding:12mm;color:black;}
 #printable-order-receipt table {width:100%;border-collapse:collapse;margin:16px 0;}
 #printable-order-receipt th,#printable-order-receipt td {text-align:left;padding:8px;border-bottom:1px solid #ccc;}
 #printable-order-receipt tr {break-inside:avoid;}
}

/* V33.5: fixed shared action dock, balanced branding and compact filters. */
body {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));}
.bottom-action-dock {position:fixed;right:18px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:55;display:flex;align-items:stretch;gap:10px;max-width:calc(100vw - 32px);}
.bottom-action-dock .messenger-float {position:static!important;flex:0 0 auto;box-shadow:none;min-height:52px;align-self:stretch;margin:0;border:1px solid var(--wine);}
.bottom-action-dock .mobile-cart-bar {position:static!important;inset:auto!important;margin:0!important;min-width:0;box-shadow:none;}
body.modal-open .bottom-action-dock,body.recipe-modal-open .bottom-action-dock {display:none;}
.brand-buttons {display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;overflow:visible;padding:0;align-items:stretch;}
.brand-buttons .brand-button {width:100%;min-width:0;height:116px;padding:12px 10px;border-radius:12px;background:var(--paper);color:var(--ink);gap:8px;font-weight:600;}
.brand-buttons .brand-logo-well {display:flex;align-items:center;justify-content:center;width:100%;height:52px;flex:0 0 52px;border-radius:6px;padding:4px 6px;overflow:hidden;}
.brand-buttons .brand-logo-well img {display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
.brand-buttons .brand-button.reverse-logo {background:var(--paper);color:var(--ink);}
.brand-buttons .reverse-logo .brand-logo-well {background:var(--wine-dark);}
.brand-buttons .brand-label {display:flex;align-items:center;justify-content:center;min-height:2.5em;font-size:.8rem;line-height:1.25;text-align:center;}
.brand-buttons .brand-initials {font-size:1.2rem;color:var(--muted);background:var(--sand-light);border-radius:50%;width:44px;height:44px;display:grid;place-items:center;}
.catalog-filter-shell {position:sticky;top:var(--header-height,74px);z-index:35;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 4px 12px #351b1309;}
.filter-compact-row {display:flex;align-items:flex-end;gap:10px;}
.filter-compact-row .filter-search {flex:1;min-width:0;}
.filter-compact-row .filter-search > span {display:none;}
.filter-compact-row .search-wrap {position:relative;}
.filter-compact-row .search-wrap svg {position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8;}
.filter-compact-row input {height:44px;min-width:0;width:100%;border:1px solid var(--line);border-radius:9px;background:white;padding:10px 12px 10px 38px;font-size:1rem;}
.filter-compact-row .secondary-button {min-height:44px;padding:0 14px;white-space:nowrap;font-size:.875rem;}
.catalog-filter-shell .catalog-filter-panel {position:static;z-index:auto;box-shadow:none;background:transparent;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:12px;margin:12px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line);}
.catalog-filter-panel label {grid-column:auto!important;min-width:0;}
.catalog-filter-panel .filter-stock {min-height:40px;grid-column:1/-1!important;font-size:.875rem;font-weight:500;color:var(--muted);}
.catalog-filter-panel select {min-height:44px;width:100%;font-size:.9375rem;}
.filters-done {display:block;margin:12px 0 0 auto;}
.applied-catalog-filters {display:flex;gap:7px;overflow-x:auto;margin-top:8px;padding-bottom:2px;}
.applied-filter-chip {flex:0 0 auto;max-width:260px;min-height:32px;border:1px solid var(--line);border-radius:20px;background:var(--sand-light);color:var(--ink);padding:5px 10px;font-size:.8125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#active-filter-count {background:var(--wine);color:white;border-radius:50%;padding:2px 5px;font-size:.75rem;margin-left:3px;}
.product-card .product-stock-count {font-size:.75rem;line-height:1.4;font-weight:500;color:var(--muted);margin:4px 0;}
.product-card .stock-badge {font-size:.75rem;line-height:1.2;font-weight:600;padding:4px 7px;}
.product-card .product-media > img {position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
.recent-purchase-note {margin:4px 0;color:var(--muted);font-size:.75rem;line-height:1.4;}
@media(max-width:760px) {
 .bottom-action-dock {left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:none;justify-content:flex-end;gap:8px;}
 .bottom-action-dock .mobile-cart-bar:not([hidden]) {display:flex!important;flex:1 1 auto;width:auto;justify-content:space-between;min-height:52px;padding:10px 14px;border-radius:12px;}
 .bottom-action-dock .mobile-cart-bar span {min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;}
 .bottom-action-dock #mobile-cart-total {flex:0 0 auto;font-size:.9375rem;}
 .bottom-action-dock .messenger-float {padding:10px;border-radius:12px;width:52px;height:52px;justify-content:center;}
 .bottom-action-dock .messenger-float span {display:none;}
 .brand-buttons {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 .brand-buttons .brand-button {height:108px;padding:10px 6px;}
 .brand-buttons .brand-logo-well {height:44px;flex-basis:44px;padding:4px;}
 .brand-buttons .brand-label {font-size:.75rem;}
 .catalog-filter-shell {padding:8px;border-radius:10px;}
 .filter-compact-row {gap:7px;flex-wrap:wrap;}
 .filter-compact-row .filter-search {flex:1 1 160px;}
 .filter-compact-row .sugar-free-shortcut {display:none;}
 .catalog-filter-shell .catalog-filter-panel {grid-template-columns:1fr 1fr;max-height:45vh;overflow-y:auto;}
 .catalog-filter-panel .filter-sort {grid-column:1/-1!important;}
}
@media(max-width:640px) {
 .product-card {min-height:174px;}
 .product-card .product-media {height:auto!important;min-height:152px!important;align-self:stretch;}
 .product-card .product-media > img {padding:9px;}
 .product-card h3 {min-height:2.16em!important;}
 .product-card .stock-badge {top:6px;left:4px;max-width:calc(100% - 8px);font-size:.75rem;padding:4px;}
}


/* V33.6: a larger location picker and consistent Facebook Messenger actions. */
.checkout-panel {--checkout-map-height:560px;}
.checkout-panel .pickup-map-wrap iframe,
.checkout-panel .delivery-map-canvas,
.checkout-panel .delivery-map-wrap iframe {display:block;width:100%;height:var(--checkout-map-height);}
.checkout-panel .interactive-delivery-map,
.checkout-panel .delivery-map-wrap,
.checkout-panel .delivery-map-wrap .map-placeholder {min-height:var(--checkout-map-height);}
.checkout-panel .delivery-map-wrap .map-placeholder {height:var(--checkout-map-height);}
.messenger-link {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 16px;border:1px solid #0866ff;border-radius:12px;background:#0866ff;color:#fff;text-decoration:none;font:inherit;font-weight:700;line-height:1.35;text-align:center;cursor:pointer;}
.messenger-link:hover {background:#0056d6;border-color:#0056d6;color:#fff;}
.messenger-link:focus-visible {outline:3px solid #0866ff;outline-offset:3px;box-shadow:0 0 0 2px #fff;}
.messenger-link .messenger-icon {display:block;flex:0 0 24px;width:24px;height:24px;fill:currentColor;}
.bottom-action-dock .messenger-float {background:#0866ff;border-color:#0866ff;color:#fff;}
.bottom-action-dock .messenger-float:hover {background:#0056d6;border-color:#0056d6;}
@media(max-width:760px) {
 .checkout-panel {--checkout-map-height:420px;}
 .messenger-link {min-height:48px;font-size:.9375rem;}
}
@media(max-width:760px) and (max-height:700px) {
 .checkout-panel {--checkout-map-height:380px;}
}


/* V33.7: submit-first actions, persistent chat help and desktop carousel controls. */
.final-section #copy-order-button,.final-section #facebook-button {min-height:48px;}
#facebook-button.messenger-secondary {min-height:48px;padding:0 16px;border:1px solid #c8d9f5;background:#fff;color:#0866ff;font-size:.875rem;font-weight:600;box-shadow:none;margin-top:10px;}
#facebook-button.messenger-secondary:hover {background:#f2f6ff;border-color:#0866ff;color:#0056d6;}
#facebook-button.messenger-secondary .messenger-icon {width:20px;height:20px;flex-basis:20px;}
.messenger-order-hint {margin:8px 0 0;color:var(--muted);font-size:.75rem;line-height:1.5;}
.bottom-action-dock .messenger-float {width:56px;height:56px;min-height:56px;padding:12px;border-radius:50%;justify-content:center;box-shadow:0 4px 16px #0866ff33;}
.bottom-action-dock .messenger-float span {display:none;}
.bottom-action-dock .messenger-float .messenger-icon {width:28px;height:28px;flex-basis:28px;}
body.cart-open .bottom-action-dock,body.checkout-open .bottom-action-dock {display:flex;left:auto;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:115;gap:0;}
body.cart-open .bottom-action-dock .messenger-float,body.checkout-open .bottom-action-dock .messenger-float {display:inline-flex;}
body.cart-open .bottom-action-dock .mobile-cart-bar,body.checkout-open .bottom-action-dock .mobile-cart-bar {display:none!important;}
.cart-drawer {padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));}
.checkout-panel .checkout-shell {padding-bottom:calc(104px + env(safe-area-inset-bottom,0px));}
.bestseller-carousel {position:relative;min-width:0;}
.bestseller-carousel .bestseller-controls {display:none;}
@media(min-width:761px) {
 .best-sellers-heading-row .swipe-hint {display:none;}
 .bestseller-carousel.has-overflow .bestseller-controls {display:block;position:absolute;inset:0;z-index:4;pointer-events:none;}
 .bestseller-carousel .bestseller-controls button {position:absolute;top:var(--bestseller-controls-y,50%);left:var(--bestseller-prev-x,28px);transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--wine);color:#fff;box-shadow:0 3px 12px #351b132e;font-size:2rem;line-height:1;pointer-events:auto;cursor:pointer;}
 .bestseller-carousel .bestseller-controls #bestsellers-next {left:var(--bestseller-next-x,calc(100% - 28px));}
 .bestseller-carousel .bestseller-controls button:disabled {opacity:.4;cursor:default;}
 .bestseller-carousel .bestseller-controls button:hover:not(:disabled) {background:var(--wine-dark);}
 .bestseller-carousel .bestseller-controls button:focus-visible {outline:3px solid var(--orange);outline-offset:3px;}
}
