/* Smith's Astoria Product Detail UX — v1.5.0
 * Product-scoped only. Does not replace WooCommerce gallery, quote forms, tabs or related-products query.
 */
body.smiths-astoria-single {
  --sap-blue:#1556a0;
  --sap-blue-hover:#0e417f;
  --sap-ink:#202638;
  --sap-muted:#687385;
  --sap-line:#e5e9ef;
  --sap-surface:#fff;
}
body.smiths-astoria-single .main-page-wrapper{background:#fbfcfe}
body.smiths-astoria-single .single-product-content,
body.smiths-astoria-single .product-design-default,
body.smiths-astoria-single .product-design-alt{--wd-text-color:#687385}
/* Keep the actual WoodMart gallery's lightbox, carousel and thumbnails. */
body.smiths-astoria-single .woocommerce-product-gallery,
body.smiths-astoria-single .wd-product-gallery {
  background:var(--sap-surface);
  border:1px solid var(--sap-line);
  border-radius:16px;
  padding:12px;
  box-shadow:0 10px 35px rgba(25,41,68,.035);
}
body.smiths-astoria-single .woocommerce-product-gallery img,
body.smiths-astoria-single .wd-product-gallery img{object-fit:contain}
body.smiths-astoria-single .thumbnails img,
body.smiths-astoria-single .wd-product-gallery .wd-gallery-thumb img,
body.smiths-astoria-single .woocommerce-product-gallery .flex-control-thumbs img {
  border:1px solid var(--sap-line);border-radius:9px;background:#fff;
}
body.smiths-astoria-single .summary.entry-summary,
body.smiths-astoria-single .product-summary-wrap .summary {
  padding:8px 0 14px;
}
body.smiths-astoria-single .summary .product_title,
body.smiths-astoria-single .summary h1.product_title {
  font-size:clamp(25px,2.15vw,34px)!important;
  line-height:1.17!important;
  letter-spacing:-.032em;
  color:var(--sap-ink)!important;
  font-weight:700!important;
  margin-bottom:15px!important;
}
body.smiths-astoria-single .summary .woocommerce-product-details__short-description,
body.smiths-astoria-single .summary .woocommerce-product-details__short-description p {
  font-size:14px!important;line-height:1.82!important;color:var(--sap-muted)!important;
}
body.smiths-astoria-single .summary .woocommerce-breadcrumb,
body.smiths-astoria-single .woocommerce-breadcrumb {font-size:12px;color:#86909c}
/* Truly dynamic real WooCommerce product attributes. */
body.smiths-astoria-single .sap-facts{margin:18px 0 20px;clear:both}
body.smiths-astoria-single .sap-facts__heading{display:block;font-size:11px;letter-spacing:.11em;text-transform:uppercase;font-weight:750;color:#7e8895;margin:0 0 9px}
body.smiths-astoria-single .sap-facts__items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.smiths-astoria-single .sap-fact {display:flex;flex-direction:column;gap:3px;min-width:0;background:#f7f9fc;border:1px solid var(--sap-line);border-radius:10px;padding:11px 12px}
body.smiths-astoria-single .sap-fact__label{font-size:11px;color:#798394;font-weight:500}
body.smiths-astoria-single .sap-fact__value{font-size:13px;color:var(--sap-ink);font-weight:650;overflow-wrap:anywhere;line-height:1.45}
/* Quote button styling — JS finds existing, working Request a Quote button by visible text. */
body.smiths-astoria-single .sap-pdp-quote-primary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:46px!important;border-radius:8px!important;padding:12px 24px!important;
  font-size:13px!important;font-weight:700!important;text-align:center!important;
  text-decoration:none!important;background:var(--sap-blue)!important;color:#fff!important;
  border:1px solid var(--sap-blue)!important;transition:background-color .2s,transform .2s;
}
body.smiths-astoria-single .sap-pdp-quote-primary:hover{background:var(--sap-blue-hover)!important;transform:translateY(-1px)}
/* Improve old-school vertical tabs without changing the actual tab scripts. */
body.smiths-astoria-single .woocommerce-tabs,
body.smiths-astoria-single .wd-tabs {margin-top:48px}
body.smiths-astoria-single .woocommerce-tabs .tabs,
body.smiths-astoria-single .wd-tabs .tabs{border-bottom:1px solid var(--sap-line);gap:6px 24px;flex-wrap:wrap}
body.smiths-astoria-single .woocommerce-tabs .tabs li a,
body.smiths-astoria-single .wd-tabs .tabs li a{
  color:#6c7583!important;font-size:13px!important;font-weight:650!important;
  text-transform:none!important;letter-spacing:0!important;padding:13px 0!important;
}
body.smiths-astoria-single .woocommerce-tabs .tabs li.active a,
body.smiths-astoria-single .wd-tabs .tabs li.active a,
body.smiths-astoria-single .woocommerce-tabs .tabs li a:hover{color:var(--sap-blue)!important}
body.smiths-astoria-single .woocommerce-tabs .woocommerce-Tabs-panel,
body.smiths-astoria-single .wd-tabs .wd-tab-content {font-size:14px;line-height:1.8;color:var(--sap-muted)}
body.smiths-astoria-single .woocommerce-product-attributes,
body.smiths-astoria-single .shop_attributes {border-collapse:collapse!important;width:100%}
body.smiths-astoria-single .woocommerce-product-attributes tr,
body.smiths-astoria-single .shop_attributes tr{border-bottom:1px solid var(--sap-line)}
body.smiths-astoria-single .woocommerce-product-attributes th,
body.smiths-astoria-single .shop_attributes th{color:var(--sap-ink);font-weight:650!important}
body.smiths-astoria-single .woocommerce-product-attributes th,
body.smiths-astoria-single .woocommerce-product-attributes td,
body.smiths-astoria-single .shop_attributes th,
body.smiths-astoria-single .shop_attributes td{padding:12px 8px!important;font-size:13px!important}
/* Display Features tab: turn existing bullet points into two-column checklist. */
body.smiths-astoria-single #tab-display-features ul,
body.smiths-astoria-single #tab-display_features ul,
body.smiths-astoria-single #tab-features ul {
  list-style:none!important;padding:0!important;margin:6px 0 0!important;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px;
}
body.smiths-astoria-single #tab-display-features li,
body.smiths-astoria-single #tab-display_features li,
body.smiths-astoria-single #tab-features li {
  position:relative;border:1px solid var(--sap-line);border-radius:9px;
  padding:11px 12px 11px 36px!important;margin:0!important;color:#4b5565;
  background:#fff;font-size:13px;line-height:1.5;
}
body.smiths-astoria-single #tab-display-features li::before,
body.smiths-astoria-single #tab-display_features li::before,
body.smiths-astoria-single #tab-features li::before{
  content:'✓';position:absolute;left:13px;top:10px;color:#177755;font-size:15px;font-weight:800;
}
body.smiths-astoria-single .related-products,
body.smiths-astoria-single .related {margin-top:42px}
body.smiths-astoria-single .related-products > h3,
body.smiths-astoria-single .related > h2 {font-size:23px!important;color:var(--sap-ink)!important;letter-spacing:-.025em}
body.smiths-astoria-single .related .product-grid-item .product-wrapper {background:#fff;border:1px solid var(--sap-line);border-radius:10px;overflow:hidden;padding:12px}
/* Mobile-only sticky enquiry; uses existing quote action, or a WhatsApp fallback. */
.sap-mobile-quote{display:none}
@media(min-width:1025px){
  body.smiths-astoria-single .summary.entry-summary {position:sticky;top:95px;z-index:1}
}
@media(max-width:767px){
  body.smiths-astoria-single .main-page-wrapper{padding-bottom:85px}
  body.smiths-astoria-single .woocommerce-product-gallery,
  body.smiths-astoria-single .wd-product-gallery{padding:6px;border-radius:11px}
  body.smiths-astoria-single .summary .product_title{font-size:25px!important}
  body.smiths-astoria-single .sap-facts__items{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body.smiths-astoria-single .sap-fact{padding:9px}
  body.smiths-astoria-single .woocommerce-tabs,body.smiths-astoria-single .wd-tabs{margin-top:26px}
  body.smiths-astoria-single #tab-display-features ul,
  body.smiths-astoria-single #tab-display_features ul,
  body.smiths-astoria-single #tab-features ul{grid-template-columns:1fr}
  .sap-mobile-quote{
    position:fixed;z-index:9999;left:0;right:0;bottom:0;display:flex;align-items:center;
    gap:10px;background:#fff;border-top:1px solid var(--sap-line);
    padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    box-shadow:0 -7px 25px rgba(22,37,59,.1);
  }
  .sap-mobile-quote__copy{flex:1;min-width:0}
  .sap-mobile-quote__name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sap-ink);font-size:12px;font-weight:700}
  .sap-mobile-quote__meta{display:block;font-size:11px;color:var(--sap-muted)}
  .sap-mobile-quote__btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:0;border-radius:7px;background:var(--sap-blue);color:#fff!important;font-weight:700;font-size:12px;text-decoration:none!important}
}
@media(prefers-reduced-motion:reduce){body.smiths-astoria-single .sap-pdp-quote-primary{transition:none}}

/* Custom tab slugs are not always named display-features; match tab by title in JS. */
body.smiths-astoria-single .sap-features-panel ul{
  list-style:none!important;padding:0!important;margin:6px 0 0!important;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px;
}
body.smiths-astoria-single .sap-features-panel ul li{
  position:relative;border:1px solid var(--sap-line);border-radius:9px;
  padding:11px 12px 11px 36px!important;margin:0!important;color:#4b5565;
  background:#fff;font-size:13px;line-height:1.5;
}
body.smiths-astoria-single .sap-features-panel ul li::before{
  content:'✓';position:absolute;left:13px;top:10px;color:#177755;font-size:15px;font-weight:800;
}
@media(max-width:767px){
  body.smiths-astoria-single .sap-features-panel ul{grid-template-columns:1fr}
}


/* v1.6 Design 5: Featured specifications + native accessible accordions */
body.smiths-astoria-single .sap-specs{max-width:1120px;margin:6px auto 26px;color:var(--sap-ink);font-family:inherit}
body.smiths-astoria-single .sap-specs__intro{margin-bottom:22px}
body.smiths-astoria-single .sap-specs__eyebrow{font-weight:700;font-size:10px;letter-spacing:.15em;color:var(--sap-blue)}
body.smiths-astoria-single .sap-specs__intro h3{font-size:clamp(21px,2.5vw,29px);font-weight:750;letter-spacing:-.025em;margin:5px 0 6px;color:var(--sap-ink)}
body.smiths-astoria-single .sap-specs__intro p{margin:0;color:var(--sap-muted);font-size:13px}
body.smiths-astoria-single .sap-specs__highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
body.smiths-astoria-single .sap-specs__highlight{border:1px solid #e4eaf3;border-radius:13px;background:#f6f9fd;padding:21px 19px;min-width:0;border-top:3px solid var(--sap-blue)}
body.smiths-astoria-single .sap-specs__highlight-label{display:block;color:#6f7b8e;font-size:12px;font-weight:500;line-height:1.45;margin-bottom:10px}
body.smiths-astoria-single .sap-specs__highlight-value{display:block;font-size:clamp(17px,2vw,24px);font-weight:750;letter-spacing:-.02em;line-height:1.25;color:var(--sap-blue);overflow-wrap:anywhere}
body.smiths-astoria-single .sap-specs__group-list{display:grid;gap:11px}
body.smiths-astoria-single .sap-specs__group{margin:0;border:1px solid #e5eaf1;border-radius:12px;background:#fff;overflow:hidden}
body.smiths-astoria-single .sap-specs__group[open]{box-shadow:0 5px 20px rgba(17,50,88,.045)}
body.smiths-astoria-single .sap-specs__group-head{display:flex;align-items:center;gap:12px;padding:18px 20px;list-style:none;cursor:pointer;font-size:14px;font-weight:700;color:#26334a}
body.smiths-astoria-single .sap-specs__group-head::-webkit-details-marker{display:none}
body.smiths-astoria-single .sap-specs__group-head:focus-visible{outline:3px solid #8bb6ea;outline-offset:-3px}
body.smiths-astoria-single .sap-specs__group[open] .sap-specs__group-head{background:#f8fafe;border-bottom:1px solid #e7ebf1}
body.smiths-astoria-single .sap-specs__group-count{margin-left:auto;color:#8791a1;font-size:11px;font-weight:500;white-space:nowrap}
body.smiths-astoria-single .sap-specs__chevron{height:8px;width:8px;border-right:2px solid #748198;border-bottom:2px solid #748198;transform:rotate(45deg);transition:transform .15s;flex-shrink:0}
body.smiths-astoria-single .sap-specs__group[open] .sap-specs__chevron{transform:rotate(225deg)}
body.smiths-astoria-single .sap-specs__rows{margin:0;padding:4px 20px 7px}
body.smiths-astoria-single .sap-specs__row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;align-items:center;border-bottom:1px solid #eef1f5;padding:13px 0}
body.smiths-astoria-single .sap-specs__row:last-child{border-bottom:0}
body.smiths-astoria-single .sap-specs__row dt{font-size:13px;color:#788496;font-weight:500}
body.smiths-astoria-single .sap-specs__row dd{margin:0;font-size:13px;color:#27364b;font-weight:650;text-align:right;overflow-wrap:anywhere}
@media(max-width:767px){
body.smiths-astoria-single .sap-specs__highlights{gap:8px}
body.smiths-astoria-single .sap-specs__highlight{padding:13px 10px;border-radius:10px}
body.smiths-astoria-single .sap-specs__highlight-label{font-size:10px}
body.smiths-astoria-single .sap-specs__highlight-value{font-size:16px}
body.smiths-astoria-single .sap-specs__group-head{padding:15px 13px;font-size:13px}
body.smiths-astoria-single .sap-specs__rows{padding:3px 14px 7px}
body.smiths-astoria-single .sap-specs__row{column-gap:12px;padding:12px 0}
body.smiths-astoria-single .sap-specs__row dt,body.smiths-astoria-single .sap-specs__row dd{font-size:12px}
}
@media(max-width:400px){body.smiths-astoria-single .sap-specs__highlights{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.smiths-astoria-single .sap-specs__chevron{transition:none}}
