/* Products Layout Styles - Refactored for Classy Dark Theme */

/* Ensure the entire body for this page is dark */
body {
    background-color: #1a1a1a !important;
}

.products-header {
    padding: 120px 0 60px 0;
    text-align: center;
    background-color: #1a1a1a; /* Match index dark */
    position: relative;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.products-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    margin: 0 auto 40px;
}

.products-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.products-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.35) 22%, rgba(26, 26, 26, 0) 50%);
}

#products-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #daa520; /* Gold accent */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.products-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 0; /* Square edges for classier look */
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-btn:hover, .filter-btn.active {
    background-color: transparent;
    color: #daa520;
    border-color: #daa520;
    box-shadow: inset 0 0 10px rgba(218, 165, 32, 0.2);
}

/* Products Grid */
.products-grid-container {
    padding: 60px 0 100px 0;
    background-color: #1a1a1a;
    min-height: 100vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 50px;
}

/* Product Card - Classy Refactor */
.product-card {
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0; /* Removing neumorphic rounded corners */
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: #daa520;
    transition: height 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(218, 165, 32, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-card:hover::before {
    height: 100%;
}

.card-image-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #fff; /* White background for product display */
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    /* Mix-blend-mode multiply works perfectly on white background */
    mix-blend-mode: multiply;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    display: block;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #daa520; /* Gold category tag */
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.card-content p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pdf-buttons {
    display: flex;
    gap: 15px;
}

.btn-features, .btn-stoplist {
    flex: 1;
    background: transparent;
    color: #eee;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-features:hover, .btn-stoplist:hover {
    background: #daa520;
    color: #1a1a1a;
    border-color: #daa520;
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #666;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #products-title {
        font-size: 2.5rem;
    }
    .products-hero {
        width: 100%;
        height: 34vh;
        min-height: 220px;
    }
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Interactive Stoplist Overlay - Premium Glassmorphism */
.stoplist-overlay {
    background: rgba(18, 20, 22, 0.85) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    color: #e2e2e2 !important;
    max-height: 90% !important;
    width: 95% !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 10000 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative;
}

.stoplist-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #daa520 !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.stoplist-close-btn:hover {
    background: rgba(218, 165, 32, 0.1);
    transform: translateY(-2px);
}

.stoplist-close-btn i {
    font-size: 1.8rem;
}

.stoplist-content {
    padding: 60px !important;
}

.stoplist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-organ-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.model-title {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.model-subtitle {
    font-family: 'Dancing Script', cursive;
    margin: 0;
    color: #daa520; /* Gold */
    font-size: 2.2rem;
    font-weight: 400;
}

.selector-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    text-align: right;
    letter-spacing: 2px;
    font-weight: 600;
}

.style-toggles {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.style-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.style-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.style-btn.active {
    background: #daa520;
    color: #000;
    box-shadow: 0 10px 20px rgba(218, 165, 32, 0.2);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.division-column {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.division-column:hover {
    background: rgba(255, 255, 255, 0.04);
}

.division-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #daa520;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    font-style: italic;
}

.stop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease;
}

.stop-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    transition: padding 0.2s ease;
}

.stop-list li:hover {
    padding-left: 5px;
    color: #fff;
}

.stop-name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.stop-pitch {
    color: #daa520;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    opacity: 0.8;
}

.other-stops {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.other-item {
    display: inline-block;
    background: rgba(218, 165, 32, 0.1);
    color: #daa520;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0 8px 8px 0;
    font-weight: 600;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

@media only screen and (max-width: 992px) {
    .stoplist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .model-title {
        font-size: 2.5rem;
    }
    .style-selector-container {
        width: 100%;
    }
    .selector-label {
        text-align: left;
    }
    .style-toggles {
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
    }
}

