/* ===== Order Success Modal ===== */
#orderSuccessModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: none;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

#orderSuccessModal .modal-header {
    background: #28a745; /* green header */
    color: #fff;
    border-bottom: none;
}

#orderSuccessModal .modal-body {
    font-size: 16px;
    text-align: center;
    padding: 30px 20px;
}

#orderSuccessModal .modal-footer {
    border-top: none;
    justify-content: center;
}

#orderSuccessModal .btn-success {
    background-color: #28a745;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#orderSuccessModal .btn-success:hover {
    background-color: #218838;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}
.box-img-hover {
    position: relative;
    overflow: hidden;
}

.front-img {
    transition: opacity 0.4s ease;
}

.back-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.box-img-hover:hover .front-img {
    opacity: 0;
}

.box-img-hover:hover .back-img {
    opacity: 1;
}

.cart.disabled {
    background: #999;
    pointer-events: none;
}
.stock-alert {
    display: block;
    background: #fff3cd;
    color: #856404;
    font-size: 13px;
    padding: 5px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.cart.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}
