/* =====================================================
   PRODUCTS PAGE — Layout, Sidebar, Cards
   ===================================================== */

/* ── Page Layout ── */
.prod-page-layout {
    display: flex;
    min-height: calc(100vh - 110px);
    background: #f0f2f5;
    align-items: flex-start;
}

/* ── Sidebar ── */
.prod-sidebar {
    width: 260px;
    min-width: 220px;
    background: white;
    padding: 30px 20px;
    border-right: 4px solid #ec8608;
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    flex-shrink: 0;
}

.prod-sidebar .sidebar-section {
    margin-bottom: 28px;
}

.prod-sidebar .sidebar-section h3 {
    font-size: 11px;
    color: #1e5a8e;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'League Spartan', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 7px;
}

.prod-sidebar .sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #ec8608;
    border-radius: 2px;
}

.prod-sidebar .sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prod-sidebar .sidebar-section ul li {
    margin-bottom: 4px;
}

.prod-sidebar .sidebar-section ul li a {
    text-decoration: none;
    color: #555;
    font-size: 12.5px;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s, background 0.2s, padding-left 0.2s, border-left 0.2s;
    padding: 6px 10px 6px 10px;
    border-radius: 5px;
    border-left: 3px solid transparent;
}

.prod-sidebar .sidebar-section ul li a::after {
    content: '›';
    font-size: 16px;
    color: #c8c8c8;
    flex-shrink: 0;
    transition: color 0.2s;
}

.prod-sidebar .sidebar-section ul li a:hover {
    color: #024679;
    background: #f0f5ff;
    border-left-color: #1e5a8e;
    padding-left: 14px;
}

.prod-sidebar .sidebar-section ul li a:hover::after {
    color: #1e5a8e;
}

/* Active / in-view state */
.prod-sidebar .sidebar-section ul li a.active {
    color: #024679;
    font-weight: 700;
    background: linear-gradient(90deg, #e8f0ff, #f5f8ff);
    border-left: 3px solid #ec8608;
    padding-left: 14px;
}

.prod-sidebar .sidebar-section ul li a.active::after {
    color: #ec8608;
}

/* ── Main Content Area ── */
.prod-main {
    flex: 1;
    padding: 40px 40px 60px;
    overflow-y: auto;
    min-width: 0;
}

/* ── Category Section ── */
.prod-category-section {
    margin-bottom: 50px;
    scroll-margin-top: 110px;
}

.prod-category-title {
    font-size: 17px;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    color: white;
    background: #ec8608;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
}

.prod-category-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid #ec8608;
}

/* ── Products Grid ── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ── Product Card ── */
.prod-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

/* ── Image Area (large, light bg) ── */
.prod-img-wrap {
    width: 100%;
    height: 200px;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.prod-card:hover .prod-img-wrap img {
    transform: scale(1.07);
}

/* ── Orange footer bar ── */
.prod-details {
    background: #ec8608;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

/* Brand + Model line — bold white */
.prod-brand-model {
    font-family: 'League Spartan', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    margin: 0 0 5px 0;
    white-space: pre-line;  /* renders &#10; as a line break */
}

/* Specification line — lighter */
.prod-spec {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.5;
    margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .prod-sidebar {
        width: 215px;
        min-width: 180px;
    }

    .prod-main {
        padding: 30px 25px 50px;
    }

    .prod-grid {
        grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    }
}

@media (max-width: 900px) {
    .prod-page-layout {
        flex-direction: column;
    }

    .prod-sidebar {
        width: 100%;
        min-width: unset;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 4px solid #ec8608;
        padding: 20px 20px 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 0 30px;
    }

    .prod-sidebar .sidebar-section {
        min-width: 180px;
        margin-bottom: 16px;
    }

    .prod-main {
        padding: 25px 20px 50px;
    }

    .prod-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 15px;
    }

    .prod-img-wrap {
        height: 165px;
    }
}

@media (max-width: 600px) {
    .prod-sidebar {
        display: block;
        padding: 15px;
    }

    .prod-main {
        padding: 20px 15px 40px;
    }

    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .prod-img-wrap {
        height: 140px;
        padding: 12px;
    }

    .prod-details {
        padding: 10px 12px 13px;
    }

    .prod-brand-model {
        font-size: 12.5px;
    }

    .prod-spec {
        font-size: 11px;
    }

    .prod-category-title {
        font-size: 15px;
        padding: 8px 15px;
    }
}

@media (max-width: 400px) {
    .prod-grid {
        grid-template-columns: 1fr;
    }

    .prod-img-wrap {
        height: 190px;
    }
}
