/* Product Listing Page - Figma Design */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Open+Sans:wght@400;600&family=Inter:wght@400;500&display=swap');

/* ===== Page Wrapper ===== */
.pl-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 86px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background: #F9F9F9;
}

/* ===== Banner Section ===== */
.pl-banner-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 160px 10px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.pl-banner-img {
    width: 100%;
    height: 308px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* ===== Main Content Row ===== */
.pl-main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 36px 160px;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Sidebar ===== */
.pl-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 14px;
    width: 387px;
    min-width: 387px;
    flex-shrink: 0;
}

/* Sidebar Brand Logo Box */
.pl-sidebar-brand-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 56px;
    background: #FFFFFF;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}
.pl-sidebar-brand-box img {
    max-height: 34px;
    max-width: 91px;
    object-fit: contain;
}

/* Sidebar Filter Card */
.pl-filter-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    gap: 14px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
}

/* Filter Header */
.pl-filter-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 7px;
    width: 100%;
}
.pl-filter-header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.pl-filter-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
    color: #0C0C0C;
    margin: 0;
}
.pl-filter-chevron {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.pl-filter-chevron svg {
    width: 12px;
    height: 12px;
    stroke: #0D0D0D;
    stroke-width: 2;
    fill: none;
}
.pl-filter-chevron.collapsed svg {
    transform: rotate(-90deg);
}
.pl-filter-divider {
    width: 100%;
    height: 1px;
    background: #F4F4F4;
}

/* Filter Body */
.pl-filter-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

/* Checkbox Items */
.pl-checkbox-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 11px;
    cursor: pointer;
    width: 100%;
}
.pl-checkbox-item input[type="checkbox"],
.pl-checkbox-item input[type="radio"] {
    display: none;
}
.pl-checkbox-box {
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1px solid #B4B4B4;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}
.pl-checkbox-item input:checked + .pl-checkbox-box {
    background: #00C8FF;
    border-color: #00C8FF;
}
.pl-checkbox-item input:checked + .pl-checkbox-box::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.pl-checkbox-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #3D3D3D;
}

/* ===== Price Range ===== */
.pl-price-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.pl-price-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 20px;
    color: #141414;
}
.pl-price-dash {
    width: 24px;
    height: 2px;
    background: #141414;
    display: inline-block;
}

/* Price Slider */
.pl-slider-track {
    width: 100%;
    height: 4px;
    background: #E8E8E8;
    border-radius: 8px;
    position: relative;
    margin: 16px 0 8px;
}
.pl-slider-range {
    position: absolute;
    height: 4px;
    background: #00C8FF;
    border-radius: 4px;
    top: 0;
    left: 0;
}
.pl-slider-handler {
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 100px;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.06)) drop-shadow(0px 1px 3px rgba(0,0,0,0.1));
    position: absolute;
    top: -8px;
    cursor: pointer;
}
.pl-price-input-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9px 48px;
    width: 100%;
    height: 39px;
    background: #F4F4F4;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 10px;
}
.pl-price-input-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #141414;
}

/* ===== Right Content Area ===== */
.pl-products-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

/* Sort Bar */
.pl-sort-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 11px;
    width: 100%;
    height: 56px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
}
.pl-sort-bar-left {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #3F3F3F;
}
.pl-sort-bar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
}
.pl-sort-select-wrap {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    height: 40px;
    border: 1px solid rgba(217,217,217,0.87);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.pl-sort-select {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    border: none;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23101828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* ===== Product Grid ===== */
.pl-product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
}
.pl-product-rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}
.pl-product-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

/* ===== Product Card ===== */
.pl-product-card {
    box-sizing: border-box;
    width: calc(33.333% - 14px);
    min-height: 527px;
    background: #FFFFFF;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.pl-product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Card Inner */
.pl-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 14px;
    gap: 18px;
    flex: 1;
}

/* Card Top Row (badge + heart) */
.pl-card-top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.pl-save-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    background: #09C36E;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #FFFFFF;
    white-space: nowrap;
}
.pl-heart-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pl-product-card:hover .pl-heart-btn {
    opacity: 1;
}
.pl-heart-btn svg {
    width: 20px;
    height: 20px;
    stroke: #B4B4B4;
    stroke-width: 2;
    fill: none;
}

