/**
 * Product single — sinaroma-redesign-v3 (product.html)
 * Scoped to body.page-product so styles apply even before product-page-v3 markup ships.
 */

body.page-product {
    --v3-green-1000: #071d17;
    --v3-green-950: #0a281f;
    --v3-green-900: #10382d;
    --v3-green-850: #16473a;
    --v3-green-800: #1e5848;
    --v3-green-700: #397360;
    --v3-ivory: #fffdf8;
    --v3-cream: #f7f1e5;
    --v3-paper-2: #f7f7f3;
    --v3-gold: #c9944b;
    --v3-gold-light: #e4c183;
    --v3-ink: #14201b;
    --v3-ink-2: #53605a;
    --v3-muted: #6d7972;
    --v3-line: rgba(16, 56, 45, 0.13);
    --v3-shadow-sm: 0 10px 28px rgba(7, 29, 23, 0.07);
    --v3-transition: 0.2s ease;
}

body.page-product .product-page.sf-page-product,
body.page-product .product-page.product-page-v3 {
    padding: 30px 0 70px;
    background: var(--theam-bg-color, var(--sf-color-bg, #fff));
    color: var(--v3-ink);
    float: none;
    width: 100%;
}

/* Legacy + v3 top grid */
body.page-product .product-main,
body.page-product .prodact-display.product-page__top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
    float: none !important;
    width: 100% !important;
    margin: 0 0 1.75rem !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

body.page-product .prodact-display.product-page__top > * {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body.page-product .single_page_color.prodact.product-page {
    background: transparent;
}

/* Gallery */
body.page-product .product-gallery {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    position: sticky;
    top: 120px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

body.page-product .product-gallery:not(:has(.gallery-thumbs)) {
    grid-template-columns: minmax(0, 1fr);
}

body.page-product .gallery-thumbs,
body.page-product .product-page__gallery-thumbs {
    display: grid;
    align-content: start;
    gap: 10px;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
}

body.page-product .gallery-thumb,
body.page-product .product-page__gallery-thumb {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    border: 1px solid var(--v3-line);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 1;
    transition: border-color var(--v3-transition), box-shadow var(--v3-transition);
}

body.page-product .gallery-thumb.is-active,
body.page-product .product-page__gallery-thumb.is-active,
body.page-product .gallery-thumb:hover,
body.page-product .product-page__gallery-thumb:hover {
    border-color: var(--v3-gold);
    box-shadow: 0 0 0 2px rgba(201, 149, 79, 0.15);
}

body.page-product .gallery-thumb img,
body.page-product .product-page__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-product .gallery-stage,
body.page-product .product-page__gallery-main {
    aspect-ratio: 1 / 1;
    background: var(--v3-paper-2);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--v3-line);
    min-height: 0;
    max-height: none;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    display: block;
}

body.page-product .gallery-stage .product-page__gallery-main-img,
body.page-product .product-page__gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    aspect-ratio: 1 / 1;
}

body.page-product .product-page__gallery-main .product-wc-toolbar--overlay {
    z-index: 3;
}

body.page-product .product-gallery__thumb-label {
    font-size: 9px;
    font-weight: 800;
}

/* Summary */
body.page-product .product-summary h1,
body.page-product .product-page__title {
    font-size: 27px;
    line-height: 1.55;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    border-bottom: 0 !important;
    font-weight: 900;
    color: var(--v3-ink);
    letter-spacing: -0.02em;
}

body.page-product .product-page__short,
body.page-product .product_short {
    font-size: 13px;
    line-height: 1.9;
    color: var(--v3-ink-2);
}

body.page-product .product-highlight-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 1rem !important;
}

body.page-product .product-highlight-attributes__row {
    margin-bottom: 0 !important;
    border: 1px solid var(--v3-line);
    background: var(--v3-paper-2);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 800;
}

body.page-product .product-highlight-attributes__row .fw-bold {
    font-weight: 800;
}

body.page-product .product-highlight-attributes__values {
    display: inline !important;
}

/* Buy box */
body.page-product .buy-box {
    border: 1px solid var(--v3-line);
    background: #fff;
    border-radius: 22px;
    padding: 21px;
    margin-top: 18px;
    box-shadow: var(--v3-shadow-sm);
}

body.page-product .buy-box__title {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 900;
    color: var(--v3-ink);
}

body.page-product .buy-box__lead {
    font-size: 11px;
    color: var(--v3-muted);
    margin: 0 0 17px;
    line-height: 1.7;
}

body.page-product .product-page__buy-panel {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    height: auto;
}

body.page-product .stock-status-wrapper {
    margin-bottom: 1rem !important;
}

body.page-product .stock-status {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border: none;
    background: transparent;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 0;
}

body.page-product .stock-status--pending {
    color: var(--v3-muted);
}

body.page-product .stock-status.in-stock {
    color: var(--v3-green-800);
}

/* Variation attributes */
body.page-product #variation-attributes .attribute-item {
    margin-top: 16px;
    margin-bottom: 0 !important;
}

