/*
 * Collections Feature Styles
 *
 * This file only contains styles UNIQUE to the collections taxonomy pages.
 * It intentionally reuses existing classes from:
 *   - Plugin: pf-goelst-functions/products/products-styles.css
 *     (.pf-products, .pf-product, .pf-product-container, .pf-popular,
 *      .pf-product-image, .pf-product-image-placeholder, .pf-main-productnumber,
 *      .pf-product-bottom, .pf-product-arrow)
 *   - Child theme: style.css
 *     (.nieuws-swiper, .swiper-navigation etc.)
 *
 * Do NOT redefine those classes here.
 */

:root {
    --collections-brand-red: #e52521;
    --collections-brand-dark: #1d1f25;
    --collections-bg-gray: #f5f5f5;
    --collections-border-gray: #e0e0e0;
}

body.archive.tax-collections .site-main {
    max-width: 1600px !important;
    margin: 0 auto;
}

/* ============================================================
   1. Header Banner
   ============================================================ */

.pf-header {
    background: #000;
    padding: 20px 40px;
    box-sizing: border-box;
    height: 640px;
    width: 100%;
}

.pf-header-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #222;
}

.header-image-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.background-absolute {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    display: block;
}

.pf-header-inner .main-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 80px; /* Room for the right sidebar-quote */
    z-index: 2;
    display: flex;
    align-items: center;
    padding-left: 60px;
    box-sizing: border-box;
    transform: unset !important;
}

.blur-container {
    background: #fbfbfb;
    padding: 60px 80px;
    border-radius: 32px;
    width: 540px;
    max-width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.explore-range-text {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    color: var(--collections-brand-red);
    margin: 0 0 24px 0;
    letter-spacing: 0.05em;
}

.collection-banner-title {
    font-size: 46px;
    font-weight: 700;
    color: var(--collections-brand-dark);
    margin: 0 0 24px 0;
    line-height: 1.15;
}

.collection-banner-desc p {
    font-size: 15px;
    color: #62646a;
    line-height: 1.6;
    margin: 0;
}

.sidebar-quote {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sidebar-quote-text {
    transform: rotate(-90deg);
    white-space: nowrap;
    color: #ffffff;
    font-family: 'Gilroy', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-block;
}

/* Elementor-compatible responsive helpers */
@media (max-width: 1024px) {
    .hidden-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .hidden-mobile { display: none !important; }
}

/* ============================================================
   2. Breadcrumbs
   ============================================================ */

.pf-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    color: #7a7a7a;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 60px;
    box-sizing: border-box;
}

.pf-breadcrumbs a {
    color: #7a7a7a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pf-breadcrumbs a:hover {
    color: var(--collections-brand-red);
}

.pf-breadcrumbs img {
    display: inline-block;
}

/* ============================================================
   3. Collections Archive Index (/collections/)
   ============================================================ */

.collections-archive-container {
    max-width: 1600px;
    margin: 0 auto 60px auto;
    padding: 0 60px;
    font-family: 'Gilroy', sans-serif;
    box-sizing: border-box;
}

.collections-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.collection-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--collections-border-gray);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--collections-brand-red);
}

.collection-card-image-wrapper {
    width: 100%;
    height: 280px;
    background-color: var(--collections-bg-gray);
    overflow: hidden;
}

.collection-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.collection-card:hover .collection-card-image {
    transform: scale(1.06);
}

.collection-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.collection-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.collection-card-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--collections-brand-dark);
}

.collection-card-button {
    font-size: 16px;
    font-weight: 500;
    color: var(--collections-brand-red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.collection-card:hover .collection-card-button {
    gap: 14px;
}

/* ============================================================
   4. Taxonomy Term Page: Two-Column Layout
   ============================================================ */

.collection-template-container {
    max-width: 1600px;
    margin: 0 auto 40px auto;
    padding: 0 60px;
    font-family: 'Gilroy', sans-serif;
    box-sizing: border-box;
}

.collection-acf-content {
    margin-bottom: 40px;
}

.collection-acf-content.bottom-content {
    margin-top: 50px;
    margin-bottom: 50px;
    border-top: 1px solid var(--collections-border-gray);
    padding-top: 40px;
}

.collection-split-layout {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
}

/* Left Sidebar — 25% width, Sticky Accordion Card */
.collection-sidebar {
    flex: 0 0 25%;
    position: sticky;
    top: 120px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px 24px;
    border: 1px solid var(--collections-border-gray);
    transition: all 0.3s ease;
    z-index: 10;
    box-sizing: border-box;
}

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

.collection-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--collections-brand-dark);
    margin: 0;
    padding: 0;
    border-bottom: none;
    text-transform: none;
    letter-spacing: normal;
}

.collection-sidebar-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.collection-sidebar-toggle svg {
    display: block;
    width: 40px;
    height: 40px;
}

.line-vertical {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: 16.51px 16.51px; /* Center of SVG circle (cx=16.51, cy=16.51) */
}

/* Accordion Collapsed State: show the vertical line to form a plus (+) */
.collection-sidebar.is-collapsed .line-vertical {
    opacity: 1;
    transform: rotate(0deg);
}

/* Accordion Open State: hide the vertical line to leave a minus (-) */
.collection-sidebar:not(.is-collapsed) .line-vertical {
    opacity: 0;
    transform: rotate(90deg);
}

.collection-sidebar-content {
    margin-top: 24px;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.2s ease;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}

.collection-sidebar.is-collapsed .collection-sidebar-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.collection-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-menu-item {
    margin: 0;
}

