/* Ideal Home Nasiri carton sale styles - scoped and safe */
.ihncb-box,
.ihncb-box *,
.ihncb-quantity,
.ihncb-quantity *,
.ihncb-cart-qty,
.ihncb-cart-qty * {
    box-sizing: border-box;
}

.ihncb-box {
    direction: rtl;
    width: 100%;
    margin: 16px 0 18px;
    padding: 16px;
    border: 1px solid rgba(176, 123, 43, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffaf1 0%, #ffffff 58%, #fff7ea 100%);
    box-shadow: 0 10px 28px rgba(104, 71, 32, 0.08);
    color: #2a2118;
    clear: both;
}

.ihncb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.ihncb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    background: #8a5a20;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.ihncb-header strong {
    display: block;
    margin: 0;
    color: #5b3710;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.ihncb-header small {
    display: block;
    color: #7b6a58;
    font-size: 12px;
    line-height: 1.7;
}

.ihncb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ihncb-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(128, 95, 55, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.ihncb-item span {
    display: block;
    margin-bottom: 4px;
    color: #6d6256;
    font-size: 12px;
    line-height: 1.7;
}

.ihncb-item strong {
    display: block;
    color: #1f1b17;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
    word-break: break-word;
}

.ihncb-highlight {
    border-color: rgba(138, 90, 32, 0.32);
    background: linear-gradient(135deg, #fff3dc, #ffffff);
}

.ihncb-highlight strong {
    color: #8a5a20;
}

.ihncb-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #2b2118;
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
}

.ihncb-live strong {
    font-weight: 800;
    color: #ffe3ad;
}

.ihncb-quantity {
    direction: rtl;
    width: 100%;
    max-width: 380px;
    margin: 12px 0 14px;
    padding: 13px;
    border: 1px solid #e6e1da;
    border-radius: 16px;
    background: #fff;
}

.ihncb-quantity label {
    display: block;
    margin: 0 0 8px;
    color: #2a2118;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.ihncb-select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d8d0c5;
    border-radius: 12px;
    background-color: #fff;
    color: #181511;
    font-size: 14px;
    line-height: 44px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ihncb-select:focus {
    border-color: #8a5a20;
    box-shadow: 0 0 0 3px rgba(138, 90, 32, 0.13);
}

.ihncb-cart-qty {
    direction: rtl;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 115px;
}

.ihncb-cart-qty .ihncb-select {
    min-height: 38px;
    line-height: 38px;
    border-radius: 10px;
}

.ihncb-cart-qty small {
    color: #6d6256;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .ihncb-box {
        padding: 14px;
        border-radius: 16px;
    }

    .ihncb-grid {
        grid-template-columns: 1fr;
    }

    .ihncb-live {
        align-items: flex-start;
        flex-direction: column;
    }
}
