:root{--bw-ink:#322e28;--bw-forest:#344f42;--bw-paper:#fcfaf6;--bw-line:#dbd7cd;--bw-soft:#f0eee4}
body:has(.product-page),body:has(#cart-lines),body:has(#checkout-form){background:var(--bw-paper);color:var(--bw-ink)}
.product-page .product-detail{background:var(--bw-paper);border:1px solid var(--bw-line);border-radius:22px;padding:clamp(14px,3vw,44px);gap:clamp(22px,4vw,58px);align-items:start}
.product-page .detail-photo{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;background:#f4f0e9;border-radius:15px}
.product-page .product-detail h1,#checkout-form h2,#cart-lines h2{color:var(--bw-ink);font-family:Georgia,'Times New Roman',serif;font-weight:500;line-height:1.12;text-wrap:balance}
.product-page .product-detail h1{font-size:clamp(1.85rem,3.6vw,3.5rem);letter-spacing:-.035em;margin:0 0 .45em}
.product-detail h1 + p{font-size:.95rem}
.product-detail .product-fields{margin:16px 0 8px;padding:0;display:grid;grid-template-columns:1fr}
.bw-sample{background:var(--bw-soft);border:1px solid var(--bw-line);border-radius:14px;padding:14px 16px;margin:12px 0 18px;overflow-wrap:anywhere}
.bw-sample small{display:block;color:#475347;font:600 .8rem/1.5 system-ui}
.bw-sample output{display:block;min-height:1.25em;font:500 clamp(1.65rem,4vw,2.35rem)/1.25 Georgia,serif;color:var(--bw-forest)}
.bw-sample + .live-name{margin-top:0}
.product-page button[type=submit],.product-detail button,#design-cart,.home-card a.button,#checkout-form button#check:not(:disabled){background:var(--bw-forest);color:white;border:0;border-radius:12px;padding:.75em 1.3em;min-height:44px}
.product-detail label,#checkout-form label{color:var(--bw-ink)}
.product-detail input,#checkout-form input,#design-fields input,.cart-line input{font-size:16px;min-height:44px;border:1px solid #867f73;border-radius:9px;background:white;color:var(--bw-ink);padding-inline:10px;box-sizing:border-box;max-width:100%}
.product-page .panel,.cart-line,#checkout-form .panel{background:#fff;border:1px solid var(--bw-line);border-radius:14px}
.product-page summary{padding-block:12px;cursor:pointer}
:focus-visible{outline:3px solid #275940!important;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){.bw-sample output.pulse{animation:bw-letter 150ms ease-out}.home-card a.button,.product-detail button{transition:background-color 150ms ease-out,transform 150ms ease-out}.product-detail button:active,.home-card a.button:active{transform:translateY(1px)}@keyframes bw-letter{from{transform:translateY(2px);opacity:.82}to{transform:none;opacity:1}}}
@media(max-width:750px){.product-page .product-detail{display:flex;flex-direction:column;gap:20px}.product-detail>div{width:100%;min-width:0}.product-page .detail-photo{max-height:36vh}.product-page .product-detail button{width:100%}.product-page .crumb{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
.closing,.cart-line .price-included{color:#464039!important}
#cart-checkout[href]{background:#344f42;color:white}
@media(max-width:800px){.brand img{content:normal!important}}
.brand img,.footer-brand img{content:normal!important}
.product-page .product-detail h1{font-size:clamp(1.65rem,2.55vw,2.55rem);max-width:22ch}
#product-parameters.bw-repeated{display:none}
.product-detail .bw-sample output{letter-spacing:.025em}
.product-detail .bw-sample{margin-block:6px 14px}
@media(max-width:750px){.product-page .detail-photo{max-height:32vh}}
#cart-checkout,#cart-checkout[aria-disabled=true]{background:#344f42;color:#fff;opacity:1}


.bw-brand{display:inline-flex!important;align-items:center;gap:7px;width:auto!important;color:#385254!important;white-space:nowrap;font:600 clamp(15px,2.6vw,23px)/1.1 Georgia,serif;letter-spacing:-.035em}
.bw-brand i{display:inline-block;width:40px;height:21px;background:url('/assets/bw-design-20261117-v1/brand.png') center 4%/100% auto no-repeat}
.bw-catalog .category-banner-full,.bw-catalog .purchase-choice,.bw-catalog .panel-title,.bw-catalog .stock-badge,.bw-catalog #design-fields .bw-sample,.bw-catalog .selected-product .design-preview{display:none!important}
.bw-catalog #app .catalog-wrap>.catalog-modes{display:flex!important;gap:6px;margin:14px 0 20px;justify-content:center}
.bw-catalog #app .catalog-modes button,.bw-catalog #bw-find,.bw-catalog .empty button{width:auto;min-height:40px;padding:8px 16px;border:1px solid #b6ceca;border-radius:24px;background:white;color:#294a47;font:600 14px/1.2 system-ui;cursor:pointer}
.bw-catalog #app .catalog-modes [aria-pressed=true],.bw-catalog #bw-find{color:white;background:#315e58}
.bw-catalog #app .catalog-columns{display:block;max-width:1080px;margin:auto}
.bw-catalog #app [data-catalog-mode=custom]>.ready-panel,.bw-catalog #app [data-catalog-mode=ready]>.custom-panel{display:none!important}
.bw-catalog .catalog-wrap .catalog-photo{aspect-ratio:3/4!important;height:auto!important;padding:0!important;background:#f6f4ef}
.bw-catalog #products .catalog-photo img{width:100%!important;height:100%!important;object-fit:contain!important}
.bw-catalog .product-copy{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:end;gap:6px;padding:10px!important}
.bw-catalog .product-copy>a{grid-column:1/-1}
.bw-catalog #products .product-copy h3{font:600 clamp(13px,2vw,18px)/1.22 system-ui;min-height:0;margin:0}
.bw-catalog .product-copy .price{min-width:0;margin:0;display:flex;flex-wrap:wrap;gap:2px}
.bw-catalog .price-included{width:100%;font-size:10px;line-height:1.25;color:#526662}
.bw-catalog #products button[data-buy]{width:36px;height:36px;min-height:36px;padding:0;font-size:0;background:#e9f1ef;border:0;border-radius:50%;color:#315e58}
.bw-catalog #products button[data-buy]::before{content:'';display:inline-block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 3h3l3 12h11l3-9H6M9 19h1m7 0h1' stroke-linecap='round'/%3E%3C/svg%3E") center/contain}
.bw-catalog .name-search-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px}
.bw-catalog .name-search-wrap label{margin:0}.bw-catalog .name-search-wrap .suggestions{grid-column:1/-1}
.bw-catalog .empty button{display:block;margin:12px auto}
.bw-catalog #design-form{overflow:visible}
.bw-catalog #app #design-fields{position:sticky;top:0;z-index:5;background:#fffefa;display:block;border-block:1px solid #d5e0dc;padding:7px 10px}
.bw-catalog #app #design-fields label{display:flex;align-items:center;gap:10px;font:600 13px/1.1 system-ui;white-space:nowrap}
.bw-catalog #app #design-fields input{height:38px;width:100%;border:1px solid #baccc8;border-radius:10px;font-size:16px}
.bw-catalog #app #design-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr));gap:10px}
.bw-catalog #app #design-choices button{width:100%;height:auto;display:grid;gap:6px;padding:5px 5px 8px;min-width:0;border-radius:12px;border:1px solid #d9e3df;background:white;overflow:hidden}
.bw-catalog #app #design-choices img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;border-radius:8px;background:#f6f4ef}
.bw-catalog #app #design-choices .swatch>span:not(.stock-badge){display:block;font:550 13px/1.3 system-ui}
.bw-catalog #app .selected-product{display:block}.bw-catalog #app .selected-product[hidden]{display:none}
.bw-lock{overflow:hidden;overscroll-behavior:none}
dialog.bw-gallery[open]{box-sizing:border-box;position:fixed;inset:var(--view-top,0) 0 auto;margin:0;border:0;width:100%;max-width:none;height:var(--view-height,100dvh);max-height:none;background:#fcfaf6;color:#283e3d;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;padding:max(12px,env(safe-area-inset-top)) max(16px,calc((100vw - 610px)/2)) max(12px,env(safe-area-inset-bottom));overflow:auto;font:16px/1.3 system-ui}
.bw-gallery header,.bw-gallery footer{position:static;background:none;display:flex;align-items:center;justify-content:space-between;padding:0;box-shadow:none}
.bw-gallery header strong{font:500 23px Georgia,serif}.bw-gallery button{cursor:pointer;color:#274941;background:white;border:1px solid #cddbd5;border-radius:50%;width:42px;height:42px;font:26px/1 system-ui}
.bw-gallery label{display:grid;gap:4px;font-size:13px;font-weight:600}.bw-gallery input{box-sizing:border-box;width:100%;height:42px;border:1px solid #b9ccc5;border-radius:10px;padding:8px 12px;font:16px system-ui}
.bw-stage{position:relative;display:grid;place-items:center;min-height:0;container-type:size;touch-action:pan-y}
.bw-stage img{width:min(100cqw,75cqh);height:auto;aspect-ratio:3/4;object-fit:contain;background:#f4f1ea;border-radius:12px}
.bw-stage button{position:absolute;top:50%;transform:translateY(-50%);left:2px}.bw-stage button:last-child{left:auto;right:2px}
.bw-gallery footer{display:grid;gap:10px;text-align:center}.bw-gallery output{font-size:14px}
.bw-gallery .bw-confirm{width:100%;border-radius:12px;height:48px;background:#315e58;color:white;font:600 16px system-ui}
@media(max-width:550px){.bw-catalog #app #design-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.bw-catalog #app .catalog-wrap{padding-inline:12px}.bw-catalog #app .custom-panel,.bw-catalog #app .ready-panel{padding-inline:6px}}
@media(prefers-reduced-motion:no-preference){.bw-gallery[open]{animation:bw-arrive .16s ease-out}.bw-catalog button,.bw-gallery button{transition:background-color .15s,opacity .15s}.bw-gallery button:active,.bw-catalog button:active{opacity:.78}@keyframes bw-arrive{from{opacity:.65}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){.bw-catalog *,.bw-gallery *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.bw-catalog #app #design-choices .swatch .stock-badge{display:none!important}
.bw-catalog #app #design-choices .swatch>span:first-of-type{display:block!important;font:600 13px/1.35 system-ui!important;color:#324942!important}
.bw-gallery footer{grid-template-columns:minmax(0,1fr);justify-content:stretch}
.bw-gallery::backdrop{background:#fcfaf6}
.bw-catalog #app .product-copy{min-height:0!important;align-content:start;text-align:left}
.bw-catalog #app .product-copy .price{align-items:start;justify-content:start;text-align:left}
.bw-catalog #app .product-copy .price-included{font-size:11px}
.bw-catalog #app .bw-category-title{margin:18px auto 5px;text-align:center;font:500 clamp(23px,4vw,34px)/1.2 Georgia,serif;color:#314c47}
/* Holder catalog and full-screen design viewer */
.bw-catalog #app .ready-panel{background:#faf3ed;border:0;border-radius:18px}
.bw-catalog #app #products{gap:12px 8px;align-items:start}
.bw-catalog #app #products .product-card{display:flex;flex-direction:column;position:relative;min-height:0;height:auto;padding:6px;gap:0;border:1px solid #eee4da;border-radius:16px;background:#fff9f3;box-shadow:0 2px 5px #59422e12}
.bw-catalog #app #products .catalog-photo{width:100%;border-radius:10px;overflow:hidden}
.bw-catalog #app #products .favorite{top:9px;right:9px;background:#fff9ee;color:#785138}
.bw-catalog #app #products .product-copy{display:grid!important;grid-template: auto auto / minmax(0,1fr) auto;align-items:center;gap:7px 3px;min-height:0;height:auto;padding:8px 3px 4px!important}
.bw-catalog #app #products .product-copy>a,.bw-catalog #app #products h3{height:auto!important;min-height:0!important;margin:0;padding:0;line-height:1.18}
.bw-catalog #app #products h3{font-size:clamp(13px,3.4vw,16px);color:#493529;text-transform:none}
.bw-catalog #app #products .price{display:flex;align-self:center;flex-flow:row wrap;gap:1px 4px;line-height:1.1}
.bw-catalog #app #products .price strong{font:700 clamp(19px,5vw,23px)/1.05 system-ui;color:#50623b}
.bw-catalog #app #products .price-included{font:400 12px/1.14 system-ui;white-space:normal;color:#605950}
.bw-catalog #app #products button[data-buy]{grid-column:2;min-width:0;width:clamp(35px,9.8vw,44px);height:auto;min-height:0;aspect-ratio:1;display:grid;place-items:center;padding:0;border:0;border-radius:11px;background:#895b3e;color:#fff9f1}
.bw-catalog #app #products button[data-buy]::before{width:21px;height:21px}
.bw-catalog #app .name-search-wrap{margin:0 0 14px;gap:0 8px}
.bw-catalog #app .name-search-wrap input,.bw-catalog #app #bw-find{box-sizing:border-box;height:44px;border-radius:12px}
.bw-catalog #app #bw-find,.bw-gallery .bw-confirm{background:#415e46}
dialog.bw-gallery[open]{background:#faf2eb;color:#313c2f;gap:clamp(8px,1.7dvh,16px);padding:max(14px,env(safe-area-inset-top)) max(12px,calc((100vw - 610px)/2)) max(16px,env(safe-area-inset-bottom));grid-template-rows:auto auto minmax(0,1fr) auto}
.bw-gallery header strong{font:500 clamp(23px,5.7vw,30px)/1.2 Georgia,serif}
.bw-gallery header,.bw-gallery label,.bw-gallery footer{margin-inline:6px}
.bw-gallery header button,.bw-stage button{box-sizing:border-box;display:grid;place-items:center;padding:0!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;border-radius:50%;border:1px solid #d8caba;background:#fffaf0;color:#3d4636;box-shadow:0 2px 5px #4a2e1d1a}
.bw-gallery header button::after,.bw-stage button::after{content:'';position:absolute;inset:-6px;border-radius:50%}
.bw-gallery header button{position:relative}
.bw-gallery svg{display:block;width:16px;height:16px;pointer-events:none}
.bw-stage{width:100%;align-self:stretch}
.bw-stage img{width:min(calc(100cqw - 56px),75cqh)}
.bw-stage button{top:50%;left:max(0px,calc(50% - min((100cqw - 56px)/2,37.5cqh) - 31px));transform:translateY(-50%)}
.bw-stage button:last-child{left:auto;right:max(0px,calc(50% - min((100cqw - 56px)/2,37.5cqh) - 31px))}
.bw-gallery footer{gap:12px}.bw-gallery .bw-confirm{height:46px}
.bw-feedback{position:fixed;z-index:50;bottom:85px;left:50%;transform:translateX(-50%);background:#39563d;color:white;padding:9px 16px;border-radius:12px;white-space:nowrap;font:600 14px/1.3 system-ui;pointer-events:none}
@media(hover:hover) and (pointer:fine){.bw-catalog button:hover:not(:disabled),.bw-gallery button:hover{filter:brightness(.95)}}
@media(prefers-reduced-motion:no-preference){.bw-catalog button,.bw-gallery button{transition:scale 140ms ease-out,filter 140ms ease-out,background-color 140ms ease-out}.bw-catalog button:active:not(:disabled),.bw-gallery button:active{scale:.975;opacity:1}.bw-feedback{animation:bw-arrive 140ms ease-out}}
@media(max-width:550px){.bw-catalog #app .catalog-wrap{padding-inline:7px}.bw-catalog #app .ready-panel{padding:8px 4px}.bw-catalog #app #products{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bw-catalog #app #products .price-included{max-width:85px;font-size:13px}
.bw-catalog #app #products h3{font-family:system-ui,sans-serif;font-weight:650}
.bw-catalog #app .name-search-wrap label{font:600 15px/1.3 system-ui;color:#513c30}
.bw-catalog #app .name-search-wrap input{font:400 16px/1.2 system-ui}
.bw-gallery[open]{align-content:center}
dialog.bw-gallery[open]{grid-template-rows:auto auto minmax(0,min(calc((100vw - 80px)*4/3),calc(var(--view-height) - 218px),660px)) auto}
.bw-gallery label,.bw-gallery footer,.bw-gallery button,.bw-gallery input{font-family:system-ui,sans-serif}
.bw-gallery .bw-confirm{background:#415e46}
@media(max-height:440px){dialog.bw-gallery[open]{gap:5px;padding-block:5px;grid-template-rows:auto auto minmax(0,1fr) auto}.bw-gallery footer{gap:3px}}
.bw-catalog #app #products button.bw-adding,.bw-catalog #app #design-cart.bw-adding{background:#64452e}

/* Holder catalogue: two title lines above a shared purchase row. */
body.bw-catalog, .bw-catalog #app .site { background: #faf7f2; }
.bw-catalog #app .ready-panel { background: transparent; }
.bw-catalog #app #products { align-items: stretch; }
.bw-catalog #app #products .product-card {
  background: #fff;
  border-color: #e9e4dd;
  box-shadow: 0 2px 6px rgb(76 52 32 / 5%);
}
.bw-catalog #app #products .product-copy {
  --title-size: clamp(13px, 3.4vw, 16px);
  grid-template: calc(var(--title-size) * 2.4) auto / minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 4px;
  margin-top: auto;
  padding: 7px 3px 3px !important;
}
.bw-catalog #app #products .product-copy > a { align-self: start; min-width: 0; }
.bw-catalog #app #products .product-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: var(--title-size);
  line-height: 1.2;
}
.bw-catalog #app #products .price {
  align-self: end;
  align-content: end;
  gap: 2px;
}
.bw-catalog #app #products .price-included {
  max-width: none;
  font-size: 12px;
  line-height: 1.15;
}
.bw-catalog #app #products button[data-buy] {
  position: relative;
  grid-area: 2 / 2;
  place-self: end;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background-color: #a47259;
  color: #fff;
}
.bw-catalog #app #products button[data-buy]::before {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 25px;
  height: 25px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.8 3h2.4q.7 0 .9.9l2.5 10.4q.2 1 1.3 1h10q.9 0 1.1-.9l2-7.5H6'/%3E%3Ccircle cx='9.6' cy='19.6' r='1.25'/%3E%3Ccircle cx='18.3' cy='19.6' r='1.25'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Shared ready-product and design grids across the four local categories. */
.bw-catalog #products .catalog-photo,.bw-catalog #products .missing-photo {
  box-sizing:border-box; width:100%; height:auto; aspect-ratio:3/4; min-height:0;
}
.bw-catalog #app #products .catalog-photo img {
  position:absolute; inset:0; max-height:none; object-position:center;
}
.bw-catalog #app #products .catalog-photo {position:relative;}
.bw-catalog #app #products .product-copy > a {height:100%!important;}
.bw-catalog #app #products button[data-buy]:disabled {opacity:.52;cursor:not-allowed;}
.bw-catalog #app #design-fields:has(input[name=birthDate]) {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:6px;
}
.bw-catalog #app #design-fields:has(input[name=birthDate]) > label {
  display:grid;grid-template-rows:auto auto;gap:4px;
}
.bw-gallery label[hidden],.bw-gallery .bw-stage button[hidden] {display:none!important;}
dialog.bw-gallery.bw-no-name[open] {grid-template-rows:auto minmax(0,min(calc((100vw - 80px)*4/3),calc(var(--view-height) - 150px),660px)) auto;}
.bw-catalog #app .montessori-products {max-width:1080px;margin-inline:auto;}
@media(min-width:700px){
  .bw-catalog #app #products {grid-template-columns:repeat(4,minmax(0,1fr));}
}
.bw-catalog #app .favorite::after {content:"";position:absolute;inset:-7px;border-radius:50%;}
.bw-catalog .showcase-notice {padding-inline:14px;text-wrap:balance;}
.bw-catalog #bw-bottom-nav a span {font-size:11px;}
.bw-catalog #app #products .missing-photo {color:#615448;}
.bw-catalog #app .catalog-wrap {min-height:0!important;}
@media(min-width:700px) {
  .bw-catalog .custom-panel:has(#design-choices > :last-child:nth-child(-n+2)) {max-width:660px;margin-inline:auto;}
  .bw-catalog #app #design-choices:has(> :last-child:nth-child(-n+2)) {
    grid-template-columns:repeat(auto-fit,minmax(145px,230px));justify-content:center;
  }
}
@media(max-width:350px){
  .bw-catalog .site-header .bw-brand {gap:3px;}
  .bw-catalog .site-header .bw-brand i {width:22px;height:18px;}
}
.bw-catalog .bw-group-heading {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0;
}
