.product-list-page {
    --primary: #3D7CA7;
    --secondary: #4CC2B4;
    --bg-tint: rgba(76, 194, 180, 0.08);
    --red: #E30E00;
    --dark: #292929;
    --gray: #818181;
    --border: #DCDCDC;
    --light-gray: #EFEFEF;
    --white: #FFFFFF;
}

.product-list-page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list-page a {
    text-decoration: none;
}

/* =========================================
   2. Category Filter Bar
   ========================================= */
.pl-categories-sec {
    background: var(--bg-tint);
    width: 100%;
    margin-bottom: 0;
    padding: 42px 0;
}

.pl-cat-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    background: transparent;
    padding: 0 16px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 1200px) {
    .pl-cat-list {
        justify-content: center;
        padding: 0;
    }
}

.pl-cat-list::-webkit-scrollbar {
    display: none;
}

.pl-cat-item {
    flex: 1 0 0;
    min-width: 248px;
    max-width: 248px;
}

.pl-cat-link {
    background: var(--white);
    color: var(--primary);
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 84px;
    box-shadow: 0px 8px 16px rgba(31, 34, 39, 0.08);
    text-align: center;
}

.pl-cat-name {
    flex: 1 0 0;
    word-break: break-word;
    text-align: center;
}

.pl-cat-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

.pl-cat-link:hover,
.pl-cat-link.is-active {
    background: var(--secondary);
    color: var(--white);
}

.pl-cat-link:hover .pl-cat-icon,
.pl-cat-link.is-active .pl-cat-icon {
    filter: brightness(0) invert(1);
}

/* =========================================
   3. Search & Toolbar
   ========================================= */
.pl-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px 0 40px;
}

.pl-search-form {
    width: 920px;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--primary);
    border-radius: 400px;
    padding: 10px 20px;
    height: 60px;
    background: var(--white);
}

.pl-search-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.pl-search-input {
    width: 100%;
    height: 40px;
    border: none;
    background: transparent;
    font-family: 'Inter Tight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.pl-search-input:focus {
    outline: none;
}

.pl-search-input::placeholder {
    color: var(--primary);
    opacity: 0.7;
}

.pl-search-icon {
    color: var(--primary);
    font-size: 16px;
}

.pl-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pl-sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 5 Pro', 'FontAwesome';
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pl-sort-btn:focus {
    outline: none;
}

.pl-sort select {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Inter Tight', sans-serif;
    cursor: pointer;
}
.pl-sort select:focus {
    outline: none;
}

/* =========================================
   4. Product Grid
   ========================================= */
.pl-grid-container {
    margin-bottom: 60px;
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

/* Empty State */
.pl-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.pl-empty i {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: 16px;
}

.pl-empty h2 {
    font-family: 'Phudu', sans-serif;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 8px;
}

.pl-empty p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    color: var(--gray);
}

/* Pagination */
.product-list-page .page-nav {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

.product-list-page .page-nav__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-list-page .page-nav__pages {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-list-page .page-nav__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 48px;
    background: var(--bg-tint);
    color: var(--dark);
    font-family: 'Inter Tight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    border: none;
    padding: 0;
    transition: all 0.2s ease;
}

.product-list-page .page-nav__num:hover:not(.page-nav__num--current) {
    background: var(--secondary);
    color: var(--white);
}

.product-list-page .page-nav__num--current {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

.product-list-page .page-nav__circle {
    width: 48px;
    height: 48px;
    background: var(--bg-tint);
    color: var(--dark);
    border-radius: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-list-page .page-nav__circle:hover:not(.page-nav__circle--disabled) {
    background: var(--secondary);
    color: var(--white);
}

.product-list-page .page-nav__circle--disabled {
    opacity: 0.4;
    background: var(--bg-tint);
    color: var(--dark);
}

/* =========================================
   5. Video Section
   ========================================= */
.pl-video-sec {
    padding: 80px 0;
    background: var(--bg-tint);
    margin-bottom: 0;
}

.pl-video-sec-title {
    font-family: 'Phudu', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    text-align: center;
    margin: 0 0 40px;
}

.pl-video-grid {
    display: grid;
    grid-template-columns: 210px minmax(0, 717fr) minmax(0, 435fr);
    gap: 20px;
    align-items: stretch;
    max-width: 1432px;
    margin: 0 auto;
}

.pl-video-intro {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.4;
}

.pl-video-intro-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
}

.pl-video-intro-desc {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pl-video-main {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 717 / 403;
}

.pl-video-main iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pl-video-playlist {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 0;
    min-height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}

.pl-video-playlist::-webkit-scrollbar {
    width: 4px;
}

.pl-video-playlist::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 8px;
}

.pl-video-playlist::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 8px;
}

.pl-video-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
}

.pl-video-thumb {
    width: 136px;
    height: 77px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.pl-video-thumb img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pl-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
}

.pl-video-info {
    flex: 1;
    min-width: 0;
}

.pl-video-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pl-video-item:hover .pl-video-title,
.pl-video-item.is-active .pl-video-title {
    color: var(--primary);
}

/* =========================================
   6. Responsive
   ========================================= */
@media (max-width: 1199px) {
    .pl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pl-video-grid {
        grid-template-columns: 1fr;
    }

    .pl-video-intro {
        align-self: auto;
    }

    .pl-video-playlist {
        height: auto;
        min-height: 0;
        max-height: 403px;
    }
}

@media (max-width: 767px) {
    .pl-toolbar {
        flex-direction: column;
        align-items: stretch;
        margin: 40px 0 24px;
    }

    .pl-search-form {
        max-width: 100%;
        height: 50px;
        padding: 8px 16px;
    }

    .pl-search-input {
        font-size: 16px;
    }

    .pl-video-sec {
        padding: 40px 0;
    }

    .pl-video-sec-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
}

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

    .pl-categories-sec {
        padding: 24px 0;
    }

    .pl-cat-list {
        gap: 12px;
        padding: 4px 16px;
    }

    .pl-cat-item {
        min-width: 180px;
        max-width: 180px;
    }

    .pl-cat-link {
        font-size: 14px;
        padding: 8px 12px;
        height: 64px;
        gap: 8px;
    }

    .pl-cat-icon {
        width: 36px;
        height: 36px;
    }

    .product-list-page .page-nav__pages {
        gap: 6px;
    }

    .product-list-page .page-nav__num,
    .product-list-page .page-nav__circle {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* Container Override for 1400px content */
@media (min-width: 1440px) {
    .product-list-page .container {
        max-width: 1432px;
    }
}
