/* Product Cards - Override inline styles */
.product-card .no-image-placeholder {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    flex-direction: column !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px dashed #dee2e6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Force override for product cards with inline styles */
.product-card .product-image .no-image-placeholder[style] {
    width: 100% !important;
    height: 250px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 12px !important;
}

/* Product no-image placeholder content styling */
.product-card .no-image-placeholder .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card .no-image-placeholder i {
    font-size: 3rem !important;
    color: #9ca3af !important;
    margin-bottom: 12px !important;
    z-index: 2;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-card .no-image-placeholder span {
    font-size: 16px !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.product-card .no-image-placeholder:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-color: #007bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,123,255,0.15) !important;
}

.product-card .no-image-placeholder:hover i {
    color: #007bff !important;
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.product-card .no-image-placeholder:hover span {
    color: #007bff !important;
    transform: translateY(-2px) !important;
}

/* Mobile responsive for product cards */
@media (max-width: 768px) {
    .product-card .no-image-placeholder {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .product-card .no-image-placeholder[style] {
        height: 200px !important;
    }
    
    .product-card .no-image-placeholder i {
        font-size: 2.5rem !important;
    }
    
    .product-card .no-image-placeholder span {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .product-card .no-image-placeholder {
        height: 180px !important;
        min-height: 180px !important;
    }
    
    .product-card .no-image-placeholder[style] {
        height: 180px !important;
        min-height: 180px !important;
    }
    
    .product-card .no-image-placeholder i {
        font-size: 2rem !important;
    }
    
    .product-card .no-image-placeholder span {
        font-size: 12px !important;
    }
}

/* Wishlist Button Styling */
.wishlist-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #dc3545 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3) !important;
}

.wishlist-btn i {
    font-size: 16px !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
}

.wishlist-btn:hover i {
    color: #dc3545 !important;
    transform: scale(1.1) !important;
}

/* Active wishlist state (when item is in wishlist) */
.wishlist-btn.active,
.wishlist-btn[data-in-wishlist="true"] {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
}

.wishlist-btn.active i,
.wishlist-btn[data-in-wishlist="true"] i {
    color: #dc3545 !important;
}

/* Product card specific wishlist button */
.product-card .wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 15 !important;
}

/* Category page and products page specific */
.products-section .product-card .wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
}

/* Mobile responsive wishlist button */
@media (max-width: 768px) {
    .wishlist-btn {
        width: 36px !important;
        height: 36px !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .wishlist-btn i {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .wishlist-btn i {
        font-size: 12px !important;
    }
}

/* Enhanced Wishlist Button Styling - Fixed positioning */
.wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #dc3545 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3) !important;
}

.wishlist-btn i {
    font-size: 14px !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

.wishlist-btn:hover i {
    color: #dc3545 !important;
    transform: scale(1.1) !important;
}

/* Active wishlist state (when item is in wishlist) */
.wishlist-btn.active,
.wishlist-btn[data-in-wishlist="true"] {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
}

.wishlist-btn.active i,
.wishlist-btn[data-in-wishlist="true"] i {
    color: #dc3545 !important;
}

/* Product card specific wishlist button positioning */
.product-card .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 25 !important;
}

/* Category page and products page specific */
.products-section .product-card .wishlist-btn {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
}

/* Ensure badges don't overlap with wishlist button */
.product-card .sale-badge ~ .wishlist-btn {
    top: 50px !important;
}

.product-card .discount-badge ~ .wishlist-btn {
    top: 50px !important;
}

/* Mobile User Dropdown Styles */
.mobile-user-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    z-index: 1000 !important;
    min-width: 200px !important;
    display: none !important;
    margin-top: 5px !important;
}

.mobile-user-dropdown.show {
    display: block !important;
}

.mobile-user-dropdown .dropdown-item {
    padding: 12px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.mobile-user-dropdown .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #007bff !important;
}

.mobile-user-dropdown .dropdown-item i {
    margin-right: 8px !important;
    width: 16px !important;
    text-align: center !important;
}

.mobile-user-dropdown .dropdown-divider {
    margin: 8px 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Mobile responsive for wishlist button */
@media (max-width: 768px) {
    .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .wishlist-btn i {
        font-size: 12px !important;
    }
    
    .product-card .sale-badge ~ .wishlist-btn,
    .product-card .discount-badge ~ .wishlist-btn {
        top: 40px !important;
    }
}

@media (max-width: 576px) {
    .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    .wishlist-btn i {
        font-size: 10px !important;
    }
    
    .product-card .sale-badge ~ .wishlist-btn,
    .product-card .discount-badge ~ .wishlist-btn {
        top: 32px !important;
    }
}

/* Ensure product card positioning */
.product-card {
    position: relative !important;
    overflow: hidden !important;
}

.product-card .product-image {
    position: relative !important;
}

/* Mobile User Dropdown */
.mobile-user-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    z-index: 1000 !important;
    min-width: 180px !important;
    display: none !important;
    margin-top: 5px !important;
}

.mobile-user-dropdown.show {
    display: block !important;
}

.mobile-user-dropdown .dropdown-item {
    padding: 10px 15px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.mobile-user-dropdown .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #007bff !important;
}

.mobile-user-dropdown .dropdown-item i {
    margin-right: 8px !important;
    width: 16px !important;
}

.mobile-user-dropdown .dropdown-divider {
    margin: 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sale-badge, .discount-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
        top: 6px !important;
        left: 6px !important;
    }
    
    .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .wishlist-btn i {
        font-size: 10px !important;
    }
}

/* Fix any Bootstrap conflicts */
.product-card .btn-outline-light {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #dee2e6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Sales Badge Styling - FIXED */
.sale-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 15 !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(3px) !important;
}

/* Discount Badge Styling */
.discount-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 15 !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(3px) !important;
}

/* Wishlist Button - FIXED POSITIONING */
.wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 25 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wishlist-btn:hover {
    background: white !important;
    border-color: #dc3545 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 3px 10px rgba(220,53,69,0.3) !important;
}

.wishlist-btn i {
    font-size: 12px !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
}

.wishlist-btn:hover i {
    color: #dc3545 !important;
}

/* Active wishlist state */
.wishlist-btn.active i,
.wishlist-btn[data-in-wishlist="true"] i {
    color: #dc3545 !important;
}

/* Product card positioning */
.product-card {
    position: relative !important;
}

.product-card .product-image {
    position: relative !important;
}

/* Mobile User Dropdown */
.mobile-user-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    z-index: 1000 !important;
    min-width: 180px !important;
    display: none !important;
    margin-top: 5px !important;
}

.mobile-user-dropdown.show {
    display: block !important;
}

.mobile-user-dropdown .dropdown-item {
    padding: 10px 15px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.mobile-user-dropdown .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #007bff !important;
}

.mobile-user-dropdown .dropdown-item i {
    margin-right: 8px !important;
    width: 16px !important;
}

.mobile-user-dropdown .dropdown-divider {
    margin: 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sale-badge, .discount-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
        top: 6px !important;
        left: 6px !important;
    }
    
    .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .wishlist-btn i {
        font-size: 10px !important;
    }
}