/* Bulk Pricing & Product Page Style — frontend styles
   Colors come from CSS variables set dynamically by the plugin
   based on your admin settings (Bulk Pricing > Styling). */

body.single-product{
  background-color: var(--wsp-bg) !important;
}
body.single-product #content,
body.single-product .site-main,
body.single-product .content-area{
  background-color: var(--wsp-bg) !important;
}

body.single-product div.product{
  background: transparent;
  color: var(--wsp-text);
  max-width: var(--wsp-max-width, 1200px);
  margin: 0 auto;
  padding: 24px 0 60px;
}

body.single-product .woocommerce-breadcrumb{
  color: var(--wsp-muted) !important;
  font-size: 13px;
  margin-bottom: 16px;
}
body.single-product .woocommerce-breadcrumb a{
  color: var(--wsp-muted) !important;
}


/* Button relocated below the gallery (when enabled in settings) */
.wsp-moved-button-wrap .single_add_to_cart_button,
.wsp-moved-button-wrap button,
.wsp-moved-button-wrap a.button{
  width: 100%;
}

/* Summary column */
body.single-product div.summary{
  color: var(--wsp-text);
  padding-left: 12px;
}

body.single-product .posted_in a,
body.single-product .product_meta a{
  color: var(--wsp-accent) !important;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}

body.single-product .product_title{
  color: var(--wsp-text) !important;
  font-size: 34px;
  font-weight: 800;
  margin: 6px 0 12px;
}

body.single-product p.price,
body.single-product p.price span.woocommerce-Price-amount{
  color: var(--wsp-text) !important;
  font-size: 26px;
  font-weight: 700;
}
body.single-product p.price del{
  color: var(--wsp-muted) !important;
  opacity: .7;
  font-size: 18px;
  font-weight: 400;
  margin-right: 6px;
}
body.single-product p.price ins{
  text-decoration: none;
}
.wsp-discount-badge{
  display: inline-block;
  background: rgba(34,197,94,.12);
  color: var(--wsp-badge);
  border: 1px solid rgba(34,197,94,.35);
  background: color-mix(in srgb, var(--wsp-badge) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--wsp-badge) 35%, transparent);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 8px;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description p{
  color: var(--wsp-muted) !important;
  font-size: 15px;
  line-height: 1.6;
}

