/* Product cards: editorial text block (brand line, uppercase title, red sale price) + no button (sizes show on hover) */
body ul.products li.product.ast-article-post { text-align: left !important; }
body ul.products li.product .astra-shop-summary-wrap { text-align: left !important; padding: 12px 2px 0; }
body ul.products li.product .ast-woo-product-category { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 1; }
body ul.products li.product .woocommerce-loop-product__title { margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 400; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; color: #000; }
body ul.products li.product .price { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #000; }
body ul.products li.product .price del { margin-right: 8px; font-weight: 400; color: #8e8e8e; opacity: 1; }
body ul.products li.product .price ins { background: none; font-weight: 700; color: #e11d2e; text-decoration: none; }
body ul.products li.product .price ins .amount, body ul.products li.product .price ins bdi { color: #e11d2e; }
body ul.products li.product .card-bnpl, body ul.products li.product .product-price-installments-not-in-variation { margin-top: 4px; font-size: 11px !important; line-height: 1.5 !important; font-weight: 400 !important; color: #8e8e8e !important; }
body ul.products li.product .card-bnpl img { max-height: 14px !important; top: 0 !important; vertical-align: middle; }
/* the hover size strip replaces the "Select options" button (kept for screen readers) */
body ul.products li.product .astra-shop-summary-wrap .add_to_cart_button { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Grid: tight gutters, 4 / 3 / 2 columns (reference-style) ------------------------- */
body.woocommerce ul.products, body.woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 4px; margin: 0 0 1.5em !important; padding: 0 !important; }
body.woocommerce ul.products::before, body.woocommerce ul.products::after { display: none !important; }
body.woocommerce ul.products li.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; clear: none !important; padding: 0 !important; }
@media (min-width: 768px)  { body.woocommerce ul.products, body.woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { body.woocommerce ul.products, body.woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* related products on the product page stay a compact row */
body.single-product .related ul.products, body.single-product .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { body.single-product .related ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Sizes strip: floats inset from the card edges, solid white cells ----------------- */
.card-sizes { left: 7%; right: 7%; bottom: 14px; background: #fff; backdrop-filter: none; box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.card-size { padding: 12px 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; border-left: 0; }
.card-size + .card-size { border-left: 1px solid #f0f0f0; }
a.card-size:hover { background: #ececec; color: #000; }
.card-size.is-soldout { opacity: .45; }
@media (hover: none) { .card-sizes { left: 4%; right: 4%; bottom: 8px; } .card-size { padding: 9px 1px; font-size: 11px; } }

/* keep the text block visible inside the grid (the theme otherwise collapses it) */
body ul.products li.product .astra-shop-summary-wrap { display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; }

/* ======================= Shop page chrome: breadcrumb, title, filter bar ======================= */
:root { --shop-pad: clamp(16px, 3vw, 48px); }
body.woocommerce-shop #primary, body.tax-product_cat #primary { padding-left: var(--shop-pad); padding-right: var(--shop-pad); }

.shop-breadcrumb { padding: 18px 0 0; font-size: 13px; color: #6b6b6b; }
.shop-breadcrumb a { color: #000; text-decoration: none; }
.shop-breadcrumb a:hover { text-decoration: underline; }
.shop-breadcrumb span { color: #8e8e8e; }

body .ast-archive-description { border: 0; padding: 0; margin: 0; background: none; }
body .ast-archive-description .ast-archive-title, body .ast-archive-description .page-title {
    margin: 26px 0 30px; text-align: center; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #000; }

.shop-filterbar { border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; margin-bottom: 18px; }
.shop-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shop-filters.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.sf-left, .sf-right { display: flex; align-items: center; gap: 30px; }
.sf-group { position: relative; }
.sf-btn { display: inline-flex; align-items: center; gap: 7px; padding: 18px 0; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none; color: #000 !important;
    font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1; cursor: pointer; text-transform: none; }
.sf-btn:hover, .sf-btn.is-active { text-decoration: underline; text-underline-offset: 5px; }
.sf-sortlabel { font-weight: 700; } .sf-sortvalue { font-weight: 400; color: #555; }
.sf-chev { transition: transform .2s ease; } .sf-group.is-open .sf-chev { transform: rotate(180deg); }
.sf-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #000; color: #fff; font-size: 10px; font-weight: 700; }
.sf-clear { font-size: 13px; color: #6b6b6b; text-decoration: underline; text-underline-offset: 3px; }
.sf-count { padding-left: 18px; border-left: 1px solid #ddd; font-size: 14px; font-weight: 700; white-space: nowrap; }

.sf-panel { display: none; position: absolute; top: calc(100% - 4px); left: 0; z-index: 40; min-width: 230px; max-height: 65vh; overflow: auto; padding: 8px 0;
    background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.sf-panel-right { left: auto; right: 0; }
.sf-group.is-open .sf-panel { display: block; animation: notice-in .22s ease both; }
.sf-row { display: flex; align-items: center; gap: 11px; padding: 9px 18px; font-size: 14px; cursor: pointer; margin: 0; transition: background-color .15s ease; }
.sf-row:hover { background: #f4f4f4; }
.sf-row.sf-sub { padding-left: 38px; color: #444; font-size: 13px; }
.sf-row input { accent-color: #000; width: 16px; height: 16px; margin: 0; flex: none; }
.sf-sizes.sf-panel { min-width: 270px; padding: 16px; }
.sf-group.is-open .sf-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { position: relative; margin: 0; cursor: pointer; }
.sf-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sf-chip span { display: block; min-width: 46px; padding: 11px 12px; border: 1px solid #d6d6d6; text-align: center; font-size: 13px; font-weight: 700; transition: background-color .15s, color .15s, border-color .15s; }
.sf-chip:hover span { border-color: #000; }
.sf-chip input:checked + span { background: #000; color: #fff; border-color: #000; }
.sf-chip input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }
.shop-empty { padding: 60px 0; text-align: center; font-size: 16px; }

/* card titles to match the larger heading scale */
body ul.products li.product .woocommerce-loop-product__title { font-size: 14px; letter-spacing: .035em; }
body ul.products li.product .ast-woo-product-category { font-size: 12px; }
body ul.products li.product .price { font-size: 15px; }

/* phones: panels become bottom sheets, bar wraps */
@media (max-width: 767px) {
    .shop-filters { flex-direction: column; align-items: stretch; gap: 0; }
    .sf-left { flex-wrap: wrap; gap: 4px 20px; } .sf-right { justify-content: space-between; border-top: 1px solid #eee; gap: 12px; }
    .sf-btn { padding: 14px 0; }
    .sf-group { position: static; }
    .sf-panel, .sf-panel-right { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 68vh; border: 0; border-top: 1px solid #ddd; box-shadow: 0 -12px 30px rgba(0,0,0,.18); }
    .sf-count { border-left: 0; padding-left: 0; }
    body .ast-archive-description .ast-archive-title { margin: 20px 0 22px; }
}

/* theme overrides: keep side space on the shop page and show the page title there */
body.woocommerce-shop #primary, body.tax-product_cat #primary, body.woocommerce-page.archive #primary { padding-left: var(--shop-pad) !important; padding-right: var(--shop-pad) !important; box-sizing: border-box; }
body.woocommerce-shop .ast-archive-description, body.tax-product_cat .ast-archive-description, body.archive.woocommerce .ast-archive-description { display: block !important; visibility: visible !important; }
body.woocommerce-shop .ast-woocommerce-container { padding-left: 0 !important; padding-right: 0 !important; }
.sf-sizes.sf-panel { min-width: 330px; }
body .ast-archive-description .ast-archive-title, body .ast-archive-description .page-title { font-size: clamp(30px, 3.4vw, 46px) !important; font-weight: 700 !important; text-align: center !important; }

/* ---- sold-out bar = same look as the sizes strip, but always visible ---- */
.astra-shop-thumbnail-wrap .ast-shop-product-out-of-stock { display: none !important; }
.card-sizes.card-soldout-bar { opacity: 1 !important; transform: none !important; pointer-events: none; }
.card-size.card-soldout { padding: 13px 4px; text-decoration: none; opacity: 1; letter-spacing: .1em; cursor: default; }

/* ---- tighter top of the shop pages ---- */
body.woocommerce-shop .site-content > .ast-container, body.tax-product_cat .site-content > .ast-container { padding-top: 0 !important; }
body.woocommerce-shop #primary, body.tax-product_cat #primary { padding-top: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
body .ast-archive-description { margin: 0 !important; padding: 0 !important; }
body .ast-archive-description .ast-archive-title, body .ast-archive-description .page-title { margin: 0 !important; padding: 22px 0 20px !important; }
.shop-filterbar { margin-bottom: 14px; }
.sf-btn { padding: 15px 0; }
@media (max-width: 767px) { body .ast-archive-description .ast-archive-title { padding: 16px 0 14px !important; } }
body .ast-archive-description { width: 100% !important; max-width: none !important; float: none !important; flex: 0 0 100%; }
body .ast-archive-description .ast-archive-title { width: 100%; text-align: center !important; }

/* ---- all product listings share the same full-width layout ---- */
body.tax-product_cat .site-content > .ast-container, body.woocommerce-shop .site-content > .ast-container, body.search-results .site-content > .ast-container { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; display: block; }
body.tax-product_cat #primary, body.woocommerce-shop #primary { width: 100% !important; max-width: none !important; }
body.tax-product_cat .ast-woocommerce-container, body.woocommerce-shop .ast-woocommerce-container { max-width: none !important; width: 100%; }

/* ---- breadcrumb carries the page name (no big title) ---- */
.shop-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 14px 0 12px; font-size: 13px; color: #6b6b6b; }
.shop-breadcrumb a { color: var(--ink, #0f0f10); text-decoration: none; transition: color .15s ease; }
.shop-breadcrumb a:hover { color: var(--blue, #0050c8); text-decoration: underline; }
.shop-breadcrumb .sep { color: #b5b5b5; }
.shop-breadcrumb .current { color: var(--ink, #0f0f10); font-weight: 700; }
.shop-filterbar { margin-top: 0; }
@media (max-width: 767px) { .shop-breadcrumb { padding: 10px 8px 8px; font-size: 12px; } }

/* Tighter, smaller card text */
body ul.products li.product .astra-shop-summary-wrap { padding: 7px 2px 0 !important; }
body ul.products li.product .astra-shop-thumbnail-wrap { margin-bottom: 0 !important; }
body ul.products li.product .ast-woo-product-category { font-size: 10px !important; letter-spacing: .08em; margin: 0 0 1px !important; line-height: 1.3; color: #6b6b6b; font-weight: 600; }
body ul.products li.product .woocommerce-loop-product__title { font-size: 12px !important; letter-spacing: .02em !important; line-height: 1.3 !important; margin: 0 0 2px !important; font-weight: 500; }
body ul.products li.product .price { font-size: 12.5px !important; margin: 0 0 6px !important; line-height: 1.3; }
body ul.products li.product .astra-shop-summary-wrap > * { margin-top: 0 !important; }
body ul.products li.product { margin-bottom: 14px !important; }

/* keep Quick view / sizes bars inside the photo: no inline-image gap under it */
body ul.products li.product .astra-shop-thumbnail-wrap { position: relative; overflow: hidden; line-height: 0; font-size: 0; }
body ul.products li.product .astra-shop-thumbnail-wrap > a, body ul.products li.product .astra-shop-thumbnail-wrap img { display: block; }
body ul.products li.product .astra-shop-thumbnail-wrap .card-quickview { font-size: 12px; line-height: 44px; }
body ul.products li.product .astra-shop-thumbnail-wrap .card-size, body ul.products li.product .astra-shop-thumbnail-wrap .card-tag { line-height: 1.1; font-size: 13px; }
body ul.products li.product .astra-shop-thumbnail-wrap .card-tag { font-size: 11px; }

/* infinite scroll loader */
.inf-scroll { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 28px 0 36px; color: #6b6b6b; font-size: 13px; clear: both; width: 100%; }
.inf-spin { width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: var(--ink, #0f0f10); border-radius: 50%; animation: inf-rot .7s linear infinite; opacity: 0; }
.inf-scroll.is-loading .inf-spin { opacity: 1; } .inf-scroll.is-end .inf-spin, .inf-scroll.is-error .inf-spin { display: none; } .inf-scroll.is-error { cursor: pointer; color: #c0392b; }
@keyframes inf-rot { to { transform: rotate(360deg); } }

/* breadcrumb: even spacing above/below and flush with the grid's left edge */
body .shop-breadcrumb { margin: 0 !important; padding: 18px 0 16px !important; line-height: 1.2; }
body .shop-breadcrumb > *, body .shop-breadcrumb a, body .shop-breadcrumb span { margin: 0; padding-left: 0; padding-right: 0; }
body .shop-breadcrumb .sep { margin: 0 2px; }
body .shop-breadcrumb [aria-current], body .shop-breadcrumb .current { font-weight: 700; color: var(--ink, #0f0f10); }
.shop-banner { margin: 0 0 14px; }
.shop-banner img { display: block; width: 100%; height: auto; }
/* Listing pages (shop, categories, CMS landing pages): breadcrumb, banner, filters and grid run full width */
body.woocommerce-shop #primary, body.tax-product_cat #primary, body.woocommerce-page.archive #primary, body.search-results #primary { padding-left: 12px !important; padding-right: 12px !important; }
