/* --- Wrapper Style --- */
#digi-variants-wrapper {
    margin-top: 20px;
    border-radius: 8px;
    padding: 10px 0;
}

/* --- Each Block (رنگ، گارانتی، ...) --- */
.digi-variant-block {
    margin-bottom: 20px;
}

.digi-variant-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

/* --- List Style --- */
.digi-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Item --- */
.digi-variant-item {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    gap: 8px;
    background: #fff;
    transition: all .2s ease;
}

.digi-variant-item:hover {
    border-color: #4a90e2;
}

/* مخفی کردن رادیوباکس */
.digi-variant-item input[type=radio] {
    display: none;
}

/* --- Box (رنگ / تکسچر) --- */
.digi-variant-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #ccc;
    display: inline-block;
    background-size: cover !important;
}

/* --- متن کنار رنگ / گارانتی --- */
.digi-variant-name {
    font-size: 13px;
    color: #555;
}

/* --- حالت انتخاب شده --- */
.digi-variant-item.selected,
.digi-variant-item input:checked+.digi-variant-box+.digi-variant-name {
    font-weight: 700;
}

.digi-variant-item.selected {
    border-color: #ee394a !important;
    background: #fdecef;
}

.digi-variant-item input:checked+.digi-variant-box {
    border: 2px solid #ee394a;
}


.digi-ref {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.digi-ref b {
    font-weight: 600;
    color: #000;
}

.digi-btn-add i {
    margin-left: 6px;
}

.digi-btn-in-cart {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.digi-btn-in-cart i {
    margin-left: 6px;
}

.digi-btn-disabled {
    background: #aaaaaa !important;
    border-color: #aaaaaa !important;
    cursor: not-allowed !important;
}

#digi-product-price .old {
    text-decoration: line-through;
    color: #888;
    margin-right: 5px;
}

#digi-product-price .disc {
    color: #d9534f;
    margin-right: 5px;
    font-weight: bold;
}

div#digi-dynamic-price {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

div#digi-price-wrapper {
    width: 40%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

#digi-variants-wrapper {
    margin-top: 20px;
    border-radius: 8px;
    padding: 10px 0;
    width: 60%;
}

.product-add-to-cart.pt-3.js-product-add-to-cart {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    flex-direction: row;
}

.digi-variant-item {
    position: relative;
}

.digi-variant-box {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.25s ease;
    position: relative;
}

.digi-variant-item.selected .digi-variant-box {
    border: 2px solid #0099ff;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.2);
}

.digi-tick {
    position: absolute;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
}

.digi-tick svg {
    width: 22px;
    height: 22px;
    fill: #000;
}

.digi-variant-item.selected .digi-tick {
    display: flex;
}

/* تیک مشکی */
.digi-tick.tick-dark svg {
    fill: #000;
}

/* تیک سفید */
.digi-tick.tick-light svg {
    fill: #fff;
}

.disabled-option {
    opacity: 0.35;
    cursor: not-allowed !important;
    filter: grayscale(100%);
}

.disabled-option input {
    pointer-events: none;
}

/* === کارت انتخاب ترکیب === */
.digi-pack-item {
    display: block;
    border: 2px solid #ddd;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: #fff;
}

.digi-pack-item:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* انتخاب‌شده */
.digi-pack-item.selected {
    border-color: #1a73e8 !important;
    background: #f0f6ff;
}

/* پنهان‌کردن خود input */
.digi-pack-item input {
    display: none;
}

/* هر ردیف ویژگی */
.pack-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 14px;
}

/* تیک انتخاب */
.digi-pack-item .selected-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digi-pack-item .selected-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* --- Sticky Add-to-Cart for Mobile --- */
#digi-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 12px;
    display: none;
    /* پیش‌فرض مخفی */
    z-index: 9999;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08);
}

#digi-mobile-sticky-bar .sticky-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

#digi-mobile-sticky-bar .sticky-addtocart-btn {
    width: 100%;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.sticky-oos-form {
    background: #fffdc8;
    border-radius: 10px;
    padding: 10px;
}

.sticky-oos-form .hi-oosn-title {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    display: block;
}

.sticky-oos-form .hi-oosn-email-content {
    display: flex;
    gap: 6px;
}

.sticky-oos-form input.hi_stock_email {
    flex: 1;
    height: 40px;
    font-size: 14px;
}

.sticky-oos-form .oosn-button {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
}

#digi-mobile-sticky-bar span.text-success {
    display: none;
}























/* --- Mobile Responsive --- */
@media (max-width: 1023px) {
    .digi-variant-item {
        padding: 6px 8px;
    }

    .digi-variant-box {
        width: 22px;
        height: 22px;
    }

    .digi-variant-name {
        font-size: 12px;
    }

    .product-information .subscribe_form_content.hi-oosn-page {
        opacity: 0;
        height: 0;
    }

    div#digi-price-wrapper {
        display: none;
    }
}