/* =========================
   Page Hero (shared with contact)
========================= */
.page-hero {
    position: relative;
    height: 662px;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-hero > .container {
    width: 100%;
    max-width: 1320px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-secondary);
    font-size: 50px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: normal;
    margin-bottom: 14px;
}

.page-hero-line {
    width: 43px;
    height: 4px;
    background-color: var(--color-secondary);
}

/* =========================
   Breadcrumb Bar
========================= */
.breadcrumb-bar {
    background-color: #fafafa;
    border-bottom: 1px solid #efefef;
    height: 54px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: rgba(112, 112, 112, 0.5);
    text-decoration: none;
    text-transform: none;
    line-height: normal;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #707070;
}

.breadcrumb-current {
    color: #707070;
}

.breadcrumb-arrow {
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* =========================
   Products Section Layout
========================= */
.products-listing-section {
    padding: 60px 0 80px;
}

.products-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    align-items: start;
}

/* =========================
   Sidebar
========================= */
.products-sidebar {
    padding-right: 50px;
    padding-top: 20px;
}

.sidebar-heading {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-title {
    font-family: var(--font-secondary);
    font-size: 30px;
    font-weight: var(--fw-bold);
    color: #4f637e;
    line-height: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-category {
    padding: 16px 0;
}

.sidebar-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-category-title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    color: #3b3b3b;
    line-height: normal;
    text-transform: uppercase;
}

.sidebar-category.active > .sidebar-category-header .sidebar-category-title {
    color: var(--color-secondary);
}

.sidebar-category-arrow {
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

.sidebar-category.active > .sidebar-category-header .sidebar-category-arrow {
    transform: rotate(0deg);
}

.sidebar-divider {
    width: 100%;
    height: 1px;
    background-color: #efefef;
}

.sidebar-subcategory-list {
    list-style: none;
    margin-top: 8px;
}

.sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 18px;
    cursor: pointer;
}

.sidebar-sub-item a {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: #3b3b3b;
    text-decoration: none;
    text-transform: uppercase;
    line-height: normal;
    transition: color 0.2s;
}

.sidebar-sub-item.active a {
    color: var(--color-secondary);
}

.sidebar-sub-item:hover a {
    color: var(--color-secondary);
}


.sidebar-sub-divider {
    width: calc(100% - 18px);
    margin-left: 18px;
    height: 1px;
    background-color: #efefef;
}

/* =========================
   Product Grid
========================= */
.products-content {
    padding-top: 20px;
}

.plist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 28px;
    align-items: stretch;
}

/* =========================
   Product Listing Card
========================= */
.plist-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
    position: static;
    aspect-ratio: unset;
    background-color: transparent;
    min-height: unset;
    height: 100%;
}

.plist-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #cdebf7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.plist-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
}

.plist-name {
    font-family: var(--font-secondary);
    font-size: 19px;
    font-weight: 400;
    color: #3b3b3b;
    line-height: normal;
    margin: 20px 0 12px;
    flex-grow: 1;
    overflow: visible;
    text-transform : uppercase;
}

.plist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background-color: #fb0200;
    color: #ffffff !important;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-top: auto;
}

.plist-btn:hover {
    background-color: var(--color-primary);
}

/* =========================
   Mobile Filter Toggle Button (hidden on desktop)
========================= */
.mobile-filter-toggle {
    display: none;
}

/* Drawer header row (title + close btn) - hidden on desktop */
.sidebar-drawer-header {
    display: none;
}

/* Overlay - hidden on desktop */
.filter-overlay {
    display: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1280px) {
    .products-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 1024px) {
    .products-layout {
        display: block;
    }

    .plist-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mobile filter toggle button */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background-color: var(--color-primary);;
        color: #ffffff;
        font-family: var(--font-secondary);
        font-size: 15px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        margin-bottom: 20px;
        box-sizing: border-box;
        border-radius: 4px;
    }

    .sidebar-heading {
        display: none;
    }

    /* Dark overlay behind drawer */
    .filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .filter-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Sidebar as full-height left drawer */
    .products-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85vw;
        max-width: 340px;
        height: 100vh;
        background: #ffffff;
        z-index: 1200;
        overflow-y: auto;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        display: block !important;
        margin-bottom: 0;
        border: none;
    }

    .products-sidebar.open {
        transform: translateX(0);
    }

    /* Drawer header */
    .sidebar-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background-color: var(--color-primary);;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .sidebar-drawer-header .sidebar-title {
        color: #ffffff;
        font-size: 20px;
        margin-bottom: 0;
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        flex-shrink: 0;
    }

    /* Sidebar content padding */
    .products-sidebar > .sidebar-category,
    .products-sidebar > .sidebar-divider {
        margin: 0 16px;
    }

    .products-sidebar > .sidebar-divider {
        margin: 0 16px;
        width: calc(100% - 32px);
    }

    .sidebar-category-title {
        font-size: 14px;
    }

    .sidebar-sub-item a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 360px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .products-listing-section {
        padding: 30px 0 50px;
    }

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

    .plist-name {
        font-size: 15px;
        min-height: unset;
    }

    .plist-btn {
        font-size: 13px;
        height: 44px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 260px;
    }

    .page-hero-title {
        font-size: 26px;
    }

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

    .plist-name {
        font-size: 13px;
    }

    .plist-btn {
        font-size: 12px;
        height: 40px;
    }

    .breadcrumb {
        gap: 6px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-arrow {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 500px) {
    .plist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .plist-name {
        font-size: 13px;
    }

    .plist-btn {
        height: 40px;
        font-size: 12px;
    }
}

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