/* Product details styles */
.quantity-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 2px solid;
    border-color: currentColor;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    opacity: 0.6;
}

.quantity-box:hover {
    border-color: currentColor;
    opacity: 1;
}

.btn-qty {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
}

.btn-qty:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.btn-qty:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-qty {
    width: 35px;
    height: 35px;
    text-align: center;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.stock-info {
    font-size: 14px;
    color: inherit;
}

.text-secondary {
    color: inherit !important;
}

.product-info-cards {
    display: flex;
    gap: 12px;
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 25px;
}

.product-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E5E7EB;
    min-width: 140px;
    flex: 1;
    font-size: 1em;
    font-weight: 700;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-info-card svg {
    margin-right: 0 !important;
    margin-bottom: 12px;
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    color: var(--primary);
    stroke-width: 1.5;
}

.product-info-card i {
    font-size: 20px;
    margin-top: 5px;
    color: var(--primary);
}

.product-info-card svg {
    margin-right: 6px;
    flex-shrink: 0;
}

.product-title {
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.description-text-cl p {
    margin: 0px;
}

.rating img {
    height: 20px;
}

.ub-share-social {
    display: flex;
    gap: 15px;
}

.share-link {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-link:hover {
    transform: scale(1.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.share-icon {
    width: 20px;
    height: 20px;
}

.ub-share-social {
    gap: 10px;
}

.text-secondary {
    font-size: 14px;
    font-weight: 400;
    color: inherit;
}

.text-dark,
.text-primary,
.text-reset {
    color: inherit;
}

.share-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Radio Options */
.radio-options {
    gap: 12px;
}

.radio-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked+.radio-label {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:hover .radio-label {
    background-color: #007bff22;
}

/* Hide default radio button */
.ub-megabox input[type="radio"] {
    display: none;
}

/* Default styling for smaller circular color options */
.ub-megabox-elem {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid transparent;
    /* Default border */
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Add hover effect */
.ub-megabox input[type="radio"]:hover+.ub-megabox-elem {
    transform: scale(1.1);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Active state - when selected, add a border */
.ub-megabox input[type="radio"]:checked+.ub-megabox-elem {
    border: 1px solid #333;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.4);
}

.msg-seller-btn {
    min-width: 323px;
}

.wishlist-compare-btn {
    display: flex;
}

.additional-item {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
    user-select: none;
    cursor: pointer;
}

.additional-item svg {
    margin-right: 7px;
}

/* Hide number input spinners */
.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.review_starts{
    min-width: 120px;
    display: inline-flex;
    align-items: center;
}

.input-number {
    -moz-appearance: textfield;
    appearance: textfield;
}

.btn-minus:disabled,
.btn-plus:disabled {
    opacity: .5;
    cursor: not-allowed;
    background: #f5f5f5 !important;
    color: #999 !important;
}

.btn-minus:disabled img,
.btn-plus:disabled img {
    filter: grayscale(1) opacity(0.5);
}

@media (max-width: 776px) {
    .product-info-cards {
        flex-direction: column;
        gap: 8px;
        padding: 8px 4px;
    }

    .product-info-card {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .product-title {
        font-size: 20px;
        line-height: 30px;
    }

    .buy-btns-set {
        gap: 10px;
    }

    .buy-btns-set button {
        width: 100%;
        margin-bottom: 10px;
    }

    .buy-btns-set button:first-of-type {
        margin-top: 0px !important;
    }

    .buy-btns-set button:last-of-type {
        margin-bottom: 0px !important;
    }

    .msg-seller-btn {
        width: 100%;
    }

    .wishlist-compare-btn {
        flex-direction: column;
        gap: 10px;
    }

    .wishlist-compare-btn button {
        width: 100%;
    }
}

/* Low Stock Warning Styles */
.badge-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.badge-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.badge-primary {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}