/* Biotech Storefront Enhancer v0.3.2 — page-scoped premium styling and accordions. */
.bcse-active{
  --bcse-shadow:0 18px 42px rgba(40,28,15,.07);
  --bcse-edge:1px solid rgba(121,84,43,.16);
}
/* Avoid restyling site-wide Elementor pages and preserving the Astra header/footer. */
.bcse-active .ast-woocommerce-container,
.bcse-active .site-main:has(.woocommerce) { color:var(--bcse-ink); }
.bcse-archive .ast-woocommerce-container { background:transparent; }
body.bcse-active.woocommerce .woocommerce-result-count{color:var(--bcse-muted);font-size:.9rem;}
body.bcse-active.woocommerce .woocommerce-ordering select{border:var(--bcse-edge);border-radius:9px;padding:11px 34px 11px 14px;background-color:#fff;color:var(--bcse-ink);}
/* Archive: cards appear premium but existing save-item buttons remain where the original plugin renders them. */
body.bcse-archive.woocommerce ul.products{row-gap:30px;}
body.bcse-archive.woocommerce ul.products li.product{
  background:var(--bcse-card);border:var(--bcse-edge);box-shadow:0 8px 24px rgba(40,28,15,.035);
  padding:13px 13px 20px!important;position:relative;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
  min-width:0;
}
body.bcse-rounded.bcse-archive.woocommerce ul.products li.product{border-radius:16px;overflow:visible;}
body.bcse-archive.woocommerce ul.products li.product a img{
  width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;background:#151412;transition:transform .45s cubic-bezier(.2,.8,.2,1);
}
body.bcse-rounded.bcse-archive.woocommerce ul.products li.product a img{border-radius:10px;}
body.bcse-hover.bcse-archive.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--bcse-shadow);border-color:rgba(121,84,43,.33)}
body.bcse-hover.bcse-archive.woocommerce ul.products li.product:hover a img{transform:scale(1.025)}
body.bcse-archive.woocommerce ul.products li.product .woocommerce-loop-product__title{
  color:var(--bcse-ink)!important;font-family:Georgia,'Times New Roman',serif;font-size:1.12rem!important;
  line-height:1.27;margin-top:12px;margin-bottom:5px;letter-spacing:-.01em;
}
body.bcse-archive.woocommerce ul.products li.product .price{color:var(--bcse-gold)!important;font-weight:700;font-size:1rem;}
body.bcse-active.woocommerce span.onsale{background:var(--bcse-gold);color:#fff;border-radius:7px;padding:3px 10px;min-height:0;line-height:1.7;font-size:.76rem;letter-spacing:.025em;}
/* Shop sidebar remains intact. */
.bcse-archive .widget-area .widget-title{color:var(--bcse-ink);}
/* Product page: style standard WooCommerce/Astra regions without replacing their layout or hooks. */
body.bcse-single.woocommerce div.product{color:var(--bcse-ink);}
body.bcse-single.woocommerce div.product .woocommerce-product-gallery{
  background:var(--bcse-card);border:var(--bcse-edge);padding:16px;box-shadow:var(--bcse-shadow);
}
body.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-product-gallery{border-radius:19px;overflow:visible;}
body.bcse-single.woocommerce div.product .woocommerce-product-gallery__wrapper img{height:auto;object-fit:contain;}
body.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-product-gallery__wrapper img{border-radius:11px;}
body.bcse-single.woocommerce div.product .summary .product_title{
  color:var(--bcse-ink)!important;font-family:Georgia,'Times New Roman',serif;font-weight:500;
  font-size:clamp(1.9rem,3.1vw,2.9rem);line-height:1.12;letter-spacing:-.025em;
}
body.bcse-single.woocommerce div.product .summary .price{color:var(--bcse-gold)!important;font-weight:700;font-size:1.55rem;margin:12px 0;}
body.bcse-single.woocommerce div.product .summary .woocommerce-product-details__short-description{color:var(--bcse-muted);line-height:1.72;}
body.bcse-single.woocommerce div.product .summary .stock{color:#25623a;font-weight:650;}
body.bcse-single.woocommerce div.product form.cart{margin-top:20px;margin-bottom:20px;}
body.bcse-active.woocommerce div.product form.cart .quantity input.qty{
 min-height:45px;min-width:60px;border:var(--bcse-edge);background:#fff;border-radius:9px;color:var(--bcse-ink);
}
body.bcse-active.woocommerce div.product form.cart .button,
body.bcse-archive.woocommerce ul.products li.product a.button,
body.bcse-active.woocommerce #respond input#submit{
  min-height:45px;border-radius:9px;border:1px solid var(--bcse-gold);background:var(--bcse-gold);color:#fff!important;
  padding:12px 20px;line-height:1.35;font-weight:650;text-align:center;
  transition:transform .2s ease,background-color .2s ease,color .2s ease,box-shadow .2s ease;
}
body.bcse-active.woocommerce div.product form.cart .button:hover,
body.bcse-archive.woocommerce ul.products li.product a.button:hover,
body.bcse-active.woocommerce #respond input#submit:hover{
  background:#1a1511;color:#fff!important;border-color:#1a1511;box-shadow:0 9px 22px rgba(38,24,12,.16);
}
body.bcse-focus.woocommerce .ast-woocommerce-container a:focus-visible,
body.bcse-focus.woocommerce .ast-woocommerce-container button:focus-visible,
body.bcse-focus.woocommerce .ast-woocommerce-container input:focus-visible,
body.bcse-focus.woocommerce .ast-woocommerce-container select:focus-visible{
  outline:3px solid var(--bcse-light-gold)!important;outline-offset:3px;
}
body.bcse-single.woocommerce div.product .product_meta{font-size:.82rem;color:var(--bcse-muted);border-top:var(--bcse-edge);margin-top:20px;padding-top:15px;}
body.bcse-single.woocommerce div.product .woocommerce-tabs{border-top:var(--bcse-edge);padding-top:20px;}
body.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--bcse-ink);}
body.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--bcse-gold);}
body.bcse-single.woocommerce div.product .woocommerce-tabs .panel{line-height:1.7;color:var(--bcse-muted);}
body.bcse-single.woocommerce div.product .related h2,body.bcse-single.woocommerce div.product .upsells h2{color:var(--bcse-ink);font-family:Georgia,'Times New Roman',serif;}
body.bcse-single.woocommerce div.product .related ul.products li.product,body.bcse-single.woocommerce div.product .upsells ul.products li.product{border:var(--bcse-edge);background:#fff;padding:12px;}
body.bcse-rounded.bcse-single.woocommerce div.product .related ul.products li.product,body.bcse-rounded.bcse-single.woocommerce div.product .upsells ul.products li.product{border-radius:13px;overflow:visible;}
/* Preserve native third-party save and gift controls: clarify hover affordance without moving them. */
body.bcse-active.woocommerce .summary button:not(.single_add_to_cart_button):hover,
body.bcse-active.woocommerce .summary a.button:hover,
body.bcse-archive.woocommerce ul.products li.product button:hover{
  filter:brightness(.92);transition:filter .2s ease;
}
@media(max-width:921px){
  body.bcse-archive.woocommerce ul.products li.product{padding:11px!important;}
  body.bcse-single.woocommerce div.product .woocommerce-product-gallery{padding:12px;}
}
@media(max-width:544px){
  body.bcse-active.woocommerce .woocommerce-result-count{float:none;}
  body.bcse-archive.woocommerce ul.products{row-gap:17px;}
  body.bcse-archive.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem!important;}
  body.bcse-single.woocommerce div.product .summary .product_title{font-size:1.95rem;}
  body.bcse-active.woocommerce div.product form.cart .button{min-height:48px;}
}
@media(prefers-reduced-motion:reduce){
 body.bcse-active.woocommerce .ast-woocommerce-container *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}



