/* Storefront refinements: compact category header, lighter product cards,
   quieter floating buttons and a compact empty-review state. Loaded last. */

/* 2. Category header: products visible on the first screen */
body .polish-category-cover{min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);margin:22px auto 26px;background:#f6f0f2;border-color:#ece2e6;border-radius:18px}
body .polish-category-cover .polish-category-copy{padding:26px 34px}
body .polish-category-cover .breadcrumbs{margin-bottom:14px}
body .polish-category-copy .eyebrow{margin-bottom:8px}
body .polish-category-copy h1{font-size:clamp(30px,3vw,44px);margin:0 0 8px;color:#503b45}
body .polish-category-line{font-size:15px;margin:0}
body .polish-category-description,body .polish-category-link{display:none}
body .polish-category-mosaic{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr;height:210px;max-height:none;padding:12px}
body .polish-cover-photo.photo-0{grid-row:auto}
/* One palette for every category, matching the store theme */
body .polish-category-cover[class*="tone-"]{background:#f6f0f2;border-color:#ece2e6}
body .polish-category-cover[class*="tone-"] .polish-category-copy h1{color:#503b45}
@media(max-width:700px){
 body .polish-category-cover{margin:12px auto 16px;border-radius:14px}
 body .polish-category-cover .polish-category-copy{padding:18px 18px 16px}
 body .polish-category-cover .breadcrumbs{margin-bottom:10px}
 body .polish-category-copy h1{font-size:30px;margin-bottom:6px}
 body .polish-category-line{font-size:13px}
 body .polish-category-mosaic{display:none}
}

/* 6. Product cards: lighter add-to-cart, less vertical weight */
body .product-card .card-add{min-height:38px;padding:8px 12px;background:#fff;color:#654653;border:1px solid #dccdd3;box-shadow:none;font-weight:600}
body .product-card .card-add:hover:not(:disabled),body .product-card .card-add:focus-visible{background:#654653;color:#fff;border-color:#654653}
body .product-card .card-add:disabled{background:#f4f0f2;color:#9b8a92;border-color:#ece4e8}
body .product-card .product-meta>span:empty{display:none}
body .product-card .product-meta:has(>span:empty){min-height:0;margin-top:12px}
@media(max-width:600px){
 body .product-card .card-add{min-height:36px;font-size:10px}
 body .product-card .card-bottom{margin-bottom:8px}
}

/* 4. Floating buttons: icon-only live support on phones, delayed wheel tab */
@media(max-width:720px){
 body .support-launch{width:52px;height:52px;min-height:0;padding:0;justify-content:center;border-radius:50%}
 body .support-launch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 body .support-launch svg{width:22px;height:22px}
 body:has(.pdp-sticky-cart:not([hidden])) .support-launch{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@keyframes wheel-tab-in{from{opacity:0;transform:translate(100%,-50%)}to{opacity:1;transform:translate(0,-50%)}}
body .wheel-launch{animation:wheel-tab-in .45s ease 6s both}
@media(prefers-reduced-motion:reduce){body .wheel-launch{animation:none}}

/* Free-shipping meter in cart page and cart drawer */
.free-shipping-meter{margin:0 0 16px;padding:14px 16px;border-radius:12px;background:#f6f0f2;border:1px solid #ece2e6}
.free-shipping-meter p{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:13px;line-height:1.5;color:#3a2a32}
.free-shipping-meter p svg{flex:none;width:20px;height:20px;color:#654653}
.free-shipping-meter strong{color:#4a3240}
.free-shipping-track{display:block;width:100%;height:6px;border:0;border-radius:999px;overflow:hidden;background:#e4d7dd;appearance:none;-webkit-appearance:none}
.free-shipping-track::-webkit-progress-bar{background:#e4d7dd;border-radius:999px}
.free-shipping-track::-webkit-progress-value{background:#654653;border-radius:999px;transition:width .4s ease}
.free-shipping-track::-moz-progress-bar{background:#654653;border-radius:999px}
.free-shipping-meter.is-done{background:#eef4ec;border-color:#d6e5d1}
.free-shipping-meter.is-done p svg,.free-shipping-meter.is-done strong{color:#3d6b45}
.free-shipping-meter.is-done .free-shipping-track::-webkit-progress-value{background:#3d6b45}
.free-shipping-meter.is-done .free-shipping-track::-moz-progress-bar{background:#3d6b45}
@media(prefers-reduced-motion:reduce){.free-shipping-track::-webkit-progress-value{transition:none}}

/* Infinite catalog: numbered pages stay in the HTML, hidden once scrolling takes over */
.catalog-infinite .pagination{display:none}
.catalog-more{display:grid;justify-items:center;gap:12px;margin:32px 0 8px}
.catalog-more[hidden]{display:none}
.catalog-more-status{margin:0;font-size:12px;color:var(--muted);min-height:1em}
.catalog-more .button{min-width:240px}

/* Category text under the product grid */
.category-intro{margin-top:48px;margin-bottom:24px;padding:32px 0 0;border-top:1px solid var(--line)}
.category-intro-body{max-width:78ch}
.category-intro.has-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:48px;align-items:start}
.category-intro.has-photo .category-intro-body{max-width:none}
.category-intro-photo{margin:0;border-radius:16px;overflow:hidden;background:#f6f0f2;aspect-ratio:4/3;position:sticky;top:120px}
.category-intro-photo img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.category-intro.has-photo{display:block}.category-intro-photo{display:none}}
.category-intro-body h2{font-size:clamp(22px,2.2vw,28px);margin:0 0 14px;color:#3a2a32}
.category-intro-body p{margin:0 0 14px;font-size:14px;line-height:1.8;color:#5a4a52}
.category-intro-body.is-collapsed{max-height:calc(14px*1.8*6 + 3.2em);overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
.category-intro-toggle{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:8px 0;border:0;background:none;color:#654653;font-size:13px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.category-intro-toggle[hidden]{display:none}
.category-intro-toggle svg{transition:transform .2s}
.category-intro-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.category-intro-toggle:focus-visible{outline:2px solid #654653;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.category-intro-toggle svg{transition:none}}

/* Cookie preferences live in the footer, not as a floating button */
.footer-directory .footer-consent-link{background:none;border:0;cursor:pointer}

/* 12. Admin overview: today's figures first */
.dashboard-today{margin:0 0 26px}
.dashboard-today .dashboard-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dashboard-today .dashboard-card-heading h2{margin:0}
.dashboard-today .dashboard-card-heading span{font-size:12px;color:var(--muted)}
.dashboard-today .stat-grid{margin:0}

/* 9. Reviews: compact block until the first review arrives */
.product-reviews.is-empty{padding:22px 0;margin-top:28px;border-top:1px solid var(--line)}
.product-reviews.is-empty .reviews-empty{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.product-reviews.is-empty h2{font-size:20px;margin:0 0 4px}
.product-reviews.is-empty p{margin:0;font-size:13px;color:var(--muted);line-height:1.6;max-width:62ch}
.product-reviews.is-empty details{flex-basis:100%}
.product-reviews.is-empty summary{cursor:pointer;font-size:13px;color:#654653;text-decoration:underline;text-underline-offset:3px;width:max-content}
.product-reviews.is-empty .write-review{margin-top:14px;max-width:560px}
