    .color-option {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #ddd;
        transition: all 0.3s ease;
        position: relative;
    }
    .color-option.selected {
        border-color: var(--theam-color);
        transform: scale(1.1);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--theam-color) 25%, transparent);
    }
    .color-option:hover {
        transform: scale(1.05);
        border-color: #666;
    }
    .term-visual-option {
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 10px;
        padding: 6px 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .term-visual-option img {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #eee;
    }
    .term-visual-option.selected {
        border-color: var(--theam-color);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--theam-color) 20%, transparent);
    }
    .button-swatch-option,
    .radio-swatch-option {
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 8px;
        padding: 6px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .button-swatch-option.selected,
    .radio-swatch-option:has(.radio-swatch-input:checked) {
        border-color: var(--theam-color);
        background: color-mix(in srgb, var(--theam-color) 8%, #fff);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--theam-color) 20%, transparent);
    }
    .radio-swatch-option {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
    }
    .radio-swatch-input {
        margin: 0;
    }
    .button-swatch-option.is-unavailable,
    .radio-swatch-option.is-unavailable {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }
    .swatch-option-wrap {
        position: relative;
        display: inline-flex;
    }
    .swatch-select-wrap {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .swatch-select-wrap .attribute-select {
        flex: 1 1 auto;
    }
    .swatch-clear-btn {
        position: absolute;
        top: -7px;
        inset-inline-end: -7px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--theam-color);
        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;
        box-shadow: 0 2px 8px color-mix(in srgb, var(--theam-color) 35%, transparent);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .swatch-clear-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 3px 10px color-mix(in srgb, var(--theam-color) 45%, transparent);
    }
    .swatch-clear-btn--select {
        position: static;
        flex: 0 0 20px;
        display: none;
    }
    .swatch-option-wrap.is-selected .swatch-clear-btn,
    .swatch-select-wrap.is-selected .swatch-clear-btn {
        display: flex;
    }
    .spec-term-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .spec-term-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f8f9fa;
        border: 1px solid #ececec;
        border-radius: 8px;
        padding: 4px 8px;
    }
    .spec-term-image {
        width: 20px;
        height: 20px;
        object-fit: cover;
        border-radius: 4px;
    }

    .spec-term-link {
        color: var(--theam-color);
        text-decoration: none;
        font-weight: 500;
    }

    .spec-term-link:hover {
        text-decoration: underline;
    }

    .product-quantity-input {
        width: 5.5rem;
        min-width: 4.75rem;
        max-width: 7.5rem;
        font-size: 1rem;
        font-weight: 600;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .add-to-cart-section--disabled .add-to-cart-btn {
        opacity: 0.65;
        pointer-events: none;
        cursor: not-allowed;
    }
    
    .gallery-thumb {
        cursor: pointer;
        transition: opacity 0.2s;
        border-radius: 8px;
    }
    .gallery-thumb:hover {
        opacity: 0.8;
    }
    
    .toast {
        min-width: 300px;
    }
    
    .cart-counter {
        transition: transform 0.3s ease;
    }
    .cart-counter.bump {
        transform: scale(1.2);
    }
    
    .price-with-discount .current-price {
        font-size: 1.8rem;
        font-weight: bold;
    }
    
    .price-with-discount .original-price {
        font-size: 1.2rem;
    }
    
    .discount-info .badge {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .savings-amount {
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .product-page .stock-status {
        padding: 0.65rem 0;
        background: transparent;
        border: none;
    }
    
    .quantity-control {
        border: 1px solid var(--ui-border, #dee2e6);
        border-radius: 6px;
        overflow: hidden;
    }
    
    .quantity-control input {
        border: none;
        border-left: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
    }
    
    .quantity-control .quantity-btn {
        border: none;
        background: #f8f9fa;
        width: 40px;
        height: 38px;
    }
    
    .quantity-control .quantity-btn:hover {
        background: #e9ecef;
    }
    
    .add-to-cart-btn {
        min-width: 200px;
        font-weight: 500;
    }
    
    .attribute-item label {
        color: #495057;
        margin-bottom: 8px;
    }

    .attribute-item--locked .attribute-item__controls {
        display: none;
    }

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

    .attribute-cascade-hint {
        display: none;
        font-size: 0.875rem;
        color: #6c757d;
        margin-bottom: 0;
    }

    .color-option.is-unavailable,
    .term-visual-option.is-unavailable,
    .button-swatch-option.is-unavailable {
        display: none !important;
    }
    
    .description-content {
        line-height: 1.8;
        font-size: 1.05rem;
    }
    
    .specs-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }

    .specs-group + .specs-group {
        margin-top: 1.5rem;
    }

    .specs-group__title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--theam-color);
        margin: 0 0 0.75rem;
        padding-bottom: 0.4rem;
        border-bottom: 1px solid color-mix(in srgb, var(--theam-color) 18%, var(--ui-border, #dee2e6));
    }
    
    @media (max-width: 768px) {
        .price-with-discount .current-price {
            font-size: 1.5rem;
        }
        
        .quantity-wrapper {
            flex-direction: column;
            align-items: flex-start !important;
            gap: 15px !important;
        }
        
        .add-to-cart-btn {
            width: 100%;
        }
    }
    
    /* جلوگیری از Layout Shift */
    .main-image {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    .main-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        width: 100%;
    }
    
    .gallery-thumb {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product-sticky-cart {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(8px);
    }

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

    .product-sticky-cart__price {
        flex: 1;
        min-width: 0;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--theam-color, #333);
    }

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

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

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

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

    .product-sticky-cart__btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.45rem 0.65rem;
    }

    body.product-sticky-cart-visible {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .packaging-option__thumb-btn {
        flex-shrink: 0;
        width: 4.5rem;
        height: 4.5rem;
        padding: 0;
        border: 1px solid var(--ui-border, #dee2e6);
        border-radius: 0.5rem;
        background: #fff;
        overflow: hidden;
        cursor: zoom-in;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    .packaging-option__thumb-btn:hover,
    .packaging-option__thumb-btn:focus-visible {
        border-color: var(--theam-color, #0d6efd);
        box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--theam-color, #0d6efd) 20%, transparent);
        outline: none;
    }

    .packaging-option__thumb-btn:active {
        transform: scale(0.97);
    }

    .packaging-option__thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }

    .packaging-option .form-check-input {
        margin-top: 0;
    }

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

    #packaging-image-modal {
        z-index: 10060;
    }

    #packaging-image-modal .modal-content {
        border: none;
        box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
    }

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

/* ── Product short description & price box ── */
.product_short {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.price-box {
    font-size: 1.05rem;
}

.price-box i {
    text-decoration: line-through;
}

/* ── Rich HTML in product description tab ── */
.description-content img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    border-radius: var(--ui-radius-md, 12px);
}

.description-content ul {
    font-size: 15px;
    line-height: 2;
    list-style: disc;
    list-style-position: inside;
    margin-bottom: 10px;
    width: 100%;
}

.description-content ol {
    font-size: 15px;
    line-height: 2;
    list-style-position: inside;
    margin-bottom: 10px;
    width: 100%;
}

.description-content ul li::marker {
    color: #091c71;
}

.description-content ol li::marker {
    color: #0a1d71;
}

.description-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: justify;
    width: 100%;
}

.description-content p a {
    color: var(--theam-secend-color);
}

.description-content blockquote {
    font-size: 15px;
    padding: 1.5rem 2rem;
    color: #fff;
    background: var(--theam-color);
    border-radius: var(--ui-radius-lg, 16px);
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
}

.description-content blockquote p {
    margin: 0.5rem 0;
    color: #fff;
    text-align: right;
}

.description-content table {
    width: 100% !important;
    max-width: 100%;
    margin: 10px 0;
    border: 1px solid var(--ui-border, #ccc);
}

.description-content table thead td,
.description-content table thead th {
    border: 1px solid #555;
    padding: 3px 6px;
    text-align: center;
    background: var(--theam-color);
    color: #fff;
}

.description-content table td {
    border: 1px solid #555;
    padding: 3px 6px;
    text-align: center;
}

.description-content table td p {
    text-align: center;
    margin: 0;
}

.description-content h2 {
    color: var(--theam-color);
    font-size: 1.25rem;
    margin: 1rem 0;
    text-align: right;
    font-weight: 700;
}

.description-content h3 {
    color: #8b0000;
    font-size: 1.15rem;
    margin: 1rem 0;
    text-align: right;
    font-weight: 600;
}

.description-content h4 {
    font-size: 1.1rem;
    color: #006400;
    margin: 1rem 0;
    text-align: right;
    font-weight: 600;
}

.description-content h5 {
    font-size: 1.05rem;
    color: #6f42c1;
    margin: 1rem 0;
    text-align: right;
}

.description-content h6 {
    font-size: 1rem;
    color: #666;
    margin: 1rem 0;
    text-align: right;
}
