
:root {
    --color-bg-deep: #0f172a;       /* Deep Blue/Indigo */
    --color-card-base: #1e293b;     /* Dark Slate */
    --color-accent-purple: #8b5cf6; /* Primary Accent Purple */
    --color-accent-green: #10b981;  /* Secondary Accent Green */
    --color-text-light: #f1f5f9;
    --color-text-subtle: #94a3b8;
    --color-footer-bg: #0c121e; /* Slightly darker than main BG */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-deep);
    color: var(--color-text-light);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* Utility Header (Search) */
.utility-header {
    padding: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#searchInput {
    padding: 10px 15px;
    background-color: var(--color-card-base);
    border: 1px solid var(--color-accent-purple);
    border-radius: 8px;
    color: var(--color-text-light);
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s;
}
#searchInput:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* === 1. HERO FEATURE SECTION === */
.hero-section {
    padding-bottom: 50px;
}

.hero-card {
    display: flex;
    background: linear-gradient(100deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-art-area {
    flex: 1 1 18%;
    background: radial-gradient(circle at top left, #4c1d95, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border-right: 4px solid var(--color-accent-purple);
}

.hero-details {
    flex: 1 1 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-details h2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--color-accent-green);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.hero-details p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.cta-button {
    padding: 12px 30px;
    width: fit-content;
    background: var(--color-accent-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.cta-button:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* === 2. CONTENT SHELVES SECTION === */
.shelf-section {
    margin-top: 40px;
    display: block;
}

.shelf-section.hidden {
    display: none;
}

.shelf-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-accent-purple);
    border-bottom: 2px solid var(--color-card-base);
    padding-bottom: 5px;
}

/* Container for Horizontal Scroll (Shelf A) */
.shelf-scroll-container {
    display: flex;
    overflow-x: scroll;
    padding: 10px 0;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styles for better PC visibility */
.shelf-scroll-container::-webkit-scrollbar {
    height: 8px;
    background-color: var(--color-card-base);
}
.shelf-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-purple);
    border-radius: 4px;
}
.shelf-scroll-container {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-purple) var(--color-card-base);
}

/* Container for Vertical Grid (Shelf B and Search Results) */
.shelf-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 10px 0;
    gap: 25px;
}

/* Shelf Item Card (Used in both horizontal and vertical layouts) */
.shelf-item {
    flex: 0 0 250px; /* Required for horizontal scroll items */
    background-color: var(--color-card-base);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.shelf-grid-container .shelf-item {
    flex: 1 1 auto; /* Override for grid items */
}

.shelf-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.item-art {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(45deg, #1f2937, #374151);
}

.item-details {
    padding: 15px;
}

.item-details h4 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details .meta {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    margin-bottom: 10px;
}

.price-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--color-accent-green);
    color: var(--color-bg-deep);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* === 3. DEDICATED SEARCH RESULTS LAYOUT === */
#search-results-wrapper {
    display: none;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed var(--color-accent-purple);
}

#search-results-container {
    /* Uses the same grid class as the vertical shelf */
}

/* === 4. FOOTER STYLES === */
.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    color: var(--color-text-subtle);
    background-color: var(--color-footer-bg);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.footer-description {
    font-size: 0.95rem;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.footer-links {
    margin: 15px 0 10px;
}

.footer-links a {
    color: var(--color-text-subtle);
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-accent-purple);
    text-decoration: underline;
}

.copyright {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #475569;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-card {
        flex-direction: column;
        min-height: 0;
    }
    .hero-art-area {
        height: 200px;
        border-right: none;
        border-bottom: 4px solid var(--color-accent-purple);
    }
    .hero-details {
        padding: 30px 20px;
    }
    .hero-details h2 {
        font-size: 2rem;
    }
    .utility-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shelf-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .footer-links a {
        margin: 8px 0;
    }
}
a {
    text-decoration: none;
}
.category-filter {
    padding: 30px 0 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.category-button.active {
    background-color: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.category-button:hover {
    background-color: #334155;
    border-color: var(--color-accent-purple);
}

.category-button {
    padding: 8px 18px;
    background-color: var(--color-card-base);
    border: 2px solid var(--color-text-subtle);
    border-radius: 9999px;
    color: var(--color-text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s
    ease;
}