:root {
    --gold: #ffc412;
    --dark: #1a1a1a;
    --light-grey: #f4f4f4;
}

/* Series Header Section */
.series-header {
    text-align: center;
    padding: 60px 20px;
    background: var(--dark);
    color: white;
}

.series-header h1 {
    font-size: 2.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.series-intro {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Product Grid System */
.product-grid {
    display: grid;
    /* This creates a flexible grid that automatically fits items */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    /* Reduced side padding for better space utilization */
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Card Styling */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--dark);
}

.product-info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.product-info h3 a:hover {
    color: var(--gold);
}

.product-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ======================================================
   MOBILE RESPONSIVE BREAKPOINTS
   ====================================================== */

/* Tablets (Portrait) and Small Laptops */
@media (max-width: 992px) {
    .series-header h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 40px 20px;
    }
}

/* Mobile Phones (Portrait) */
@media (max-width: 600px) {
    .series-header {
        padding: 40px 15px;
    }

    .series-header h1 {
        font-size: 1.6rem;
    }

    .series-intro {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        /* Single column on phones */
        gap: 20px;
        padding: 30px 15px;
    }

    .product-card {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }
}

/* --- High-Visibility Back Button --- */
.custom-back-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #052b48;
    /* Dark blue contrast */
    padding: 6px 16px;
    border-radius: 50px;
    margin-right: 15px;
    color: #052b48;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.custom-back-btn:hover {
    background-color: #d4a017;
    /* Brand Gold */
    border-color: #d4a017;
    color: #ffffff;
    transform: translateX(-4px);
    /* Visual nudge backward */
    box-shadow: 0 4px 10px rgba(212, 160, 23, 0.3);
}

.back-arrow {
    font-size: 18px;
    margin-right: 8px;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .custom-back-btn {
        padding: 6px 12px;
        margin-right: 10px;
    }

    .back-text {
        display: none;
        /* Icon only on mobile to keep header clean */
    }

    .back-arrow {
        margin-right: 0;
        font-size: 20px;
    }
}