/* Homepage catalog components: real WooCommerce data, mobile first. */
.bk-catalog-section { box-sizing: border-box; width: min(100%, var(--bk-wide)); margin: clamp(1.5rem, 4vw, 3rem) auto; display: grid; gap: var(--bk-space-4); }
.bk-catalog-section .bk-section-heading { gap: .5rem 1rem; }
.bk-catalog-section .bk-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--bk-size-small); }
.bk-catalog-empty { margin: 0; padding: var(--bk-space-5); border-radius: var(--bk-radius-md); background: var(--bk-surface-muted); color: var(--bk-text-muted); }
.bk-category-grid, .bk-product-grid { list-style: none; margin: 0; padding: 4px; }
.bk-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bk-space-3); }
.bk-category-grid > li, .bk-product-grid > li { min-width: 0; }
.bk-catalog-category { display: grid; grid-template-rows: auto 1fr; padding: .5rem; min-height: 96px; height: 100%; gap: .5rem; }
.bk-category-media { display: grid; place-items: center; width: 100%; min-height: 52px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--bk-radius-sm); background: var(--bk-background); }
.bk-category-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk-category-media .bk-icon { width: 32px; height: 32px; }
.bk-product-card { display: flex; flex-direction: column; }
.bk-product-card .bk-card__body { flex: 1; align-content: start; grid-template-rows: auto; padding: clamp(.65rem, 2vw, 1rem); }
.bk-product-card .bk-card__body > :last-child { align-self: end; }
.bk-product-card .bk-card__media { height: auto; aspect-ratio: 1; object-fit: contain; }
.bk-product-media-link { display: block; }
.bk-product-title { font-size: 1rem; line-height: 1.4; }
.bk-product-title a { color: var(--bk-primary); text-decoration: none; }
.bk-product-title a:hover { text-decoration: underline; }
.bk-product-rating, .bk-product-stock { font-size: var(--bk-size-small); color: var(--bk-text-muted); }
.bk-product-action { margin: 0; align-self: end; }
.bk-product-card .bk-button { width: 100%; font-size: var(--bk-size-small); padding-inline: .5rem; }
.bk-product-card .bk-price del { color: var(--bk-text-muted); font-weight: 400; }
.bk-product-card .bk-price ins { text-decoration: none; }
.bk-product-card a:focus-visible, .bk-product-card button:focus-visible { outline: 2px solid var(--bk-focus); outline-offset: -3px; }
@media (max-width: 22rem) { .bk-category-grid { grid-template-columns: 1fr; } }
@media (min-width: 48rem) { .bk-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bk-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Editorial category cards and consistent product rows on the landing. */
.bk-home .bk-category-grid { gap:clamp(.75rem,2vw,1.25rem); }
.bk-home .bk-catalog-category { box-sizing:border-box; border-radius:1rem; padding:.65rem; text-align:center; overflow-wrap:anywhere; }
.bk-home .bk-category-media { background:#E9E1D3; border-radius:.75rem; }
.bk-home .bk-product-card { border-radius:1rem; }
.bk-home .bk-product-card .bk-card__body { display:flex; flex-direction:column; align-items:stretch; }
.bk-home .bk-product-card .bk-card__body > :last-child { margin-top:auto; align-self:stretch; }
.bk-home .bk-product-title { overflow-wrap:anywhere; }
.bk-home .bk-product-card .bk-button { min-height:44px; }
.bk-home .bk-recent .bk-section-heading { border-top:1px solid #E9E1D3; padding-top:clamp(1rem,3vw,2rem); }

/* Lifestyle storefront: three editorial columns on larger screens. */
@media (min-width: 64rem) { .bk-home .bk-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-home .bk-catalog-category { text-align:left; padding:.75rem; gap:.75rem; }
.bk-home .bk-category-media { aspect-ratio: 16 / 9; }
.bk-home .bk-catalog-category > span:last-child { padding:.25rem .5rem .5rem; }

/* Shared discovery visual language. */
.bk-home .bk-product-card .bk-product-media-link { padding:.5rem; background:var(--bk-surface-muted); }
.bk-home .bk-product-card .bk-card__media { border-radius:var(--bk-radius-sm); background:var(--bk-background); }
.bk-home .bk-product-card .bk-price { font-size:clamp(1rem,2vw,1.25rem); font-variant-numeric:tabular-nums; }
.bk-product-offer { align-self:flex-start; display:inline-block; border-radius:var(--bk-radius-pill); padding:.2rem .65rem; background:var(--bk-primary); color:var(--bk-on-primary); font-size:var(--bk-size-small); font-weight:600; }

/* Editorial collection cards use brand surfaces, with no remote image dependencies. */
.bk-collection-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--bk-space-4); list-style:none; padding:4px; margin:0; }
.bk-collection-grid li { min-width:0; }
.bk-collection-card { box-sizing:border-box; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:1rem; min-height:15rem; height:100%; padding:clamp(1.25rem,3vw,2rem); border-radius:var(--bk-radius-lg); background:var(--bk-surface-muted); color:var(--bk-primary); text-decoration:none; overflow-wrap:anywhere; }
.bk-collection-card:visited { color:var(--bk-primary); }
.bk-collection-title { color:inherit; font-size:clamp(1.35rem,2.5vw,2rem); margin:0; }
.bk-collection-description { margin:0; }
.bk-collection-action { font-weight:600; text-decoration:underline; text-underline-offset:.2em; }
.bk-collection-card:focus-visible { outline:2px solid var(--bk-focus); outline-offset:2px; }
@media(min-width:48rem) { .bk-collection-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); } }
@media(min-width:64rem) {
 .bk-home .bk-category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
 .bk-home .bk-category-grid > li:first-child { grid-column:span 2; grid-row:span 2; }
 .bk-home .bk-category-grid > li:first-child .bk-category-media { aspect-ratio:auto; min-height:0; height:100%; }
 .bk-home .bk-category-grid > li:first-child .bk-catalog-category { grid-template-rows:minmax(0,1fr) auto; }
 .bk-home .bk-category-grid > li:only-child { grid-column:1/-1; grid-row:auto; }
 .bk-home .bk-category-grid > li:only-child .bk-category-media { aspect-ratio: 16 / 5; height:auto; }
}
