/*
 * Shain Store v1.0.103
 * Final high-priority product layout polish.
 */

/* Product information tabs: keep the card size, make only the three tab buttons smaller. */
html body.single-product .ss-product-tabs-list {
  gap: 4px !important;
  padding: 6px !important;
}
html body.single-product .ss-product-tabs-list .ss-product-tab {
  min-height: 35px !important;
  padding: 5px 9px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}
@media (max-width: 600px) {
  html body.single-product .ss-product-tabs-list .ss-product-tab {
    min-height: 33px !important;
    padding: 5px 6px !important;
    font-size: 11px !important;
  }
}

/* Make share/compare/wishlist controls consistent with the site's standard product tool buttons. */
html body.single-product .ss-product-gallery-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  direction: rtl !important;
}
html body.single-product .ss-product-gallery-actions .ss-gallery-action {
  display: inline-flex !important;
  flex: 0 0 36px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}
html body.single-product .ss-product-gallery-actions .ss-gallery-action svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  max-width: 100% !important;
  fill: none !important;
  stroke: currentColor !important;
}
html body.single-product .ss-product-gallery-actions .ss-gallery-action:hover,
html body.single-product .ss-product-gallery-actions .ss-gallery-action.is-active {
  color: #b5122a !important;
  border-color: #b5122a !important;
  background: #fff0f1 !important;
}
html.ss-dark-mode body.single-product .ss-product-gallery-actions .ss-gallery-action {
  color: #fff !important;
  background: #292d37 !important;
  border-color: #697080 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
}
html.ss-dark-mode body.single-product .ss-product-gallery-actions .ss-gallery-action:hover,
html.ss-dark-mode body.single-product .ss-product-gallery-actions .ss-gallery-action.is-active {
  color: #fff !important;
  background: #b5122a !important;
  border-color: #b5122a !important;
}

/* Desktop two-card layout: enlarge the gallery and keep the purchase card compact. */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product {
    grid-template-columns: minmax(245px, .86fr) minmax(0, 1.04fr) minmax(0, 1.24fr) !important;
    column-gap: 14px !important;
  }

  html body.single-product .ss-desktop-buy-panel-bg {
    border: 1px solid #d9dee7 !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(20,25,35,.045) !important;
  }
  html body.single-product .ss-desktop-info-panel-bg {
    border: 1px solid #d9dee7 !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(20,25,35,.045) !important;
  }
  html.ss-dark-mode body.single-product .ss-desktop-buy-panel-bg,
  html.ss-dark-mode body.single-product .ss-desktop-info-panel-bg {
    border-color: #414653 !important;
    box-shadow: none !important;
  }

  /* Prevent the AJAX helper button from duplicating WooCommerce's real add-to-cart button.
     The real button remains functional and is styled as the sole desktop CTA. */
  html body.single-product .summary.entry-summary .ss-inline-cart-control,
  html body.single-product .summary.entry-summary .ss-inline-add,
  html body.single-product .summary.entry-summary .ss-inline-qty,
  html body.single-product .summary.entry-summary a.added_to_cart,
  html body.single-product .ss-sticky-buy-bar {
    display: none !important;
  }
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .single_add_to_cart_button,
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone button.single_add_to_cart_button,
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 39px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border: 1px solid #b5122a !important;
    border-radius: 9px !important;
    background: #b5122a !important;
    background-color: #b5122a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    text-shadow: none !important;
    white-space: normal !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .single_add_to_cart_button *,
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .single_add_to_cart_button::before,
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .single_add_to_cart_button::after {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body.single-product div.product.pt-single-product .summary.entry-summary .ss-buy-action-zone .single_add_to_cart_button:hover {
    background: #940e22 !important;
    background-color: #940e22 !important;
    border-color: #940e22 !important;
  }

  /* Compact price and stock block. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price {
    padding: 11px 11px 2px !important;
    font-size: clamp(17px, 1.15vw, 20px) !important;
    line-height: 1.4 !important;
  }
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price del {
    font-size: .62em !important;
  }
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-stock-summary {
    padding: 3px 11px 5px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }
  html body.single-product div.product.pt-single-product .summary.entry-summary > form.cart > .ss-buy-action-zone {
    padding: 5px 11px 7px !important;
  }
  html body.single-product .ss-buy-simple-zone,
  html body.single-product .ss-buy-variation-zone .woocommerce-variation-add-to-cart {
    grid-template-columns: minmax(56px, 66px) minmax(0, 1fr) !important;
    gap: 6px !important;
  }
  html body.single-product .ss-buy-action-zone .quantity .qty {
    min-height: 38px !important;
    padding: 4px 3px !important;
    font-size: 12px !important;
  }
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    align-items: stretch !important;
    gap: 7px !important;
    padding: 6px 10px 8px !important;
  }
  html body.single-product .summary.entry-summary .ss-product-service-features > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 78px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 7px 5px !important;
    border: 1px solid #e2e6ed !important;
    border-radius: 10px !important;
    background: #f8f9fb !important;
    font-size: 9px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }
  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon,
  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon svg {
    display: inline-flex !important;
    flex: 0 0 22px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
  }
  html.ss-dark-mode body.single-product .summary.entry-summary .ss-product-service-features > div {
    background: #292d37 !important;
    border-color: #414653 !important;
  }
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .product_meta {
    padding: 7px 11px 10px !important;
    font-size: 9px !important;
    line-height: 1.7 !important;
    border-top: 1px solid #e2e6ed !important;
  }

  /* Main card title is slightly smaller; the gallery receives a wider grid column. */
  html body.single-product .ss-product-title-under-gallery h1 {
    font-size: clamp(17px, 1.2vw, 20px) !important;
    line-height: 1.5 !important;
  }
  html body.single-product .ss-product-title-under-gallery .ss-product-english-title {
    font-size: 10px !important;
  }
  html body.single-product div.product.pt-single-product > .ss-product-gallery {
    padding: 13px !important;
    border-right-width: 1px !important;
  }

  /* Three icon-led attributes in one row, larger and close to square. */
  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 9px 14px 13px !important;
  }
  html body.single-product .summary.entry-summary .ss-product-key-highlight {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 96px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 8px 5px !important;
    border: 1px solid #e0e5ed !important;
    border-radius: 11px !important;
    background: #f8f9fb !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  html body.single-product .summary.entry-summary .ss-key-highlight-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    background: #fff0f1 !important;
    color: #b5122a !important;
  }
  html body.single-product .summary.entry-summary .ss-key-highlight-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
  }
  html body.single-product .summary.entry-summary .ss-product-key-highlight b {
    font-size: 10px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
  }
  html body.single-product .summary.entry-summary .ss-product-key-highlight .ss-key-highlight-value {
    font-size: 10px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }
  html.ss-dark-mode body.single-product .summary.entry-summary .ss-product-key-highlight {
    background: #292d37 !important;
    border-color: #414653 !important;
  }
  html.ss-dark-mode body.single-product .summary.entry-summary .ss-key-highlight-icon {
    background: #3b2930 !important;
    color: #ffb1bd !important;
  }
}


