/* Catalog-only overrides; the homepage retains its floating navigation. */
.products-page { --catalog-offset: calc(var(--navbar-height) + 44px); }
.products-page .catalog-hero { padding-block: 24px 34px; }
.products-page .catalog-layout { grid-template-columns: 238px minmax(0, 1fr); gap: 36px; padding-bottom: 80px; }
.products-page .catalog-layout > aside { position: sticky; top: var(--catalog-offset); max-height: calc(100dvh - var(--catalog-offset) - 20px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 22px 18px; border: 1px solid var(--border); border-radius: 16px; box-shadow: none; }
.products-page .catalog-results { min-width: 0; }
.products-page .filter-title { margin-bottom: 18px; }
.products-page .filter-title button { min-height: 36px; font-size: 12px; }
.products-page .search-field { border: 1px solid var(--border-control); border-radius: 9px; padding: 12px; margin-bottom: 24px; }
.products-page .search-field input { min-width: 0; font-size: 13px; }
.products-page .search-field svg { flex-shrink: 0; }
.products-page fieldset { margin-bottom: 22px; }
.products-page fieldset:last-child { margin-bottom: 0; }
.products-page .check-row { min-height: 36px; margin-bottom: 3px; font-size: 13px; }
.products-page .check-row:has(input:checked) { color: var(--ink); font-weight: 600; }
.products-page .check-row input { width: 17px; height: 17px; flex-shrink: 0; }
.products-page .price-values { font-size: 13px; }
.products-page .price-slider { min-height: 32px; }
.products-page .catalog-grid { gap: 24px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
:is(.products-page, .bb-home) .catalog-card { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }


:is(.products-page, .bb-home) .product-image-link { display: block; width: 100%; height: 100%; }
:is(.products-page, .bb-home) .catalog-meta { flex: 1; gap: 8px; padding: 18px 16px; }
:is(.products-page, .bb-home) .catalog-meta h2 { font-size: 21px; line-height: 1.2; }
:is(.products-page, .bb-home) .catalog-meta p { font-size: 12px; line-height: 1.65; }
:is(.products-page, .bb-home) .catalog-meta strong { font-size: 14px; }
:is(.products-page, .bb-home) .catalog-actions { flex-direction: column; gap: 12px; margin: 0 16px; padding: 14px 0 16px; }
:is(.products-page, .bb-home) .catalog-actions button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 8px; font-size: 12px; background: var(--action-bg); color: var(--white); transition: background .2s, transform .2s; }
:is(.products-page, .bb-home) .catalog-actions button svg { width: 17px; height: 17px; }
:is(.products-page, .bb-home) .catalog-actions button:active:not(:disabled) { transform: scale(.97); }
:is(.products-page, .bb-home) .catalog-actions button:disabled { opacity: .6; cursor: not-allowed; }

.products-page .sort-select { border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; }
.products-page .sort-select svg { right: 10px; }
.products-page .shop-toast { top: auto; bottom: 24px; right: 24px; max-width: calc(100vw - 32px); border-radius: 12px; pointer-events: none; }
.products-page .filter-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(90vw, 390px); height: 100dvh; max-height: 100dvh; max-width: none; padding: 24px; border: 0; border-radius: 20px 0 0 20px; background: var(--white); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); opacity: 0; transition: transform .25s ease, opacity .25s, display .25s allow-discrete, overlay .25s allow-discrete; }
.products-page .filter-drawer[open] { transform: translateX(0); opacity: 1; }
.products-page .filter-drawer::backdrop { background: #30282055; backdrop-filter: blur(3px); }
.products-page .drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.products-page .drawer-head h2 { font-size: 25px; }
.products-page .drawer-head button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--cream); }
.products-page .drawer-footer { position: sticky; bottom: -24px; display: flex; gap: 10px; background: var(--white); padding: 20px 0 max(24px, env(safe-area-inset-bottom)); margin-top: 24px; border-top: 1px solid var(--border); }
.products-page .drawer-footer .button { padding: 14px; flex: 1; justify-content: center; }
.catalog-cart-flight { position: fixed; z-index: 100; width: 56px; height: 56px; object-fit: contain; object-position: center; border: 2px solid var(--cream); border-radius: 14px; box-shadow: 0 8px 25px #55473d26; pointer-events: none; }
@starting-style { .products-page .filter-drawer[open] { transform: translateX(100%); opacity: 0; } }
@media (hover: hover) { :is(.products-page, .bb-home) .catalog-card:hover { transform: translateY(-4px); } :is(.products-page, .bb-home) .catalog-actions button:hover:not(:disabled) { background: var(--action-hover); } }
@media (min-width: 801px) and (max-width: 1150px) { .products-page .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } .products-page .catalog-layout { gap: 24px; grid-template-columns: 218px minmax(0, 1fr); padding-inline: 24px; } }
@media (max-width: 800px) {
  .products-page .catalog-hero { padding: 18px 20px 28px; }
  .products-page .catalog-hero h1 { font-size: clamp(36px, 8vw, 52px); margin-bottom: 14px; }
  .products-page .catalog-hero .breadcrumb { margin-bottom: 16px; }
  .products-page .catalog-hero > div:first-child > p:last-child { font-size: 13px; }
  .products-page .catalog-layout { padding: 26px 16px 50px; }
  .products-page .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px 12px; }
  .products-page .catalog-toolbar { gap: 18px; margin-bottom: 22px; }
  .products-page .catalog-toolbar h2 { font-size: 23px; }
  .products-page .toolbar-actions { gap: 10px; }
  .products-page .mobile-filter-button { min-height: 44px; border-radius: 8px; padding-inline: 15px; }
  :is(.products-page, .bb-home) .catalog-meta { padding: 12px; }
  :is(.products-page, .bb-home) .catalog-meta h2 { font-size: 19px; }
  :is(.products-page, .bb-home) .catalog-meta p { font-size: 11px; line-height: 1.5; }
  :is(.products-page, .bb-home) .catalog-actions { margin-inline: 10px; padding-block: 10px; }
  .products-page .catalog-badge { left: 8px; bottom: 8px; padding: 5px; font-size: 8px; letter-spacing: .03em; }

  .products-page .search-field input { font-size: 16px; }
}
@media (max-width: 359px) { .products-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .products-page .sort-select > span { display: none; } }
@media (hover: none) { }
@media (prefers-reduced-motion: no-preference) { .products-page .cart-loading { animation: catalog-spin 1s linear infinite; } }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .products-page *, .products-page *::before, .products-page *::after { transition: none !important; animation: none !important; } :is(.products-page, .bb-home) .catalog-card:hover, :is(.products-page, .bb-home) .catalog-card:hover img { transform: none; } }

