/* Buy It For Life Modern Product Cards */
.bifl-products-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
    gap: 24px !important;
    margin: 32px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bifl-product-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bifl-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #007cba;
}

/* Card Image */
.bifl-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bifl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bifl-product-card:hover .bifl-card-image img {
    transform: scale(1.05);
}

/* Card Placeholder */
.bifl-card-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 200px !important;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    font-size: 3em !important;
    opacity: 0.3 !important;
}

/* Card Content */
.bifl-card-content {
    padding: 24px !important;
    color: #ffffff !important;
}

/* Card Header */
.bifl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.bifl-product-name {
    font-size: 1.5em !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    flex: 1 !important;
}

.bifl-category-badge {
    background: #007cba !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

/* Product Features */
.bifl-product-features {
    margin-bottom: 20px;
}

.bifl-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.bifl-feature:last-child {
    margin-bottom: 0;
}

.bifl-feature-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.bifl-feature-text {
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.4;
    font-weight: 500;
}

/* Product Notes */
.bifl-product-notes {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.5;
    font-style: italic;
}

/* Card Footer */
.bifl-card-footer {
    margin-top: 24px;
}

.bifl-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.bifl-buy-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 124, 186, 0.4);
}

.bifl-button-icon {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bifl-products-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 24px 0;
    }
    
    .bifl-product-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .bifl-card-content {
        padding: 20px;
    }
    
    .bifl-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bifl-product-name {
        font-size: 1.3em;
    }
    
    .bifl-category-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .bifl-products-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0;
    }
    
    .bifl-card-content {
        padding: 16px;
    }
    
    .bifl-card-image {
        height: 200px;
    }
    
    .bifl-product-name {
        font-size: 1.2em;
    }
    
    .bifl-buy-button {
        padding: 12px 20px;
        font-size: 0.95em;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.bifl-products-container.loading .bifl-product-card {
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Card Entry Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bifl-product-card {
    animation: slideInUp 0.6s ease-out;
}

.bifl-product-card:nth-child(1) { animation-delay: 0.1s; }
.bifl-product-card:nth-child(2) { animation-delay: 0.2s; }
.bifl-product-card:nth-child(3) { animation-delay: 0.3s; }
.bifl-product-card:nth-child(4) { animation-delay: 0.4s; }

/* Fallback for cards without images */
.bifl-product-card:not(:has(.bifl-card-image)) .bifl-card-content {
    padding-top: 32px;
}

.bifl-product-card:not(:has(.bifl-card-image)) .bifl-card-header::before {
    content: "📦";
    font-size: 2em;
    display: block;
    text-align: center;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Print Styles */
@media print {
    .bifl-products-container {
        display: block;
    }
    
    .bifl-product-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
        margin-bottom: 20px;
        break-inside: avoid;
    }
    
    .bifl-card-content {
        color: black !important;
    }
    
    .bifl-product-name {
        color: black !important;
    }
    
    .bifl-feature-text {
        color: #333 !important;
    }
    
    .bifl-buy-button {
        background: #007cba !important;
        color: white !important;
    }
} 