.collection-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease, font-weight 0.2s ease;
    border: none;
    background: transparent;
}

.collection-menu-link:hover {
    color: var(--collections-brand-red);
    background: transparent;
    padding-left: 0;
}

.collection-menu-item.is-active .collection-menu-link {
    font-weight: 700;
    color: var(--collections-brand-dark);
    background: transparent;
}

.collection-menu-count {
    color: #888888;
    font-size: 14px;
    margin-left: 6px;
}

.collection-menu-item.is-active .collection-menu-count {
    color: var(--collections-brand-dark);
    font-weight: 700;
}

/* Right Content — 75% width */
.collection-main-content {
    flex: 0 0 75%;
    min-width: 0;
    box-sizing: border-box;
}

.collections-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--collections-brand-dark);
    margin: 0 0 24px 0;
}

/* ============================================================
   5. Search Input & AJAX states
   ============================================================ */

.collections-search-container {
    margin-bottom: 30px;
    max-width: 360px;
}

.collections-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.collections-search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 24px;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    color: var(--collections-brand-dark);
    background-color: #fbfbfb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: 'Gilroy', sans-serif;
    box-sizing: border-box;
}

.collections-search-input:focus {
    border-color: #a0a0a0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
    background-color: #fff;
}

.collections-search-submit {
    position: absolute;
    right: 18px;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.collections-search-submit:hover {
    color: var(--collections-brand-dark);
}

.pf-products-ajax-wrapper {
    position: relative;
    transition: opacity 0.25s ease;
}

.pf-products-ajax-wrapper.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.no-products-msg {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
}

/* ============================================================
   6. Pagination
   ============================================================ */

.pagination_container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.pagination_container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--collections-border-gray);
    color: var(--collections-brand-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Gilroy', sans-serif;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination_container .page-numbers:hover {
    background: var(--collections-bg-gray);
    border-color: var(--collections-brand-dark);
}

.pagination_container .page-numbers.current {
    background: var(--collections-brand-red);
    border-color: var(--collections-brand-red);
    color: #fff;
}

.pagination_container .page-numbers img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ============================================================
   7. Popular Products Section & Custom Swiper Arrows
   ============================================================ */

.collections-popular-products {
    margin-top: 80px;
    margin-bottom: 60px;
    border-top: 1px solid var(--collections-border-gray);
    padding-top: 60px;
}

.collections-popular-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--collections-brand-dark);
    margin: 0 0 40px 0;
}

/* Custom Swiper Arrows */
.swiper-navigation.nieuws {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: -10px;
    margin-bottom: 15px;
}

.swiper-navigation.nieuws .arrow-left,
.swiper-navigation.nieuws .arrow-right {
    cursor: pointer;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.swiper-navigation.nieuws .arrow-left:hover,
.swiper-navigation.nieuws .arrow-right:hover {
    opacity: 0.7;
}

.swiper-navigation.nieuws .arrow-left img {
    transform: scaleX(-1);
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-navigation.nieuws .arrow-right img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================================
   8. Responsive overrides
   ============================================================ */

@media (max-width: 1440px) {
    .pf-header {
        height: 540px;
    }
    .blur-container {
        padding: 50px 60px;
        width: 480px;
    }
}

@media (max-width: 1200px) {
    .pf-header {
        height: 480px;
        padding: 15px 25px;
    }
    .pf-header-inner {
        border-radius: 28px;
    }
    .pf-header-inner .main-container {
        padding-left: 40px;
        right: 60px;
    }
    .blur-container {
        padding: 30px 40px;
        width: 400px;
    }
    .explore-range-text {
        margin-bottom: 15px;
    }
    .collection-banner-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .collections-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .pf-header {
        height: auto;
        padding: 0;
        background: transparent;
    }
    .pf-header-inner {
        border-radius: 0;
        height: auto;
        background: transparent;
    }
    .pf-header-inner .main-container {
        position: static;
        padding: 30px 20px;
        right: auto;
        flex-direction: column;
    }
    .header-image-container {
        position: relative;
        height: 350px;
    }
    .background-absolute {
        opacity: 1;
    }
    .blur-container {
        position: relative;
        margin-top: -80px;
        z-index: 5;
        width: 100%;
        max-width: 100%;
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .sidebar-quote {
        display: none;
    }
    .pf-breadcrumbs {
        padding: 20px;
    }
    .collections-archive-container,
    .collection-template-container {
        padding: 0 20px;
    }
    .collection-split-layout {
        flex-direction: column;
        gap: 30px;
    }
    .collection-sidebar {
        flex: 1 1 100%;
        width: 100%;
        position: static;
        top: auto;
    }
    .collection-sidebar-content {
        margin-top: 15px;
    }
    .collection-menu-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px;
    }
    .collection-menu-link {
        padding: 8px 16px;
        border-radius: 20px;
        background: #f5f5f5;
    }
    .collection-menu-link:hover {
        background: #e5e5e5;
    }
    .collection-menu-item.is-active .collection-menu-link {
        background: var(--collections-brand-red);
        color: #fff;
    }
    .collection-menu-item.is-active .collection-menu-count {
        color: #fff;
    }
    .collection-main-content {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .header-image-container {
        height: 250px;
    }
    .blur-container {
        margin-top: -40px;
        padding: 24px;
    }
    .collection-banner-title {
        font-size: 28px;
    }
    .collections-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .collections-popular-title {
        font-size: 26px;
    }
}
