/* Product Image Sizing Fix - Keep original design */
.product-img-wrapper {
    height: 150px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Specific fix for index page horizontal scroll products */
.product-scroll-card .product-img-wrapper {
    height: 150px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Also fix product page card images */
.product-card .product-img-wrapper {
    height: 150px !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-img-wrapper img,
.product-img-wrapper picture {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    vertical-align: middle !important;
}

.product-img-wrapper picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.product-card-modern:hover .product-img-wrapper img {
    transform: scale(1.1) !important;
}

.product-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(4px) !important;
}

.product-card-modern:hover .product-overlay {
    opacity: 1 !important;
}

.trust-badge-mini {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    background: #ffd700 !important;
    color: #000 !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.card:hover .trust-badge-mini {
    transform: scale(1.1) !important;
}

.discount-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    background: #dc3545 !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.card:hover .discount-badge {
    transform: scale(1.1) !important;
}

/* View Details Button on Hover - Light Theme */
.product-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent) !important;
    padding: 20px 15px 15px !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 5 !important;
    display: flex !important;
    justify-content: center !important;
}

.card:hover .product-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.product-overlay .btn-view-details {
    background: #000 !important;
    color: white !important;
    border: 2px solid #000 !important;
    padding: 6px 20px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    min-width: 120px !important;
    text-align: center !important;
}

.product-overlay .btn-view-details:hover {
    background: white !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Restore original circular button design */
.product-overlay {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 5 !important;
}

.card:hover .product-overlay {
    opacity: 1 !important;
}

.product-overlay .btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #007bff !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.product-overlay .btn:hover {
    background: #0056b3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* Ensure proper image display */
img.product-image,
.category-img,
.hero-image {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix for horizontal scroll products */
.product-scroll-card .card {
    height: 100% !important;
}

.product-scroll-card .card-body {
    flex: 1 !important;
}