/*
 * Shain Store v1.0.98
 * Desktop-only three-panel product layout:
 * RTL order: purchase panel (right), product information (middle), gallery (left).
 * Mobile and smaller tablet layouts are left to the existing responsive stylesheet.
 */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product {
    position: relative !important;
    display: grid !important;
    direction: rtl !important;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr) minmax(0, 1.02fr) !important;
    grid-template-areas:
      "buy-price info-title gallery"
      "buy-desc info-title gallery"
      "buy-quantity info-highlights gallery"
      "buy-add info-variations gallery"
      "buy-variation info-variations gallery"
      "buy-service info-variations gallery"
      "buy-tools info-variations gallery"
      "buy-meta info-variations gallery"
      "content content content" !important;
    align-items: start !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* The backgrounds are real, inert grid items inserted by the companion JS. */
  html body.single-product .ss-desktop-info-panel-bg,
  html body.single-product .ss-desktop-buy-panel-bg {
    display: block !important;
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e5e8ee !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(20, 25, 35, .045) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  html body.single-product .ss-desktop-buy-panel-bg {
    grid-column: 1 !important;
    grid-row: 1 / 9 !important;
  }

  html body.single-product .ss-desktop-info-panel-bg {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
  }

  html body.single-product div.product.pt-single-product.ss-has-product-variations > .ss-desktop-info-panel-bg {
    grid-row: 1 / 9 !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-gallery {
    grid-area: gallery !important;
    display: block !important;
    align-self: start !important;
    justify-self: stretch !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-title-under-gallery {
    grid-area: info-title !important;
    display: block !important;
    align-self: stretch !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 18px 12px !important;
    border: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .ss-product-title-under-gallery h1 {
    margin: 0 !important;
    color: #20232b !important;
    font-size: clamp(20px, 1.65vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-english-title {
    margin: 3px 0 0 !important;
    color: #7a808b !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    direction: ltr !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-title-rating {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 9px 0 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #eef0f4 !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-title-rating .star-rating {
    float: none !important;
    margin: 0 !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-title-rating a {
    color: #666e7b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  /* Attribute highlights sit directly below title/rating in the information panel. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary {
    display: contents !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .product_title,
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .woocommerce-product-rating {
    display: none !important;
  }

  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    grid-area: info-highlights !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 16px 16px !important;
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !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: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid #eceef2 !important;
    border-radius: 10px !important;
    background: #f8f9fb !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight b {
    color: #7a818e !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight span {
    width: 100% !important;
    color: #292e38 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere !important;
  }

  /* Keep the WooCommerce form in the DOM, but let its controls occupy the separate grid areas. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart {
    display: contents !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations {
    grid-area: info-variations !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 18px 18px !important;
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations th,
  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations td {
    padding: 7px 0 !important;
    vertical-align: middle !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations label {
    color: #454b56 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #dfe3e9 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  /* Purchase card: price, description, native add-to-cart controls, service icons, tools and metadata. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price {
    grid-area: buy-price !important;
    align-self: end !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px 18px 5px !important;
    color: #b5122a !important;
    font-size: clamp(21px, 1.65vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price del {
    color: #858b96 !important;
    font-size: .68em !important;
    font-weight: 500 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price ins {
    color: #b5122a !important;
    background: transparent !important;
    text-decoration: none !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .woocommerce-product-details__short-description {
    grid-area: buy-desc !important;
    align-self: start !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 18px 12px !important;
    color: #606875 !important;
    font-size: 12px !important;
    line-height: 1.85 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .quantity {
    grid-area: buy-quantity !important;
    align-self: end !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 8px 18px 6px !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .single_add_to_cart_button {
    grid-area: buy-add !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 170px !important;
    max-width: calc(100% - 36px) !important;
    min-height: 42px !important;
    margin: 0 18px 10px !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 900 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .single_variation_wrap {
    grid-area: buy-variation !important;
    align-self: start !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 18px 12px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation {
    margin: 0 0 8px !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart .quantity {
    margin: 0 !important;
  }

  html body.single-product .single_variation_wrap .single_add_to_cart_button {
    width: auto !important;
    min-width: 170px !important;
    max-width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 900 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-service-features {
    grid-area: buy-service !important;
    align-self: start !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !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: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .pt-product-tools {
    grid-area: buy-tools !important;
    align-self: start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .product_meta {
    grid-area: buy-meta !important;
    align-self: start !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px 18px 18px !important;
    border-top: 1px solid #eef0f4 !important;
    background: transparent !important;
    color: #707784 !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
    overflow-wrap: anywhere !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-content-sections {
    grid-area: content !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: 24px !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .stock {
    display: none !important;
  }

  html.ss-dark-mode body.single-product .ss-desktop-info-panel-bg,
  html.ss-dark-mode body.single-product .ss-desktop-buy-panel-bg {
    background: #20232b !important;
    border-color: #383d49 !important;
    box-shadow: none !important;
  }

  html.ss-dark-mode body.single-product .ss-product-title-under-gallery h1 {
    color: #eceef3 !important;
  }

  html.ss-dark-mode body.single-product .ss-product-title-under-gallery .ss-product-english-title,
  html.ss-dark-mode body.single-product .ss-product-title-under-gallery .ss-product-title-rating a {
    color: #c6cbd5 !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-product-key-highlight b {
    color: #b8beca !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary .ss-product-key-highlight span {
    color: #f1f2f6 !important;
  }

  html.ss-dark-mode body.single-product .summary.entry-summary > .woocommerce-product-details__short-description,
  html.ss-dark-mode body.single-product .summary.entry-summary > .product_meta {
    color: #c6cbd5 !important;
  }
}

/* The new three-panel layout is desktop-only; preserve the established tablet/mobile structure. */
@media (max-width: 1099px) {
  html body.single-product .ss-desktop-info-panel-bg,
  html body.single-product .ss-desktop-buy-panel-bg {
    display: none !important;
  }
}


/* v1.0.100: two visual cards on desktop — main gallery+details card (2/3) and buy card (1/3). */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product {
    grid-template-areas:
      "buy-price info-title gallery"
      "buy-stock info-title gallery"
      "buy-quantity info-variations gallery"
      "buy-add info-highlights gallery"
      "buy-service info-desc gallery"
      "buy-meta info-desc gallery"
      "buy-meta info-desc gallery"
      "buy-meta info-desc gallery"
      "content content content" !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
  }

  html body.single-product .ss-desktop-buy-panel-bg {
    grid-column: 1 !important;
    grid-row: 1 / 9 !important;
  }

  html body.single-product .ss-desktop-info-panel-bg {
    grid-column: 2 / 4 !important;
    grid-row: 1 / 9 !important;
    border-radius: 17px !important;
  }

  /* The gallery and information panel share one background, with a subtle divider between them. */
  html body.single-product div.product.pt-single-product > .ss-product-gallery {
    grid-area: gallery !important;
    padding: 17px 17px 18px 18px !important;
    border: 0 !important;
    border-right: 1px solid #eef0f4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html.ss-dark-mode body.single-product div.product.pt-single-product > .ss-product-gallery {
    border-right-color: #383d49 !important;
  }

  html body.single-product .ss-product-gallery-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !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 34px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid #e3e6ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #4b5361 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
  }

  html body.single-product .ss-product-gallery-actions .ss-gallery-action svg {
    display: block !important;
    width: 18px !important;
    height: 18px !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: #efb7c0 !important;
    background: #fff6f7 !important;
  }

  html.ss-dark-mode body.single-product .ss-product-gallery-actions .ss-gallery-action {
    color: #e5e7ed !important;
    background: #292d37 !important;
    border-color: #414653 !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-title-under-gallery {
    grid-area: info-title !important;
    padding: 18px 18px 10px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-title-rating {
    justify-content: flex-start !important;
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #eef0f4 !important;
  }

  html.ss-dark-mode body.single-product .ss-product-title-under-gallery .ss-product-title-rating {
    border-bottom-color: #383d49 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .woocommerce-product-details__short-description {
    grid-area: info-desc !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 18px 13px !important;
    color: #606875 !important;
    font-size: 12px !important;
    line-height: 1.9 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html.ss-dark-mode body.single-product div.product.pt-single-product > .summary.entry-summary > .woocommerce-product-details__short-description {
    color: #c6cbd5 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-stock-summary {
    grid-area: buy-stock !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 18px 10px !important;
    color: #267a4a !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .ss-product-stock-summary .ss-product-stock-dot {
    display: inline-block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #24a15a !important;
    box-shadow: 0 0 0 3px rgba(36,161,90,.12) !important;
  }

  html body.single-product .ss-product-stock-summary.is-out-of-stock {
    color: #b5122a !important;
  }

  html body.single-product .ss-product-stock-summary.is-out-of-stock .ss-product-stock-dot {
    background: #b5122a !important;
    box-shadow: 0 0 0 3px rgba(181,18,42,.12) !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .quantity {
    grid-area: buy-quantity !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 7px 18px 5px !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .single_add_to_cart_button {
    grid-area: buy-add !important;
    justify-self: stretch !important;
    width: calc(100% - 36px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 36px) !important;
    min-height: 43px !important;
    margin: 5px 18px 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .single_variation_wrap {
    grid-area: buy-add !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 6px 18px 12px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation {
    margin: 0 0 8px !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart .quantity {
    align-self: flex-start !important;
    margin: 0 !important;
  }

  html body.single-product .single_variation_wrap .single_add_to_cart_button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-service-features {
    grid-area: buy-service !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    padding: 8px 18px 13px !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features > div {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    min-height: 32px !important;
    font-size: 11px !important;
    text-align: right !important;
    white-space: normal !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .product_meta {
    grid-area: buy-meta !important;
    margin: 0 !important;
    padding: 12px 18px 18px !important;
    border-top: 1px solid #eef0f4 !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
  }

  html.ss-dark-mode body.single-product div.product.pt-single-product > .summary.entry-summary > .product_meta {
    border-top-color: #383d49 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .stock {
    display: none !important;
  }
}


/* Shain Store v1.0.102 — final layout overrides.
 * The product form stays intact; the quantity and add-to-cart controls share one grid item.
 */
@media (min-width: 1100px) {
  html body.single-product div.product.pt-single-product {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "buy-price info-title gallery"
      "buy-stock info-title gallery"
      "buy-action info-variations gallery"
      "buy-service info-highlights gallery"
      "buy-meta info-desc gallery"
      "content content content" !important;
    align-items: start !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
  }

  html body.single-product .ss-desktop-buy-panel-bg {
    grid-column: 1 !important;
    grid-row: 1 / 6 !important;
    align-self: stretch !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 25, 35, .05) !important;
  }

  html body.single-product .ss-desktop-info-panel-bg {
    grid-column: 2 / 4 !important;
    grid-row: 1 / 6 !important;
    align-self: stretch !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 25, 35, .05) !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 {
    background: #20232b !important;
    border-color: #414653 !important;
    box-shadow: none !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-gallery {
    grid-column: 3 !important;
    grid-row: 1 / 6 !important;
    grid-area: gallery !important;
    min-width: 0 !important;
    padding: 15px 15px 16px !important;
    border-right: 1px solid #e7eaf0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html.ss-dark-mode body.single-product div.product.pt-single-product > .ss-product-gallery {
    border-right-color: #414653 !important;
  }

  html body.single-product div.product.pt-single-product > .ss-product-title-under-gallery {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    grid-area: info-title !important;
    min-width: 0 !important;
    padding: 15px 16px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body.single-product .ss-product-title-under-gallery h1 {
    margin: 0 !important;
    font-size: clamp(18px, 1.35vw, 22px) !important;
    line-height: 1.55 !important;
    font-weight: 850 !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-english-title {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html body.single-product .ss-product-title-under-gallery .ss-product-title-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 0 7px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid #edf0f4 !important;
  }

  html.ss-dark-mode body.single-product .ss-product-title-under-gallery .ss-product-title-rating {
    border-bottom-color: #414653 !important;
  }

  /* Three important product attributes fit in one neat row. */
  html body.single-product div.product.pt-single-product .summary.entry-summary > .ss-product-key-highlights {
    grid-column: 2 !important;
    grid-row: 4 !important;
    grid-area: info-highlights !important;
    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: 8px 16px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-product-key-highlight {
    min-width: 0 !important;
    padding: 7px 7px !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 9px !important;
    background: #f8f9fb !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }

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

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

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

  /* Variations stay in the main card, directly after the title. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart > .variations {
    grid-column: 2 !important;
    grid-row: 3 !important;
    grid-area: info-variations !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .woocommerce-product-details__short-description {
    grid-column: 2 !important;
    grid-row: 5 !important;
    grid-area: info-desc !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 16px 14px !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Compact purchase card: price, stock, controls, two-by-two service icons, metadata. */
  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price {
    grid-column: 1 !important;
    grid-row: 1 !important;
    grid-area: buy-price !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 15px 14px 4px !important;
    font-size: clamp(19px, 1.4vw, 23px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price del {
    font-size: .66em !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .price ins {
    text-decoration: none !important;
    background: transparent !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-stock-summary {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-area: buy-stock !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 14px 7px !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > form.cart {
    display: contents !important;
  }

  html body.single-product div.product.pt-single-product .summary.entry-summary form.cart > .ss-buy-action-zone {
    grid-column: 1 !important;
    grid-row: 3 !important;
    grid-area: buy-action !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px 14px 10px !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .ss-buy-simple-zone {
    display: grid !important;
    grid-template-columns: minmax(64px, 78px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body.single-product .ss-buy-action-zone > .quantity,
  html body.single-product .ss-buy-action-zone .woocommerce-variation-add-to-cart > .quantity {
    display: block !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.single-product .ss-buy-action-zone .quantity .qty {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 4px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  html body.single-product .ss-buy-action-zone .single_add_to_cart_button,
  html body.single-product .ss-buy-action-zone > .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: 42px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    font-weight: 850 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body.single-product .ss-buy-variation-zone > .single_variation_wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body.single-product .ss-buy-variation-zone .woocommerce-variation {
    margin: 0 0 7px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  html body.single-product .ss-buy-variation-zone .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: minmax(64px, 78px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .ss-product-service-features {
    grid-column: 1 !important;
    grid-row: 4 !important;
    grid-area: buy-service !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 14px 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html body.single-product .summary.entry-summary .ss-product-service-features > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    border: 1px solid #e5e8ee !important;
    border-radius: 8px !important;
    background: #f8f9fb !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

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

  html body.single-product .summary.entry-summary .ss-product-service-features .ss-service-feature-icon svg {
    width: 17px !important;
    height: 17px !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 {
    grid-column: 1 !important;
    grid-row: 5 !important;
    grid-area: buy-meta !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 14px 13px !important;
    border-top: 1px solid #e5e8ee !important;
    font-size: 10px !important;
    line-height: 1.8 !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  html.ss-dark-mode body.single-product div.product.pt-single-product > .summary.entry-summary > .product_meta {
    border-top-color: #414653 !important;
  }

  html body.single-product div.product.pt-single-product > .summary.entry-summary > .stock {
    display: none !important;
  }
}

/* Wrapper is purely structural on mobile/tablet: retain the existing native layout. */
@media (max-width: 1099px) {
  html body.single-product .summary.entry-summary form.cart > .ss-buy-action-zone {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}
