/* MKV TEX — catalogue polish: cleaner cards, disciplined imagery, gold accents */

/* === Phone gate on the shared common link === */
.gate-card{width:min(460px,100%);margin:clamp(24px,8vh,80px) auto;background:#fff;border:1px solid #e6dcc7;border-top:3px solid #c99a42;border-radius:4px;padding:28px 26px 26px;box-shadow:0 12px 40px rgba(6,24,42,.10)}
.gate-card h1{font-family:var(--serif);font-weight:500;font-size:clamp(1.7rem,4vw,2.2rem);line-height:1.1;margin:6px 0 10px;color:#0f2033;letter-spacing:-.02em}
.gate-lede{margin:0 0 18px;color:var(--muted);font-size:.92rem;line-height:1.5}
.gate-error{margin:0 0 14px;padding:9px 11px;background:#fbeceb;border:1px solid #e6b8b1;border-radius:2px;color:#8f1e13;font-size:.87rem;font-weight:500}
.gate-form{display:flex;flex-direction:column;gap:12px}
.gate-field{display:flex;flex-direction:column;gap:5px}
.gate-field label{font-size:.78rem;font-weight:700;color:#3a2e15;letter-spacing:.02em;display:flex;align-items:center;gap:6px}
.gate-field label em{font-style:normal;color:#c22a1c}
.gate-field label .opt{font-weight:500;font-size:.68rem;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;padding:1px 6px;background:#f3ecda;border-radius:2px}
.gate-field input{width:100%;min-height:46px;padding:8px 12px;border:1px solid #d8cdb2;background:#fffdf7;border-radius:2px;font-size:1rem;color:var(--ink)}
.gate-field input:focus{border-color:#c99a42;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.gate-submit{width:100%;padding:14px;font-size:1.02rem;margin-top:4px}
.gate-note{margin:14px 0 0;color:var(--muted);font-size:.78rem;line-height:1.45;text-align:center}
/* PIN steps (migration 040) */
.gate-ok{margin:0 0 14px;padding:9px 11px;background:#edf7f2;border:1px solid #b6dcc8;border-radius:2px;color:#1f5e3f;font-size:.87rem;font-weight:500}
.gate-help{display:block;width:100%;margin:0 0 14px;padding:12px;text-align:center;background:#1f7e4a;border-color:#1f7e4a;color:#fff}
.gate-field input.gate-pin{font-size:1.5rem;letter-spacing:.6em;text-align:center;font-variant-numeric:tabular-nums}
.gate-note a{color:#8a6420;font-weight:600}
.gate-back{margin:10px 0 0;text-align:center}
.gate-back button{border:0;background:none;padding:4px;cursor:pointer;color:var(--muted);font:inherit;font-size:.82rem;text-decoration:underline}

/* === Your shop, and the order to repeat ===
   Sits above the catalogue for a buyer we can identify. Quantities only — never a rate,
   never a total. What they paid last time is not shown at all. */
.shop-card{display:grid;grid-template-columns:1fr;gap:14px;margin:0 0 18px;padding:16px 18px;background:#fff;border:1px solid #e6dcc7;border-left:3px solid #c99a42;border-radius:4px}
@media(min-width:760px){.shop-card{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:24px;align-items:start}}
.shop-card-kicker{display:block;font:700 .64rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#a98634;margin-bottom:5px}
.shop-card-who b{display:block;font-family:var(--serif);font-size:1.2rem;font-weight:500;color:#0f2033;line-height:1.2}
.shop-card-who small{display:block;margin-top:3px;color:var(--muted);font-size:.8rem}
.shop-card-items{list-style:none;margin:0 0 12px;padding:0;font-size:.82rem}
.shop-card-items li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px dashed #eee5d2}
.shop-card-items li:last-child{border-bottom:0}
.shop-card-items i{font-style:normal;color:var(--muted);font-size:.74rem}
.shop-card-items b{white-space:nowrap;color:#0f2033;font-weight:700}
.shop-card-items li.is-gone span,.shop-card-items li.is-gone b{color:#b0a892;font-weight:500}
.shop-card-repeat{width:100%;min-height:46px;padding:12px 16px;background:#c99a42;color:#fff;border:1px solid #c99a42;border-radius:2px;font:700 .92rem var(--sans);cursor:pointer}
.shop-card-repeat:hover{background:#b3862f;border-color:#b3862f}
.shop-card-repeat:focus-visible{outline:2px solid #0f2033;outline-offset:2px}
.shop-card-hint{display:block;margin-top:7px;color:var(--muted);font-size:.75rem;line-height:1.45}
.shop-card-switch{margin-top:8px}
.shop-card-switch button{padding:0;border:0;background:none;color:#8a6a24;font:600 .74rem var(--sans);text-decoration:underline;cursor:pointer}
.shop-card-switch button:hover{color:#0f2033}

/* Coming back on a browser that already knows the number: one tap, not typing again.
   Only the last four digits are shown, so a shared phone gives nothing away. */







/* Shown only after an unknown number is refused: the way in, rather than a dead end. */
.gate-register{margin-top:18px;padding-top:16px;border-top:1px dashed #e0d3b4}
.gate-register-lede{margin:0 0 12px;color:var(--muted);font-size:.86rem;line-height:1.5}
.gate-register-open{width:100%;min-height:48px;padding:13px;background:#fffdf7;border:1px solid #c99a42;border-radius:2px;color:#8a6a24;font:700 .95rem var(--sans);letter-spacing:.02em;cursor:pointer}
.gate-register-open:hover{background:#c99a42;color:#fff}
.gate-register-open:focus-visible{outline:2px solid #0f2033;outline-offset:2px}
/* The shared sheet is styled as an overlay card; inside the gate it sits in the flow. */
.gate-register-form .request-sheet{position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;box-shadow:none;background:transparent;border-radius:0}
.gate-register-form .request-sheet-header{padding-left:0;padding-right:0}

/* Viewer's own number stamped faintly across the price list — discourages forwarding. */
.price-watermark{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;user-select:none}
.price-watermark span{position:absolute;white-space:nowrap;font:700 15px/1 var(--sans);letter-spacing:.06em;color:#06182a;opacity:.055;transform:rotate(-28deg);transform-origin:left center}
@media print{.price-watermark span{opacity:.13}}
/* The grid is 4 columns 28% apart, which is about 105px on a phone -- but the mark is
   "Shop name · 9876543210", roughly 190px wide. The columns therefore overlap and the
   screen reads as a solid block of text rather than a faint stamp. Drop to two columns
   and lighten it. The number is still on every screenful, which is the whole point. */
@media(max-width:520px){.price-watermark span{font-size:11px;opacity:.045}.price-watermark span:nth-child(2n){display:none}}

/* === Teaser mode (anonymous visitors: no prices, "Request price" flow) === */
.teaser-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:12px 0 6px;padding:16px 20px;background:linear-gradient(135deg,#0e2438,#0a1c2b);color:#fff;border:1px solid #c99a42;border-radius:4px;box-shadow:0 8px 22px rgba(6,24,42,.18)}
.teaser-cta-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 260px}
.teaser-cta-copy strong{font-family:var(--serif);font-weight:500;font-size:1.4rem;color:#efd08a;letter-spacing:-.01em}
.teaser-cta-copy span{color:#d6dde2;font-size:.92rem;line-height:1.45}
.teaser-cta-btn{white-space:nowrap;flex:0 0 auto}
@media(max-width:520px){
  .teaser-cta{padding:14px 16px;flex-direction:column;align-items:stretch;gap:12px}
  .teaser-cta-copy strong{font-size:1.15rem}
  .teaser-cta-copy span{font-size:.85rem}
  .teaser-cta-btn{width:100%;text-align:center}
}
.teaser-price-note{margin:10px 0 8px;color:#8f6a20;font-weight:700;font-size:.86rem;letter-spacing:.04em;text-transform:uppercase}
.teaser-request{display:block;width:100%;padding:10px 14px;background:#06182a;color:#efd08a;border:1px solid #c99a42;border-radius:2px;font:600 .88rem var(--sans);cursor:pointer;text-align:center;transition:background .15s,color .15s}
.teaser-request:hover{background:#c99a42;color:#0e1b2e}

/* Request-sheet modal (bottom-sheet on mobile, centered card on desktop) */
.request-sheet-overlay{position:fixed;inset:0;z-index:1000;background:rgba(3,14,24,.72);display:grid;place-items:end center;padding:0}
.request-sheet-overlay[hidden]{display:none}
.request-sheet{position:relative;width:min(480px,100%);max-height:92vh;overflow-y:auto;background:#fff;border-top:3px solid #c99a42;border-radius:12px 12px 0 0;padding:22px 22px 26px;box-shadow:0 -12px 40px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:12px}
.request-sheet-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid #d5cdb5;background:#fff;color:#0e1b2e;font-size:1.4rem;line-height:1;cursor:pointer;z-index:2}
.request-sheet-close:hover{background:#f4efe4}
.request-sheet-header{display:flex;flex-direction:column;gap:4px;margin-bottom:4px;padding-right:36px}
.request-kicker{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#a5761b}
.request-sheet-header h2{font-family:var(--serif);font-weight:500;font-size:1.5rem;line-height:1.15;margin:0;color:#0f2033;letter-spacing:-.01em}
.request-sheet-header p{margin:2px 0 0;color:var(--muted);font-size:.85rem;line-height:1.4}
.request-field{display:flex;flex-direction:column;gap:5px}
.request-field label{font-size:.78rem;font-weight:700;color:#3a2e15;letter-spacing:.02em;display:flex;align-items:center;gap:6px}
.request-field label em{font-style:normal;color:#c22a1c;font-weight:700}
.request-field label .opt{font-weight:500;font-size:.68rem;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;padding:1px 6px;background:#f3ecda;border-radius:2px}
.request-field input{width:100%;min-height:44px;padding:8px 12px;border:1px solid #d8cdb2;background:#fffdf7;border-radius:2px;font-size:1rem;color:var(--ink);transition:border-color .15s,box-shadow .15s,background .15s}
.request-field input:focus{border-color:#c99a42;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.request-field input::placeholder{color:#a29a86;font-weight:400}
.request-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:400px){.request-two-col{grid-template-columns:1fr}}

.request-state-field{margin-top:-4px}
.request-state-field .request-state-display{padding:8px 12px;background:#f4efe4;border:1px solid #d8cdb2;border-radius:2px;font-weight:600;color:#0f2033;font-size:.95rem;min-height:38px;display:flex;align-items:center}
.request-state-field.is-unknown .request-state-display{background:#fbeceb;border-color:#e6b8b1;color:#8f1e13;font-weight:600}

.request-buyer-types{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.buyer-type{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d8cdb2;border-radius:3px;background:#fffdf7;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;min-height:0}
.buyer-type:hover{border-color:#c99a42;background:#fff}
/* Hard-pinned 16px square. width/height/min/max/aspect-ratio + align-self all set so no
   parent flex stretch or inherited form styling can turn it into an oval. */
.buyer-type input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;
  box-sizing:border-box;margin:0;padding:0;
  flex:0 0 16px;width:16px;height:16px;
  min-width:16px;max-width:16px;min-height:16px;max-height:16px;
  aspect-ratio:1;align-self:center;
  border:1.5px solid #b9ac8c;border-radius:3px;background:#fff;
  cursor:pointer;position:relative;transition:border-color .15s,background .15s
}
.buyer-type input[type="checkbox"]::after{
  content:"";position:absolute;left:4.5px;top:1px;
  width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;
  transform:rotate(45deg) scale(0);transition:transform .12s ease-in-out
}
.buyer-type input[type="checkbox"]:checked{background:#c99a42;border-color:#c99a42}
.buyer-type input[type="checkbox"]:checked::after{transform:rotate(45deg) scale(1)}
.buyer-type input[type="checkbox"]:focus-visible{outline:2px solid #c99a42;outline-offset:2px}
.buyer-type span{font-size:.85rem;font-weight:500;color:#0f2033;line-height:1.25;min-width:0}
.buyer-type:has(input:checked){border-color:#c99a42;background:#fdf7e6}
.request-other-input{width:100%;min-height:40px;margin-top:7px;padding:8px 12px;border:1px solid #d8cdb2;background:#fffdf7;border-radius:2px;font-size:.95rem;color:var(--ink)}
.request-other-input:focus{border-color:#c99a42;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.request-other-input[hidden]{display:none}
@media(max-width:400px){.request-buyer-types{grid-template-columns:1fr}}

.request-error{margin:0;padding:8px 10px;background:#fbeceb;border:1px solid #e6b8b1;border-radius:2px;color:#8f1e13;font-size:.85rem;font-weight:500}
.request-error[hidden]{display:none}

.request-sheet-submit{width:100%;padding:14px;font-size:1.02rem;margin-top:6px}
.request-note{margin:2px 0 0;color:var(--muted);font-size:.76rem;line-height:1.4;text-align:center}
@media(min-width:640px){
  .request-sheet-overlay{place-items:center;padding:20px}
  .request-sheet{border-radius:6px;border-top:3px solid #c99a42;box-shadow:0 20px 60px rgba(0,0,0,.4);max-height:calc(100vh - 40px)}
}


.catalogue-page{padding:56px 0 160px;position:relative;z-index:1}
.catalogue-hero{align-items:end}
.catalogue-hero h1{font-family:var(--serif);letter-spacing:-.02em}
.buyer-note{border-radius:2px;box-shadow:0 1px 0 rgba(201,154,66,.35) inset}

.catalogue-search{position:relative;margin:22px 0 6px}
.catalogue-search input{border-radius:2px;box-shadow:0 1px 0 rgba(14,27,46,.04)}
.catalogue-search input:focus{outline:2px solid #c99a42;outline-offset:1px}

.catalogue-filters{gap:8px;padding-bottom:8px}
.filter-chip{font-weight:600;letter-spacing:.01em;transition:background .15s,color .15s,border-color .15s}
.filter-chip:hover{border-color:#c99a42;color:#8f6a20}
.filter-chip.is-active{background:#06182a;border-color:#06182a;color:#efd08a}

.catalogue-range{margin-top:36px}
.range-heading{font-family:var(--serif);font-weight:500;font-size:clamp(1.35rem,2.4vw,1.9rem);color:#0f2033;letter-spacing:-.01em;margin:0 0 14px;padding-bottom:8px;border-bottom:1px solid #e6dcc7;position:relative}
.range-heading::after{content:"";position:absolute;left:0;bottom:-1px;width:44px;height:2px;background:#c99a42}

/* --- Card frame --- */
.catalogue-grid{gap:22px}
.catalogue-card{border-radius:2px;border-color:#e6dcc7;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;background:#fff}
.catalogue-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(6,24,42,.10);border-color:#d7c491}
.catalogue-card.is-selected{border-color:#b68836;box-shadow:0 10px 26px rgba(98,70,26,.18)}

/* --- Media area ---
   Whole towel visible (contain), but a tight SQUARE frame with minimal padding so
   landscape/portrait photos both fit with the least possible cream space. */
.catalogue-card-media{position:relative;background:#fff;overflow:hidden;border-bottom:1px solid #efe6d1;display:block}
.catalogue-card-frame{position:relative;background:#faf6ec;overflow:hidden;aspect-ratio:1/1}
.catalogue-card-media .catalogue-card-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;padding:4px;background:#faf6ec}
.catalogue-card-media .card-placeholder{position:absolute;inset:0;background:linear-gradient(145deg,#efe6d3,#c9b28d)}

/* photo count pill */
.photo-count{position:absolute;left:10px;top:10px;padding:4px 9px;background:rgba(6,24,42,.78);color:#fff;font-size:.72rem;font-weight:600;letter-spacing:.04em;border-radius:2px;pointer-events:none;display:inline-flex;align-items:center;gap:5px;z-index:2}
.photo-count::before{content:"◨";font-size:.85rem;color:#efd08a}

/* thumbnails as a tight strip BELOW the main image — no more overlay hiding the product */
.catalogue-thumbnails{position:static;display:flex;gap:5px;padding:6px 8px;background:#fff;border-top:1px solid #f0e8d6;overflow-x:auto;scrollbar-width:none}
.catalogue-thumbnails::-webkit-scrollbar{display:none}
.catalogue-thumbnail{flex:0 0 46px;width:46px;height:46px;padding:0;border:1px solid #e2d6b8;background:#fff;overflow:hidden;box-shadow:none;opacity:.92;cursor:pointer;border-radius:2px;transition:border-color .15s,opacity .15s}
.catalogue-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.catalogue-thumbnail:hover{opacity:1;border-color:#c99a42}
.catalogue-thumbnail.is-active{border-color:#c99a42;box-shadow:0 0 0 1px #c99a42;opacity:1}
.catalogue-thumbnail:focus-visible{outline:2px solid #c99a42;outline-offset:2px}

/* --- Favourite --- */
.favourite{width:36px;height:36px;background:rgba(255,255,255,.92);color:#8f3c2e;border:1px solid rgba(6,24,42,.06);backdrop-filter:blur(4px);font-size:1.05rem;box-shadow:0 2px 8px rgba(6,24,42,.14);transition:transform .15s,color .15s}
.favourite:hover{transform:scale(1.05);color:#c22a1c}

/* --- Body --- */
.catalogue-card-body{padding:14px 16px 16px}
.card-code{font-size:.72rem;color:#a5761b;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.catalogue-card h3{font-family:var(--serif);font-weight:500;font-size:1.28rem;line-height:1.15;margin:6px 0 8px;color:#0f2033}
.card-description{margin:0 0 10px;color:var(--muted);font-size:.86rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-specs{padding:8px 0 12px;border-bottom:1px dashed #e4dcc7;font-size:.76rem}


.price-pair{padding:12px 0 6px}
.buyer-price strong{font-family:var(--serif);font-weight:500;color:#8f6116}

/* --- Quantity stepper (ChatGPT swap broke this — restyled for the <input>) --- */
.qty-label{font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#5b4b25;margin:6px 0 6px}
.qty-stepper{display:grid;grid-template-columns:48px 1fr 48px;align-items:stretch;border:1px solid #d5b170;border-radius:2px;overflow:hidden;background:#fffdf7;min-height:46px}
.qty-stepper button{border:0;background:transparent;color:#8a5c15;font-size:1.5rem;font-weight:400;cursor:pointer;transition:background .12s,color .12s;line-height:1}
.qty-stepper button:hover{background:#f4e8cd;color:#5c3a08}
.qty-stepper input[type="number"]{-moz-appearance:textfield;width:100%;height:100%;min-height:44px;text-align:center;border:0;border-inline:1px solid #eadfbf;background:transparent;font-weight:700;font-size:1.02rem;color:#3e2a06;padding:0;outline:none}
.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-stepper input[type="number"]:focus{background:#fdf7e6}
.line-total{color:#7b6a49;font-size:.8rem;margin:8px 0 0;min-height:20px;font-weight:500}
.line-total.is-set{color:#1f714b}

/* --- Cart bar & overlay refinements --- */
.cart-bar{box-shadow:0 -8px 24px rgba(0,0,0,.22)}
.review-order{border-radius:2px;letter-spacing:.02em}
.review-order:hover{background:#b68633}
.order-panel{border-top:3px solid #c99a42;border-radius:2px}

/* --- Review overlay: buyer details form --- */
.estimate-customer{margin:14px 0 20px;padding:16px 18px 18px;background:#fff;border:1px solid #ead9b0;border-radius:4px;box-shadow:0 4px 14px rgba(6,24,42,.06)}
.estimate-customer .estimate-header{margin-bottom:14px}
.estimate-kicker{display:block;font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#a5761b;margin-bottom:4px}
.estimate-customer h3{font-family:var(--serif);font-weight:500;font-size:1.35rem;line-height:1.15;margin:0 0 6px;color:#0f2033;letter-spacing:-.01em}
.estimate-customer .estimate-header p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.4}
.estimate-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.estimate-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.estimate-field.estimate-field-wide{grid-column:1/-1}
.estimate-field label{font-size:.78rem;font-weight:700;color:#3a2e15;letter-spacing:.02em;display:flex;align-items:center;gap:6px}
.estimate-field label em{font-style:normal;color:#c22a1c;font-weight:700}
.estimate-field label .opt{font-weight:500;font-size:.68rem;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;padding:1px 6px;background:#f3ecda;border-radius:2px}
.estimate-field input,.estimate-field textarea{width:100%;min-height:42px;padding:8px 12px;border:1px solid #d8cdb2;background:#fffdf7;border-radius:2px;font:inherit;font-size:.95rem;color:var(--ink);transition:border-color .15s,box-shadow .15s,background .15s}
.estimate-field textarea{min-height:60px;resize:vertical;font-family:inherit}
.estimate-field input:focus,.estimate-field textarea:focus{border-color:#c99a42;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.estimate-field input::placeholder,.estimate-field textarea::placeholder{color:#a29a86;font-weight:400}
.estimate-hint{color:var(--muted);font-size:.75rem;line-height:1.35}
.estimate-field.has-error input,.estimate-field.has-error textarea{border-color:#c22a1c;background:#fff8f7;box-shadow:0 0 0 3px rgba(194,42,28,.12)}
.estimate-field.has-error label{color:#8f1e13}

@media(max-width:520px){
  .estimate-customer{padding:14px 14px 16px;margin:12px 0 16px}
  .estimate-customer h3{font-size:1.18rem}
  .estimate-fields{grid-template-columns:1fr;gap:10px}
  .estimate-field.estimate-field-wide{grid-column:auto}
  .estimate-field input,.estimate-field textarea{min-height:44px;font-size:.95rem}
}

/* --- Review overlay: clean subtotal / GST / total summary --- */
.order-summary{border-top:1px solid var(--line);padding-top:16px;margin-top:14px;display:grid;gap:6px}
.order-summary .summary-row{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:12px;padding:2px 0;font-size:.95rem}
.order-summary .summary-row span{color:var(--muted)}
.order-summary .summary-row strong{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.order-summary .summary-total{padding-top:10px;margin-top:4px;border-top:1px dashed var(--line);font-size:1.05rem}
.order-summary .summary-total span{color:var(--ink);font-weight:700}
.order-summary .summary-total strong{font-family:var(--serif);font-weight:500;font-size:1.55rem;color:#8f6116}
.order-summary .summary-count{margin-top:6px;color:var(--muted);font-size:.85rem;text-align:right}
@media(max-width:520px){
  .order-summary .summary-total strong{font-size:1.35rem}
  .order-summary .summary-count{text-align:left}
}

/* --- Mobile --- */
@media(max-width:680px){
  .catalogue-grid{gap:12px}
  .catalogue-thumbnail{flex-basis:40px;width:40px;height:40px}
  .catalogue-thumbnails{padding:6px 8px 8px}
  .catalogue-card-body{padding:12px 12px 14px}
  .catalogue-card h3{font-size:1.14rem}
  .qty-stepper{grid-template-columns:44px 1fr 44px}
}
/* --- Mobile: Amazon-style horizontal card (image left, everything right) --- */
@media(max-width:520px){
  .catalogue-grid{grid-template-columns:1fr;gap:14px}
  /* align-items:start so the image column doesn't stretch and leave cream gaps */
  .catalogue-card{display:grid;grid-template-columns:50% 1fr;align-items:start;background:#fff}
  .catalogue-card-media{border-bottom:0;border-right:1px solid #efe6d1;display:flex;flex-direction:column;justify-content:flex-start;height:100%}
  /* landscape frame that matches how towels are photographed → whole image fits, tiny cream sides only */
  .catalogue-card-frame{aspect-ratio:5/4;flex:0 0 auto}
  .catalogue-card-media .catalogue-card-image{padding:0;object-fit:contain;object-position:center;background:#faf6ec}
  .catalogue-thumbnails{padding:4px 5px;gap:3px;flex:0 0 auto}
  .catalogue-thumbnail{flex-basis:30px;width:30px;height:30px}
  /* details column — tight padding, smaller controls, no right-side dead space */
  .catalogue-card-body{padding:10px 10px 10px 12px;min-width:0;display:flex;flex-direction:column;gap:2px}
  .catalogue-card h3{font-size:1.05rem;margin:2px 0 4px;line-height:1.15}
  .card-code{font-size:.68rem;letter-spacing:.1em}
  .card-description{display:none}
  .card-specs{padding:4px 0 6px;font-size:.72rem;gap:6px}
  .price-pair{padding:6px 0 4px}
  .buyer-price{font-size:.92rem}
  .buyer-price strong{font-size:1.18rem}
  .qty-label{margin:2px 0 4px;font-size:.7rem}
  /* compact qty stepper — narrower buttons, natural width so it doesn't stretch across */
  .qty-stepper{display:inline-grid;grid-template-columns:30px 46px 30px;min-height:32px;width:auto;align-self:flex-start}
  .qty-stepper button{font-size:1.1rem;min-height:32px}
  .qty-stepper input[type="number"]{font-size:.88rem;min-height:32px;padding:0 2px}
  .line-total{font-size:.7rem;margin:4px 0 0}
  .favourite{width:28px;height:28px;font-size:.85rem;right:5px;top:5px}
  .photo-count{padding:2px 6px;font-size:.66rem;left:5px;top:5px}
  .catalogue-image-open span{padding:3px 6px;font-size:.62rem;right:5px;bottom:5px}
}
@media(max-width:360px){
  .catalogue-card{grid-template-columns:46% 1fr}
  .catalogue-thumbnail{flex-basis:26px;width:26px;height:26px}
  .catalogue-card-body{padding:8px 8px 8px 10px}
  .qty-stepper{grid-template-columns:28px 42px 28px}
}
.catalogue-image-open{position:absolute;inset:0;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.catalogue-image-open span{position:absolute;right:10px;bottom:10px;padding:5px 8px;background:rgba(6,24,42,.78);color:#fff;font:600 .7rem var(--sans);opacity:0;transition:opacity .18s}
.catalogue-image-open:hover span,.catalogue-image-open:focus-visible span{opacity:1}

/* image sharpness — always render at highest quality, no artificial blur on zoom */
.catalogue-card-image,.catalogue-thumbnail img,.image-zoom-stage img{image-rendering:auto;-ms-interpolation-mode:bicubic;-webkit-backface-visibility:hidden;backface-visibility:hidden}

/* --- Zoom overlay --- */
.image-zoom-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(3,14,24,.94)}
.image-zoom-overlay[hidden]{display:none}
.image-zoom-panel{position:relative;width:min(1000px,100%);max-height:100%;color:#fff}
.image-zoom-panel>p{margin:0 50px 12px 0;font:600 1rem var(--sans)}
.image-zoom-close{position:absolute;right:0;top:-6px;width:38px;height:38px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:transparent;color:#fff;font-size:1.8rem;line-height:1;cursor:pointer;z-index:2}
.image-zoom-close:hover{background:rgba(255,255,255,.1)}

.image-zoom-stage{position:relative;display:grid;place-items:center;min-height:60vh;max-height:76vh;overflow:hidden;background:#071d2d;touch-action:pan-y;user-select:none}
.image-zoom-stage img{display:block;max-width:100%;max-height:76vh;object-fit:contain;transform-origin:center;transition:transform .2s ease;will-change:transform;pointer-events:none}

/* prev / next arrows on the stage */
.image-zoom-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(6,24,42,.55);backdrop-filter:blur(6px);color:#fff;font-size:2rem;line-height:1;cursor:pointer;z-index:3;transition:background .15s,transform .15s}
.image-zoom-nav:hover{background:rgba(201,154,66,.75);transform:translateY(-50%) scale(1.05)}
.image-zoom-nav.prev{left:12px}
.image-zoom-nav.next{right:12px}
.image-zoom-nav[hidden]{display:none}

.image-zoom-controls{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.image-zoom-controls button{width:42px;height:38px;border:1px solid #d5aa55;background:#0e2a40;color:#fff;font-size:1.5rem;cursor:pointer}
.image-zoom-controls span{min-width:52px;text-align:center;font:600 .9rem var(--sans)}
.image-zoom-count{color:#efd08a}

@media(max-width:680px){
  .catalogue-image-open span{opacity:1}
  .image-zoom-overlay{padding:12px}
  .image-zoom-stage{min-height:52vh;max-height:70vh}
  .image-zoom-stage img{max-height:70vh}
  .image-zoom-nav{width:42px;height:42px;font-size:1.75rem}
  .image-zoom-nav.prev{left:8px}
  .image-zoom-nav.next{right:8px}
}

/* Same guard on the public side — the hidden attribute always wins over display rules. */
[hidden]{display:none!important}

/* Admin-defined extra details on a card (Border: Jacquard, Packing: 12 pcs …) */
.card-extras{margin:8px 0 0;display:grid;gap:3px}
.card-extras > div{display:grid;grid-template-columns:auto 1fr;gap:6px;font-size:.76rem;line-height:1.35}
.card-extras dt{color:var(--muted);font-weight:600}
.card-extras dt::after{content:":"}
.card-extras dd{margin:0;color:var(--ink);min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){.card-extras{display:none}}

/* Out of stock: the towel still shows so buyers know it exists, but there is no way
   to add it to an order — the server would refuse it anyway. */
.oos-note{margin:.5rem 0 .2rem;padding:.35rem .7rem;border-radius:4px;background:#FFF8E8;border:1px solid rgba(227,160,43,.55);color:#7A4E00;font-size:.82rem;font-weight:600;line-height:1.4}


/* ---- Price range ----------------------------------------------------------------
   Sits under the search box, above the category chips. Two <input type=range> stacked
   on one track make the two handles: both are transparent and only their thumbs are
   painted, so the coloured bar underneath shows through. pointer-events are off on the
   inputs and back on for the thumbs, otherwise the upper input would swallow every
   click meant for the lower one. */
.rate-filter{margin:16px 0 6px}
.rate-filter-label{display:block;margin:0 0 10px;font:700 .7rem/1 var(--sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#8a6a2a}

.rate-slider{position:relative;height:26px;margin:0 11px 6px}
.rate-slider-track{position:absolute;inset:11px 0 auto;height:4px;border-radius:999px;background:#e2dac9}
.rate-slider-fill{position:absolute;top:0;bottom:0;border-radius:999px;background:#c99a42}
.rate-slider input[type=range]{position:absolute;left:-11px;right:-11px;top:0;width:calc(100% + 22px);height:26px;margin:0;padding:0;background:none;border:0;appearance:none;-webkit-appearance:none;pointer-events:none}
.rate-slider input[type=range]:focus{outline:none}
.rate-slider input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px rgba(201,154,66,.4)}
.rate-slider input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px rgba(201,154,66,.4)}
.rate-slider input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #c1a468;box-shadow:0 1px 4px rgba(6,24,42,.28);cursor:grab}
.rate-slider input[type=range]::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #c1a468;box-shadow:0 1px 4px rgba(6,24,42,.28);cursor:grab}
.rate-slider input[type=range]::-moz-range-track{background:none;border:0}

.rate-picks{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.rate-picks select{min-height:42px;padding:0 30px 0 12px;border:1px solid var(--line,#e2dac9);border-radius:2px;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238a6a2a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center/11px;appearance:none;-webkit-appearance:none;font:600 .92rem var(--sans,system-ui);color:var(--ink,#0f2033);cursor:pointer}
.rate-picks-to{color:var(--muted,#7a7269);font-size:.88rem}
.rate-reset{margin-left:auto;padding:0 4px;background:none;border:0;color:#8a6a24;font:600 .82rem var(--sans,system-ui);text-decoration:underline;cursor:pointer}
.rate-reset[hidden]{display:none}

.catalogue-empty{margin:46px 0;padding:26px;border:1px dashed #d8c49a;background:#fffdf7;color:#6b6259;text-align:center}
@media(max-width:520px){.rate-filter{margin:14px 0 4px}.rate-picks select{flex:1 1 0;min-width:0;font-size:.88rem}.rate-reset{flex:0 0 auto}}

/* ---- Card specs: each figure says what it is -------------------------------
   "250 / 30 inch X 60 Inch / warp :2/20s" left a buyer guessing which number was
   the weight and which the count. Icon, label, value -- one line each. */
.spec-sprite{position:absolute;width:0;height:0;overflow:hidden}
.card-specs{display:grid;gap:5px;margin:0;padding:8px 0 12px;border-bottom:1px dashed #e4dcc7;font-size:.76rem}
.card-specs .spec{display:grid;grid-template-columns:15px 3.6rem 1fr;align-items:baseline;gap:7px;margin:0}
.card-specs .spec-ico{width:15px;height:15px;color:#b08a3c;flex:0 0 auto;align-self:center}
.card-specs dt{margin:0;color:#8c8478;font-weight:600;letter-spacing:.02em}
.card-specs dd{margin:0;color:#4d4841}
/* Nothing filled in: the lone reassurance line has no label to line up with. */
.card-specs dt:empty{display:none}
.card-specs .spec:has(dt:empty){grid-template-columns:15px 1fr}
/* Tighter on a phone, matching the @media(max-width:520px) block above — these rules
   sit after it, so without repeating them here the small-screen sizing would be lost. */
@media(max-width:520px){
  .card-specs{gap:4px;padding:4px 0 6px;font-size:.72rem}
  .card-specs .spec{grid-template-columns:14px 3.2rem 1fr;gap:6px}
  .card-specs .spec-ico{width:14px;height:14px}
}

/* === Catalogue card, photo first (2026-09-18) ===========================================
   One layout at every width: the photo on top in a 4:5 frame (same for every towel, the
   whole towel fitted, never cropped), dots, then code, name, spec chips, an optional
   "More details", and price beside the dozens box. Replaces the phone side-by-side card. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.catalogue-card{display:flex;flex-direction:column;align-items:stretch}
.catalogue-card-media{display:block;border-right:0;border-bottom:0;height:auto}
.catalogue-card-frame{aspect-ratio:4/5;background:#f6f1e6;touch-action:pan-y}
.catalogue-card-media .catalogue-card-image{padding:0;object-fit:contain;background:#f6f1e6;transition:opacity .35s ease}
.catalogue-card-media .catalogue-card-image.is-fading{opacity:0}
.photo-counter{position:absolute;right:10px;top:10px;z-index:2;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.94);color:#0f2033;font:600 .74rem var(--sans);pointer-events:none}
.photo-counter b{font-weight:700}
.catalogue-image-open span{opacity:1;right:10px;bottom:10px;border-radius:999px;background:rgba(255,255,255,.94);color:#0f2033;padding:5px 11px;font-size:.72rem}
.card-dots{display:flex;justify-content:center;gap:2px;padding:6px 0 0}
.card-dot{width:22px;height:22px;padding:0;border:0;background:transparent;cursor:pointer;display:grid;place-items:center}
.card-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#d8cdb2;transition:width .2s,background .2s}
.card-dot.is-active::before{width:18px;border-radius:4px;background:#c99a42}
.catalogue-card-body{padding:6px 16px 16px;display:flex;flex-direction:column;gap:0;flex:1}
.catalogue-card h3{font-size:1.3rem;margin:4px 0 10px}
.card-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.card-chips li{padding:4px 11px;border:1px solid #e0d3b5;border-radius:999px;background:#fffaf0;color:#3a2e15;font-size:.8rem;line-height:1.3}
/* Weight, size, yarn: icon, label, value on one line each. */
.card-spec-lines{display:grid;gap:5px;margin:2px 0 0;padding:0;list-style:none}
.card-spec-lines li{display:grid;grid-template-columns:16px 3.7rem minmax(0,1fr);align-items:baseline;gap:6px;font-size:.86rem;line-height:1.35;color:#766e61}
.card-spec-lines li:not(:has(.card-spec-icon)){grid-template-columns:minmax(0,1fr)}
.card-spec-icon{width:15px;height:15px;color:#ad8736;align-self:center}
.card-spec-lines span{font-weight:600}
.card-spec-lines b{min-width:0;color:#3e3a34;font-weight:500;overflow-wrap:anywhere}
.card-more{margin-top:10px}
.card-more summary{cursor:pointer;color:#9a6a1c;font-size:.82rem;font-weight:600;list-style:none;display:inline-flex;align-items:center;gap:5px;padding:4px 0}
.card-more summary::-webkit-details-marker{display:none}
.card-more summary::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.card-more[open] summary::after{transform:rotate(-135deg) translateY(-1px)}
.card-more .card-extras{display:grid;margin:6px 0 0}
.card-buy{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-top:auto;padding-top:14px;border-top:1px dashed #e4dcc7;margin-top:14px}
.card-price{display:flex;flex-direction:column;gap:1px;min-width:0}
.card-price .standard-price{font-size:.74rem;color:#8c8478;text-decoration:line-through}
.card-price .buyer-price{font-size:1rem;color:#8f6116}
.card-price .buyer-price strong{font-family:var(--sans);font-weight:700;font-size:1.3rem;color:#8f6116}
.card-price .buyer-price small{font-size:.8rem;font-weight:500}
.per-dozen{font-size:.8rem;color:#6b7480}
.card-price .discount-chip{align-self:flex-start;margin-top:4px}
.card-qty{flex:0 0 auto;display:flex;flex-direction:column;align-items:center}
.card-qty .qty-stepper{display:inline-grid;grid-template-columns:44px 54px 44px;min-height:44px;width:auto;border-radius:6px}
.card-qty .qty-stepper button{min-height:44px;font-size:1.4rem}
.card-qty .qty-stepper input[type="number"]{min-height:44px;font-size:1rem}
.card-qty .line-total{font-size:.76rem;margin:5px 0 0;text-align:center;white-space:nowrap}
.card-teaser{margin-top:14px;padding-top:14px;border-top:1px dashed #e4dcc7}
@media(max-width:520px){
  .catalogue-card{display:flex}
  .catalogue-card-frame{aspect-ratio:4/5}
  .catalogue-card-body{padding:4px 14px 14px}
  .catalogue-card h3{font-size:1.2rem}
  .card-extras{display:grid}
  .card-description{display:-webkit-box}
}
/* The review bar is fixed to the bottom; leave room so it never covers the last towel. */
body.has-cart-bar .catalogue-page{padding-bottom:calc(var(--catalogue-cart-height, 96px) + 16px)}

/* Compact phone list: do not stretch the photo column to the height of the details.
   A listing photo follows its own saved shape, so the card does not grow a blank cream
   panel under a landscape or portrait towel. */
@media(max-width:520px){
  .catalogue-grid{gap:10px}
  .catalogue-card{display:grid;grid-template-columns:46% minmax(0,1fr);align-items:start;gap:9px;padding:8px}
  .catalogue-card-media{display:block;height:auto;border:0;align-self:start;min-width:0}
  .catalogue-card-frame{aspect-ratio:auto;background:transparent;border-radius:5px;overflow:hidden}
  .catalogue-image-open{position:relative;inset:auto;display:block;width:100%;line-height:0}
  .catalogue-card-media .catalogue-card-image{position:static;inset:auto;display:block;width:100%;height:auto;max-height:250px;aspect-ratio:auto;object-fit:contain;background:transparent;padding:0}
  .catalogue-card-frame:has(.card-placeholder){aspect-ratio:4/3}
  .card-dots{padding:2px 0 0}
  .catalogue-card-body{padding:2px 0;min-width:0}
  .catalogue-card h3{font-size:1.08rem;margin:3px 0 6px;line-height:1.2}
  .card-spec-lines{gap:2px;margin-top:1px}
  .card-spec-lines li{grid-template-columns:14px 3.3rem minmax(0,1fr);gap:4px;font-size:.73rem}
  .card-spec-icon{width:14px;height:14px}
  .card-more{margin-top:3px}
  .card-more summary{min-height:30px;padding:5px 0;font-size:.76rem}
  .card-buy{margin-top:6px;padding-top:6px;gap:6px}
  .card-price .buyer-price strong{font-size:1.15rem}
  .card-qty{align-items:flex-start}
  .card-qty .qty-stepper{grid-template-columns:44px 46px 44px;min-height:44px}
  .card-qty .qty-stepper button{min-width:44px;min-height:44px;padding:0}
  .card-qty .qty-stepper input[type=number]{min-width:0;padding:0 2px}
}

/* Size filter (2026-09-19): a labelled row of chips above the category chips. Scrolls
   sideways on a phone like the category row; the small number is how many towels. */
.size-filter{display:flex;align-items:center;gap:10px;margin:10px 0 4px;min-width:0}
.size-filter-label{flex:0 0 auto;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#9a6a1c}
.size-filter-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 6px;min-width:0}
.size-filter-chips::-webkit-scrollbar{display:none}
.size-filter-chips .filter-chip{flex:0 0 auto;white-space:nowrap}
.size-filter-chips .filter-chip small{margin-left:4px;font-size:.72em;opacity:.7;font-weight:600}

/* Phone, photo on the left: the details column is only ~175px wide, too narrow for the
   price and the 44px dozens box side by side (the price was cut off). Stack them:
   price first, the dozens box under it. */
@media(max-width:520px){
  .card-buy{flex-direction:column;align-items:stretch;gap:6px}
  .card-price{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:0}
  .card-price .standard-price{flex-basis:100%}
  .card-price .per-dozen{flex-basis:100%;white-space:nowrap}
  .card-qty{align-items:flex-start}
  .card-qty .line-total{text-align:left;white-space:normal}
}

/* Cotton count line (2026-09-19): green icon and two-line label, Warp over Weft with the
   words and the numbers each lined up. Weight and size stay in the sandal colour. */
.card-spec-lines li{align-items:start}
.card-spec-lines li .card-spec-icon{margin-top:1px}
.card-spec-lines li.is-count .card-spec-icon,.card-spec-lines li.is-count span{color:#2f7d4f}
.card-spec-lines li.is-count span{line-height:1.2}
.card-spec-lines .count-parts{white-space:nowrap;line-height:1.45}
.card-spec-lines .count-parts i{display:inline-block;width:2.6em;font-style:normal;font-weight:500;color:#766e61}
.card-more .card-extras > div{grid-template-columns:minmax(5.2rem,auto) 1fr}
.card-more .card-extras dt::after{content:""}

/* "Add full dozens only" until something is chosen, then the green strip takes over. */
.qty-hint{margin:5px 0 0;font-size:.74rem;color:#7b6a49}
.catalogue-card.is-selected .qty-hint{display:none}

/* The green strip: full width of the card, under the photo and the details. */
.card-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:10px -8px -8px;padding:9px 12px;background:#eef7f1;border-top:1px solid #b9dcc6;color:#1f5e3f;font-size:.86rem;font-weight:600;grid-column:1/-1}
.card-total[hidden]{display:none}
.card-total b{font-weight:700;white-space:nowrap}
@media(min-width:521px){.card-total{margin:10px 0 0;border-radius:0 0 2px 2px}}

/* === Filter: search + one Filter button + a bottom sheet (2026-09-19) ===============
   Replaces the size row, the category row and the price slider on the page, which ran
   off a small phone screen. Everything in the sheet wraps; nothing scrolls sideways. */
.catalogue-hero h1{white-space:nowrap}
.cat-toolbar{display:flex;gap:8px;align-items:stretch;margin:18px 0 0}
.cat-toolbar .catalogue-search{flex:1;min-width:0;margin:0;display:flex;align-items:center;background:#fff;border:1px solid #d8cdb2;border-radius:8px;padding:0 12px;gap:8px}
.cat-toolbar .catalogue-search:before{content:none}
.cat-toolbar .catalogue-search .search-ico{flex:0 0 18px;width:18px;height:18px;color:#8c8478}
.cat-toolbar .catalogue-search input{flex:1;min-width:0;min-height:46px;padding:0;border:0;background:transparent;box-shadow:none;font-size:.95rem}
.cat-toolbar .catalogue-search input:focus{outline:none}
.cat-toolbar .catalogue-search:focus-within{border-color:#c99a42;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.filter-open{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:0 16px;border:0;border-radius:8px;background:#0a1d33;color:#efd08a;font:600 .92rem var(--sans);cursor:pointer}
.filter-open svg{width:18px;height:18px}
.filter-open-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c99a42;color:#0a1d33;font-size:.74rem;font-weight:700}
.filter-open-count[hidden]{display:none}
.filter-pills{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.filter-pills:empty{display:none}
.filter-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1px solid #e8ce94;border-radius:999px;background:#fff7e6;color:#7a5209;font:600 .8rem var(--sans);cursor:pointer}
.filter-pill::after{content:"×";font-size:1rem;line-height:1}

.filter-sheet{position:fixed;inset:0;z-index:900;display:flex;align-items:flex-end;justify-content:center}
.filter-sheet[hidden]{display:none}
.filter-sheet-backdrop{position:absolute;inset:0;background:rgba(3,14,24,.55)}
.filter-sheet-panel{position:relative;width:min(560px,100%);max-height:86vh;display:flex;flex-direction:column;background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.filter-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;position:relative}
.filter-sheet-head strong{font:500 1.25rem var(--serif);color:#0f2033}
.filter-sheet-grab{position:absolute;left:50%;top:6px;width:38px;height:4px;margin-left:-19px;border-radius:2px;background:#d8cdb2}
.filter-sheet-x{width:40px;height:40px;border:0;background:transparent;font-size:1.7rem;line-height:1;color:#5b4b25;cursor:pointer}
.filter-sheet-body{overflow-y:auto;padding:0 16px 8px}
.filter-sheet-label{margin:14px 0 8px;font:700 .72rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#9a6a1c}
.filter-sheet-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0}
.filter-sheet-chips .filter-chip{flex:0 0 auto;max-width:100%;white-space:normal;text-align:left;min-height:38px}
.filter-sheet-chips .filter-chip small{margin-left:5px;font-size:.72em;opacity:.7;font-weight:600}
.filter-sheet .rate-picks{display:flex;align-items:center;gap:8px}
.filter-sheet .rate-picks select{flex:1;min-width:0;min-height:44px;border:1px solid #d8cdb2;border-radius:8px;background:#fff;padding:0 10px;font-size:.95rem}
.filter-sheet-foot{display:flex;gap:10px;align-items:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #efe6d1}
.filter-sheet-clear{flex:0 0 auto;min-height:46px;padding:0 14px;border:1px solid #d8cdb2;border-radius:8px;background:#fff;color:#5b4b25;font:600 .9rem var(--sans);cursor:pointer}
.filter-sheet-apply{flex:1;min-height:46px;border-radius:8px}
@media(max-width:360px){.filter-open{padding:0 12px}.cat-toolbar .catalogue-search{padding:0 10px}}

/* Last order, one line (2026-09-19): summary, Repeat, and the item list folded away. */
.shop-card-lastline{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:.86rem;color:#3e3a34;margin:0 0 10px}
.shop-card-lastline b{font-weight:700;color:#0f2033}
.shop-card-lastline span:last-child{color:#6b7480;white-space:nowrap}
.shop-card-list{margin-top:8px}
.shop-card-list summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:1px solid #d8cdb2;border-radius:2px;background:#fff;color:#5b4b25;font:600 .86rem var(--sans)}
.shop-card-list summary::-webkit-details-marker{display:none}
.shop-card-list summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.shop-card-list[open] summary::after{transform:rotate(-135deg) translateY(-1px)}
.shop-card-list .when-open,.shop-card-list[open] .when-closed{display:none}
.shop-card-list[open] .when-open{display:inline}
.shop-card-list .shop-card-items{margin:10px 0 4px}

/* === Size and price as one-tap buttons on the page; category behind one button
   (2026-09-19). For buyers who shop by size and price and may not read easily:
   nothing to open, nothing to read in a list. Buttons wrap; nothing scrolls sideways. */
.cat-search{display:flex;align-items:center;gap:8px;margin:18px 0 0;background:#fff;border:1px solid #d8cdb2;border-radius:8px;padding:0 12px}
.cat-search:before{content:none}
.cat-search .search-ico{flex:0 0 18px;width:18px;height:18px;color:#8c8478}
.cat-search input{flex:1;min-width:0;min-height:46px;padding:0;border:0;background:transparent;box-shadow:none;font-size:.95rem}
.cat-search input:focus{outline:none}
.cat-search:focus-within{border-color:#c99a42;box-shadow:0 0 0 3px rgba(201,154,66,.18)}
.quick-label{margin:14px 0 7px;font:700 .72rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#9a6a1c}
.quick-chips{display:flex;flex-wrap:wrap;gap:7px}
.quick-chips .filter-chip{flex:0 0 auto;min-height:42px;padding:0 14px;font-size:.95rem;white-space:nowrap}
.quick-chips .filter-chip small{margin-left:5px;font-size:.72em;opacity:.65;font-weight:600}
.cat-open{display:flex;align-items:center;gap:8px;width:100%;min-height:46px;margin:14px 0 0;padding:0 14px;border:1px solid #d8cdb2;border-radius:8px;background:#fff;color:#0f2033;font:600 .95rem var(--sans);cursor:pointer;text-align:left}
.cat-open-k{font:700 .72rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#9a6a1c}
.cat-open b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.cat-open svg{width:18px;height:18px;color:#8c8478}
.cat-open.is-set{border-color:#0a1d33;box-shadow:inset 0 0 0 1px #0a1d33}
.quick-summary{display:flex;align-items:center;gap:10px;margin:10px 0 0;font:600 .88rem var(--sans);color:#1f5e3f}
.quick-summary[hidden]{display:none}
.quick-summary button{border:0;background:none;padding:6px 0;color:#9a6a1c;font:600 .88rem var(--sans);text-decoration:underline;cursor:pointer}

/* Zoom: a small round magnifier instead of the "Tap to zoom" label, which covered too
   much of the towel on a phone. The whole photo is still the tap target. */
.catalogue-image-open span.zoom-ico{display:grid;place-items:center;width:32px;height:32px;padding:0;right:8px;bottom:8px;border-radius:50%;background:rgba(255,255,255,.92);color:#0f2033;opacity:1;box-shadow:0 1px 4px rgba(6,24,42,.2)}
.catalogue-image-open span.zoom-ico svg{width:18px;height:18px}
@media(max-width:520px){.catalogue-image-open span.zoom-ico{width:28px;height:28px;right:6px;bottom:6px}.catalogue-image-open span.zoom-ico svg{width:16px;height:16px}}