.bb-products > .catalog-card { scroll-snap-align: start; }

/* Cards must accommodate real catalog names, descriptions and sale prices. */
:is(.products-page, .bb-home) .catalog-card { background: var(--white); border: 1px solid var(--border); }


:is(.products-page, .bb-home) .catalog-meta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
:is(.products-page, .bb-home) .catalog-meta > div { min-width: 0; }
:is(.products-page, .bb-home) .catalog-meta h2 { font-size: clamp(20px, 1.5vw, 24px); overflow-wrap: anywhere; }
:is(.products-page, .bb-home) .catalog-meta p { max-width: none; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
:is(.products-page, .bb-home) .catalog-meta strong { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; margin-top: auto; white-space: normal; overflow-wrap: anywhere; }
:is(.products-page, .bb-home) .catalog-meta strong s { color: var(--text-muted); font-weight: 400; font-size: 14px; }
:is(.products-page, .bb-home) .catalog-badge { max-width: calc(100% - 28px); padding: 7px 9px; font-size: 10px; overflow-wrap: anywhere; }
:is(.products-page, .bb-home) .catalog-actions button { padding: 10px 12px; font-size: 14px; }
.products-page .catalog-toolbar, .products-page .toolbar-actions { flex-wrap: wrap; }
.products-page .sort-select { min-width: 0; max-width: 100%; }
.products-page .sort-select select { min-width: 0; min-height: 36px; }
@media (max-width: 539px) {
  .products-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-page .sort-select > span { display: none; }
}

/* Reserve a compact footer for prices and the accessible cart icon. */
:is(.products-page, .bb-home) .catalog-card { position: relative; }
:is(.products-page, .bb-home) .catalog-meta { gap: 10px; padding: 12px; }
:is(.products-page, .bb-home) .catalog-meta h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 18px; line-height: 1.25; margin: 0 0 3px; }
:is(.products-page, .bb-home) .catalog-meta p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.5; max-height: 3em; }
:is(.products-page, .bb-home) .catalog-meta strong { align-content: center; min-height: 44px; padding-right: 52px; font-size: 15px; line-height: 1.3; }
:is(.products-page, .bb-home) .catalog-meta strong s { font-size: 12px; }
:is(.products-page, .bb-home) .catalog-actions { position: absolute; right: 12px; bottom: 12px; padding: 0; margin: 0; border: 0; }
:is(.products-page, .bb-home) .catalog-actions button { width: 32px; height: 32px; min-height: 32px; padding: 0; flex-shrink: 0; }
:is(.products-page, .bb-home) .catalog-actions button svg { width: 20px; height: 20px; }
:is(.products-page, .bb-home) .catalog-actions > a { display: none; }
:is(.products-page, .bb-home) .catalog-badge { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 6px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 800px) {
  .products-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
@media (max-width: 539px) {
  :is(.products-page, .bb-home) .catalog-meta { padding: 10px; }
  :is(.products-page, .bb-home) .catalog-meta h2 { font-size: 16px; }
  :is(.products-page, .bb-home) .catalog-meta p { font-size: 12px; }
  :is(.products-page, .bb-home) .catalog-actions { right: 10px; bottom: 10px; }
  :is(.products-page, .bb-home) .catalog-meta strong { font-size: 14px; padding-right: 48px; gap: 2px 4px; }
}

/* Keep the whole product visible, including on pointer hover. */


/* Uniform cards: image proportions and text length never change row height. */

:is(.products-page, .bb-home) .product-image-link { height: 100%; }

:is(.products-page, .bb-home) .catalog-meta { flex: none; height: auto; box-sizing: border-box; overflow: hidden; }
:is(.products-page, .bb-home) .catalog-meta h2 { height: auto; }
:is(.products-page, .bb-home) .catalog-meta p { height: 3em; margin: 0; }
:is(.products-page, .bb-home) .catalog-meta strong { flex: 0 0 44px; max-height: 44px; overflow: hidden; }
.products-page .catalog-grid, .bb-home .bb-products { align-items: stretch; }
@media (max-width: 539px) {
  :is(.products-page, .bb-home) .catalog-meta { height: auto; }
}

/* Product details: bounded content, proportional gallery and touch-sized controls. */
.detail-page .detail-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding: 28px clamp(16px, 4vw, 48px) 64px; }
.detail-page .back-link { min-height: 44px; margin-bottom: 20px; font-size: 13px; }
.detail-page .detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.detail-page .detail-grid > * { min-width: 0; }
.detail-page .detail-gallery { min-width: 0; display: grid; gap: 12px; }


