/* --- VARIABLES --- */
:root {
    --color-background: #800020;
    --color-surface: #1A1A1A;
    --color-primary: #2ECC71;
    --color-text: #EAEAEA;
    --color-muted: #888888;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-padding: 1rem;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family-base); background-color: var(--color-background); color: var(--color-text); line-height: 1.6; }
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding: var(--container-padding); }
img, video { display: block; max-width: 100%; height: auto; }

/* --- HEADER & FILTERS --- */
.header { background-color: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--color-surface); }
.header-title { text-align: center; font-size: 2rem; padding: 1rem 0; font-weight: 700; }
.filters-nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) transparent; padding-bottom: 1rem; }
.filters-nav::-webkit-scrollbar { height: 4px; background-color: transparent; }
.filters-nav::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.filters-nav::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.2); }
.filter-btn { background-color: orange; border: 1px solid orange; color: black; font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.2s ease-in-out; flex-shrink: 0; margin-right: 0.5rem; white-space: nowrap; }
.filter-btn:hover { background-color: darkorange; border: 1px solid darkorange; color: white; }
.filter-btn.active { background-color: var(--color-primary); border: 1px solid var(--color-primary); color: var(--color-background); }

/* --- SECTIONS, GRID & CARDS --- */
#cards { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.category-section { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
.category-section:first-of-type { padding-top: 0; }

.category-title {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    font-weight: 700;
    color: orange;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-surface);
    position: sticky;
    top: 110px; /* Header height */
    background: rgba(128, 0, 32, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    padding-top: 1rem;
}

.card { background-color: var(--color-surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.card-media { height: 200px; overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: contain; }
.card-media-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: #111; color: var(--color-muted); font-size: 0.9rem; }
.card-content { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.25rem; font-weight: 600; color: var(--color-text); }
.card-category { color: var(--color-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.card-description { color: var(--color-text); font-size: 0.9rem; margin-bottom: auto; line-height: 1.4; }
.card-price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-top: 1rem; text-align: right; }

/* --- RESPONSIVE --- */
@media (min-width: 576px) {
    .category-section { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .category-section { grid-template-columns: repeat(3, 1fr); }
}