/* Card Image */
.pl-card-image {
    width: 100%;
    height: 274px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pl-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.pl-product-card:hover .pl-card-image img {
    transform: scale(1.05);
}

/* Brand Logo on Image */
.pl-card-brand-logo {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: 111px;
    max-height: 56px;
    object-fit: contain;
    z-index: 3;
}

/* Card Info */
.pl-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}
.pl-card-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}
.pl-card-brand-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    color: #B5B5B5;
    width: 100%;
}
.pl-card-product-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #0F0F0F;
    width: 100%;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 56px;
}
.pl-card-product-name a {
    color: inherit;
    text-decoration: none;
}
.pl-card-product-name a:hover {
    color: #00B6E8;
}

/* Price Row */
.pl-card-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.pl-card-price {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 32px;
    color: #00B6E8;
}
.pl-card-old-price {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 22px;
    text-decoration: line-through;
    color: #F64747;
}

/* Card Buttons */
.pl-card-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}
.pl-btn-add-cart {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    height: 46px;
    background: #00C8FF;
    border: 0.6px solid #E7E7E7;
    border-radius: 6px;
    flex: 1;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #FFFFFF;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.pl-btn-add-cart:hover {
    background: #00b6e8;
}
.pl-btn-buy-now {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    height: 46px;
    background: #F4F4F4;
    border-radius: 6px;
    border: none;
    flex: 1;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #00546B;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.pl-btn-buy-now:hover {
    background: #e8e8e8;
    color: #00546B;
    text-decoration: none;
}

/* ===== Pagination ===== */
.pl-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 20px;
}
.pl-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pl-pagination .page-item .page-link {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    height: 36px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #313131;
    text-decoration: none;
    min-width: auto;
}
.pl-pagination .page-item.active .page-link {
    background: #00C8FF;
    border-color: #00C8FF;
    color: #fff;
}

/* ===== SEO Content Section ===== */
.pl-seo-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 56px 160px;
    width: 100%;
    box-sizing: border-box;
}
.pl-seo-content {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    color: #000000;
    max-width: 1600px;
}
.pl-seo-content h1, .pl-seo-content h2, .pl-seo-content h3 {
    font-weight: 600;
    margin-bottom: 12px;
}
.pl-seo-content p {
    margin-bottom: 16px;
}

/* ===== Mobile Filter Toggle ===== */
.pl-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #313131;
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
    .pl-banner-section,
    .pl-main-content,
    .pl-seo-section {
        padding-left: 80px;
        padding-right: 80px;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .pl-sidebar {
        width: 250px !important;
        min-width: 200px;
    }
}
@media (max-width: 1200px) {
    .pl-banner-section,
    .pl-main-content,
    .pl-seo-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    .pl-sidebar {
        width: 300px !important;
        min-width: 300px;
    }
    .pl-product-card {
        width: calc(50% - 10px);
    }
    .pl-product-row {
        flex-wrap: wrap;
    }
}
@media (max-width: 991px) {
    .pl-main-content {
        flex-direction: column;
    }
    .pl-sidebar {
        display: none;
        width: 100%;
        min-width: unset;
    }
    .pl-sidebar.show {
        display: flex;
    }
    .pl-mobile-filter-btn {
        display: flex;
    }
    .pl-banner-section,
    .pl-main-content,
    .pl-seo-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 768px) {
    .pl-product-card {
        width: calc(50% - 10px);
        min-height: auto;
    }
    .pl-card-product-name {
        font-size: 16px;
        line-height: 22px;
        min-height: 44px;
    }
    .pl-card-price {
        font-size: 22px;
        line-height: 26px;
    }
    .pl-card-image {
        height: 200px;
    }
    .pl-banner-img {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .pl-product-row {
        gap: 12px;
    }
    .pl-product-card {
        width: calc(50% - 6px);
    }
    .pl-card-inner {
        padding: 8px 8px 10px;
        gap: 10px;
    }
    .pl-card-product-name {
        font-size: 14px;
        line-height: 20px;
        min-height: 40px;
    }
    .pl-card-price {
        font-size: 18px;
    }
    .pl-card-old-price {
        font-size: 14px;
    }
    .pl-btn-add-cart,
    .pl-btn-buy-now {
        font-size: 12px;
        padding: 10px 8px;
        height: 40px;
    }
}
