/* MODERN PRODUCT CARD DESIGN SYSTEM 2025 */
/* Contemporary styling that matches the sophisticated platform design */

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
    padding: 0 !important;
}

/* Responsive adjustments for 4-column grid */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

.product-card,
.modern-product-card {
    background: rgba(44, 44, 44, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12) !important,
        0 2px 8px rgba(0, 0, 0, 0.08) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Ensure it overrides any other product card styles */
    z-index: 1 !important;
}

.product-card:hover,
.modern-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2) !important,
        0 8px 24px rgba(255, 215, 0, 0.1) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    background: rgba(50, 50, 50, 0.8) !important;
}

.product-image-container {
    position: relative !important;
    height: 240px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(44, 44, 44, 0.8) 100%) !important;
}

.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: brightness(0.9) saturate(1.1) !important;
}

.product-card:hover .product-image {
    transform: scale(1.05) !important;
    filter: brightness(1.0) saturate(1.2) !important;
}

.product-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.product-badges {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 2 !important;
}

.product-badge {
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.product-badge.bestseller {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1A1A1A !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

.product-badge.organic {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
}

.product-badge.local {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%) !important;
}

.product-badge.uk-grown {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%) !important;
}

.product-actions-overlay {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    opacity: 0 !important;
    transform: translateX(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 3 !important;
}

.product-card:hover .product-actions-overlay {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.action-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 22px !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.9) !important;
    color: #1A1A1A !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3) !important;
}

.quick-view-btn {
    position: absolute !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    border: none !important;
    background: rgba(255, 215, 0, 0.9) !important;
    color: #1A1A1A !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
    z-index: 3 !important;
}

.product-card:hover .quick-view-btn {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.quick-view-btn:hover {
    background: rgba(255, 215, 0, 1) !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4) !important;
}

.product-content {
    padding: 24px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    color: #FFFFFF !important;
}

.vendor-info {
    display: flex !important;
    align-items-center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.vendor-name {
    color: rgba(255, 215, 0, 0.9) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0.5px !important;
}

.vendor-name:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.product-location {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.product-title {
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
}

.product-title:hover {
    color: rgba(255, 215, 0, 0.9) !important;
    text-decoration: none !important;
}

.product-pricing {
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
}

.price-range, .price-display {
    color: #FFD700 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.price-unit {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.product-rating {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.rating-stars {
    display: flex !important;
    gap: 2px !important;
}

.rating-stars i {
    color: #FFD700 !important;
    font-size: 0.8rem !important;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem !important;
}

.stock-status {
    margin-bottom: 16px !important;
}

.stock-indicator {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.stock-indicator.in-stock {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4CAF50 !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

.stock-indicator.low-stock {
    background: rgba(255, 152, 0, 0.2) !important;
    color: #FF9800 !important;
    border: 1px solid rgba(255, 152, 0, 0.3) !important;
}

.stock-indicator.out-of-stock {
    background: rgba(244, 67, 54, 0.2) !important;
    color: #F44336 !important;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
}

.product-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
}

.product-tag {
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    backdrop-filter: blur(5px) !important;
}

.product-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

.btn-add-cart {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1A1A1A !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
}

.btn-add-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3) !important;
}

.btn-add-cart:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-favorite {
    width: 48px !important;
    height: 48px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px) !important;
}

.btn-favorite:hover {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.btn-favorite.active {
    border-color: #FF4757 !important;
    color: #FF4757 !important;
    background: rgba(255, 71, 87, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .product-card {
        border-radius: 16px !important;
    }
    
    .product-image-container {
        height: 200px !important;
    }
    
    .product-content {
        padding: 20px !important;
    }
    
    .product-actions-overlay {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
    }
}

/* Featured Product Carousel Styles */
.carousel-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 0 !important;
    padding: 0 2rem !important;
}

@media (max-width: 992px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .carousel-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
    }
}

.carousel-control-icon {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-control-icon:hover {
    background: rgba(255, 215, 0, 0.4);
    border-color: #FFD700;
    transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: -30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #FFD700;
    border-color: #FFD700;
    transform: scale(1.2);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.modern-product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modern-product-card:hover .overlay-content {
    transform: translateY(0);
}

/* CRITICAL: Product Card Component Styling Overrides */
.product-card .product-info {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(26, 26, 26, 0.8) !important;
}

.product-card .vendor-info {
    margin-bottom: 8px !important;
}

.product-card .vendor-name {
    font-size: 0.8rem !important;
    color: #FFD700 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.product-card .product-title {
    margin: 0 0 12px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
}

.product-card .product-title a,
.product-card .product-link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.product-card .product-title a:hover,
.product-card .product-link:hover {
    color: #FFD700 !important;
}

.product-card .product-description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    flex-grow: 1 !important;
}

.product-card .product-price {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
    margin-bottom: 16px !important;
}

.product-card .compare-price {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: line-through !important;
    margin-left: 8px !important;
    font-weight: 400 !important;
}

.product-card .product-actions {
    margin-top: auto !important;
}

.product-card .btn-add-to-cart {
    width: 100% !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1A1A1A !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.product-card .btn-add-to-cart:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3) !important;
}

.product-card .btn-out-of-stock {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(108, 117, 125, 0.3) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    cursor: not-allowed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}