/* La Femeia — Shop/category editorial archive. Product card styles stay in products.css. */
.bb-shop-main {
  --ar-ink:#29231f; --ar-muted:#81756a; --ar-gold:#b68a50; --ar-bg:#f8f4ee;
  --ar-line:rgba(150,114,75,.2); --ar-ease:cubic-bezier(.22,.61,.36,1);
  background:var(--ar-bg); color:var(--ar-ink);
  font-family:'DM Sans',Arial,sans-serif; padding:0 0 40px;
}
.bb-archive-wrapper { width:min(100% - 56px,1280px); margin-inline:auto; }
.bb-cat-archive-header { position:relative; text-align:center; padding:clamp(42px,5vw,68px) 0 clamp(38px,4vw,54px); }
.bb-shop-eyebrow { margin:0 0 16px; font:600 11px/1.4 'DM Sans',sans-serif; letter-spacing:.2em; color:var(--ar-gold); }
.bb-cat-archive-title { margin:0; font:500 clamp(3.6rem,6.5vw,6rem)/.92 'Cormorant Garamond',Georgia,serif; letter-spacing:-.04em; color:var(--ar-ink); }
.bb-cat-archive-title::after { content:''; display:block; width:46px; height:1px; margin:22px auto 0; background:var(--ar-gold); }
.bb-shop-intro { margin:20px auto 0; max-width:560px; color:var(--ar-muted); font-size:14px; line-height:1.7; }
.bb-cat-archive-desc { max-width:680px; margin:12px auto 0; color:var(--ar-muted); font:400 14px/1.7 'DM Sans',sans-serif; }
.bb-cat-archive-desc p { margin:0; }
.bb-shop-filter-bar { display:flex; align-items:center; gap:18px; padding:16px 0; margin-bottom:16px; border-top:1px solid var(--ar-line); border-bottom:1px solid var(--ar-line); }
.bb-shop-filter-heading { flex:none; display:flex; align-items:center; gap:9px; font:600 11px/1 'DM Sans',sans-serif; letter-spacing:.13em; text-transform:uppercase; color:var(--ar-muted); }
.bb-shop-filter-heading__dot { width:7px; height:7px; background:var(--ar-gold); border-radius:50%; }
.bb-shop-categories { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.bb-filter-btn { flex:none; white-space:nowrap; padding:11px 19px; background:transparent; border:1px solid var(--ar-line); border-radius:999px; color:var(--ar-ink); font:500 12.5px/1.2 'DM Sans',sans-serif; cursor:pointer; box-shadow:none; transition:color .25s,background .25s,border-color .25s,transform .25s; }
.bb-filter-btn:hover { background:#fffdfb; border-color:var(--ar-gold); transform:translateY(-1px); }
.bb-filter-btn.active, .bb-filter-btn.active:hover { background:var(--ar-ink); border-color:var(--ar-ink); color:#fff; transform:none; }
.bb-shop-sorting { flex:none; position:relative; z-index:12; }
/* Underlying native select remains available for the AJAX state; users operate the bespoke control. */
.bb-sort-native { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:0!important; opacity:0!important; pointer-events:none!important; border:0!important; overflow:hidden!important; clip-path:inset(50%); }
.bb-custom-sort { position:relative; }
.bb-custom-sort__trigger { display:flex; align-items:center; gap:9px; min-height:46px; padding:0 15px; border:1px solid var(--ar-line); border-radius:13px; background:#fffdfb; color:var(--ar-ink); box-shadow:0 5px 20px rgba(68,44,27,.025); cursor:pointer; font:500 12px 'DM Sans',sans-serif; white-space:nowrap; transition:border-color .25s,box-shadow .25s; }
.bb-custom-sort__trigger:hover,.bb-custom-sort.is-open .bb-custom-sort__trigger { border-color:#cba77a; box-shadow:0 7px 24px rgba(68,44,27,.07); }
.bb-custom-sort__trigger > svg:first-child { color:var(--ar-gold); flex:none; }
.bb-custom-sort__label { color:var(--ar-muted); font-weight:400; }
.bb-custom-sort__trigger strong { font:600 12px/1.2 'DM Sans',sans-serif; }
.bb-custom-sort__chevron { margin-left:8px; transition:transform .25s var(--ar-ease); }
.bb-custom-sort.is-open .bb-custom-sort__chevron { transform:rotate(180deg); }
.bb-custom-sort__panel { position:absolute; top:calc(100% + 9px); right:0; width:max(100%,252px); max-width:min(90vw,340px); padding:10px; border:1px solid var(--ar-line); border-radius:16px; background:#fffdfb; box-shadow:0 24px 50px -24px rgba(42,33,26,.35); transform-origin:top right; animation:lf-sort-in .22s var(--ar-ease); }
.bb-custom-sort__panel[hidden] { display:none!important; }
@keyframes lf-sort-in { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:none; } }
.bb-custom-sort__eyebrow { display:block; padding:10px 12px 7px; color:var(--ar-gold); font:600 10px/1.3 'DM Sans',sans-serif; letter-spacing:.15em; }
.bb-custom-sort__option { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:12px; background:transparent; border:0; border-radius:9px; color:var(--ar-ink); text-align:left; font:500 12.5px/1.35 'DM Sans',sans-serif; cursor:pointer; }
.bb-custom-sort__option:hover,.bb-custom-sort__option:focus-visible { background:#f6f0e7; }
.bb-custom-sort__option.is-selected { color:#8f6839; background:#f7f0e4; }
.bb-custom-sort__check { color:var(--ar-gold); opacity:0; font-size:16px; }
.bb-custom-sort__option.is-selected .bb-custom-sort__check { opacity:1; }
.bb-filter-btn:focus-visible,.bb-custom-sort__trigger:focus-visible,.bb-custom-sort__option:focus-visible { outline:2px solid var(--ar-gold); outline-offset:2px; }
.bb-shop-results-meta { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:0 0 22px; }
.bb-shop-count { margin:0; font:600 12px 'DM Sans',sans-serif; color:var(--ar-muted); }
.bb-shop-results-meta__detail { color:var(--ar-muted); font:400 12px 'DM Sans',sans-serif; }
.bb-archive-products-wrap { min-height:400px; }
.bb-archive-products-wrap .woocommerce-notices-wrapper,.bb-archive-products-wrap .woocommerce-info { display:none!important; }
#bb-shop-grid { transition:opacity .3s var(--ar-ease); }
#bb-shop-grid.is-loading { opacity:.5; pointer-events:none; }
.bb-shop-error { padding:12px 16px; border:1px solid #e3bdb4; border-radius:12px; color:#914a3b; background:#fff7f3; }
.bb-archive-more { margin-top:45px; text-align:center; }
.bb-archive-more[hidden] { display:none!important; }
.woocommerce-result-count,.woocommerce-ordering,.woo-listing-top { display:none!important; }
/* Shop-specific reveal safeguard; don't change the homepage reveal animation. */
.bb-shop-main ul.bb-product-grid.bb-reveal-ready > li.product:not(.is-in) { opacity:1!important; transform:none!important; }
.bb-shop-main ul.bb-product-grid.bb-reveal-ready > li.product { visibility:visible!important; }
.bb-shop-reviews { width:100%; margin-top:64px; }
/* Theme-specific reviews section keeps its established CSS and shortcode markup. */
@media(max-width:1100px) {
  .bb-shop-filter-bar { flex-wrap:wrap; }
  .bb-shop-filter-heading { width:100%; }
  .bb-shop-categories { overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; padding:2px 0 5px; }
  .bb-shop-categories::-webkit-scrollbar { display:none; }
  .bb-shop-sorting { margin-left:auto; }
}
@media(max-width:700px) {
  .bb-archive-wrapper { width:calc(100% - 32px); }
  .bb-cat-archive-header { padding:34px 0 30px; }
  .bb-cat-archive-title { font-size:clamp(3.1rem,13vw,4.4rem); }
  .bb-shop-intro { font-size:13px; }
  .bb-shop-filter-bar { gap:13px; padding:14px 0; }
  .bb-shop-filter-heading { font-size:10px; }
  .bb-shop-categories { flex-basis:100%; width:100%; margin:0 -16px; padding:3px 16px 8px; }
  .bb-filter-btn { padding:10px 16px; font-size:12px; }
  .bb-shop-sorting { flex-basis:100%; width:100%; }
  .bb-custom-sort__trigger { width:100%; justify-content:flex-start; }
  .bb-custom-sort__trigger strong { margin-left:auto; }
  .bb-custom-sort__panel { left:0; right:0; width:100%; max-width:none; }
  .bb-shop-results-meta { padding-bottom:20px; }
  .bb-shop-results-meta__detail { display:none; }
  .bb-archive-products-wrap { min-height:250px; }
  .bb-shop-reviews { margin-top:36px; }
}
@media(prefers-reduced-motion:reduce) {
  .bb-shop-main *, .bb-shop-main *::before,.bb-shop-main *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