body.page-product #variation-attributes .form-label {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 900;
}

body.page-product .attribute-selected-label {
    display: none !important;
}

body.page-product .attribute-cascade-hint {
    font-size: 10px;
    margin-bottom: 8px;
}

body.page-product .button-swatch-options,
body.page-product .color-options,
body.page-product .radio-swatch-options,
body.page-product .term-visual-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.page-product .button-swatch-option,
body.page-product .radio-swatch-option {
    border: 1px solid var(--v3-line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--v3-transition);
    box-shadow: none;
}

body.page-product .button-swatch-option.selected,
body.page-product .radio-swatch-option:has(.radio-swatch-input:checked) {
    background: var(--v3-green-900);
    border-color: var(--v3-green-900);
    color: #fff;
}

body.page-product .color-option {
    width: 34px;
    height: 34px;
    border: 2px solid var(--v3-line);
}

body.page-product .color-option.selected {
    border-color: var(--v3-gold);
    box-shadow: 0 0 0 2px rgba(201, 149, 79, 0.15);
    transform: none;
}

body.page-product .term-visual-option {
    border: 1px solid var(--v3-line);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 11px;
}

body.page-product .term-visual-option.selected {
    border-color: var(--v3-green-900);
    box-shadow: 0 0 0 2px rgba(16, 56, 45, 0.12);
}

body.page-product .swatch-select-wrap .attribute-select,
body.page-product #variation-attributes .form-select {
    border-radius: 10px;
    border-color: var(--v3-line);
    font-size: 12px;
}

/* Price */
body.page-product .price-section .current-price,
body.page-product .price-with-discount .current-price {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
    font-weight: 900 !important;
    color: var(--v3-green-800) !important;
}

body.page-product .price-with-discount .original-price {
    font-size: 1rem !important;
}

body.page-product .product-qty-line-total-wrap {
    background: var(--v3-paper-2);
    border-radius: 14px;
    padding: 10px 14px;
}

body.page-product .product-qty-line-total-wrap strong {
    font-size: 1.1rem;
    color: var(--v3-green-800);
}

/* Quantity + CTA */
body.page-product .quantity-wrapper label {
    font-size: 11px;
    font-weight: 900;
}

