/**
 * Stock and Price Loader Styles
 * Skeleton loading animation and out-of-stock ribbon styles
 */

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-loading {
    display: inline-block;
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

/* Loading state for products */
.loading-stock-data {
    opacity: 0.7;
    pointer-events: none;
}

/* Out of stock ribbon overlay */


/* Ensure image containers can have relative positioning for ribbon */
.con-img-wrap,
.product-quick-view {
    position: relative;
}

/* Discount badge prominent styling */
.discount-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

/* Strikethrough old price styling */
.product-old-price {
    margin-left: 8px;
}

.product-old-price .text-decoration-line-through {
    font-size: 14px;
    color: #6c757d;
}

/* Disabled add to cart button styling */
.add-to-cart.disabled,
.add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notify me text styling */
.notify-text {
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
}

/* Stock status badges */
.badge.text-bg-success {
    background-color: #28a745 !important;
}

.badge.text-bg-danger {
    background-color: #dc3545 !important;
}

/* Product price prominence for discount */
.product-price {
    font-weight: bold;
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .out-of-stock-ribbon {
        font-size: 14px;
        padding: 6px 20px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 3px 6px;
    }
}
