/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Montserrat:wght@400;500;600&display=swap');

/* BASIC RESET & THEME */
:root {
    --primary-green: #556b2f;
    --dark-green: #2e4034;
    --background-dark: #1a2a26;
    --text-light: #f2f2f2;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.15);
    --module-bg: rgba(255, 255, 255, 0.05);
    --module-bg-hover: rgba(255, 255, 255, 0.1);
    --button-gray: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
}

/* VIDEO BACKGROUND & OVERLAY */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.video-background video.visible {
    opacity: 1;
}
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 42, 38, 0.9), rgba(26, 42, 38, 0.7));
    z-index: -1;
}

/* --- THIS IS THE FIX: The entire '.main-header', '.header-content', and related nav styles have been REMOVED --- */
/* This prevents them from conflicting with the shared header CSS loaded by ui-loader.js */


/* MAIN LAYOUT */
.page-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* PAGE HEADER */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    margin: 0;
}
.list-item-btn {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* SEARCH & FILTER BARS */
.main-search-bar {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--module-bg);
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: var(--module-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.filter-bar input, .filter-bar select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--module-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 { font-size: 1.1rem; margin: 0 0 0.5rem 0; }
.product-info .price { font-size: 1.2rem; font-weight: bold; margin-bottom: 0.5rem; }
.product-info .sold-by { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-action {
    margin-top: auto;
}
.product-action .action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}
.product-action .add-to-cart {
    background-color: var(--primary-green);
    color: white;
}
.product-action .view-affiliate {
    background-color: var(--button-gray);
    color: white;
}
.product-action .add-to-cart:hover, .product-action .view-affiliate:hover {
    filter: brightness(1.2);
}