/* Design Matinee — Shared Collection Page Styles */
/* Extracted from inline <style> blocks to eliminate ~2,200 lines of duplication */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #D4107A;
    --charcoal: #2C2C2C;
    --charcoal-dark: #1E1E1E;
    --off-white: #FAF8F5;
    --cream: #FFF5F9;
    --gold: #C4A265;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--charcoal);
    background-color: var(--off-white);
    line-height: 1.6;
}

/* Skip to Content & Focus */
.skip-to-content { position: absolute; top: -100px; left: 16px; z-index: 10000; background: #D4107A; color: white; padding: 12px 24px; border-radius: 0 0 8px 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: top 0.2s; }
.skip-to-content:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #D4107A; outline-offset: 2px; }

/* Navbar (injected by navbar.js) */
#navbar-root { min-height: 65px; background: white; position: sticky; top: 0; z-index: 1000; }

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--charcoal-dark) 0%, #3a3a3a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.6;
}

/* Filter Bar */
.filter-bar {
    background-color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 73px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: box-shadow 0.3s ease;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar.stuck {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.filter-pill {
    padding: 0.6rem 1.5rem;
    border: 1px solid #E0E0E0;
    background-color: transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-pill:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.filter-pill.active {
    background-color: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--charcoal);
    outline-offset: 2px;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #fce8f0 0%, #f8d0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.product-image.gradient-1 {
    background: linear-gradient(135deg, #fce8f0 0%, #f8d0e0 100%);
}

.product-image.gradient-2 {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
}

.product-image.gradient-3 {
    background: linear-gradient(135deg, #f5f0ff 0%, #ead1dc 100%);
}

.product-image.gradient-4 {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4d6 100%);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--pink);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.trending {
    background-color: #FF6B9D;
}

.product-badge.bestseller {
    background-color: var(--gold);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal-dark);
}

.product-price {
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 0;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.whatsapp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: #1B9E4B;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-icon-btn:hover {
    background-color: #20BA58;
    transform: scale(1.1);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--charcoal-dark) 0%, #3a3a3a 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.cta-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-banner-btn {
    background-color: var(--pink);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-banner-btn:hover {
    background-color: #E60E7E;
    transform: translateY(-2px);
}

#footer-root { min-height: 200px; background: #1E1E1E; }

/* Scroll Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Skeleton */
.product-card.skeleton .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: dm-shimmer 1.5s infinite;
}
.product-card.skeleton .product-info .product-name {
    background: #f0f0f0;
    height: 1.2em;
    width: 80%;
    border-radius: 4px;
}
.product-card.skeleton .product-info .product-price-row {
    background: #f0f0f0;
    height: 1em;
    width: 40%;
    border-radius: 4px;
    margin-top: 0.5rem;
}
@keyframes dm-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner { padding: 3rem 1.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }

    .filter-bar { top: 60px; padding: 1rem 1rem; }
    .filter-pill {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-info { padding: 1rem; }
    .product-name { font-size: 1.05rem; }

    .cta-banner { padding: 2.5rem 1.5rem; }
    .cta-banner h2 { font-size: 1.8rem; }
    .cta-banner-btn {
        padding: 0.9rem 2rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .container { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-banner { padding: 2.5rem 1rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 1rem; }

    .filter-bar { padding: 0.75rem 0.75rem; }
    .filter-container { gap: 0.5rem; }
    .filter-pill { padding: 0.6rem 1rem; font-size: 0.8rem; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-info { padding: 0.75rem; }
    .product-name { font-size: 0.9rem; margin-bottom: 0.3rem; }
    .product-price { font-size: 0.95rem; }

    .breadcrumb { flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }

    .cta-banner { padding: 2rem 1rem; margin-bottom: 2rem; border-radius: 8px; }
    .cta-banner h2 { font-size: 1.4rem; margin-bottom: 1rem; }

    .container { padding: 1.5rem 1rem; }
}

@media (max-width: 375px) {
    .hero-content h1 { font-size: 1.5rem; }
    .product-grid { gap: 0.5rem; }
    .product-info { padding: 0.6rem; }
    .product-name { font-size: 0.85rem; }
    .product-price { font-size: 0.9rem; }
    .container { padding: 1.5rem 0.75rem; }
}

/* Landscape: reduce hero, tighten filter bar */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner { padding: 2rem 1.5rem; }
    .hero-content h1 { font-size: 1.6rem; }
    .filter-bar { padding: 0.5rem 1rem; }
}
