/* Cart Functionality Styles */

.product-variants .produt-variants-size label .text-danger {
    color: #e74c3c;
    font-weight: normal;
}

.cart-plus-minus {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.cart-plus-minus-box {
    border: none;
    text-align: center;
    width: 60px;
    padding: 8px 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
}

.qtybutton {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    user-select: none;
    transition: all 0.3s ease;
}

.qtybutton:hover {
    background: #e0e0e0;
    color: #000;
}

.qtybutton:active {
    transform: scale(0.95);
}

.add-to-cart:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.add-to-cart:disabled:hover {
    background-color: #ccc !important;
}

/* Stock indicator styling */
.product-variants select option {
    padding: 5px;
}

.product-availability {
    margin-top: 15px;
    padding: 8px 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-availability.out-of-stock {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Related products styling */
.product-slider .single-product-wrap {
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-slider .single-product-wrap:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.label-product {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.label-new {
    background: #28a745;
    color: white;
}

.quick_view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .quick_view {
    opacity: 1;
}

.quick-view-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
}

/* Message styling for better UX */
.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.cart-message.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-message.error {
    background: #dc3545;
}