/* ===== COMPREHENSIVE PRODUCT CARD ENHANCEMENTS ===== */
/* Blue & Orange Premium Theme */

/* ========== ALL PRODUCT CARDS - BASE STYLING ========== */

/* Main product card containers */
.product-single-hover,
.flash_deal_product {
    border: 2px solid #e8f1ff !important;
    border-radius: 12px !important;
    background: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(59, 113, 222, 0.08) !important;
}

.product-single-hover:hover,
.flash_deal_product:hover {
    border-color: #3b71de !important;
    box-shadow: 0 12px 40px rgba(59, 113, 222, 0.25) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

/* Add gradient overlay on hover */
.product-single-hover::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(59, 113, 222, 0.03) 0%, rgba(255, 140, 66, 0.03) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.product-single-hover:hover::before {
    opacity: 1 !important;
}

/* ========== PRODUCT IMAGES ========== */

.inline_product,
.flash-deals-background-image {
    border-radius: 10px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative !important;
}

.inline_product img,
.__img-125px,
.product-single-hover .inline_product img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

.product-single-hover:hover .inline_product img,
.flash_deal_product:hover .__img-125px {
    transform: scale(1.15) rotate(2deg) !important;
}

/* ========== QUICK VIEW BUTTON ========== */

.quick-view {
    background: rgba(59, 113, 222, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s ease !important;
}

.product-single-hover:hover .quick-view {
    background: rgba(59, 113, 222, 0.92) !important;
}

.quick-view .btn-circle {
    background: white !important;
    border: 2px solid #3b71de !important;
    color: #3b71de !important;
    width: 45px !important;
    height: 45px !important;
    box-shadow: 0 4px 15px rgba(59, 113, 222, 0.3) !important;
    transition: all 0.3s ease !important;
}

.quick-view .btn-circle:hover {
    background: linear-gradient(135deg, #3b71de 0%, #5a8df5 100%) !important;
    color: white !important;
    transform: scale(1.15) !important;
    border-color: white !important;
}

.quick-view .btn-circle i {
    font-size: 18px !important;
}

/* ========== PRODUCT DETAILS SECTION ========== */

.single-product-details,
.flash_deal_product_details {
    padding: 15px !important;
    position: relative !important;
    z-index: 2 !important;
    background: white !important;
}

/* Product titles */
.single-product-details h3 a,
.flash-product-title,
.single-product-details a {
    color: #2c3280 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.product-single-hover:hover .single-product-details h3 a,
.product-single-hover:hover .single-product-details a,
.flash_deal_product:hover .flash-product-title {
    color: #3b71de !important;
    transform: translateX(3px) !important;
}

/* ========== PRICING ========== */

.product-price,
.flash-product-price {
    color: #3b71de !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-top: 8px !important;
}

.text-accent.text-dark {
    color: #3b71de !important;
    font-weight: 700 !important;
}

/* Strikethrough price */
.category-single-product-price,
del {
    color: #999 !important;
    font-size: 14px !important;
    opacity: 0.8 !important;
    text-decoration: line-through !important;
}

/* ========== DISCOUNT BADGE ========== */

.for-discount-value {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4) !important;
    animation: pulse-discount 2s ease-in-out infinite !important;
}

@keyframes pulse-discount {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 140, 66, 0.6);
    }
}

/* ========== RATING STARS ========== */

.rating-show,
.flash-product-review {
    margin-bottom: 8px !important;
}

.rating-show i,
.flash-product-review i {
    color: #ffa41c !important;
    font-size: 14px !important;
    margin-right: 2px !important;
}

.badge-style,
.badge-style2 {
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background: #f0f0f0 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-left: 4px !important;
}

/* ========== OUT OF STOCK BADGE ========== */

.out_fo_stock {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    padding: 6px 20px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

/* ========== FLASH DEAL SPECIFIC ========== */

.flash_deal_product {
    border-radius: 12px !important;
}

.flash_deal_product .flash-deals-background-image {
    min-height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ========== STYLE CARD VARIANT ========== */

.product-single-hover.style--card {
    background: white !important;
    border: 2px solid #e8f1ff !important;
}

.product-single-hover.style--card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    .product-single-hover:hover,
    .flash_deal_product:hover {
        transform: translateY(-4px) scale(1.01) !important;
    }

    .product-price,
    .flash-product-price {
        font-size: 16px !important;
    }

    .single-product-details h3 a,
    .flash-product-title {
        font-size: 14px !important;
    }
}

/* ========== GRID LAYOUT IMPROVEMENTS ========== */

.flash-deals-wrapper .product-single-hover,
.web-grid-container .product-single-hover {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.flash-deals-wrapper .product-single-hover > div,
.web-grid-container .product-single-hover > div {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.flash-deals-wrapper .single-product-details,
.web-grid-container .single-product-details {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* ========== ADD TO CART BUTTON (if exists) ========== */

.product-card-cart-btn,
.btn-add-to-cart {
    background: linear-gradient(135deg, #3b71de 0%, #5a8df5 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(59, 113, 222, 0.3) !important;
}

.product-card-cart-btn:hover,
.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4) !important;
}

/* ========== LOADING SHIMMER EFFECT ========== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.product-loading {
    animation: shimmer 2s infinite !important;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%) !important;
    background-size: 1000px 100% !important;
}
