/* =====================================================
   BEEF MANIAC - ORDER JERKY PAGE STYLES
   ===================================================== */

/* =====================================================
   PRODUCTS SECTION WITH VIDEO BACKGROUND
   ===================================================== */
.products-section {
    position: relative;
    min-height: 100vh;
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.products-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
}

.products-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.products-section .container {
    position: relative;
    z-index: 1;
}

.products-section .section-title {
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   FILTER BAR OVERRIDES
   ===================================================== */
.products-section .filter-bar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-2xl);
}

/* Filter Toggle Button - hidden by default */
.filter-toggle-btn {
    display: none;
}

/* Mobile filter adjustments */
@media (max-width: 767px) {
    .products-section .filter-options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        flex-direction: column;
        z-index: 10;
    }

    .products-section .filter-options.active {
        display: flex;
    }

    .products-section .filter-bar {
        position: relative;
    }

    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        background-color: var(--color-off-white);
        border-radius: var(--radius-md);
        font-size: var(--font-size-sm);
        font-weight: 600;
        cursor: pointer;
        border: none;
    }

    .filter-toggle-btn:hover {
        background-color: var(--color-gray-light);
    }

    .filter-toggle-btn.active {
        background-color: var(--color-primary);
        color: var(--color-white);
    }

    .filter-toggle-btn.active svg {
        stroke: var(--color-white);
    }
}

/* =====================================================
   CUSTOMER FAVORITES SECTION
   ===================================================== */
.customer-favorites {
    margin-bottom: var(--spacing-3xl);
}

.favorites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .favorites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   PRODUCT CARD ENHANCEMENTS
   ===================================================== */
.products-section .product-card {
    background-color: var(--color-white);
}

.product-card .halal-badge-small {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-card .halal-badge-small::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 10px;
}

/* View Details link */
.product-card .view-details {
    display: block;
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.product-card .view-details:hover {
    text-decoration: underline;
}

/* Coming Soon Card */
.product-card.coming-soon {
    opacity: 0.8;
}

.product-card.coming-soon .product-image {
    position: relative;
}

.product-card.coming-soon .product-image::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-gray);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
}

.product-card.coming-soon .add-to-cart {
    display: none;
}

.notify-me-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-gray-light);
    color: var(--color-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.notify-me-btn:hover {
    background-color: var(--color-gray);
    color: var(--color-white);
}

/* =====================================================
   RECOMMEND CTA SECTION
   ===================================================== */
.recommend-cta {
    margin-top: var(--spacing-3xl);
}

.recommend-cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .recommend-cta-card {
        padding: var(--spacing-3xl);
    }
}

.recommend-cta-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .recommend-cta-content h2 {
        font-size: var(--font-size-3xl);
    }
}

.recommend-cta-content p {
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.recommend-cta .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.recommend-cta .btn-primary:hover {
    background-color: var(--color-off-white);
}

/* =====================================================
   ALL PRODUCTS SECTION
   ===================================================== */
.all-products {
    margin-bottom: var(--spacing-2xl);
}

/* Tier dividers */
.tier-section {
    margin-bottom: var(--spacing-2xl);
}

.tier-title {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* =====================================================
   NO RESULTS MESSAGE
   ===================================================== */
.no-results {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--color-white);
}

.no-results h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.no-results p {
    margin-bottom: var(--spacing-lg);
}

/* =====================================================
   LOADING STATE
   ===================================================== */
.products-loading {
    display: flex;
    justify-content: center;
    padding: var(--spacing-3xl);
}

/* =====================================================
   MOBILE OPTIMIZATIONS
   ===================================================== */
@media (max-width: 767px) {
    .products-section {
        padding-top: var(--spacing-md);
        /* Add bottom padding for sticky cart button */
        padding-bottom: calc(var(--spacing-3xl) + 80px);
    }

    /* Section title on dark background */
    .products-section .section-title {
        font-size: var(--font-size-2xl);
    }

    /* Filter bar mobile improvements */
    .products-section .filter-bar {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .search-box {
        width: 100%;
    }

    /* Tier section mobile */
    .tier-title {
        font-size: var(--font-size-lg);
    }

    /* Recommend CTA mobile */
    .recommend-cta-card {
        padding: var(--spacing-lg);
    }

    .recommend-cta-content h2 {
        font-size: var(--font-size-xl);
    }
}

/* Small mobile - single column */
@media (max-width: 399px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium mobile - two columns */
@media (min-width: 400px) and (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

/* No results mobile */
@media (max-width: 767px) {
    .no-results {
        padding: var(--spacing-xl);
    }

    .no-results h3 {
        font-size: var(--font-size-xl);
    }
}

/* =====================================================
   FILTER ANIMATIONS
   ===================================================== */

/* Grid fade animations */
.favorites-grid,
.product-grid {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.favorites-grid.fade-out,
.product-grid.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.favorites-grid.fade-in,
.product-grid.fade-in {
    animation: fadeInUp 0.3s ease-out forwards;
}

/* Card stagger animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card.card-animate {
    animation: cardSlideIn 0.4s ease-out forwards;
    animation-fill-mode: both;
}

/* Customer favorites section transition */
.customer-favorites {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.customer-favorites .section-title {
    transition: opacity 0.2s ease;
}
