/**
 * StoreX Fallback Content Styles
 * For when WooCommerce is not active
 */

/* WooCommerce Notice Styles */
.woocommerce-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.woocommerce-notice .notice-content {
    max-width: 600px;
    margin: 0 auto;
}

.woocommerce-notice p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.woocommerce-notice .theme-btn {
    display: inline-block;
    margin-top: 10px;
}

/* Fallback Product Styles */
.shop-fallback .shop-item {
    transition: all 0.3s ease;
}

.shop-fallback .shop-item:hover,
.shop-fallback .shop-item:focus-within {
    transform: translateY(-5px);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item:hover .product-overlay,
.shop-item:focus-within .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions a {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-actions a:hover,
.product-actions a:focus {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

/* Product Rating Styles */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
}

/* Product Price Styles */
.product-price {
    margin: 10px 0;
}

.current-price {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-left: 8px;
    font-size: 14px;
}

/* Product Badge Styles */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.sale-badge {
    background-color: #dc3545;
}

.new-badge {
    background-color: #28a745;
}

.featured-badge {
    background-color: #007cba;
}

.hot-badge {
    background-color: #fd7e14;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
    background: #005a87;
    transform: translateY(-2px);
}

.add-to-cart-btn span {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.add-to-cart-btn:hover span,
.add-to-cart-btn:focus span {
    transform: translateX(100%);
}

/* Stock Out Styles */
.product-stock-out {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-stock-out img {
    width: 16px;
    height: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .woocommerce-notice {
        padding: 15px;
        margin-top: 20px;
    }
    
    .woocommerce-notice p {
        font-size: 13px;
    }
    
    .product-actions {
        gap: 5px;
    }
    
    .product-actions a {
        width: 35px;
        height: 35px;
    }
}

/* Animation for fallback content */
.shop-fallback .shop-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.shop-fallback .shop-item:nth-child(1) { animation-delay: 0.1s; }
.shop-fallback .shop-item:nth-child(2) { animation-delay: 0.2s; }
.shop-fallback .shop-item:nth-child(3) { animation-delay: 0.3s; }
.shop-fallback .shop-item:nth-child(4) { animation-delay: 0.4s; }
.shop-fallback .shop-item:nth-child(5) { animation-delay: 0.5s; }
.shop-fallback .shop-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}