.product-catalog { max-width:1440px; margin:auto; padding:42px 32px 80px; color:#242520; }
.product-catalog * { box-sizing:border-box; }
.product-catalog-head,.product-catalog-section-head { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.product-catalog-head { align-items:flex-end; margin-bottom:24px; }
.product-catalog-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.product-catalog-head h1 { margin:6px 0; font-size:clamp(28px,3vw,40px); letter-spacing:-.04em; }
.product-catalog-kicker { margin:0; color:#979a92; letter-spacing:.12em; font-size:11px; }
.product-catalog-muted { color:#777a72; font-size:13px; line-height:1.6; }
.product-catalog-note { padding:15px 18px; border-radius:8px; background:#f5f5f2; color:#696c64; font-size:13px; line-height:1.7; }
.product-catalog-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; margin-top:22px; }
.product-catalog-list,.product-catalog-cart { min-width:0; padding:24px; border:1px solid #e4e6df; border-radius:12px; background:#fff; }
.product-catalog-section-head h2 { margin:0; font-size:20px; }
.product-catalog-search { display:flex; gap:10px; align-items:end; margin-top:20px; }
.product-catalog-search label { display:grid; gap:7px; flex:1; min-width:0; color:#777a72; font-size:13px; }
.product-catalog-search input[type=search] { width:100%; min-width:0; min-height:44px; padding:8px 10px; border:1px solid #dedfd9; border-radius:7px; background:#fff; color:#262822; font:inherit; font-size:16px; }
.product-catalog-detail { margin-top:20px; padding:20px; border:1px solid #e4e6df; border-radius:10px; overflow-wrap:anywhere; }
.product-catalog-status { min-height:1.5em; color:#787b72; font-size:13px; line-height:1.6; }
.product-catalog-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.product-catalog-item,.product-cart-row { min-width:0; border:1px solid #e8e9e3; border-radius:9px; padding:16px; overflow-wrap:anywhere; }
.product-catalog-item h3 { margin:0; font-size:16px; }
.product-catalog-item p,.product-cart-row p { margin:6px 0; }
.product-catalog-price { font-size:15px; font-weight:600; color:#252721; }
.product-catalog-add,.product-cart-controls { display:flex; align-items:end; flex-wrap:wrap; gap:8px; margin-top:14px; }
.product-catalog input[type=text] { width:90px; min-width:0; min-height:44px; padding:8px; border:1px solid #dedfd9; border-radius:7px; background:#fff; color:#262822; font:inherit; }
.product-catalog-button,.product-catalog-text { min-height:44px; padding:0 13px; border:1px solid #d9dbd4; border-radius:7px; background:#fff; color:#262822; font:inherit; cursor:pointer; }
.product-catalog-button:hover,.product-catalog-text:hover { background:#f5f6f2; }
.product-catalog-button:disabled,.product-catalog-text:disabled { opacity:.45; cursor:not-allowed; }
.product-catalog-primary { width:100%; background:#252721; color:#fff; border-color:#252721; margin-top:16px; }
.product-catalog-primary:hover { background:#3a3d34; }
.product-catalog-checkout { width:100%; min-height:44px; margin-top:10px; }
.product-catalog-text { border:0; padding:0 4px; color:#686a62; }
.product-cart-rows { display:grid; gap:10px; }
.product-catalog-cart { scroll-margin-top:84px; }
.product-cart-select-all { display:flex; align-items:center; gap:10px; min-height:44px; margin:4px 0 8px; font-size:14px; }
.product-cart-select-all input,.product-cart-select input { width:18px; height:18px; accent-color:#252721; }
.product-cart-title { display:flex; align-items:flex-start; gap:10px; }
.product-cart-select { display:flex; align-items:center; justify-content:center; flex:0 0 44px; min-height:44px; cursor:pointer; }
.product-cart-title strong { display:block; padding-top:10px; }
.product-cart-controls label { display:flex; flex-direction:column; gap:5px; font-size:12px; color:#777a72; }
.product-cart-quantity { display:grid; gap:5px; min-width:0; }
.product-cart-stepper { display:flex; align-items:center; gap:4px; }
.product-cart-stepper input[type=text] { width:70px; text-align:center; }
.product-cart-stepper .product-catalog-button { width:44px; min-width:44px; padding:0; }
.product-cart-controls input[type=text],.product-cart-controls button { min-height:44px; }
.product-cart-controls button { min-width:44px; }
.product-cart-quantity-help { font-size:12px; color:#8a332b; }
.product-cart-quantity-help:empty { display:none; }
.product-cart-subtotal { font-size:13px; color:#595b56; }
.product-cart-total { margin:16px 0 0; padding:15px 0 0; border-top:1px solid #e8e9e3; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.product-cart-checkout-help { margin:8px 0 0; color:#595b56; font-size:12px; line-height:1.6; }
.checkout-cart-import { margin:20px 0; padding:18px 0; border-top:1px solid #e8e9e3; border-bottom:1px solid #e8e9e3; }
.checkout-cart-import h2 { margin:0 0 8px; font-size:16px; }
.checkout-cart-import p { margin:7px 0; color:#595b56; font-size:13px; line-height:1.6; }
.checkout-cart-import .checkout-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.checkout-cart-import button { min-height:44px; padding:8px 12px; border:1px solid #d7d9d1; border-radius:4px; background:#f4f5f1; color:#74776d; }
.product-catalog-empty { padding:22px 0; color:#94978e; font-size:13px; }
@media(min-width:1024px) {
  .product-catalog-results { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .product-cart-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.5fr); gap:6px 16px; align-items:center; }
  .product-cart-title { grid-column:1; grid-row:1; }
  .product-cart-row > .product-catalog-price { grid-column:2; grid-row:1; }
  .product-cart-subtotal { grid-column:3; grid-row:1; }
  .product-cart-spec { grid-column:1 / 4; grid-row:2; }
  .product-cart-controls { grid-column:4; grid-row:1 / 3; margin-top:0; }
  .product-cart-quantity-help { grid-column:4; grid-row:3; }
  .product-cart-total { text-align:right; }
  .product-catalog-cart > .product-catalog-primary,.product-catalog-cart > .product-catalog-checkout { display:block; width:min(360px,100%); margin-left:auto; }
  .product-cart-checkout-help { max-width:360px; margin-left:auto; }
}
@media(max-width:767px) {
  .product-catalog { padding:24px 16px 60px; }
  .product-catalog-head { align-items:flex-start; }
  .product-catalog-layout { grid-template-columns:1fr; }
  .product-catalog-list,.product-catalog-cart { padding:18px 16px; }
  .product-catalog-results { grid-template-columns:1fr; }
}

/* Independent cart: the same local draft and controls, arranged as C04/M04. */
.product-catalog [hidden],.product-catalog[hidden] { display:none !important; }
.product-catalog .product-catalog-cart {
  max-width:1120px; margin:0 auto; padding:0; border:0; border-radius:0; background:#fff;
}
.product-catalog-cart .cart-page-heading {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; padding:0 0 20px;
  border-bottom:1px solid #d9dadd;
}
.product-catalog-cart .cart-page-heading [data-cart-continue] { justify-self:start; margin:0; padding-inline:0; min-width:44px; min-height:44px; white-space:nowrap; }
.cart-page-heading > div { grid-column:2; text-align:center; }
.cart-page-heading h1[tabindex="-1"]:focus { outline:none; }
.cart-page-heading h1 {
  margin:0; color:#1d1d1f; font-family:"Songti SC",STSong,serif;
  font-size:clamp(32px,3.5vw,48px); line-height:1.2; font-weight:600;
}
.cart-page-count { margin:10px 0 0; color:#595b60; font-size:14px; line-height:1.6; }
.cart-page-layout {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,320px);
  gap:20px; align-items:start; padding-top:24px;
}
.cart-list,.cart-summary { min-width:0; border-radius:14px; }
.cart-list { border:1px solid #d9dadd; background:#fff; padding:4px 16px 16px; }
.cart-list-header {
  display:grid; grid-template-columns:minmax(180px,2fr) minmax(68px,.7fr) minmax(175px,1.3fr) minmax(84px,.8fr);
  align-items:center; gap:8px 12px; min-height:56px; border-bottom:1px solid #e6e6e6;
}
.cart-list-header .product-cart-select-all { grid-column:1; grid-row:1; justify-self:start; margin:0; }
.cart-list-columns { display:contents; color:#595b60; font-size:13px; line-height:1.4; }
.cart-list-columns span { min-width:0; grid-row:1; color:#595b60; font-size:13px; pointer-events:none; }
.cart-list-columns span:nth-child(1) { grid-column:1; padding-left:74px; }
.cart-list-columns span:nth-child(2) { grid-column:2; }
.cart-list-columns span:nth-child(3) { grid-column:3; }
.cart-list-columns span:nth-child(4) { grid-column:4; text-align:right; }
.cart-list .product-catalog-status { margin:10px 0; overflow-wrap:anywhere; }
.cart-list .product-cart-rows { gap:0; }
.cart-list .product-cart-row {
  display:grid; grid-template-columns:minmax(180px,2fr) minmax(68px,.7fr) minmax(175px,1.3fr) minmax(84px,.8fr);
  grid-template-areas:"title price controls subtotal" "help help help help";
  align-items:center; gap:8px 12px; min-width:0; min-height:112px;
  padding:20px 0; border:0; border-bottom:1px solid #eaeaea; border-radius:0;
}
.cart-list .product-cart-row:last-child { border-bottom:0; }
.cart-list .product-cart-title { grid-area:title; min-width:0; align-items:center; gap:8px; }
.cart-list .product-cart-title strong { padding:0; overflow-wrap:anywhere; }
.cart-list .product-cart-select { flex:0 0 44px; min-width:44px; min-height:44px; }
.cart-product-image {
  display:flex; align-items:center; justify-content:center; flex:0 0 80px;
  width:80px; height:80px; overflow:hidden; border-radius:10px;
  background:#f3f3f3; color:#777a72; font-size:11px; text-align:center;
}
.cart-product-image img { display:block; width:100%; height:100%; object-fit:contain; }
.cart-product-info { min-width:0; overflow-wrap:anywhere; }
.cart-product-info p { color:#595b60; font-size:12px; }
.cart-list .product-cart-row > .product-catalog-price { grid-area:price; min-width:0; overflow-wrap:anywhere; }
.cart-list .product-cart-subtotal { grid-area:subtotal; min-width:0; text-align:right; overflow-wrap:anywhere; }
.cart-list .product-cart-controls { grid-area:controls; min-width:0; margin:0; gap:4px; align-items:center; }
.cart-list .product-cart-quantity-help { grid-area:help; margin:0; }
.cart-list .product-cart-stepper input[type=text] { width:48px; padding:8px 4px; }
.cart-list .product-cart-stepper .product-catalog-button { width:44px; min-width:44px; }
.cart-list .product-cart-controls label { gap:2px; }
.cart-list .product-cart-spec { grid-column:auto; grid-row:auto; }
.cart-summary { padding:24px; background:#f3f3f3; }
.cart-summary h2 { margin:0; color:#1d1d1f; font-family:"Songti SC",STSong,serif; font-size:24px; line-height:1.4; }
.cart-summary .product-cart-total { margin:18px 0; padding:18px 0; border-top:1px solid #d9dadd; border-bottom:1px solid #d9dadd; color:#1d1d1f; text-align:left; font-size:16px; }
.cart-summary .product-catalog-primary { background:#fff; color:#252721; border-color:#c8cac3; }
.cart-summary .product-catalog-primary:hover { background:#eaeaea; }
.cart-summary .product-catalog-checkout { background:#2d3137; color:#fff; border-color:#2d3137; }
.cart-summary .product-catalog-checkout:hover { background:#454950; }
.cart-summary .product-cart-checkout-help { max-width:none; margin:10px 0 0; }
.cart-summary-note { margin:12px 0 0; color:#595b60; font-size:13px; line-height:1.6; }
.cart-summary .cart-sync { margin-top:18px; padding-top:14px; border-top:1px solid #d9dadd; }
.cart-summary .cart-sync summary { min-height:44px; cursor:pointer; color:#595b60; font-size:13px; }
@media(max-width:1023px) {
  .cart-page-layout { grid-template-columns:1fr; }
}
@media(max-width:767px) {
  .product-catalog .product-catalog-cart { padding:0; }
  .cart-page-heading { gap:8px; padding-bottom:18px; }
  .cart-page-heading h1 { font-size:32px; }
  .cart-page-layout { gap:16px; padding-top:16px; }
  .cart-list { padding:0; border:0; background:transparent; }
  .cart-list-header { display:flex; padding:0 4px; }
  .cart-list-columns { display:none; }
  .cart-list .product-cart-rows { gap:16px; }
  .cart-list .product-cart-row {
    grid-template-columns:minmax(0,1fr) minmax(144px,auto);
    grid-template-areas:"title title" "price controls" "subtotal subtotal" "help help";
    align-items:start; gap:8px; min-height:0; padding:14px 12px;
    border:0; border-radius:14px; background:#f3f3f3;
  }
  .cart-list .product-cart-row:last-child { border:0; }
  .cart-list .product-cart-title { align-items:flex-start; }
  .cart-list .product-cart-select { flex-basis:44px; min-width:44px; }
  .cart-product-image { flex-basis:72px; width:72px; height:72px; background:#eaeaea; }
  .cart-list .product-cart-row > .product-catalog-price { padding-top:12px; }
  .cart-list .product-cart-subtotal { text-align:left; }
  .cart-list .product-cart-controls { justify-content:flex-end; }
  .cart-list .product-cart-controls label { font-size:12px; }
  .cart-summary { padding:20px 4px; border-top:1px solid #d9dadd; border-radius:0; background:#fff; }
}
@media(max-width:359px) {
  .cart-list .product-cart-row { grid-template-columns:minmax(0,1fr) 144px; }
}
.product-catalog-photo{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f6f6f6;border-radius:8px;margin-bottom:12px}
.product-catalog-detail-photo{display:block;width:min(100%,360px);max-height:360px;object-fit:contain;margin:16px 0}
.cart-product-image img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.product-catalog{max-width:1440px;padding:44px 32px 80px;color:#1d1d1f}.product-catalog-head{padding-bottom:26px;border-bottom:1px solid #dedee0}.product-catalog-head h1{font-family:"Songti SC",STSong,serif;font-size:clamp(36px,4vw,52px);letter-spacing:0;line-height:1.2;font-weight:600}.product-catalog-kicker{font-size:14px;letter-spacing:0;color:#696969}.product-catalog-head .product-catalog-muted{font-size:15px}.product-catalog-nav button{border-radius:22px}.product-catalog-note{padding:0;background:transparent;color:#777;font-size:12px}.product-catalog-list{padding:0;border:0;border-radius:0}.product-catalog-section-head h2{font-family:"Songti SC",STSong,serif;font-size:25px}.product-catalog-search{align-items:end;padding-bottom:18px;border-bottom:1px solid #e4e4e4}.product-catalog-search input[type=search]{background:#f7f7f7;border-radius:22px;padding-inline:18px}.product-catalog-status{min-height:1.4em}.product-catalog-results{gap:12px}.product-catalog-item{display:flex;flex-direction:column;padding:0 0 16px;border:0;border-radius:12px;background:#f5f5f5;overflow:hidden}.product-catalog-item h3,.product-catalog-item>p,.product-catalog-item>.product-catalog-add{margin-left:16px;margin-right:16px}.product-catalog-item h3{font-size:17px;line-height:1.4}.product-catalog-item>p{margin-top:5px;margin-bottom:2px}.product-catalog-item>.product-catalog-price{margin-top:auto;padding-top:12px;color:#1d1d1f;font-size:20px;font-weight:700}.product-catalog-photo{aspect-ratio:1.12;margin:0 0 14px;border-radius:0;background:#ebebeb}.product-catalog-photo-empty{display:grid;place-items:center;color:#898989;font-size:13px}.product-catalog-add{margin-top:12px;align-items:center;gap:6px}.product-catalog-add input[type=text]{width:56px;min-height:40px}.product-catalog-add button{min-height:40px;border-radius:20px;padding-inline:12px}.product-catalog-add [data-product-detail-open]{background:transparent}.product-catalog-cart .cart-summary{background:#f4f4f4}.cart-page-heading{display:block}.cart-page-heading [data-cart-continue]{margin-bottom:12px}.cart-page-layout{gap:20px}.cart-summary .product-catalog-checkout{border-radius:10px}
.product-catalog-item>.product-catalog-add-feedback{font-size:13px;line-height:1.5;color:#454545}.product-catalog-item>.product-catalog-add-feedback:empty{display:none}.product-catalog-item>[data-product-add-view-cart]{align-self:flex-start;margin:6px 16px 0}
@media(min-width:1024px){.product-catalog-results{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1023px){.product-catalog-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.product-catalog{padding:28px 16px 56px}.product-catalog-head{display:block;padding-bottom:18px}.product-catalog-head h1{font-size:34px}.product-catalog-nav{justify-content:flex-start;margin-top:14px}.product-catalog-nav button{font-size:13px}.product-catalog-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-catalog-item{padding-bottom:12px}.product-catalog-item h3,.product-catalog-item>p,.product-catalog-item>.product-catalog-add{margin-left:12px;margin-right:12px}.product-catalog-item h3{font-size:15px}.product-catalog-item>.product-catalog-price{font-size:17px}.product-catalog-add{align-items:stretch}.product-catalog-add input[type=text]{width:48px}.product-catalog-add button{font-size:12px;padding-inline:9px}.product-catalog-search{flex-wrap:wrap}.product-catalog-search label{flex-basis:100%}.cart-page-heading{display:block}.cart-summary{background:#f4f4f4;border:0;border-radius:12px;padding:20px}}

/* C02/C04: align the reading area with the approved white UI spacing scale. */
@media(min-width:1280px){.product-catalog{padding-left:48px;padding-right:48px}}
.product-catalog-head h1{font-size:clamp(32px,3.4vw,48px)}
.product-catalog-head{margin-bottom:16px;padding-bottom:20px}
.product-catalog-layout{margin-top:16px}
.product-catalog-search{margin-top:16px;padding-bottom:16px}
.product-catalog-status:empty{display:none}
.product-catalog-results{gap:16px}
.product-catalog-add input[type=text],.product-catalog-add button{min-height:44px}
@media(max-width:767px){
  .product-catalog{padding:24px 16px 56px}
  .product-catalog-head{margin-bottom:12px;padding-bottom:16px}
  .product-catalog-head h1{font-size:32px}
  .product-catalog-nav{margin-top:12px}
  .product-catalog-layout{margin-top:12px}
  .product-catalog-search{margin-top:12px;padding-bottom:12px}
  .product-catalog-results{gap:12px}
  .product-catalog-add button{font-size:13px}
}

/* C02 and C03 share the original product data; the detail screen has its own layout. */
.product-card-image{display:block;width:100%;padding:0;border:0;background:#ebebeb;cursor:pointer;text-align:inherit}
.product-card-image .product-catalog-photo{margin:0 0 14px}
.product-card-name{display:inline;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.product-card-name:hover{text-decoration:underline;text-underline-offset:3px}
.product-catalog-detail{margin:0;padding:0;border:0;border-radius:0;overflow-wrap:anywhere}
.product-detail-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px}
.product-detail-back{min-height:44px;margin:0 0 24px;padding:0;border:0;background:transparent;color:#3c3f3d;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.product-detail-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,2fr);gap:48px;align-items:start}
.product-detail-media{display:grid;place-items:center;min-height:420px;overflow:hidden;border-radius:12px;background:#f3f3f3}
.product-detail-media .product-catalog-detail-photo{display:block;width:100%;height:100%;max-height:600px;margin:0;object-fit:contain}
.product-detail-no-photo{display:grid;place-items:center;min-height:420px;color:#595b60}
.product-detail-info{min-width:0;padding:8px 0}
.product-detail-title{margin:8px 0 12px;color:#1d1d1f;font:600 clamp(32px,3.4vw,48px)/1.2 "Songti SC",STSong,serif}
.product-detail-price{margin:20px 0 24px;color:#1d1d1f;font-size:28px;font-weight:600}
.product-detail-facts{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px 16px;margin:0;padding:20px 0;border-top:1px solid #d9dadd;border-bottom:1px solid #d9dadd;font-size:15px}
.product-detail-facts dt{color:#595b60}.product-detail-facts dd{min-width:0;margin:0;overflow-wrap:anywhere}
.product-detail-quantity{display:flex;align-items:center;gap:24px;margin:24px 0 16px;font-size:15px}
.product-detail-stepper{display:flex;align-items:center;overflow:hidden;border:1px solid #d9dadd;border-radius:8px}
.product-detail-stepper .product-detail-step{width:44px;min-height:44px;border:0;background:#f5f5f5;font:inherit;font-size:20px;cursor:pointer}
.product-detail-stepper .product-detail-step:disabled{color:#9c9c9c;cursor:not-allowed}
.product-detail-stepper input[type=text]{width:64px;min-height:44px;padding:8px 4px;border:0;border-right:1px solid #d9dadd;border-left:1px solid #d9dadd;border-radius:0;text-align:center}
.product-detail-add{width:100%;min-height:48px;padding:10px 16px;border:1px solid #2d3137;border-radius:24px;background:#2d3137;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.product-detail-add:disabled{border-color:#d9dadd;background:#eaeaea;color:#595b60;cursor:not-allowed}
.product-detail-feedback{margin:12px 0 0;color:#3f4540;font-size:14px;line-height:1.5}.product-detail-feedback:empty{display:none}
.product-detail-cart-link{min-height:44px;padding:0;border:0;background:transparent;color:#2d3137;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.product-detail-note{margin:16px 0 0;color:#595b60;font-size:13px;line-height:1.6}
@media(max-width:767px){
  .product-detail-back{margin-bottom:16px}
  .product-detail-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .product-detail-media,.product-detail-no-photo{min-height:260px}
  .product-detail-media .product-catalog-detail-photo{max-height:420px}
  .product-detail-info{padding:0}
  .product-detail-title{font-size:32px}
  .product-detail-price{font-size:24px;margin:16px 0 20px}
  .product-detail-facts{grid-template-columns:80px minmax(0,1fr)}
}

/* C04/M04: keep the cart aligned to the same content grid as the shop. */
.product-catalog .product-catalog-cart { width:100%; max-width:none; }
@media (min-width:1024px) {
  .cart-page-layout { grid-template-columns:minmax(0,1fr) minmax(280px,360px); }
  .cart-list-header,.cart-list .product-cart-row {
    grid-template-columns:minmax(0,2fr) minmax(72px,.7fr) minmax(150px,1.3fr) minmax(78px,.8fr);
  }
}
@media (max-width:767px) {
  .cart-product-image { flex-basis:88px; width:88px; height:88px; }
  .cart-list .product-cart-title { align-items:flex-start; }
  .cart-product-info { flex:1; }
  .cart-list .product-cart-row { gap:10px 8px; }
}
@media (min-width:768px) and (max-width:1199px) {
  .cart-page-layout { grid-template-columns:minmax(0,1fr); }
}

/* C02: image-led quick selection and the persistent cart from the reference. */
.product-catalog-item { position:relative; padding:0; border-radius:12px; background:#f5f5f5; }
.product-card-main { display:flex; flex:1; flex-direction:column; width:100%; min-width:0; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.product-card-main:disabled { cursor:not-allowed; }
.product-card-main:focus-visible,.product-card-detail:focus-visible,.product-floating-cart:focus-visible { outline:3px solid #555; outline-offset:3px; }
.product-card-media { position:relative; display:block; width:100%; aspect-ratio:1 / 1; overflow:hidden; background:#ededed; }
.product-card-media .product-catalog-photo { display:block; width:100%; height:100%; margin:0; border-radius:0; object-fit:contain; transition:transform .22s ease; }
.product-card-media .product-catalog-photo-empty { display:grid; place-items:center; }
.product-card-main:not(:disabled):hover .product-catalog-photo { transform:scale(1.035); }
.product-card-selected { position:absolute; top:10px; right:10px; max-width:calc(100% - 20px); padding:5px 9px; overflow:hidden; border-radius:20px; background:rgba(33,33,33,.88); color:#fff; font-size:11px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.product-card-info { display:flex; flex:1; flex-direction:column; gap:5px; width:100%; min-width:0; padding:12px 12px 4px; }
.product-card-title { display:-webkit-box; min-height:2.6em; overflow:hidden; color:#242520; font-size:14px; font-weight:600; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; }
.product-card-availability { color:#777; font-size:11px; line-height:1.4; }
.product-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:auto; padding-top:6px; }
.product-card-price { min-width:0; color:#202020; font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.product-card-action { flex:none; color:#565656; font-size:12px; }
.product-card-main:disabled .product-card-action { color:#8b8b8b; }
.product-card-detail { align-self:flex-start; min-height:44px; padding:0 12px; border:0; background:transparent; color:#717171; font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.product-card-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.product-catalog-item > .product-catalog-add-feedback { margin:0 12px 10px; color:#4e4e4e; font-size:12px; }
.product-floating-cart { position:fixed; right:32px; bottom:24px; z-index:90; display:flex; align-items:center; gap:12px; max-width:min(530px,calc(100vw - 32px)); min-height:60px; padding:9px 10px 9px 18px; border:0; border-radius:32px; background:#292c2f; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.18); font:inherit; text-align:left; cursor:pointer; }
.product-floating-icon { position:relative; flex:none; width:21px; height:16px; border:1.5px solid currentColor; border-top:0; border-radius:0 0 4px 4px; }
.product-floating-icon::before { position:absolute; left:3px; top:-7px; width:11px; height:9px; border:1.5px solid currentColor; border-bottom:0; border-radius:8px 8px 0 0; content:''; }
.product-floating-summary,.product-floating-total { min-width:0; overflow:hidden; font-size:12px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.product-floating-total { padding-left:12px; border-left:1px solid #777; }
.product-floating-link { flex:none; padding:11px 14px; border-radius:22px; background:#fff; color:#252525; font-size:12px; font-weight:600; }
.product-floating-bump { animation:product-cart-bump .32s ease; }
.product-cart-flight { position:fixed; z-index:110; pointer-events:none; object-fit:contain; border-radius:10px; animation:product-flight .62s cubic-bezier(.2,.7,.25,1) both; }
@keyframes product-flight { 0% { transform:translate(0,0) scale(1); opacity:.9; } 55% { opacity:.85; } 100% { transform:translate(var(--cart-flight-x),var(--cart-flight-y)) scale(.12); opacity:0; } }
@keyframes product-cart-bump { 50% { transform:scale(1.045); } }
@media (max-width:767px) {
  .product-card-info { padding:10px 10px 2px; }
  .product-card-title { font-size:13px; }
  .product-card-price { font-size:14px; }
  .product-card-action,.product-card-detail { font-size:11px; }
  .product-card-detail { padding-inline:10px; }
  .product-floating-cart { right:16px; bottom:max(14px,env(safe-area-inset-bottom)); left:16px; gap:8px; max-width:none; min-height:56px; padding-left:14px; }
  .product-floating-summary,.product-floating-total { font-size:11px; }
  .product-floating-total { flex:1; padding-left:8px; }
  .product-floating-link { padding:10px 11px; font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
  .product-card-media .product-catalog-photo { transition:none; }
  .product-floating-bump,.product-cart-flight { animation:none; }
}

/* C04/M04: the local empty draft has its own layout; account sync stays reachable. */
.cart-empty-state { display:flex; min-height:310px; padding:36px 20px; align-items:center; justify-content:center; flex-direction:column; text-align:center; }
.cart-empty-icon { position:relative; width:52px; height:43px; margin:12px 0 20px; border:2px solid #8b8b86; border-radius:5px 5px 9px 9px; }
.cart-empty-icon::before { position:absolute; left:14px; top:-13px; width:20px; height:15px; border:2px solid #8b8b86; border-bottom:0; border-radius:12px 12px 0 0; content:''; }
.cart-empty-state h2 { margin:0; color:#252721; font:600 21px/1.4 "Songti SC",STSong,serif; }
.cart-empty-state p { max-width:320px; margin:10px 0 20px; color:#696c64; font-size:13px; line-height:1.7; }
.cart-empty-browse { min-height:44px; padding:0 25px; border:1px solid #2d3137; border-radius:22px; background:#2d3137; color:#fff; font:inherit; cursor:pointer; }
.cart-empty-browse:hover { background:#454950; }
.cart-empty-browse:focus-visible { outline:3px solid #777; outline-offset:3px; }
.product-catalog-cart[data-cart-state="empty"] .cart-list { padding-top:12px; }
.product-catalog-cart[data-cart-state="empty"] .cart-summary { padding-top:12px; }
.product-catalog-cart[data-cart-state="empty"] .cart-summary .cart-sync { margin-top:0; padding-top:0; border-top:0; }
.product-catalog-cart[data-cart-state="empty"] .cart-summary .product-catalog-primary { margin-bottom:18px; }
@media(max-width:767px) {
  .cart-empty-state { min-height:260px; padding:28px 12px; }
  .product-catalog-cart[data-cart-state="empty"] .cart-summary { padding:16px; }
}
.product-catalog-category{display:flex;align-items:center;gap:8px;overflow-x:auto;margin:16px 0;color:#41443e;font-size:14px}
.product-catalog-category button{flex:none;min-height:44px;padding:8px 18px;border:0;border-radius:24px;background:transparent;color:#41443e;white-space:nowrap;cursor:pointer}
.product-catalog-category button[aria-pressed="true"]{background:#e8e8e6;color:#242520}
@media(max-width:480px){.product-catalog-category{gap:2px}.product-catalog-category button{padding:8px 10px;font-size:13px}}
.product-catalog-pagination{display:flex;justify-content:center;gap:12px;margin:28px 0}

.product-detail-media:has(.product-detail-thumbnails){flex-direction:column}.product-detail-thumbnails{display:flex;gap:8px;flex-wrap:wrap;padding:10px}.product-detail-thumbnails button{padding:3px;border:1px solid #ccc;background:white;border-radius:4px}.product-detail-thumbnails button[aria-pressed=true]{border-color:#333}.product-detail-thumbnails img{display:block;width:48px;height:42px;object-fit:contain}.product-detail-variants{display:grid;gap:6px;margin:14px 0}.product-detail-variants select{max-width:100%;min-height:42px}

@media screen and (min-width:768px) {
  .cart-list-header {min-height:var(--bb-table-head,44px);border-bottom:0;box-shadow:inset 0 -1px #e6e6e6}
  .cart-list-columns span {font-size:var(--bb-table-text,14px)}
}

.product-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.product-card-steps:not([hidden]) { display:inline-flex; align-items:center; margin-inline-end:5px; }
.product-card-steps button { min-width:36px; min-height:44px; border:0; background:transparent; color:inherit; font-size:18px; cursor:pointer; }
.product-card-steps output { max-width:6ch; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }

/* C04 / M04 — the shopping list keeps the same columns at every width. */
.product-catalog-cart .cart-list{min-width:0;align-self:start;background:#fff;border:1px solid #d9dcd8;border-radius:8px;padding:0;overflow:hidden}
.cart-sheet-scroll{width:100%;overflow-x:auto}
.cart-sheet-scroll[hidden]{display:none}
.cart-sheet{width:100%;min-width:590px;border-collapse:collapse;table-layout:fixed;color:#242823;font-size:14px;line-height:1.35;font-variant-numeric:tabular-nums}
.cart-sheet th,.cart-sheet td{padding:7px 9px;border-bottom:1px solid #dfe2dd;border-right:1px solid #ebede9;text-align:left;vertical-align:middle}
.cart-sheet th{height:38px;background:#f1f3ef;font-size:13px;font-weight:600;white-space:nowrap}
.cart-sheet th:first-child,.cart-sheet td:first-child{width:55px;text-align:center}
.cart-sheet th:nth-child(3),.cart-sheet th:nth-child(5){width:13%;text-align:right}
.cart-sheet th:nth-child(4){width:112px;text-align:center}
.cart-sheet th:last-child,.cart-sheet td:last-child{width:58px;text-align:center;border-right:0}
.cart-sheet td.cart-sheet-number{text-align:right;overflow-wrap:anywhere}
.cart-sheet .product-cart-select-all{display:grid;place-items:center;min-height:24px;margin:0;cursor:pointer}
.cart-sheet input[type=checkbox]{display:block;width:16px;height:16px;margin:0 auto;accent-color:#30392e}
.cart-sheet-product{overflow-wrap:anywhere}.cart-sheet-product strong,.cart-sheet-product small{display:block}
.cart-sheet-product strong{font-weight:600}.cart-sheet-product small{margin-top:2px;color:#626861;font-size:12px}
.cart-sheet-stepper{display:flex;align-items:center;justify-content:center;margin:auto}
.cart-sheet-stepper button.product-catalog-button,.cart-sheet-stepper input[type=text]{min-width:0;min-height:28px;height:28px;padding:0;border:1px solid #cdd2cb;background:white;color:inherit;text-align:center;border-radius:0}
.cart-sheet-stepper button.product-catalog-button{width:24px;font-size:16px}.cart-sheet-stepper input[type=text]{width:42px;border-inline:0;font-size:14px}
.cart-sheet-actions button{min-height:26px;padding:2px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.cart-sheet .product-cart-quantity-help{margin:0;font-size:12px}.cart-sheet .product-cart-quantity-help:empty{display:none}
.cart-sheet-note,.cart-list>.product-catalog-status{font-size:12px;color:#626861;margin:6px 12px}.cart-list>.product-catalog-status:empty{display:none}
@media(max-width:640px){.cart-sheet{min-width:520px;font-size:13px}.cart-sheet th,.cart-sheet td{padding:6px}.cart-sheet th:first-child,.cart-sheet td:first-child{width:38px}.cart-sheet th:nth-child(4){width:98px}.cart-sheet th:last-child,.cart-sheet td:last-child{width:44px}.cart-sheet-stepper input[type=text]{font-size:16px}.cart-sheet-stepper button.product-catalog-button,.cart-sheet-stepper input[type=text]{min-height:34px}}

@media(max-width:640px){
  .cart-sheet{min-width:316px;font-size:12px}
  .cart-sheet th,.cart-sheet td{padding:5px 3px}
  .cart-sheet th{font-size:12px}
  .cart-sheet th:first-child,.cart-sheet td:first-child{width:26px}
  .cart-sheet th:nth-child(3),.cart-sheet th:nth-child(5){width:64px}
  .cart-sheet th:nth-child(4){width:78px}
  .cart-sheet th:last-child,.cart-sheet td:last-child{width:32px}
  .cart-sheet-product small{font-size:11px}
  .cart-sheet-stepper button.product-catalog-button{width:20px}
  .cart-sheet-stepper input[type=text]{width:32px}
  .cart-sheet-number{font-size:12px;letter-spacing:-.02em}
  .cart-sheet-actions button{font-size:12px;white-space:nowrap;min-width:0;padding:0}
}
@media(max-width:359px){
  .cart-sheet{min-width:284px}
  .cart-sheet th:nth-child(3),.cart-sheet th:nth-child(5){width:60px}
  .cart-sheet th:nth-child(4){width:70px}
  .cart-sheet th:last-child,.cart-sheet td:last-child{width:28px}
  .cart-sheet-stepper input[type=text]{width:24px}
}

/* The catalogue heading, query and category controls share the product grid. */
.product-catalog[data-view="catalog"] { padding-top:28px; padding-bottom:104px; }
.product-catalog[data-view="catalog"] .product-catalog-layout { margin-top:0; }
.product-catalog-content > .product-catalog-head {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(232px,360px);
  grid-template-areas:"title search" "categories stock"; align-items:center;
  column-gap:20px; row-gap:18px; margin:0 0 16px; padding:0 0 12px;
}
.product-catalog-head > div:first-child { grid-area:title; }
.product-catalog-content .product-catalog-head h1 { margin:0; font-size:clamp(26px,2.15vw,34px); line-height:1.25; }
.product-catalog-head .product-catalog-search {
  grid-area:search; display:flex; flex-wrap:nowrap; align-items:center; gap:0;
  margin:0; padding:0; border:1px solid #d9dcd7; border-radius:9px; background:#fafbf9;
}
.product-catalog-head .product-catalog-search:focus-within { border-color:#545b53; }
.product-catalog-head .product-catalog-search input[type=search] {
  flex:1; width:0; border:0; background:transparent; padding:0 12px; border-radius:8px; font:inherit; font-size:14px;
}
.product-catalog-head .product-catalog-search button {
  min-height:44px; padding:0 14px; border:0; border-radius:8px; background:transparent; font-size:14px; font-weight:600;
}
.product-catalog-head .product-catalog-category { grid-area:categories; gap:4px; margin:0; }
.product-catalog-category button { padding:6px 14px; font:inherit; }
.product-catalog-head select { grid-area:stock; justify-self:end; min-height:44px; max-width:100%; border:0; background:#fff; color:#454943; font:inherit; font-size:14px; cursor:pointer; }
.product-query-feedback { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.product-query-feedback .product-catalog-status { margin:12px 0; color:#535852; }
.product-query-feedback button { margin:4px 0; }
@media(min-width:1280px) {
  #site-entry-products .product-catalog[data-view="catalog"] { padding-inline:32px; }
}
@media(max-width:767px) {
  .product-catalog[data-view="catalog"] { padding-top:18px; }
  .product-catalog-content > .product-catalog-head {
    grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"title stock" "search search" "categories categories";
    gap:8px 12px; margin-bottom:8px; padding-bottom:6px;
  }
  .product-catalog-head .product-catalog-category { justify-content:space-between; }
  .product-catalog-head .product-catalog-category button { min-width:44px; padding-inline:10px; font-size:14px; }
}

.cart-sheet-total {
  display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline;
  gap:4px 12px; padding:12px; background:#f6f7f4; border-top:1px solid #d9ddd5;
  color:#292d28; font-size:14px;
}
.cart-sheet-total strong { font-size:19px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.cart-sheet-total small { flex-basis:100%; color:#535a50; font-size:12px; text-align:right; overflow-wrap:anywhere; }
.cart-sheet-total[hidden],.cart-sheet-total small:empty { display:none; }

.cart-page-layout.cart-checkout-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
.cart-checkout-layout .cart-sheet-total { align-items:center; }
.cart-sheet-total .product-catalog-checkout { width:auto; margin:0; padding:0 20px; background:#2d3137; color:white; }
.cart-sheet-total .product-catalog-checkout:disabled { opacity:.5; }
.cart-sheet-total .product-cart-checkout-help { order:2; flex-basis:100%; margin:0; max-width:none; text-align:right; }
.cart-sheet-total small { order:1; }
.cart-sheet-total .product-cart-checkout-help:empty { display:none; }
.cart-checkout-layout > .cart-sync { justify-self:start; max-width:100%; }
.cart-checkout-layout > .cart-sync summary { cursor:pointer; padding-block:8px; font-size:13px; }
