/* Additional Catalog Styles */
:root {
    --bg-dark: #121212;
    --bg-lighter: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --primary-orange: #ff5722;
    --primary-orange-hover: #e64a19;
    --border-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header */
.header-classic {
    background-color: transparent;
    padding: 2rem 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.header-classic .logo {
    flex-shrink: 0;
    margin-right: auto;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-classic .nav-classic {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
    list-style: none;
    display: flex;
}

.header-classic .nav-classic a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.header-classic .nav-classic a:hover {
    color: var(--primary-orange);
}

.header-classic .header-actions {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-classic.hidden {
    transform: translateY(-120%);
}

/* Sticky Header */
.header-sticky {
    background-color: transparent;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
}

.header-sticky.active {
    transform: translateY(0);
}

.nav-pill {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 2rem;
}

.pill-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
}

.flame-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
}

.nav-pill nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-pill nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-pill nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-pill nav a:hover {
    color: var(--primary-orange);
}

.pill-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary-orange);
}

/* Main Content */
main {
    padding: 3rem 5%;
    padding-top: 200px;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.catalog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.catalog-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--border-dark);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-btn.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-dark);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: transparent;
    padding: 1rem;
}

.product-card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-card-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.product-card-btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.product-card-btn:hover {
    background-color: var(--primary-orange-hover);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 3rem 5%;
    border-top: 2px solid var(--primary-orange);
    margin-top: 4rem;
}

footer h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer p.mt-top {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-classic {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: static;
        transform: none;
    }

    .header-classic .nav-classic {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-classic.hidden {
        transform: none;
    }

    main {
        padding: 2rem 5%;
        padding-top: 130px;
    }

    .catalog-header h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 5%;
        padding-top: 120px;
    }

    .catalog-header h1 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


@media (max-width: 768px) {
    /* 1. Filter Dropdown Styling */
    .filter-section {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .filter-trigger {
        width: 100%;
        max-width: 300px;
        background: var(--bg-lighter);
        border: 1px solid var(--border-dark);
        color: var(--text-light);
        padding: 12px 20px;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .filter-dropdown {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        width: 100%;
        max-width: 300px;
        background: var(--bg-lighter);
        border: 1px solid var(--border-dark);
        z-index: 100;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .filter-dropdown.active {
        display: flex;
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: transparent;
        margin: 0;
        border-radius: 0;
    }

    .filter-btn:last-child { border-bottom: none; }

    /* 2. Two-Column Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
        gap: 10px !important; /* Tighter gap for mobile */
        padding: 0;
    }

    .product-card-image {
        height: 150px !important; /* Smaller images for the grid */
    }

    .product-card-info {
        padding: 12px !important;
    }

    .product-card-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }

    .product-card-description {
        display: none; /* Hide description on mobile grid to save space */
    }

    .product-card-btn {
        padding: 8px 5px !important;
        font-size: 0.75rem !important;
    }
}

/* Ensure the card itself is a flex container */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for equal height in the grid */
}

/* Make the info section take up the remaining space */
.product-card-info {
    padding: 20px;
    flex-grow: 1; /* This pushes the content to fill the card */
    display: flex;
    flex-direction: column;
}

/* Ensure the title has a consistent space or min-height if desired */
.product-card-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* The Magic Trick: margin-top: auto pushes the button to the very bottom */
.product-card-btn {
    margin-top: auto; 
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: var(--primary-orange);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Mobile Filter Dropdown Logic */
@media (max-width: 768px) {
    .filter-section {
        position: relative;
        z-index: 100; /* Ensure it stays above product cards */
        margin-bottom: 2rem;
    }

    .filter-dropdown {
        display: none; /* Hidden state */
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 300px;
        background-color: var(--bg-lighter);
        border: 1px solid var(--border-dark);
        flex-direction: column;
    }

    /* This rule makes it actually appear */
    .filter-dropdown.active {
        display: flex !important;
    }

    .filter-btn {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: transparent;
        color: white;
        text-align: left;
        cursor: pointer;
    }
}

/* --- Desktop View (Default) --- */

/* Hide the mobile dropdown trigger on desktop */
.filter-trigger {
    display: none;
}

/* Ensure the buttons are visible and arranged horizontally on desktop */
.filter-dropdown {
    display: flex !important; /* Force flex on desktop */
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    position: static;
    transform: none;
}

/* --- Mobile View (Overrides) --- */

@media (max-width: 768px) {
    /* Show the mobile trigger */
    .filter-trigger {
        display: flex;
    }

    /* Hide the list by default on mobile */
    .filter-dropdown {
        display: none !important;
        position: absolute;
        flex-direction: column;
        background-color: var(--bg-lighter);
        border: 1px solid var(--border-dark);
        width: 100%;
        max-width: 300px;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    /* Show only when active */
    .filter-dropdown.active {
        display: flex !important;
    }
}