/* =========================================================
   Biotech Storefront Enhancer 0.3.4 — PREMIUM VISUAL LAYER
   Staging candidate. All selectors scoped to bcse-premium and Woo.
   These rules affect archive/product presentation only; native
   WooCommerce forms, queries, payment and order logic are retained.
   ========================================================= */
body.bcse-premium.woocommerce{
  --bcse-deep:#171411;
  --bcse-surface:#fdfbf7;
  --bcse-outline:rgba(111,79,43,.17);
  --bcse-shadow-soft:0 11px 32px rgba(37,24,13,.075);
  --bcse-shadow-lift:0 22px 48px rgba(37,24,13,.14);
  --bcse-hero-ink:#f9f0e5;
}
body.bcse-premium.woocommerce .site-content{
  background:var(--bcse-bg);
}
body.bcse-premium.woocommerce .site-content > .ast-container{
  width:calc(100% - 56px);
  max-width:1500px;
  margin-inline:auto;
}
body.bcse-premium.woocommerce .site-content #primary,
body.bcse-premium.woocommerce .site-content #secondary{min-width:0;}
/* The charcoal header in the reference is confined to the selected product pages.
   If the site's logo uses an opaque background, the header must be reviewed in QA. */
body.bcse-premium.woocommerce .site-header :is(.ast-primary-header-bar,.main-header-bar){
  background:var(--bcse-deep)!important;
  border-bottom:1px solid rgba(186,163,120,.30)!important;
}
body.bcse-premium.woocommerce .site-header :is(.main-header-menu,.ast-header-custom-item) a,
body.bcse-premium.woocommerce .site-header .ast-builder-menu .main-navigation > ul > li > a,
body.bcse-premium.woocommerce .site-header .ast-header-custom-item,
body.bcse-premium.woocommerce .site-header .ast-header-custom-item svg,
body.bcse-premium.woocommerce .site-header .ast-icon svg{
  color:#f4eadb;
  fill:currentColor;
}
body.bcse-premium.woocommerce .site-header .main-header-menu > .current-menu-item > a,
body.bcse-premium.woocommerce .site-header .main-header-menu > li > a:hover{
  color:var(--bcse-light-gold)!important;
}
/* Logo color adaptation is transparent-image safe; QA must inspect the actual logo asset. */
body.bcse-premium.woocommerce .site-header .custom-logo-link img{
  filter:brightness(1.2) saturate(.85);
}
/* Default CSS descriptions and price styling must never alter the checkout page. */
body.bcse-premium.woocommerce .ast-woocommerce-container{color:var(--bcse-ink);}
body.bcse-premium.woocommerce .ast-woocommerce-container a{transition:color .2s ease;}