body.page-product .product-qty-preset-btn {
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

body.page-product .quantity-control {
    border: 1px solid var(--v3-line);
    border-radius: 12px;
    overflow: hidden;
}

body.page-product .quantity-control .quantity-btn {
    background: var(--v3-paper-2);
    border: none;
}

body.page-product .add-to-cart-section .add-to-cart-btn.btn-primary,
body.page-product .add-to-cart-section > a.btn-primary.btn-lg,
body.page-product .purchase-cta-btn {
    width: 100%;
    background: var(--v3-green-900) !important;
    border-color: var(--v3-green-900) !important;
    color: #fff !important;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
}

body.page-product .add-to-cart-section .add-to-cart-btn.btn-primary:hover,
body.page-product .add-to-cart-section > a.btn-primary.btn-lg:hover {
    background: var(--v3-green-800) !important;
    border-color: var(--v3-green-800) !important;
}

body.page-product .volume-pricing-table {
    border: 1px solid var(--v3-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

/* Tabs */
body.page-product .product-page__tabs,
body.page-product .product-tabs {
    margin-top: 62px;
}

body.page-product .product-tabs__head {
    border-bottom: 1px solid color-mix(in srgb, var(--theam-color, #10382d) 14%, var(--ui-border, #dee2e6));
    margin-bottom: 20px;
    padding-bottom: 0;
}

body.page-product .product-page__tabs .tab-content,
body.page-product .product-tabs__content {
    margin-top: 0 !important;
    padding: 36px 0 0;
    border-top: 0;
}

body.page-product .product-tabs__content .description-content > :first-child {
    margin-top: 0;
}

body.page-product .product-page__tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    border-top: 0;
    margin-bottom: 0;
    padding: 0 0 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.page-product .product-page__tab-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.page-product .product-page__tab-nav .nav-item {
    margin-bottom: 0;
}

body.page-product .product-page__tab-nav .nav-link {
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    background: transparent;
    padding: 12px 18px 16px;
    font-weight: 800;
    font-size: 12px;
    color: var(--v3-muted);
    border-radius: 0;
    white-space: nowrap;
    margin-bottom: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.page-product .product-page__tab-nav .nav-link:hover:not(.active) {
    color: color-mix(in srgb, var(--theam-color, #10382d) 75%, var(--v3-muted));
    background: color-mix(in srgb, var(--theam-color, #10382d) 4%, #fff);
    border-bottom-color: transparent !important;
}

body.page-product .product-page__tab-nav .nav-link.active {
    color: var(--theam-color, var(--v3-green-900)) !important;
    font-weight: 900;
    border-bottom-color: var(--theam-color, var(--v3-green-900)) !important;
    background: color-mix(in srgb, var(--theam-color, #10382d) 6%, #fff);
}

body.page-product .description-content {
    font-family: 'IRANSansX', system-ui, sans-serif;
    font-size: 14px;
    line-height: 2.1;
    color: var(--v3-ink-2);
    text-align: right;
}

body.page-product .description-content *,
body.page-product .description-content span,
body.page-product .description-content p,
body.page-product .description-content li,
body.page-product .description-content td,
body.page-product .description-content th {
    font-family: inherit !important;
}

body.page-product .description-content p,
body.page-product .description-content .MsoNormal,
body.page-product .description-content li.MsoNormal {
    margin: 0 0 18px;
    text-align: right !important;
    direction: rtl;
    font-size: 14px !important;
    line-height: 2.1 !important;
    color: var(--v3-ink-2) !important;
}

body.page-product .description-content h2 {
    font-size: 20px;
    color: var(--v3-ink);
    font-weight: 900 !important;
    margin: 36px 0 12px;
    line-height: 1.55;
}

body.page-product .description-content h3 {
    font-size: 17px;
    color: var(--v3-ink);
    font-weight: 800 !important;
    margin: 28px 0 10px;
}

body.page-product .description-content h4,
body.page-product .description-content strong {
    font-weight: 800;
    color: var(--v3-ink);
}

body.page-product .description-content ul,
body.page-product .description-content ol {
    margin: 0 0 18px;
    padding-right: 1.35rem;
    list-style-position: outside;
}

body.page-product .description-content ul {
    list-style-type: disc;
}

body.page-product .description-content ol {
    list-style-type: decimal;
}

body.page-product .description-content li {
    margin-bottom: 0.4rem;
}

body.page-product .description-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 22px;
    margin: 24px 0;
    border: 1px solid var(--v3-line);
}

body.page-product .description-content table {
    width: 100%;
    margin: 24px 0;
    border: 1px solid var(--v3-line);
    border-radius: 18px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 12px;
    background: #fff;
}

body.page-product .description-content table th,
body.page-product .description-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--v3-line);
    vertical-align: top;
    text-align: right;
}

body.page-product .description-content table th {
    background: var(--v3-paper-2);
    color: var(--v3-muted);
    font-weight: 700;
    width: 32%;
}

body.page-product .description-content table tr:last-child th,
body.page-product .description-content table tr:last-child td {
    border-bottom: 0;
}

body.page-product .description-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border: 0;
    border-right: 3px solid var(--v3-gold);
    border-radius: 15px;
    background: var(--v3-paper-2);
    color: var(--v3-green-900);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
}

body.page-product .description-content a {
    color: var(--v3-green-800);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-product .description-content a:hover {
    color: var(--v3-green-900);
}

body.page-product .description-content hr {
    border: 0;
    border-top: 1px solid var(--v3-line);
    margin: 28px 0;
}

body.page-product .description-content iframe,
body.page-product .description-content video {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    margin: 20px 0;
    border: 1px solid var(--v3-line);
}

body.page-product .specs-table .table {
    border: 1px solid var(--v3-line);
    border-radius: 18px;
    overflow: hidden;
    font-size: 12px;
}

body.page-product .specs-table th {
    background: var(--v3-paper-2);
    color: var(--v3-muted);
    font-weight: 700;
    width: 30%;
}

body.page-product .specs-group__title {
    color: var(--v3-green-800);
    border-bottom-color: var(--v3-line);
}

/* Share — v3 */
body.page-product .product-share-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2rem;
    padding: 14px 16px;
    border: 1px solid var(--v3-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--v3-shadow-sm);
}

body.page-product .product-share-v3__label {
    font-size: 12px;
    font-weight: 900;
    color: var(--v3-ink);
    white-space: nowrap;
}

body.page-product .product-share-v3__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

body.page-product .product-share-v3__actions a,
body.page-product .product-share-v3__actions button {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid var(--v3-line);
    background: var(--v3-paper-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v3-green-800);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--v3-transition), background var(--v3-transition), color var(--v3-transition);
}

body.page-product .product-share-v3__actions a:hover,
body.page-product .product-share-v3__actions button:hover {
    border-color: var(--v3-gold);
    background: #fff;
    color: var(--v3-green-900);
}

body.page-product .product-share-v3__actions .bxl-telegram:hover {
    color: #229ed9;
}

body.page-product .product-share-v3__actions .bxl-facebook:hover {
    color: #1877f2;
}

body.page-product .product-share-v3__actions .bxl-twitter:hover {
    color: #1da1f2;
}

body.page-product .product-share-v3__actions .bxl-whatsapp:hover {
    color: #25d366;
}

/* Sticky cart — sticks below site header */
body.page-product .product-sticky-cart {
    position: fixed;
    top: var(--product-sticky-top, 0px);
    bottom: auto;
    left: 0;
    right: 0;
    z-index: 887;
    padding: 0.55rem 0.85rem;
    border-top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--theam-color, #10382d) 12%, var(--ui-border, #dee2e6));
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 8px 24px rgba(7, 29, 23, 0.08);
    backdrop-filter: blur(10px);
}

body.page-product.head-pro-has-mobile-nav .product-sticky-cart {
    bottom: auto;
    padding-bottom: 0.55rem;
}

body.page-product .product-sticky-cart__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
}

body.page-product .product-sticky-cart__price {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--theam-color, var(--v3-green-800));
}

body.page-product .product-sticky-cart__qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.15rem;
}

body.page-product .product-sticky-cart__qty .quantity-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.page-product .product-sticky-cart__qty-input {
    width: 42px;
    min-width: 42px;
    height: 32px;
    padding: 0.2rem 0.15rem;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

body.page-product .product-sticky-cart__qty-input::-webkit-outer-spin-button,
body.page-product .product-sticky-cart__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.page-product .product-sticky-cart__btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    background: var(--theam-color, var(--v3-green-900));
    border-color: var(--theam-color, var(--v3-green-900));
}

body.page-product .sf-page-product + .product-listing-block {
    margin-top: 0;
}

/* Legacy theme overrides — product page only */
body.page-product .product-page.single_page_color.prodact {
    background: transparent !important;
    padding: 0 !important;
    float: none !important;
}

body.page-product .product-page .prodact-display,
body.page-product .product-page .prodact-display.product-page__top {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

body.page-product .product-page__title--panel {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Comments tab — v3 */
body.page-product .product-tab-comments {
    margin-top: 0;
}

body.page-product .product-tab-comments .empty-comments,
body.page-product .product-tab-comments .login-prompt-card .card-body {
    text-align: center;
    border: 1px solid var(--v3-line);
    border-radius: 20px;
    padding: 40px 24px;
    background: var(--v3-paper-2);
}

body.page-product .product-tab-comments .empty-comments .display-4,
body.page-product .product-tab-comments .login-prompt-card .display-4 {
    font-size: 2.5rem;
    color: var(--v3-muted) !important;
    margin-bottom: 1rem;
}

body.page-product .product-tab-comments .empty-comments h5,
body.page-product .product-tab-comments .login-prompt-card h5 {
    font-size: 15px;
    font-weight: 900;
    color: var(--v3-ink);
}

body.page-product .product-tab-comments .empty-comments p,
body.page-product .product-tab-comments .login-prompt-card p {
    color: var(--v3-muted);
    font-size: 12px;
}

body.page-product .product-tab-comments .login-prompt-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-product .product-tab-comments .login-prompt-card .card-body {
    margin: 0;
}

body.page-product .product-tab-comments .comment-rating-summary {
    padding: 12px 16px;
    border: 1px solid var(--v3-line);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 1.25rem;
}

body.page-product .product-tab-comments .comment-item {
    border: 1px solid var(--v3-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--v3-shadow-sm);
    padding: 1.1rem 1.15rem;
}

body.page-product .product-tab-comments .comment-reply {
    background: var(--v3-paper-2) !important;
    border-inline-start: 3px solid var(--v3-gold) !important;
}

body.page-product .product-tab-comments .comment-author a,
body.page-product .product-tab-comments .reply-author a {
    color: var(--v3-green-800);
    font-weight: 800;
    text-decoration: none;
}

body.page-product .product-tab-comments .comment-date {
    color: var(--v3-muted);
    font-size: 11px;
}

body.page-product .product-tab-comments .comment-message p {
    color: var(--v3-ink-2);
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

body.page-product .product-tab-comments .add-comment-card,
body.page-product .product-tab-comments .login-prompt-card {
    border-radius: 20px;
    overflow: hidden;
}

body.page-product .product-tab-comments .add-comment-card {
    border: 1px solid var(--v3-line);
    box-shadow: var(--v3-shadow-sm);
}

body.page-product .product-tab-comments .add-comment-card__header,
body.page-product .product-tab-comments .add-comment-card .card-header {
    background: var(--v3-paper-2);
    border-bottom: 1px solid var(--v3-line);
    font-weight: 900;
    font-size: 13px;
    color: var(--v3-ink);
}

body.page-product .product-tab-comments .comment-submit-btn {
    background: var(--v3-green-900) !important;
    border-color: var(--v3-green-900) !important;
    border-radius: 12px;
    font-weight: 800;
}

body.page-product .product-tab-comments .form-control,
body.page-product .product-tab-comments .form-select {
    border-radius: 12px;
    border-color: var(--v3-line);
}

body.page-product .product-tab-comments .reply-btn {
    color: var(--v3-green-700);
    font-weight: 700;
    font-size: 12px;
}

/* Legacy product-page.css — functional rules only (visual styles live in v3) */
body.page-product .attribute-item--locked .attribute-item__controls {
    display: none;
}

body.page-product .attribute-item--locked .attribute-cascade-hint {
    display: block;
}

body.page-product .attribute-cascade-hint {
    display: none;
}

body.page-product .color-option.is-unavailable,
body.page-product .term-visual-option.is-unavailable,
body.page-product .button-swatch-option.is-unavailable {
    display: none !important;
}

body.page-product .swatch-option-wrap {
    position: relative;
    display: inline-flex;
}

body.page-product .swatch-clear-btn {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--v3-green-900);
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

body.page-product .swatch-option-wrap.is-selected .swatch-clear-btn,
body.page-product .swatch-select-wrap.is-selected .swatch-clear-btn {
    display: flex;
}

body.page-product .add-to-cart-section--disabled .add-to-cart-btn {
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
}

body.page-product .product-qty-presets {
    position: relative;
    z-index: 2;
}

body.page-product .product-qty-presets .btn-check:checked + .product-qty-preset-btn,
body.page-product .product-qty-presets .btn-check:active + .product-qty-preset-btn {
    background: var(--v3-green-900) !important;
    border-color: var(--v3-green-900) !important;
    color: #fff !important;
}

body.page-product .packaging-image-modal__dialog {
    max-width: min(92vw, 28rem);
}

body.page-product #packaging-image-modal {
    z-index: 10060;
}

body.page-product .packaging-option__preview-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.35rem;
}

body.page-product.product-sticky-cart-visible {
    padding-bottom: 0;
}

body.page-product.head-pro-has-mobile-nav.product-sticky-cart-visible {
    padding-bottom: var(--mob-nav-float-offset);
}

/* Neutralize legacy .prodact / modern-ui product rules */
body.page-product .prodact .nav-tabs,
body.page-product .prodact .tab-content {
    border: 0 !important;
    background: transparent;
    padding: 0;
}

body.page-product .prodact .nav-tabs .nav-link {
    border: 0 !important;
    background: transparent;
    color: var(--v3-muted);
}

body.page-product .prodact .nav-tabs .nav-link.active {
    color: var(--theam-color, var(--v3-green-900)) !important;
    border-bottom: 3px solid var(--theam-color, var(--v3-green-900)) !important;
    background: color-mix(in srgb, var(--theam-color, #10382d) 6%, #fff) !important;
}

body.page-product .prodact .product-info,
body.page-product .prodact .variablebox {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

body.page-product .prodact .price-with-discount .current-price,
body.page-product .prodact .price {
    color: inherit;
}

body.page-product .prodact .buy-button a,
body.page-product .prodact .variablebox .buy-button a {
    background: transparent;
    border: 0;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    body.page-product .product-main,
    body.page-product .prodact-display.product-page__top {
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    body.page-product .product-page.sf-page-product,
    body.page-product .product-page.product-page-v3 {
        padding: 20px 0 100px;
    }

    body.page-product .product-main,
    body.page-product .prodact-display.product-page__top {
        grid-template-columns: 1fr;
    }

    body.page-product .product-gallery {
        position: static;
        grid-template-columns: 1fr;
    }

    body.page-product .gallery-thumbs,
    body.page-product .product-page__gallery-thumbs {
        order: 2;
        grid-template-columns: repeat(4, 1fr);
        display: grid;
    }

    body.page-product .product-page__tabs,
    body.page-product .product-tabs {
        margin-top: 40px;
    }

    body.page-product .product-page__tab-nav .nav-link {
        padding: 12px 14px;
    }

    body.page-product .product-summary h1,
    body.page-product .product-page__title {
        font-size: 27px;
    }
}