/* Variations / Swatches (Variation Swatches for WooCommerce) */
body.single-product .variations{
  margin: 20px 0;
}
body.single-product .variations td.label,
body.single-product .woocommerce-variation-attribute > label{
  color: var(--wsp-text) !important;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

body.single-product ul.variable-items-wrapper li.variable-item.wvs-style-round{
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
}
body.single-product ul.variable-items-wrapper li.variable-item.selected,
body.single-product ul.variable-items-wrapper li.variable-item:hover{
  border-color: var(--wsp-accent) !important;
  box-shadow: none !important;
}

body.single-product ul.variable-items-wrapper li.variable-item.wvs-style-button,
body.single-product ul.variable-items-wrapper li.variable-item.wvs-style-label{
  background: var(--wsp-panel) !important;
  border: 1px solid var(--wsp-border) !important;
  color: var(--wsp-text) !important;
  border-radius: 8px;
  min-width: 44px;
  height: 40px;
  font-weight: 600;
}
body.single-product ul.variable-items-wrapper li.variable-item.wvs-style-button.selected,
body.single-product ul.variable-items-wrapper li.variable-item.wvs-style-label.selected{
  background: var(--wsp-accent) !important;
  border-color: var(--wsp-accent) !important;
  color: var(--wsp-accent-text) !important;
}

/* Quantity box */
body.single-product div.quantity{
  display: inline-flex;
  align-items: center;
  background: var(--wsp-panel);
  border: 1px solid var(--wsp-border);
  border-radius: 10px;
  overflow: hidden;
}
body.single-product div.quantity input.qty{
  background: transparent;
  border: none;
  color: var(--wsp-text);
  text-align: center;
  width: var(--wsp-qty-input-w, 50px);
  height: var(--wsp-qty-h, 42px);
  -moz-appearance: textfield;
}
/* Hide the browser's native up/down spinner on number inputs — we render
   our own minus/plus buttons instead (via JS if the theme doesn't have them). */
body.single-product div.quantity input.qty::-webkit-inner-spin-button,
body.single-product div.quantity input.qty::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
/* Hide ThemeREX / trx_addons themes' own stacked up-down quantity carets
   (q_inc / q_dec) — our own minus/plus buttons replace them. */
body.single-product div.quantity .q_inc,
body.single-product div.quantity .q_dec{
  display: none !important;
}
body.single-product div.quantity .qty-btn,
body.single-product div.quantity .plus,
body.single-product div.quantity .minus{
  background: var(--wsp-panel);
  color: var(--wsp-text);
  width: var(--wsp-qty-btn-w, 40px);
  height: var(--wsp-qty-h, 42px);
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
/* Force a consistent left-to-right order (minus, input, plus) regardless
   of the order your theme outputs them in the HTML. */
body.single-product div.quantity{
  display: inline-flex;
}
body.single-product div.quantity .minus{ order: 1; }
body.single-product div.quantity input.qty{ order: 2; }
body.single-product div.quantity .plus{ order: 3; }

/* Self-contained quantity control (built by the plugin's JS). The theme's
   original quantity UI is hidden but its input keeps working underneath. */
.wsp-qty-label{
  color: var(--wsp-text);
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0 8px;
}
.wsp-qty-hidden-host{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.wsp-qty{
  display: inline-flex;
  align-items: center;
  background: var(--wsp-panel);
  border: 1px solid var(--wsp-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.wsp-qty__display{
  background: transparent !important;
  border: none !important;
  outline: none;
  color: var(--wsp-text) !important;
  text-align: center;
  width: var(--wsp-qty-input-w, 50px);
  height: var(--wsp-qty-h, 42px);
  padding: 0 !important;
  font-size: 15px;
  box-shadow: none !important;
}
.wsp-qty__btn{
  background: var(--wsp-panel) !important;
  color: var(--wsp-text) !important;
  width: var(--wsp-qty-btn-w, 40px);
  height: var(--wsp-qty-h, 42px);
  border: none !important;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.wsp-qty__btn:hover{
  background: var(--wsp-panel-2) !important;
}

/* Buttons */
body.single-product .single_add_to_cart_button,
body.single-product a.button.product_type_simple,
body.single-product .woocommerce-variation-add-to-cart .button,
body.single-product form.cart .button{
  background: var(--wsp-accent) !important;
  color: var(--wsp-accent-text) !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  width: 100%;
  margin-bottom: 20px;
  transition: filter .15s ease;
}
body.single-product .single_add_to_cart_button:hover,
body.single-product form.cart .button:hover{
  filter: brightness(1.08);
}

/* Bulk pricing table */
.wsp-bulk-pricing{
  background: var(--wsp-panel-2);
  border: 1px solid var(--wsp-border);
  border-radius: var(--wsp-radius);
  padding: 18px;
  margin: 24px 0;
}
.wsp-bulk-pricing__title{
  color: var(--wsp-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}
.wsp-bulk-pricing__tiers{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.wsp-tier{
  text-align: center;
  padding: 12px 6px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--wsp-border);
  color: var(--wsp-muted);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wsp-tier.active{
  background: var(--wsp-accent);
  border-color: var(--wsp-accent);
  color: var(--wsp-accent-text);
}
.wsp-tier__range{
  display: block;
  font-weight: 700;
  font-size: 14px;
}
.wsp-tier__label{
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
@media (max-width: 480px){
  .wsp-bulk-pricing__tiers{ grid-template-columns: repeat(2, 1fr); }
}

/* Delivery info row */
.wsp-delivery-info{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  color: var(--wsp-muted);
  font-size: 13px;
}
.wsp-delivery-info__item{
  display: flex;
  align-items: center;
  gap: 8px;
}
.wsp-delivery-info__item svg{
  flex: none;
  color: var(--wsp-accent);
}

/* Tabs */
body.single-product .woocommerce-tabs{
  margin-top: 40px;
  border-top: 1px solid var(--wsp-border);
  padding-top: 24px;
}
body.single-product .woocommerce-tabs ul.tabs li a{
  color: var(--wsp-muted);
}
body.single-product .woocommerce-tabs ul.tabs li.active a{
  color: var(--wsp-text);
  border-bottom: 2px solid var(--wsp-accent);
}
body.single-product .woocommerce-tabs .panel{
  color: var(--wsp-muted);
}
body.single-product .woocommerce-tabs .panel h2{
  color: var(--wsp-text);
}

/* Related products */
body.single-product .related.products{
  margin-top: 50px;
}
body.single-product .related.products h2{
  color: var(--wsp-text);
}
body.single-product .related.products .product{
  background: var(--wsp-panel);
  border-radius: var(--wsp-radius);
  padding: 14px;
}
body.single-product .related.products .product .woocommerce-loop-product__title,
body.single-product .related.products .product .price{
  color: var(--wsp-text) !important;
}

/* ---------- ACF sections (Product Specifications / Care Instructions) ---------- */
.wsp-section-title{
  color: var(--wsp-text);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wsp-specs,
.wsp-care{
  max-width: 820px;
  margin: 48px auto;
  padding: 0 16px;
}

/* Specification table */
.wsp-specs__table{
  background: var(--wsp-panel);
  border: 1px solid var(--wsp-border);
  border-radius: var(--wsp-radius);
  overflow: hidden;
}
.wsp-specs__row{
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--wsp-border);
}
.wsp-specs__row:last-child{
  border-bottom: none;
}
.wsp-specs__label{
  padding: 16px 20px;
  color: var(--wsp-text);
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--wsp-border);
  background: rgba(255,255,255,.02);
}
.wsp-specs__value{
  padding: 16px 20px;
  color: var(--wsp-muted);
  font-size: 14px;
  line-height: 1.6;
}
.wsp-specs__value ul{
  margin: 0;
  padding-left: 18px;
}
.wsp-specs__value li{
  margin-bottom: 6px;
}
@media (max-width: 600px){
  .wsp-specs__row{ grid-template-columns: 1fr; }
  .wsp-specs__label{ border-right: none; border-bottom: 1px solid var(--wsp-border); }
}

/* Care instructions */
.wsp-care__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff7f0;
  color: var(--wsp-accent);
  flex: none;
}
.wsp-care__intro{
  color: var(--wsp-muted);
  font-size: 15px;
  margin: 0 0 18px;
}
.wsp-care__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px){
  .wsp-care__grid{ grid-template-columns: 1fr; }
}
.wsp-care__card{
  background: var(--wsp-panel);
  border: 1px solid var(--wsp-border);
  border-radius: var(--wsp-radius);
  padding: 18px 20px;
}
.wsp-care__card-title{
  color: var(--wsp-text);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.wsp-care__list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.wsp-care__list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--wsp-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.wsp-care__list li:last-child{
  margin-bottom: 0;
}
.wsp-care__mark{
  flex: none;
  font-weight: 700;
}
.wsp-care__do .wsp-care__mark{ color: #22c55e; }
.wsp-care__dont .wsp-care__mark{ color: #ef4444; }
.wsp-care__footer{
  color: var(--wsp-muted);
  font-size: 13px;
  text-align: center;
  margin: 16px 0 0;
}