/* Editorial treatment on the EXISTING Shop hero; no duplicated title or new section.
   Exact photo/asset replacement is intentionally not attempted here. */
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero{
  position:relative;isolation:isolate;
  min-height:clamp(345px,33vw,510px);
  display:flex;align-items:center;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(95deg,rgba(13,11,10,.8) 0%,rgba(13,11,10,.5) 52%,rgba(13,11,10,.12) 100%);
  z-index:0;pointer-events:none;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero :is(.elementor-container,.e-con-inner,.elementor-widget-wrap,.wp-block-cover__inner-container){
  position:relative;z-index:1;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero :is(h1,h2).bcse-hero-title{
  color:var(--bcse-hero-ink)!important;
  font:500 clamp(2.5rem,5.1vw,5.1rem)/.98 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.035em;margin-bottom:18px;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero :is(h1,h2).bcse-hero-title::before{
  content:"THE RESEARCH CATALOG";
  display:block;margin-bottom:17px;
  font:700 .68rem/1.5 Arial,sans-serif;letter-spacing:.24em;
  color:var(--bcse-light-gold);
}
body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero p.bcse-hero-copy{
  color:#f2e9df;max-width:620px;line-height:1.7;
}
@media(min-width:922px){
 body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero :is(h1,h2).bcse-hero-title,
 body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero p.bcse-hero-copy{text-align:left!important;}
}
@media(max-width:600px){
 body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero{min-height:340px;}
 body.bcse-premium.bcse-archive.woocommerce .bcse-existing-shop-hero :is(h1,h2).bcse-hero-title{font-size:2.6rem!important;}
}
/* SHOP — layout, catalog heading and sorting toolbar. */
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary{
  padding-right:22px;
  border-right:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-heading{
  float:none;clear:none;
  margin:0 0 12px;
  max-width:100%;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-eyebrow{
  display:block;
  color:var(--bcse-gold);
  font:700 .68rem/1.5 Arial,Helvetica,sans-serif;
  letter-spacing:.21em;
  margin-bottom:5px;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-heading h2{
  color:var(--bcse-ink);
  font:500 clamp(1.9rem,2.5vw,2.6rem)/1.15 Georgia,'Times New Roman',serif;
  margin:0;
  letter-spacing:-.025em;
}
body.bcse-premium.bcse-archive.woocommerce .woocommerce-result-count{
  font:400 .81rem/1.6 Arial,Helvetica,sans-serif;
  color:var(--bcse-muted);
  margin:0 0 18px;
}
body.bcse-premium.bcse-archive.woocommerce .woocommerce-ordering{
  margin:0 0 15px;
}
body.bcse-premium.bcse-archive.woocommerce .woocommerce-ordering select{
  min-height:41px;
  color:var(--bcse-ink);
  border:1px solid var(--bcse-outline);
  border-radius:7px;
  background:var(--bcse-card);
  padding:8px 35px 8px 14px;
  box-shadow:none;
}
/* The CSS grid must override Astra's float columns and Woo width/margin classes.
   Four columns on desktop, even with the store's existing sidebar. */
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:19px 15px!important;
  margin:25px 0 34px!important;
  align-items:stretch;
  clear:both;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products::before,
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products::after{display:none!important;}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product{
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  clear:none!important;
  margin:0!important;
  padding:10px 10px 17px!important;
  background:var(--bcse-card);
  border:1px solid var(--bcse-outline);
  box-shadow:var(--bcse-shadow-soft);
  display:flex;
  flex-direction:column;
  position:relative;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
body.bcse-premium.bcse-rounded.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product{border-radius:14px;}
body.bcse-premium.bcse-hover.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product:hover{
  transform:translateY(-4px);
  border-color:rgba(111,79,43,.4);
  box-shadow:var(--bcse-shadow-lift);
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap{
  position:relative;
  overflow:visible;
  background:#1b1816;
}
body.bcse-premium.bcse-rounded.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap{border-radius:9px;}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap a img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:contain;
  margin:0;
  background:#191613;
  transition:transform .25s ease;
}
body.bcse-premium.bcse-rounded.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap a img{border-radius:9px;}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap{
  padding:11px 2px 0;
  min-width:0;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{
  font:500 clamp(.94rem,1.12vw,1.1rem)/1.3 Georgia,'Times New Roman',serif!important;
  color:var(--bcse-ink)!important;
  margin:2px 0 6px!important;
  letter-spacing:-.012em;
  overflow-wrap:anywhere;
  padding-right:30px;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .price{
  font:700 clamp(.90rem,1.12vw,1.02rem)/1.4 Arial,Helvetica,sans-serif;
  color:var(--bcse-gold)!important;
  margin:8px 0 0!important;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .ast-woo-product-category,
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .ast-woo-product-category a{
  color:var(--bcse-muted)!important;
  font-size:.78rem;
}
/* Stock flags stay over the image; never cover the product title. */
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .out-of-stock,
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .ast-shop-product-out-of-stock,
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .stock.out-of-stock{
  background:rgba(241,224,190,.94);
  color:#3d2b16;
  border:1px solid rgba(91,61,27,.18);
  font:700 .67rem/1.4 Arial,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:6px 9px;
}
/* Saved Items: reserve a dedicated readable title gutter. The existing control is
   not moved or cloned until Work verifies its exact frontend structure. */
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-title-space{
  min-width:0;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product :is(a,button)[aria-label*="save" i]{
  flex:0 0 auto;
  min-width:28px;
  min-height:28px;
  border-radius:50%;
}
/* Smaller filter section styling and the existing search widget relocated by archive.js. */
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary :is(h2,h3,.widget-title){
  color:var(--bcse-ink);
  font-family:Georgia,'Times New Roman',serif;
  font-weight:500;
}
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary :is(input[type=search],input[name=s]){
  width:100%;min-height:43px;
  padding:10px 12px;
  border:1px solid var(--bcse-outline);
  background:var(--bcse-card);
  color:var(--bcse-ink);
  border-radius:7px;
}
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary .bcse-sidebar-search{
  margin:0 0 23px;
  padding:0 0 19px;
  border-bottom:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary .bcse-sidebar-search form{
  display:flex; flex-wrap:wrap; gap:8px;
}
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary .bcse-sidebar-search form button,
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary .bcse-sidebar-search form input[type=submit]{
  background:var(--bcse-gold); color:#fff; border:0;
  border-radius:7px; padding:10px 13px; min-height:41px;
}
body.bcse-premium.bcse-archive.woocommerce .site-content #secondary .bcse-sidebar-search label{display:block;flex:1;min-width:120px;}
/* Catalog pagination and simple feature strip. */
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers{
  border:0!important;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:12px 0 0;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li{border:0!important;}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container .woocommerce-pagination .page-numbers :is(a,span){
  display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid var(--bcse-outline);
  border-radius:50%;background:#fff;color:var(--bcse-ink);padding:5px;
}
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container .woocommerce-pagination .page-numbers .current{
  background:var(--bcse-gold);border-color:var(--bcse-gold);color:#fff;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  background:rgba(255,255,255,.66);border:1px solid var(--bcse-outline);
  padding:18px 0;margin:34px 0 16px;clear:both;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features>div{
  display:grid;grid-template-columns:34px 1fr;column-gap:10px;
  padding:4px 18px;border-right:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features>div:last-child{border-right:0;}
body.bcse-premium.bcse-archive.woocommerce .bcse-feature-mark{
  font:25px/1 Georgia,serif;color:var(--bcse-gold);grid-row:span 2;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features strong{font:700 .85rem/1.4 Arial,sans-serif;color:var(--bcse-ink);}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features small{font:400 .75rem/1.5 Arial,sans-serif;color:var(--bcse-muted);}

/* PRODUCT — remove the storefront sidebar on desktop; use a wide, editorial gallery. */
@media(min-width:922px){
  body.bcse-premium.bcse-single.woocommerce .site-content #secondary{display:none!important;}
  body.bcse-premium.bcse-single.woocommerce .site-content #primary{
    width:100%!important;max-width:100%!important;float:none!important;
    padding-inline:0!important;border:0!important;
  }
  body.bcse-premium.bcse-single.woocommerce .site-content .ast-woocommerce-container{
    width:100%;max-width:1380px;margin-inline:auto;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery{
    width:52%!important;max-width:52%;float:left!important;margin:0!important;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .summary{
    width:43%!important;max-width:43%;float:right!important;margin:0!important;
  }
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery{
  background:var(--bcse-card);
  border:1px solid var(--bcse-outline);
  padding:17px;
  box-shadow:var(--bcse-shadow-soft);
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-product-gallery{border-radius:16px;}
/* Astra/WooCommerce FlexSlider thumbnails become a left-side rail only where they exist.
   We do not detach or reparent the original gallery nodes. */
@media(min-width:1024px){
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery:has(.flex-control-thumbs){
    display:grid;grid-template-columns:78px minmax(0,1fr);gap:13px;align-items:start;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery:has(.flex-control-thumbs) :is(.flex-viewport,.woocommerce-product-gallery__wrapper){
    grid-column:2;grid-row:1;min-width:0;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs{
    grid-column:1;grid-row:1;display:flex!important;flex-direction:column;
    gap:9px;min-width:0;margin:0!important;max-height:550px;overflow:auto;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li{
    width:100%!important;float:none!important;max-width:none!important;margin:0!important;
  }
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img{
  border:1px solid var(--bcse-outline);padding:3px;background:#fff;opacity:.78;
  transition:opacity .2s ease,border-color .2s ease;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img{border-radius:8px;}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img:hover{border-color:var(--bcse-gold);opacity:1;}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery__wrapper img{
  object-fit:contain;
  width:100%;height:auto;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-product-gallery__wrapper img{border-radius:10px;}
body.bcse-premium.bcse-single.woocommerce div.product .summary .product_title{
  font:500 clamp(2.1rem,3.1vw,3.5rem)/1.1 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.028em;color:var(--bcse-ink)!important;margin:0 0 14px;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary .price{
  color:var(--bcse-gold)!important;font:700 clamp(1.32rem,1.7vw,1.85rem)/1.3 Arial,Helvetica,sans-serif;
  margin:15px 0 20px;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary .woocommerce-product-details__short-description{
  font:400 1rem/1.7 Arial,Helvetica,sans-serif;color:var(--bcse-muted);max-width:62ch;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary .stock{font-weight:650;}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart{
  margin:24px 0 18px;max-width:100%;
}
/* Scope quantity and native Woo cart button to the summary, never the header/footer. */
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart:not(.variations_form){
  display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:13px;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .quantity{
  flex:0 0 auto;margin:0!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .quantity input.qty{
  width:72px;min-height:47px;background:var(--bcse-card);border:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .summary form.cart .quantity input.qty{border-radius:7px;}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button{
  flex:1 1 220px;min-width:180px;min-height:48px;
  background:linear-gradient(110deg,var(--bcse-light-gold),var(--bcse-gold))!important;
  color:#fff!important;border:1px solid var(--bcse-gold)!important;
  font:700 .94rem/1.25 Arial,Helvetica,sans-serif;
  padding:12px 18px!important;box-shadow:0 8px 18px rgba(91,60,29,.17);
  letter-spacing:.02em;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button{border-radius:7px;}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button:hover{
  background:var(--bcse-deep)!important;border-color:var(--bcse-deep)!important;
}
/* Variable products keep Woo's variations table and validation; only the button row is enhanced. */
body.bcse-premium.bcse-single.woocommerce div.product .summary form.variations_form .variations_button{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:24px 0 16px;padding:15px 0;border-top:1px solid var(--bcse-outline);
  border-bottom:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities span{
  display:flex;align-items:center;gap:8px;min-width:0;
  color:var(--bcse-muted);font:600 .75rem/1.35 Arial,sans-serif;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities b{
  font:24px/1 Georgia,serif;color:var(--bcse-gold);
}
body.bcse-premium.bcse-single.woocommerce div.product .product_meta{
  border-top:0;margin-top:6px;padding-top:8px;
}
/* Product accordions are prominent, appear before existing Woo tabs, and remain keyboard accessible. */
body.bcse-premium.bcse-single.woocommerce div.product .bcse-product-info{
  clear:both;margin:48px 0 36px;padding:30px 34px 18px;
  background:var(--bcse-card);border:1px solid var(--bcse-outline);
  box-shadow:var(--bcse-shadow-soft);
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .bcse-product-info{border-radius:16px;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__eyebrow{
  display:block;margin-bottom:7px;color:var(--bcse-gold);font:700 .7rem Arial,sans-serif;letter-spacing:.2em;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__heading h2{
  font:500 clamp(1.6rem,2.3vw,2.3rem)/1.2 Georgia,'Times New Roman',serif;
  color:var(--bcse-ink);margin:0 0 21px;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item{
  margin:0;border-top:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item:last-child{border-bottom:1px solid var(--bcse-outline);}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item summary{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:20px 3px;cursor:pointer;list-style:none;
  font:650 .96rem/1.3 Arial,sans-serif;color:var(--bcse-ink);
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item summary::-webkit-details-marker{display:none;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__symbol::before{content:'+';font:400 1.5rem/1 Arial,sans-serif;color:var(--bcse-gold);}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item[open] .bcse-product-info__symbol::before{content:'−';}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__body{
  max-width:82ch;padding:0 3px 17px;color:var(--bcse-muted);
  font:400 .94rem/1.76 Arial,sans-serif;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__body :is(p,ul,ol){margin:0 0 12px;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__body :is(ul,ol){padding-left:22px;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-info__item summary:focus-visible{outline:3px solid var(--bcse-light-gold);outline-offset:3px;}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs{
  clear:both;margin:36px 0 40px;padding-top:22px;
  border-top:1px solid var(--bcse-outline);
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex;flex-wrap:wrap;gap:9px 24px;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  color:var(--bcse-muted);font:650 .88rem Arial,sans-serif;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--bcse-gold);}
body.bcse-premium.bcse-single.woocommerce div.product .related,
body.bcse-premium.bcse-single.woocommerce div.product .upsells{clear:both;margin-top:44px;}
body.bcse-premium.bcse-single.woocommerce div.product .related h2,
body.bcse-premium.bcse-single.woocommerce div.product .upsells h2{
  color:var(--bcse-ink);font:500 clamp(1.65rem,2.15vw,2.25rem)/1.2 Georgia,serif;
  margin-bottom:22px;
}
body.bcse-premium.bcse-single.woocommerce div.product .related ul.products,
body.bcse-premium.bcse-single.woocommerce div.product .upsells ul.products{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;
}
body.bcse-premium.bcse-single.woocommerce div.product .related ul.products::before,
body.bcse-premium.bcse-single.woocommerce div.product .related ul.products::after,
body.bcse-premium.bcse-single.woocommerce div.product .upsells ul.products::before,
body.bcse-premium.bcse-single.woocommerce div.product .upsells ul.products::after{display:none!important;}
body.bcse-premium.bcse-single.woocommerce div.product .related ul.products li.product,
body.bcse-premium.bcse-single.woocommerce div.product .upsells ul.products li.product{
  float:none!important;margin:0!important;width:100%!important;max-width:none!important;
  min-width:0;position:relative;background:var(--bcse-card);border:1px solid var(--bcse-outline);
  padding:10px!important;box-shadow:var(--bcse-shadow-soft);
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .related ul.products li.product,
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .upsells ul.products li.product{border-radius:12px;}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product img{
  width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;margin:0 0 10px;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .woocommerce-loop-product__title{
  color:var(--bcse-ink)!important;font:500 .92rem/1.3 Georgia,serif!important;
  padding-right:22px;overflow-wrap:anywhere;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .price{
  color:var(--bcse-gold)!important;font-size:.9rem;font-weight:700;
}
/* ASTRA native sticky cart — styling only, keeping its existing WooCommerce form.
   Do not change transform/top/bottom: Astra's own visibility script owns them. */
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart{
  background:rgba(25,21,17,.97)!important;
  color:#f8f0e4!important;
  border-top:1px solid rgba(186,163,120,.47);
  box-shadow:0 -14px 45px rgba(21,15,9,.26);
  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);
  z-index:999;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-container{
  max-width:1450px;width:calc(100% - 36px);margin:0 auto;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content{
  display:grid!important;grid-template-columns:minmax(180px,.7fr) minmax(0,1.7fr);
  gap:18px;align-items:center;color:#f8f0e4!important;
  padding:12px 0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap{
  min-width:0;display:flex;align-items:center;gap:11px;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap img{
  width:56px!important;height:56px!important;object-fit:contain;
  background:#0f0d0b;border:1px solid rgba(186,163,120,.31);margin:0!important;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap img{border-radius:7px;}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title{
  font:500 1rem/1.27 Georgia,'Times New Roman',serif;color:#f8f0e4;
  overflow-wrap:anywhere;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap{
  display:flex!important;align-items:center;justify-content:flex-end;gap:11px;
  min-width:0;max-width:100%;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-price{
  color:var(--bcse-light-gold)!important;font:700 1.1rem/1.3 Arial,sans-serif;
  white-space:nowrap;margin:0 7px 0 0;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart{
  display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;
  gap:8px 10px;margin:0!important;width:auto!important;max-width:100%;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .quantity{
  margin:0!important;flex:0 0 auto;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .quantity input.qty{
  min-height:40px!important;height:40px;width:56px;background:#fbf8f3;border:1px solid rgba(186,163,120,.4);
  color:#221914;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .quantity input.qty{border-radius:7px;}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .single_add_to_cart_button,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap a.single_link_to_cart_button{
  flex:0 0 auto;min-width:145px;min-height:41px!important;
  background:linear-gradient(110deg,var(--bcse-light-gold),var(--bcse-gold))!important;
  color:#fff!important;border:1px solid rgba(230,205,160,.5)!important;
  padding:10px 18px!important;line-height:1.25;font-weight:700;
  box-shadow:none;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap :is(.single_add_to_cart_button,.single_link_to_cart_button){border-radius:7px;}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart :is(a,button):not(.single_add_to_cart_button){
  border-color:rgba(186,163,120,.45);color:#f8e9d0;
}
/* Preserve gift/save controls and text within the existing sticky form, but keep copy compact.
   It is intentionally NOT display:none: some third-party controls might be required. */
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart p{
  color:#dfd0bc;font-size:.73rem;line-height:1.35;margin:0;max-width:190px;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart :is(label,span){color:inherit;}
/* Responsive: desktop four columns, tablet three or two, phones two. */
@media (max-width:1199px) and (min-width:922px){
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products{gap:14px 11px!important;}
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product{padding:8px!important;}
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{font-size:.9rem!important;}
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart p{max-width:130px;}
}
@media(max-width:921px){
  body.bcse-premium.woocommerce .site-content > .ast-container{width:calc(100% - 32px);}
  body.bcse-premium.bcse-archive.woocommerce .site-content #secondary{border-right:0;padding-right:0;}
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px 15px!important;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-product-gallery,
  body.bcse-premium.bcse-single.woocommerce div.product .summary{
    max-width:100%;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content{
    grid-template-columns:1fr;gap:10px;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap{
    justify-content:space-between;
  }
}
@media(max-width:600px){
  body.bcse-premium.bcse-archive.woocommerce .site-content > .ast-container{width:calc(100% - 24px);}
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 10px!important;
  }
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product{
    padding:8px 8px 13px!important;
  }
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{
    font-size:.90rem!important;padding-right:26px;
  }
  body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features{grid-template-columns:1fr;gap:12px;padding:15px;}
  body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features>div{border:0;padding:5px 0;}
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{gap:8px;flex-wrap:wrap;}
  body.bcse-premium.bcse-single.woocommerce div.product .related ul.products,
  body.bcse-premium.bcse-single.woocommerce div.product .upsells ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  }
  body.bcse-premium.bcse-single.woocommerce div.product .bcse-product-info{padding:23px 17px 13px;margin-top:32px;}
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap,
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-price{display:none!important;}
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content{padding:8px 0!important;}
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart{width:100%!important;justify-content:center;}
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .single_add_to_cart_button{flex:1 1 170px;}
}
@media(max-width:375px){
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{font-size:.84rem!important;}
}
@media(prefers-reduced-motion:reduce){
  body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product,
  body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product a img,
  body.bcse-premium.woocommerce .ast-woocommerce-container :is(a,button,select,input),
  body.bcse-premium.woocommerce .ast-sticky-add-to-cart :is(a,button,input){
    animation:none!important;transition:none!important;transform:none!important;
  }
}
/* A switched-off rounded-corners option must not leave premium card/gallery radii. */
body.bcse-premium:not(.bcse-rounded).woocommerce .ast-woocommerce-container ul.products li.product,
body.bcse-premium:not(.bcse-rounded).woocommerce .ast-woocommerce-container ul.products li.product img,
body.bcse-premium:not(.bcse-rounded).woocommerce div.product .woocommerce-product-gallery,
body.bcse-premium:not(.bcse-rounded).woocommerce div.product .woocommerce-product-gallery img,
body.bcse-premium:not(.bcse-rounded).woocommerce div.product .bcse-product-info,
body.bcse-premium:not(.bcse-rounded).woocommerce div.product form.cart .single_add_to_cart_button,
body.bcse-premium:not(.bcse-rounded).woocommerce .ast-sticky-add-to-cart .single_add_to_cart_button{
  border-radius:0!important;
}


/* ======================================================================
   0.3.4 — EVIDENCE-DRIVEN POLISH
   Same Astra/Woo templates, existing cart/gift/saved controls preserved.
   Only applies when premium mode is enabled on Shop or Single Product.
   ====================================================================== */

/* Solid luxury buttons. Remove all white/champagne gradient sheen; provide a
   distinct hover/focus state and preserve WooCommerce disabled styling. */
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .single_add_to_cart_button,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap a.single_link_to_cart_button{
  background:var(--bcse-gold)!important;
  background-image:none!important;
  color:#fff!important;
  border-color:var(--bcse-gold)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  transition:background-color .17s ease,border-color .17s ease,color .17s ease!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button:not(:disabled):hover,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart .single_add_to_cart_button:hover,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap a.single_link_to_cart_button:hover{
  background:#2a211b!important;
  background-image:none!important;
  color:#fff!important;
  border-color:var(--bcse-light-gold)!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button:focus-visible,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap :is(button.single_add_to_cart_button,a.single_link_to_cart_button):focus-visible{
  outline:3px solid #efd7a7!important;outline-offset:3px!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .summary form.cart .single_add_to_cart_button:disabled{
  opacity:.55;cursor:not-allowed;
}

/* Astra sticky cart: undo the inherited full-width purchase form/grid sizing.
   Own presentation only; Astra still controls sticky visibility and Woo forms. */
@media(min-width:922px){
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content{
    grid-template-columns:minmax(155px,.65fr) minmax(0,2.5fr)!important;
    gap:12px!important;padding:9px 0!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap{
    gap:9px!important;justify-content:flex-end!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart{
    width:auto!important;max-width:100%!important;
    display:flex!important;flex-flow:row nowrap!important;
    align-items:center!important;gap:8px!important;
  }
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-purchase-row{
  display:inline-flex!important;flex:0 0 auto!important;
  align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;width:auto!important;max-width:100%!important;
  min-height:0!important;margin:0!important;padding:0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-purchase-row .quantity{
  display:inline-flex!important;flex:0 0 auto!important;width:auto!important;margin:0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-single{
  display:inline-flex!important;flex:0 0 auto!important;
  align-items:center!important;max-width:160px!important;margin:0!important;
  color:#f7eade!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-single :is(a,button),
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcse-sticky-save{
  min-height:42px!important;min-width:42px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;padding:7px 12px!important;
  background:#272018!important;color:#f7eade!important;
  border:1px solid #bba77e!important;border-radius:8px!important;
  font:650 .75rem/1.2 Arial,Helvetica,sans-serif!important;
  text-decoration:none!important;white-space:normal!important;
  cursor:pointer!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-single :is(a,button):hover,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcse-sticky-save:hover{
  background:#403027!important;color:#fff!important;border-color:#efd7a7!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcse-sticky-save:focus-visible,
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcsi-single :is(a,button):focus-visible{
  outline:3px solid #efd7a7!important;outline-offset:2px;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcse-sticky-save__symbol{
  color:#e9c993;font-size:1rem;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_box{
  display:flex!important;flex:0 1 235px!important;
  flex-flow:row nowrap!important;align-items:center!important;gap:7px!important;
  width:auto!important;max-width:235px!important;min-width:0!important;
  margin:0!important;padding:0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_title_text{
  flex:1 1 100px!important;min-width:70px!important;max-width:130px!important;
  color:#e7d5bc!important;font:.71rem/1.3 Arial,Helvetica,sans-serif!important;
  margin:0!important;text-align:left!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_btn{
  flex:0 0 auto!important;max-width:105px!important;min-width:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:transparent!important;background-image:none!important;
  border:1px solid #c7b18b!important;color:#f7ead7!important;
  border-radius:7px!important;padding:8px 9px!important;
  font:650 .71rem/1.2 Arial,Helvetica,sans-serif!important;
  text-decoration:none!important;white-space:normal!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_btn:hover{
  background:#483727!important;color:#fff!important;border-color:#efd7a7!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart :is(button.single_add_to_cart_button,a.single_link_to_cart_button){
  flex:0 0 auto!important;min-width:135px!important;max-width:185px!important;
  min-height:42px!important;width:auto!important;margin:0!important;
  padding:10px 16px!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-price{
  font-size:1rem!important;flex:0 0 auto!important;white-space:nowrap!important;
}
/* Tablet/mobile: preserve all actions, allowing a tidy two-row layout rather
   than clipping third-party gift/Save controls or hiding their functionality. */
@media(max-width:1100px){
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart{
    flex-wrap:wrap!important;justify-content:flex-end!important;row-gap:7px!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_box{
    flex:0 1 100%!important;max-width:100%!important;justify-content:flex-end!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_title_text{
    max-width:190px!important;
  }
}
@media(max-width:600px){
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap,
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart{
    width:100%!important;justify-content:center!important;flex-wrap:wrap!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap form.cart :is(button.single_add_to_cart_button,a.single_link_to_cart_button){
    flex:1 1 145px!important;min-width:125px!important;max-width:none!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_box{
    justify-content:center!important;
  }
}
/* Collapse the optional product title row at tablet widths to keep sticky
   purchase actions visible; the normal page title remains unaffected. */
@media(min-width:601px) and (max-width:921px){
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap{
    display:none!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content{
    gap:0!important;padding:9px 0!important;
  }
}
/* Saved Items title buttons — move slightly inward, confine visible labels to
   the control, preserve original DOM text, accessible name and click handler. */
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title{
  box-sizing:border-box!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;
  margin-inline-end:8px!important;
  padding:6px!important;overflow:hidden!important;white-space:nowrap!important;
  font-size:0!important;line-height:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:#fff!important;
  border:1px solid rgba(121,84,43,.3)!important;
  border-radius:50%!important;box-shadow:0 3px 9px rgba(25,19,12,.09);
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title::before{
  font-size:18px!important;line-height:1!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title :is(svg,i){
  width:18px!important;height:18px!important;font-size:18px!important;
  flex:none!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title:focus-visible{
  outline:3px solid var(--bcse-gold)!important;outline-offset:3px!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{
  padding-right:46px!important;
}
/* The existing save link stays in its original position within product card;
   its visible label is compacted but not removed from accessibility tree. */

/* Product utilities: links, native disclosures and mailto actions instead of
   decorative spans. No fake checkout integrations or scripts. */
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;align-items:start!important;
  border:0!important;padding:0!important;margin:22px 0 18px!important;
  overflow:visible;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card{
  position:relative;display:flex;align-items:center;justify-content:center;gap:9px;
  min-width:0;min-height:55px;padding:11px 12px;
  background:var(--bcse-card);color:var(--bcse-ink);
  border:1px solid var(--bcse-outline);border-radius:9px;
  font:650 .78rem/1.35 Arial,Helvetica,sans-serif;
  text-decoration:none;box-shadow:0 4px 14px rgba(45,28,14,.04);
  transition:border-color .2s ease,background-color .2s ease,transform .2s ease;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card:hover,
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card[open]{
  border-color:var(--bcse-gold);background:#fbf7f0;color:var(--bcse-ink);
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card:focus-visible,
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card summary:focus-visible{
  outline:3px solid var(--bcse-gold);outline-offset:3px;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-icon{
  display:inline-block!important;flex:none;color:var(--bcse-gold)!important;
  font:24px/1 Georgia,serif;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout{
  display:block!important;padding:0!important;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout summary{
  display:flex!important;align-items:center;justify-content:center;gap:8px;
  padding:11px 12px;min-height:53px;cursor:pointer;list-style:none;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout summary::-webkit-details-marker{display:none;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-chevron{font-size:15px;opacity:.7;}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card__content{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:10;
  padding:14px 15px;border:1px solid var(--bcse-outline);
  border-radius:9px;background:#fff;box-shadow:0 14px 30px rgba(25,19,12,.15);
  color:var(--bcse-muted);font-size:.78rem;line-height:1.5;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card__content p{margin:0;}
@media(max-width:600px){
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{grid-template-columns:1fr!important;}
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card__content{
    position:static;box-shadow:none;border:0;border-top:1px solid var(--bcse-outline);
    border-radius:0;
  }
}

/* Native Woo tabs ABOVE product accordions (PHP priority 12), styled as an
   ivory editorial information card while preserving Woo's tab JS/reviews. */
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs{
  clear:both!important;
  margin:42px 0 25px!important;padding:24px 30px 28px!important;
  border:1px solid var(--bcse-outline)!important;
  background:var(--bcse-card)!important;box-shadow:var(--bcse-shadow-soft)!important;
}
body.bcse-premium.bcse-rounded.bcse-single.woocommerce div.product .woocommerce-tabs{border-radius:16px;}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex!important;gap:9px 12px!important;align-items:center!important;
  flex-wrap:wrap!important;border:0!important;margin:0 0 21px!important;
  padding:0 0 15px!important;border-bottom:1px solid var(--bcse-outline)!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important;}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-flex!important;align-items:center!important;min-height:42px!important;
  border:1px solid transparent!important;border-radius:8px;
  padding:10px 14px!important;text-decoration:none!important;
  font:650 .89rem/1.3 Arial,Helvetica,sans-serif!important;
  color:var(--bcse-muted)!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{
  background:#f5ede1!important;border-color:var(--bcse-outline)!important;
  color:var(--bcse-gold)!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible{
  outline:3px solid var(--bcse-gold)!important;outline-offset:2px;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs .panel{
  color:var(--bcse-muted)!important;font:400 .96rem/1.8 Arial,Helvetica,sans-serif!important;
  margin:0!important;padding:2px 0 0!important;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs .panel :is(h2,h3,h4){
  color:var(--bcse-ink)!important;font-family:Georgia,'Times New Roman',serif;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs .panel table{
  width:100%;border-collapse:collapse;
}
body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs .panel table :is(th,td){
  padding:11px 13px;border-bottom:1px solid var(--bcse-outline);text-align:left;
}
body.bcse-premium.bcse-single.woocommerce div.product .bcse-product-info{
  margin-top:25px!important;scroll-margin-top:110px;
}
body.bcse-premium.bcse-single.woocommerce #bcse-product-info{scroll-margin-top:110px;}

/* Shop's ACTUAL Astra archive banner is a sibling preceding .site-content.
   It is an explicit WooCommerce Shop-only target; no heuristic ancestor JS. */
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner{
  position:relative;isolation:isolate;display:flex;align-items:center;
  min-height:clamp(340px,32vw,485px);
  overflow:hidden;
}
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:linear-gradient(92deg,rgba(15,12,10,.82) 0%,rgba(15,12,10,.52) 55%,rgba(15,12,10,.16) 100%);
}
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner > .ast-container{
  position:relative;z-index:1;display:flex;flex-direction:column;
  align-items:flex-start;justify-content:center;text-align:left;
  width:min(100% - 48px,1350px);margin-inline:auto;
}
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner :is(h1,h2){
  color:#f9f0e4!important;
  font:500 clamp(2.6rem,5vw,5rem)/1.05 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.03em;text-align:left!important;max-width:700px;
}
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner :is(h1,h2)::before{
  content:'THE RESEARCH CATALOG';display:block;margin-bottom:14px;
  font:700 .69rem/1.4 Arial,Helvetica,sans-serif;letter-spacing:.23em;
  color:#e8cfa2;
}
body.bcse-premium.woocommerce-shop .ast-archive-entry-banner p{
  color:#f5e9dc!important;text-align:left!important;
  max-width:610px;line-height:1.7;
}
/* Astra social builder markup identified in Work's runtime audit. */
body.bcse-premium.woocommerce .site-header .ast-header-social-wrap a.ast-builder-social-element,
body.bcse-premium.woocommerce .site-header .ast-header-social-wrap a.ast-builder-social-element :is(svg,.ahfb-svg-iconset){
  color:#f5e7d6!important;fill:currentColor!important;
}
body.bcse-premium.woocommerce .site-header .ast-header-social-wrap a.ast-builder-social-element svg :is(path,circle,rect,polygon){
  fill:currentColor!important;
}
body.bcse-premium.woocommerce .site-header .ast-header-social-wrap a.ast-builder-social-element:hover,
body.bcse-premium.woocommerce .site-header .ast-header-social-wrap a.ast-builder-social-element:focus-visible{
  color:#e6bb79!important;outline-offset:4px;
}
@media(max-width:600px){
  body.bcse-premium.woocommerce-shop .ast-archive-entry-banner > .ast-container{
    width:calc(100% - 30px);align-items:center;text-align:center;
  }
  body.bcse-premium.woocommerce-shop .ast-archive-entry-banner :is(h1,h2),
  body.bcse-premium.woocommerce-shop .ast-archive-entry-banner p{text-align:center!important;}
  body.bcse-premium.bcse-single.woocommerce div.product .woocommerce-tabs{
    margin-top:24px!important;padding:18px 16px 20px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.bcse-premium.woocommerce .bcse-utility-card,
  body.bcse-premium.woocommerce .bcse-sticky-save,
  body.bcse-premium.woocommerce .ast-sticky-add-to-cart .bcsi-single :is(a,button){
    transition:none!important;animation:none!important;transform:none!important;
  }
}

/* === v0.3.5 / Owner-approved video corrections: card controls + truthful feedback. ===
   Freeze the existing header, Woo tabs, accordion, Shop sorting and filters. */

/* Compact Save Item heart; keep the REAL Saved Items link and its accessible
   name, positioning the visual target entirely inside its product card. */
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-host,
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-title-space{
  position:static!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title{
  position:absolute!important;top:18px!important;right:18px!important;left:auto!important;bottom:auto!important;
  margin:0!important;transform:none!important;z-index:8!important;
  box-sizing:border-box!important;width:38px!important;min-width:38px!important;max-width:38px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;padding:6px!important;
  border-radius:50%!important;background:#fffaf4!important;border:1px solid #c9ad89!important;
  color:#6f4e30!important;box-shadow:0 3px 12px rgba(18,12,7,.17)!important;
  font-size:0!important;line-height:0!important;text-indent:0!important;white-space:nowrap!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title :is(svg,i),
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title::before{
  flex:none!important;font-size:18px!important;line-height:1!important;width:18px;height:18px;
  color:inherit!important;fill:currentColor;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title:hover{
  background:#fff2e2!important;border-color:#976e3d!important;box-shadow:0 5px 13px rgba(28,18,9,.2)!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title:is(.bcse-save-on,.is-saved,.bcsi-saved,[aria-pressed="true"]),
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .bcse-sticky-save.bcse-save-on{
  color:#a12737!important;border-color:#c86972!important;background:#fff3f2!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title{
  padding-right:0!important;
}
/* Constrain on-card Astra CTA to the media surface, where available. */
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .ast-on-card-button{
  max-width:calc(100% - 20px)!important;box-sizing:border-box!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .ast-on-card-button :is(a,button):focus-visible{
  outline:3px solid var(--bcse-gold);outline-offset:2px;
}
/* No inline WC View cart link when the confirmed Woo AJAX event is being
   observed; the genuine header/cart remains usable. */
body.bcse-premium.bcse-cart-feedback-ready.woocommerce .ast-woocommerce-container ul.products li.product a.added_to_cart.wc-forward{
  display:none!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcse-cart-confirmation{
  display:none;position:absolute;z-index:9;left:50%;top:55px;transform:translateX(-50%);
  max-width:calc(100% - 20px);white-space:nowrap;padding:8px 13px;
  color:#fff!important;background:#395344;border:1px solid rgba(255,255,255,.28);
  border-radius:7px;box-shadow:0 8px 22px rgba(0,0,0,.23);
  font:700 .78rem/1.4 Arial,Helvetica,sans-serif;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product.bcse-cart-just-added .bcse-cart-confirmation{
  display:block;
}
/* Small accessible, noninteractive confirmation; only populated on proven
   state changes or WooCommerce's successful AJAX event. */
body.bcse-premium.woocommerce .bcse-status{
  position:fixed;z-index:99998;bottom:95px;left:50%;transform:translate(-50%,14px);
  background:#24201b;color:#fbeedb;border:1px solid #b49a74;border-radius:9px;
  padding:12px 20px;box-shadow:0 12px 30px rgba(0,0,0,.24);
  font:700 .9rem/1.35 Arial,Helvetica,sans-serif;max-width:calc(100vw - 30px);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
body.bcse-premium.woocommerce .bcse-status.bcse-status--visible{
  opacity:1;visibility:visible;transform:translate(-50%,0);
}

/* Related / upsell cards: denser editorial treatment instead of a tall empty
   white panel with tiny type. Product names/prices/data remain Woo-managed. */
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product{
  padding:11px 11px 18px!important;
  background:#fbf8f2!important;
  border:1px solid #dfd3c1!important;
  box-shadow:0 8px 20px rgba(47,31,15,.09)!important;
  min-height:0!important;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .astra-shop-summary-wrap{
  flex:0 1 auto!important;min-height:0!important;padding:13px 3px 2px!important;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .woocommerce-loop-product__title{
  padding:0!important;margin:0 0 8px!important;
  font:500 clamp(1rem,1.22vw,1.18rem)/1.35 Georgia,'Times New Roman',serif!important;
  color:#241a13!important;min-height:0!important;letter-spacing:-.01em;
  overflow-wrap:break-word;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .price{
  font:750 clamp(.99rem,1.2vw,1.14rem)/1.4 Arial,Helvetica,sans-serif!important;
  color:var(--bcse-gold)!important;margin-top:6px!important;
}
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .ast-woo-product-category{
  font-size:.78rem!important;line-height:1.45;color:#746554!important;
}

/* Product utility trio: three identical closed-state control heights. The
   checkout disclosure remains an overlay (desktop), not a taller grid item. */
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{
  align-items:stretch!important;grid-auto-rows:minmax(58px,auto)!important;gap:12px!important;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card{
  height:58px!important;min-height:58px!important;max-height:58px!important;
  padding:0 12px!important;box-sizing:border-box!important;
  align-self:stretch!important;white-space:normal;text-align:center;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout{
  display:block!important;overflow:visible!important;padding:0!important;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout summary{
  min-height:58px!important;height:58px!important;max-height:58px!important;
  box-sizing:border-box!important;padding:0 12px!important;text-align:center;
}
body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card__content{
  box-sizing:border-box;max-height:min(280px,50vh);overflow-y:auto;line-height:1.6;
}
/* The accordion, product tabs, and header remain intentionally untouched. */

/* Existing Shop feature strip: third item is a real Contact Us link only when
   WordPress finds a published contact-us page. */
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features .bcse-feature-help{
  display:grid;grid-template-columns:34px 1fr;column-gap:10px;
  padding:4px 18px;text-decoration:none;border-right:0;
  background:transparent;transition:background-color .2s ease;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features .bcse-feature-help:hover{
  background:rgba(178,144,96,.09);
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features .bcse-feature-help:focus-visible{
  outline:3px solid var(--bcse-gold);outline-offset:2px;
}
body.bcse-premium.bcse-archive.woocommerce .bcse-catalog-features .bcse-feature-help :is(strong,small){display:block;}

@media(max-width:600px){
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities{grid-auto-rows:auto!important;}
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout[open]{
    height:auto!important;max-height:none!important;
  }
  body.bcse-premium.bcse-single.woocommerce .bcse-product-utilities .bcse-utility-card--checkout[open] .bcse-utility-card__content{
    position:static;max-height:none;
  }
  body.bcse-premium.woocommerce .bcse-status{bottom:145px;font-size:.83rem;}
  body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title{
    top:14px!important;right:14px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.bcse-premium.woocommerce .bcse-status{
    transition:none!important;transform:translate(-50%,0)!important;
  }
}
/* Render a consistent, small premium heart in the existing Saved Items link.
   Source label stays accessible via aria-label; no vendor event is replaced. */
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title > *{
  visibility:hidden!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title::before{
  content:'♡'!important;position:absolute!important;inset:0!important;
  width:auto!important;height:auto!important;
  display:grid!important;place-items:center!important;
  font:400 26px/1 Georgia,'Times New Roman',serif!important;
  color:inherit!important;
  visibility:visible!important;
}
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title:is(.bcse-save-on,.bcsi-saved,.is-saved,[aria-pressed='true'])::before{
  content:'♥'!important;
}
/* A grid track includes card borders and padding at every viewport width. */
body.bcse-premium.woocommerce .ast-woocommerce-container ul.products li.product{
  box-sizing:border-box!important;
}


/* v0.3.8 — restore the owner-approved inset Shop heart from v0.3.5.
   v0.3.7 incorrectly set a negative top offset and pulled hearts beyond cards.
   Keep the original vendor anchor, saved-state and keyboard focus behavior. */
body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title{
  top:18px!important;right:18px!important;bottom:auto!important;
}
@media(max-width:600px){
  body.bcse-premium.bcse-archive.woocommerce .ast-woocommerce-container ul.products li.product .bcsi-btn--title{
    top:14px!important;right:14px!important;
  }
}
/* Product-page related/upsell hearts were slightly below their title line.
   Nudge the existing control upward only in these cards; no change to the
   gallery, sticky cart, tabs, or product summary. */
body.bcse-premium.bcse-single.woocommerce div.product :is(.related,.upsells) ul.products li.product .bcsi-btn--title{
  top:8px!important;
}
/* Sticky product gifting: keep original vendor button/action; compact the
   redundant descriptive text visually so it cannot produce an oversized block. */
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_box{
  flex:0 0 auto!important;width:auto!important;max-width:165px!important;min-width:0!important;
  align-items:center!important;justify-content:center!important;gap:0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_title_text{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip-path:inset(50%)!important;clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;border:0!important;
}
body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_btn{
  display:inline-flex!important;flex:0 0 auto!important;max-width:none!important;
  min-width:0!important;width:auto!important;min-height:42px!important;
  padding:9px 12px!important;white-space:nowrap!important;
  font:650 .75rem/1.25 Arial,Helvetica,sans-serif!important;
  border-radius:8px!important;
}
@media(max-width:600px){
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_box{
    flex:0 1 auto!important;max-width:100%!important;
  }
  body.bcse-premium.bcse-single.woocommerce .ast-sticky-add-to-cart .wt_gc_product_as_gift_add_to_cart_btn{
    white-space:normal!important;text-align:center!important;
  }
}