.detail-page .detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-page .detail-thumbs button { width: 64px; height: 64px; flex: 0 0 64px; }
.detail-page .detail-copy { padding-block: 8px; }
.detail-page .detail-copy h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; overflow-wrap: anywhere; margin-bottom: 16px; }
.detail-page .detail-copy .eyebrow { overflow-wrap: anywhere; }
.detail-page .detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 22px; overflow-wrap: anywhere; }
.detail-page .detail-price s { color: var(--text-muted); font-size: 17px; font-weight: 400; }
.detail-page .detail-description { max-width: none; font-size: 15px; line-height: 1.7; margin-block: 20px 24px; white-space: pre-line; overflow-wrap: anywhere; }
.detail-page .detail-options { display: grid; gap: 12px; margin-bottom: 8px; }
.detail-page .detail-options label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.detail-page .detail-options select { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px 12px; font: inherit; font-weight: 400; color: inherit; }
.detail-page .quantity-row { max-width: none; gap: 12px; flex-wrap: wrap; padding-block: 10px; font-size: 14px; }
.detail-page .quantity-control { gap: 12px; }
.detail-page .quantity-control button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; }
.detail-page .quantity-control > span { min-width: 2ch; text-align: center; }
.detail-page .add-detail { max-width: none; min-height: 48px; justify-content: center; gap: 12px; }
.detail-page .product-specs { max-width: none; margin-top: 24px; padding: 12px; box-shadow: none; border-radius: 10px; }
.detail-page .product-specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; font-size: 13px; line-height: 1.5; }
.detail-page .product-specs dt, .detail-page .product-specs dd { min-width: 0; overflow-wrap: anywhere; }
.detail-page .product-specs dd { text-align: right; }
.detail-page .related-products { margin-top: clamp(40px, 6vw, 72px); }
.detail-page .related-products h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.detail-page .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.detail-page .related-card { min-width: 0; }
.detail-page .related-card:last-child { display: block; }