/* Shain Store v1.0.104 — responsive icon sizing correction.
   Desktop: more visible square attribute/service tiles.
   Mobile: compact three-across product highlights, with explicitly sized SVGs.
*/

/* The three key attributes must never inherit the browser's default 300x150 SVG size. */
html body.single-product .summary.entry-summary .ss-key-highlight-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}
html body.single-product .summary.entry-summary .ss-key-highlight-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* Desktop: scale up the three attributes and four service icons. */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    gap: 10px !important;
    padding: 11px 16px 15px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight {
    min-height: 118px !important;
    padding: 10px 7px !important;
    gap: 7px !important;
    border-radius: 12px !important;
  }

  html body.single-product .summary.entry-summary .ss-key-highlight-icon {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
  }

  html body.single-product .summary.entry-summary .ss-key-highlight-icon svg {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight b {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight .ss-key-highlight-value {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-service-features {
    gap: 9px !important;
    padding: 8px 12px 10px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features > div {
    max-width: 96px !important;
    min-width: 78px !important;
    padding: 8px 6px !important;
    gap: 7px !important;
    border-radius: 11px !important;
    font-size: 10px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon,
  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon svg {
    flex: 0 0 29px !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
  }
}

/* Mobile/tablet: keep the three key attributes in one compact row rather than tall cards. */
@media (max-width: 1099px) {
  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px 10px 10px !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 7px 4px !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 9px !important;
    background: #f8f9fb !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-key-highlight-icon {
    flex: 0 0 23px !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    border-radius: 7px !important;
  }

  html body.single-product .summary.entry-summary .ss-key-highlight-icon svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight b {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight .ss-key-highlight-value {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-product-key-highlight {
    background: #292d37 !important;
    border-color: #414653 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-key-highlight-icon {
    background: #3b2930 !important;
    color: #ffb1bd !important;
  }
}

@media (max-width: 360px) {
  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    gap: 4px !important;
    padding-right: 7px !important;
    padding-left: 7px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight {
    padding: 6px 3px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight b,
  html body.single-product .summary.entry-summary .ss-product-key-highlight .ss-key-highlight-value {
    font-size: 8px !important;
  }
}


/* Shain Store v1.0.105 — AJAX quantity controls and mobile action placement. */

/* Desktop: expose the inline AJAX control and hide the native submit only when JS is active. */
@media (min-width: 1100px) {
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .single_add_to_cart_button {
    display: none !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control [hidden] {
    display: none !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 39px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border: 1px solid #b5122a !important;
    border-radius: 9px !important;
    background: #b5122a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-add:hover {
    background: #940e22 !important;
    border-color: #940e22 !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #ead9de !important;
    border-radius: 9px !important;
    background: #fff !important;
    direction: rtl !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 29px !important;
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 31px !important;
    min-height: 31px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #f9edf0 !important;
    color: #9a142c !important;
    -webkit-text-fill-color: #9a142c !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty strong {
    display: inline-block !important;
    flex: 1 1 auto !important;
    min-width: 16px !important;
    margin: 0 !important;
    color: #29232a !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-status:empty {
    display: none !important;
  }

  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-status {
    display: block !important;
    margin: 0 !important;
    color: #b5122a !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty {
    background: #292d37 !important;
    border-color: #414653 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty strong {
    color: #f3f4f7 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-qty button {
    background: #3b2930 !important;
    color: #ffb1bd !important;
    -webkit-text-fill-color: #ffb1bd !important;
  }
}

/* Mobile: move the share/compare/wishlist row away from the top-right sale badge. */
@media (max-width: 1099px) {
  html body.single-product .ss-product-gallery-actions {
    position: relative !important;
    z-index: 45 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: ltr !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto 12px 0 !important;
    padding: 0 !important;
    clear: both !important;
  }

  html body.single-product .ss-product-gallery-actions .ss-gallery-action {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* The footer accordion chevron sits on the right, away from the left floating action rail. */
@media (max-width: 1099px) {
  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
    direction: rtl !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-chevron {
    order: -1 !important;
    flex: 0 0 26px !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
  }
}


/* Shain Store v1.0.106 — desktop uses the same add / plus / minus / trash state machine as the mobile sticky bar. */
@media (min-width: 1100px) {
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .quantity,
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-buy-action-zone .quantity,
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled > .ss-buy-action-zone.ss-has-ajax-cart,
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-buy-action-zone.ss-has-ajax-cart {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 11px 7px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .woocommerce-variation-add-to-cart.ss-has-ajax-cart {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control [hidden] {
    display: none !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #b5122a !important;
    border-radius: 10px !important;
    background: #b5122a !important;
    background-color: #b5122a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add:hover {
    background: #940e22 !important;
    background-color: #940e22 !important;
    border-color: #940e22 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #ead9de !important;
    border-radius: 10px !important;
    background: #fff !important;
    direction: rtl !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 31px !important;
    width: 31px !important;
    min-width: 31px !important;
    max-width: 31px !important;
    height: 33px !important;
    min-height: 33px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f9edf0 !important;
    color: #9a142c !important;
    -webkit-text-fill-color: #9a142c !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty strong {
    display: inline-block !important;
    flex: 1 1 auto !important;
    min-width: 16px !important;
    margin: 0 !important;
    color: #29232a !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-status:empty {
    display: none !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-status {
    display: block !important;
    margin: 0 !important;
    color: #b5122a !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty {
    background: #292d37 !important;
    border-color: #414653 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty strong {
    color: #f3f4f7 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty button {
    background: #3b2930 !important;
    color: #ffb1bd !important;
    -webkit-text-fill-color: #ffb1bd !important;
  }
}


/* Shain Store v1.0.107 — compact CTA, RTL icon order, and one validation message. */
@media (min-width: 901px) {
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control {
    width: 100% !important;
    max-width: 210px !important;
    margin: 0 auto !important;
    align-self: center !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add,
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty {
    width: 100% !important;
    max-width: 210px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add {
    flex-direction: row !important;
    direction: rtl !important;
    gap: 7px !important;
    min-height: 39px !important;
    padding: 7px 10px !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-add-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 0 !important;
    flex: 0 0 auto !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-add-label {
    display: inline-block !important;
    order: 1 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-status {
    width: 100% !important;
    max-width: 210px !important;
    margin: 4px auto 0 !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-status.is-error {
    color: #b5122a !important;
    font-weight: 750 !important;
  }
}

/* Keep validation messages off the top of the page on mobile; use a short toast above the sticky bar. */
.ss-cart-validation-toast {
  display: block !important;
  position: fixed !important;
  left: 50% !important;
  bottom: calc(142px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483647 !important;
  width: max-content !important;
  max-width: calc(100vw - 28px) !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: #24242a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.24) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
  text-align: center !important;
  direction: rtl !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, 8px) !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  box-sizing: border-box !important;
}
.ss-cart-validation-toast.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}
@media (min-width: 901px) {
  .ss-cart-validation-toast { display: none !important; }
}
@media (max-width: 900px) {
  html body.single-product .summary.entry-summary .ss-inline-cart-control .ss-inline-status {
    display: none !important;
  }
  html body.single-product .ss-sticky-buy-button {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    direction: rtl !important;
  }
  html body.single-product .ss-sticky-buy-button > span:first-child {
    order: 0 !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.single-product .ss-sticky-buy-button > span:last-child {
    order: 1 !important;
  }
}


/* Shain Store v1.0.108 — desktop CTA shares the mobile sticky button styling,
   while remaining in the normal product-box flow (not fixed to the viewport). */
@media (min-width: 901px) {
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 280px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add.ss-sticky-buy-button {
    display: inline-flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    direction: rtl !important;
    gap: 4px !important;
    width: auto !important;
    max-width: 190px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #b5122a !important;
    background-color: #b5122a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add.ss-sticky-buy-button:hover {
    background: #940e22 !important;
    background-color: #940e22 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-add-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-add-label {
    display: inline-block !important;
    order: 1 !important;
    margin: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  /* Same plus/minus/trash controls as the mobile purchase bar. */
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 250px !important;
    min-width: 190px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    direction: rtl !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 43px !important;
    width: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f5edf0 !important;
    background-color: #f5edf0 !important;
    color: #a01634 !important;
    -webkit-text-fill-color: #a01634 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty strong {
    display: inline-block !important;
    flex: 0 0 auto !important;
    min-width: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #29232a !important;
    -webkit-text-fill-color: #29232a !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty button {
    background: #363943 !important;
    background-color: #363943 !important;
    color: #f5f5f5 !important;
    -webkit-text-fill-color: #f5f5f5 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty strong {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty button[data-step="0"] {
    background: #421f27 !important;
    background-color: #421f27 !important;
    color: #ff8090 !important;
    -webkit-text-fill-color: #ff8090 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-status {
    width: 100% !important;
    max-width: 250px !important;
    margin: 3px auto 0 !important;
    text-align: center !important;
  }
}


/* Shain Store v1.0.109 — cart state is shown beside the button; suppress only top success notices on product pages. */
body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-message[role="alert"],
body.single-product > .woocommerce-message {
  display: none !important;
}


/* Shain Store v1.0.110 — match desktop add button width to the full quantity-control span. */
@media (min-width: 901px) {
  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control {
    width: 100% !important;
    max-width: 280px !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add.ss-sticky-buy-button {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 250px !important;
    min-width: 190px !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty.ss-sticky-qty {
    width: 100% !important;
    max-width: 250px !important;
    min-width: 190px !important;
    box-sizing: border-box !important;
  }
}


/* Shain Store v1.0.111 — enforce mutually exclusive cart button states on desktop and mobile. */
html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add[hidden],
html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-qty[hidden],
html body.single-product .ss-sticky-buy-bar .ss-sticky-buy-button[hidden],
html body.single-product .ss-sticky-buy-bar .ss-sticky-qty[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* One centered, transient status toast for desktop and mobile alike. */
.ss-cart-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2147483647 !important;
  display: block !important;
  width: max-content !important;
  max-width: min(88vw, 440px) !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 13px !important;
  background: #24242a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.28) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  direction: rtl !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(.96) !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  box-sizing: border-box !important;
}
.ss-cart-toast.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;
}
.ss-cart-toast.is-success {
  background: #176b43 !important;
  border-color: rgba(255,255,255,.18) !important;
}
.ss-cart-toast.is-error {
  background: #9e1730 !important;
  border-color: rgba(255,255,255,.2) !important;
}
.ss-cart-toast.is-loading {
  background: #24242a !important;
}
html body.single-product .ss-inline-cart-control .ss-inline-add:disabled,
html body.single-product .ss-inline-cart-control .ss-inline-qty button:disabled,
html body.single-product .ss-sticky-buy-bar button:disabled {
  opacity: .72 !important;
  cursor: wait !important;
}


/* Shain Store v1.0.112 — desktop purchase panel sizing refinements. */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-stock-summary {
    padding-top: 5px !important;
    padding-bottom: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-cart-control .ss-inline-add.ss-sticky-buy-button {
    min-height: 48px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 12px !important;
  }

  html body.single-product .summary.entry-summary form.cart.ss-ajax-cart-enabled .ss-inline-add-label {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features {
    gap: 10px !important;
    padding: 10px 13px 12px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features > div {
    max-width: 106px !important;
    min-width: 84px !important;
    min-height: 96px !important;
    padding: 10px 7px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon,
  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon svg {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

/* Hide only legacy WooCommerce cart notices on product pages.
   The custom .ss-cart-toast handles explicit cart actions; unrelated site notices remain available elsewhere. */
html body.single-product .woocommerce-notices-wrapper .woocommerce-message,
html body.single-product .woocommerce-notices-wrapper .woocommerce-error,
html body.single-product .woocommerce-notices-wrapper .woocommerce-info {
  display: none !important;
}