.detail-page .related-card > div { grid-template-columns: minmax(0, 1fr); }
.detail-page .related-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.detail-page .related-card span, .detail-page .related-card strong { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .detail-page .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }


  .detail-page .detail-copy { padding: 0; }
  .detail-page .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
@media (max-width: 539px) {
  .detail-page .detail-wrap { padding-top: 16px; padding-bottom: 40px; }
  .detail-page .back-link { margin-bottom: 12px; }
  .detail-page .detail-thumbs button { width: 56px; height: 56px; flex-basis: 56px; }
  .detail-page .detail-description { font-size: 14px; }
  .detail-page .related-card h3 { font-size: 17px; }
}

/* Keep discounted prices together and baseline-aligned beside the compact cart button. */
:is(.products-page, .bb-home) .catalog-meta strong { flex-wrap: nowrap; align-items: baseline; align-content: normal; white-space: nowrap; overflow-wrap: normal; gap: 4px; padding-right: 36px; min-height: 32px; flex-basis: 32px; max-height: 32px; }
:is(.products-page, .bb-home) .catalog-meta strong s { text-decoration-color: #b34236; text-decoration-thickness: 2px; }
/* Keep a compact price gap after the reserved two-line description. */
:is(.products-page, .bb-home) .catalog-meta { gap: 6px; }
:is(.products-page, .bb-home) .catalog-meta strong { margin-top: 0; }
.products-page .catalog-grid, .bb-home .bb-products { align-items: start; }
/* Boutique collection: scoped to /products, leaving shared storefront cards unchanged. */
.products-page.products-page { background: #FAF8F5; color: #342E29; --ink: #342E29; --white: #FFFFFF; --cream: #FAF8F5; --text-muted: #655F58; --border: #E5E1DA; --border-control: #8C857B; --action-bg: #A66D50; --action-hover: #875238; --accent-text: #76503B; }
.products-page.products-page .catalog-hero { width: 100%; max-width: none; margin: 0; padding: 28px clamp(16px, 3vw, 56px) 30px; background: transparent; border-bottom: 1px solid #E5E1DA; }
.products-page.products-page .catalog-hero h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 12px; }
.products-page.products-page .catalog-hero h1 em { color: #59664F; }
.products-page.products-page .catalog-hero h1 br { display: none; }
.products-page.products-page .catalog-hero .breadcrumb { margin-bottom: 16px; font-size: 12px; color: #655F58; }
.products-page.products-page .catalog-hero > div > p:last-child { max-width: 62ch; margin: 0; font-size: 14px; line-height: 1.65; color: #655F58; }
.products-page.products-page .catalog-layout { display: grid; width: 100%; max-width: none; margin: 0; padding: 28px clamp(16px, 3vw, 56px) 64px; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.products-page.products-page .catalog-layout > aside { display: block; position: sticky; top: var(--catalog-offset); max-height: calc(100dvh - var(--catalog-offset) - 24px); overflow: auto; background: #F3F2ED; border: 1px solid #E5E1DA; border-radius: 16px; padding: 20px 16px; }
.products-page.products-page .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.products-page.products-page .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.products-page.products-page .catalog-toolbar .eyebrow { color: #59664F; font-size: 10px; margin: 0 0 6px; }
.products-page.products-page .catalog-toolbar h2 { font-size: 20px; margin: 0; }
.products-page.products-page .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.products-page.products-page .sort-select { background: #FFFFFF; border-radius: 10px; padding: 0 12px; min-height: 44px; }
.products-page.products-page .sort-select select { min-height: 44px; font-size: 12px; color: #342E29; background: transparent; }












.products-page.products-page .search-field { background: #FFFFFF; border-radius: 10px; border-color: #8C857B; padding: 10px; }
.products-page.products-page .check-row { min-height: 40px; color: #504A43; }
.products-page.products-page input { accent-color: #59664F; }
.products-page.products-page .filter-title button { color: #76503B; text-decoration: underline; text-underline-offset: 3px; }
.products-page.products-page :is(button, a, input, select):focus-visible { outline: 3px solid #59664F; outline-offset: 3px; }
.products-page.products-page .filter-drawer { width: min(92vw, 400px); background: #FAF8F5; border-radius: 20px 0 0 20px; padding: 24px; box-shadow: -16px 0 50px #342e2920; }
.products-page.products-page .drawer-head { padding-bottom: 16px; border-bottom: 1px solid #E5E1DA; }
.products-page.products-page .drawer-head h2 { font-size: 24px; }
.products-page.products-page .drawer-footer { background: #FAF8F5; gap: 12px; }
.products-page.products-page .drawer-footer .button { border-radius: 10px; min-height: 44px; }
.products-page.products-page .drawer-footer .button-primary { background: #A66D50; color: #FFFFFF; }
.products-page.products-page .empty-products { background: #FFFFFF; border: 1px solid #E5E1DA; border-radius: 16px; padding: 40px 20px; }
@media (min-width: 1400px) { .products-page.products-page .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 801px) and (max-width: 1050px) { .products-page.products-page .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; } .products-page.products-page .catalog-grid { gap: 12px; } }
@media (max-width: 800px) {
  .products-page.products-page .catalog-hero { padding: 18px 16px 22px; }
  .products-page.products-page .catalog-hero h1 { font-size: 30px; max-width: 24ch; }
  .products-page.products-page .catalog-hero .breadcrumb { margin-bottom: 12px; }
  .products-page.products-page .catalog-hero > div > p:last-child { font-size: 13px; }
  .products-page.products-page .catalog-layout { display: block; padding: 18px 12px 40px; }
  .products-page.products-page .catalog-layout > aside { display: none; }
  .products-page.products-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .products-page.products-page .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .products-page.products-page .catalog-toolbar .eyebrow { display: none; }
  .products-page.products-page .catalog-toolbar h2 { font-size: 16px; }
  .products-page.products-page .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .products-page.products-page .mobile-filter-button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #8C857B; background: #FFFFFF; color: #342E29; border-radius: 10px; font-size: 13px; }
  .products-page.products-page .mobile-filter-button svg { width: 16px; height: 16px; }
  .products-page.products-page .sort-select { min-width: 0; border-color: #8C857B; }
  .products-page.products-page .sort-select > span { display: none; }
  .products-page.products-page .sort-select select { width: 100%; padding-right: 20px; }







}
@media (hover: hover) {


}
@media (prefers-reduced-motion: reduce) {  }
/* Darker terracotta for text-bearing actions meets AA against white. */
.products-page.products-page .drawer-footer .button-primary { background: #955B40; }
@media (min-width: 801px) and (max-width: 1150px) {


}
/* Sorting travels with the filter panel into the mobile drawer. */
.products-page.products-page .filter-sort { margin-bottom: 24px; }
.products-page.products-page .filter-sort .sort-select { display: flex; align-items: center; gap: 8px; width: 100%; }
.products-page.products-page .filter-sort .sort-select > span { display: inline; white-space: nowrap; font-size: 12px; }
.products-page.products-page .filter-sort select { min-width: 0; flex: 1; }
@media (max-width: 800px) {
  .products-page.products-page .catalog-toolbar { flex-direction: row; align-items: center; }
  .products-page.products-page .toolbar-actions { display: flex; width: auto; flex: 0 0 auto; }
  .products-page.products-page .mobile-filter-button { width: 44px; height: 44px; padding: 0; border: 1px solid #D5DECE; border-radius: 12px; background: #EAF0E5; color: #40533A; }
  .products-page.products-page .mobile-filter-button svg { width: 20px; height: 20px; }
  .products-page.products-page .mobile-filter-button:hover { background: #DCE6D5; }
}

/* Continue the collection hero surface behind the floating navigation. */
body:has(.products-page) .bb-navbar { background: #FAF8F5; }

/* Accessible single-choice product option badges. */
.detail-page .detail-option-group { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.detail-page .detail-option-group legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.detail-page .detail-option-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-page .detail-options .detail-option-badge { position: relative; display: block; cursor: pointer; max-width: 100%; }
.detail-option-badge input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.detail-option-badge span { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 24px; background: #fff; color: #4a6254; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; transition: background .18s, border-color .18s, box-shadow .18s; }
.detail-option-badge:hover span { border-color: #4a6254; background: #f5f7f1; }
.detail-option-badge input:checked + span { background: #344b40; border-color: #344b40; color: #fff; box-shadow: 0 3px 8px #344b4020; }
.detail-option-badge input:focus-visible + span { outline: 3px solid #f06924; outline-offset: 3px; }

/* Product presentation: quiet surfaces and a balanced viewport composition. */
.detail-page .detail-wrap { box-sizing: border-box; max-width: 1440px; padding-top: 16px; }
.detail-page .back-link { margin-bottom: 12px; }
.detail-page .detail-grid { gap: clamp(24px, 4vw, 64px); }


.detail-page .detail-copy { background: #fffdf9; border: 1px solid #e5e1da; border-radius: 20px; padding: clamp(20px, 2.5vw, 36px); box-sizing: border-box; }
.detail-page .detail-copy .eyebrow { color: #59664f; margin-bottom: 12px; font-size: 11px; letter-spacing: .14em; }
.detail-page .detail-copy h1 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px; }
.detail-page .detail-price { font-size: 24px; font-variant-numeric: tabular-nums; }
.detail-page .detail-description { margin: 20px 0 24px; line-height: 1.75; color: #655f58; }
.detail-page .add-detail { min-height: 52px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 12px #342e2910; }
.detail-page .product-specs { background: #f6f4ef; border: 0; padding: 16px; border-radius: 10px; }
.detail-page .detail-thumbs button { border-radius: 10px; }
@media (min-width: 900px) {
  .detail-page .detail-grid { height: auto; min-height: max(420px, calc(100dvh - var(--navbar-height, 88px) - 112px)); align-items: start; }
  .detail-page .detail-gallery { height: max(420px, calc(100dvh - var(--navbar-height, 88px) - 112px)); min-height: 0; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; align-content: stretch; }
  .detail-page .detail-gallery:has(.detail-thumbs) { grid-template-rows: minmax(0, 1fr) auto; }


  .detail-page .detail-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .detail-page .detail-copy { height: auto; max-height: none; min-height: 0; overflow: visible; }
}
/* Compact proportions for laptops, including short desktop windows. */
@media (min-width: 900px) and (max-width: 1440px), (min-width: 900px) and (max-height: 850px) {
  .detail-page .detail-wrap { padding-inline: 28px; }
  .detail-page .detail-grid { gap: 28px; }
  .detail-page .detail-copy { padding: 22px; border-radius: 16px; }
  .detail-page .detail-copy h1 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; margin-bottom: 12px; }
  .detail-page .detail-copy .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .detail-page .detail-price { font-size: 20px; }
  .detail-page .detail-description { font-size: 14px; line-height: 1.6; margin: 16px 0 18px; }
  .detail-page .detail-options { gap: 8px; }
  .detail-page .detail-option-group legend { font-size: 12px; margin-bottom: 8px; }
  .detail-page .detail-option-badge span { font-size: 12px; padding: 8px 12px; }
  .detail-page .quantity-row { font-size: 13px; padding-block: 8px; }
  .detail-page .add-detail { min-height: 46px; font-size: 13px; margin-top: 12px; }
  .detail-page .product-specs { margin-top: 18px; padding: 12px; }
  .detail-page .product-specs div { font-size: 12px; padding-block: 6px; }
}

.detail-page .purchase-help { margin: 16px 0; padding: 16px; border: 1px solid var(--border-control); border-radius: 10px; background: var(--cream); font-size: 14px; line-height: 1.6; }
.detail-page .purchase-help p:last-child { margin-bottom: 0; }
.detail-page .purchase-help a { text-decoration: underline; text-underline-offset: 3px; }
.detail-page .detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-page .detail-thumbs button { padding: 4px; border: 2px solid transparent; background: var(--cream); border-radius: 8px; }
.detail-page .detail-thumbs button[aria-pressed="true"] { border-color: var(--accent-text); }


/* Gallery follows its width, never the viewport height or purchase-panel height. */
.detail-page .detail-gallery { display: flex; flex-direction: column; height: auto; align-self: start; gap: 12px; }
.detail-page .detail-gallery:has(.detail-thumbs) { grid-template-rows: none; }

.detail-page .detail-copy { padding: clamp(20px, 3vw, 32px); }
.detail-page .purchase-help { display: grid; gap: 0; padding: 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.detail-page .purchase-fact { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; }
.detail-page .purchase-fact + .purchase-fact { border-top: 1px solid var(--border); }
.detail-page .purchase-fact > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent-text); margin-top: 2px; }
.detail-page .purchase-fact > div { display: grid; gap: 4px; }
.detail-page .purchase-fact strong { font-size: 14px; font-weight: 600; }
.detail-page .purchase-fact :is(a, span) { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.detail-page .purchase-fact a { min-height: 24px; }
.detail-page .product-specs { margin-top: 12px; }
@media (max-width: 539px) {
  .detail-page .detail-copy { padding: 20px 16px; }

}

/* Shared edge-to-edge framing. Non-4:3 sources are center-cropped only for display. */
:is(.products-page, .bb-home) .catalog-image,
.detail-page .detail-gallery .detail-image { position: relative; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; overflow: hidden; background: #f0ede7; border-radius: 14px; }
:is(.products-page, .bb-home) .catalog-image img,
.detail-page .detail-gallery .detail-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; padding: 0; box-sizing: border-box; mix-blend-mode: normal; }
.detail-page .related-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; padding: 0; box-sizing: border-box; background: #f0ede7; border-radius: 12px; }
.detail-page .detail-thumbs img { display: block; width: 80px; height: 60px; object-fit: contain; }
