/* ==========================================================================
   BOUTIQUE / SHOP ARCHIVE STYLING (MATCHING IMAGE 3 SPECIFICATION)
   ========================================================================== */

.shop-archive-container {
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* Widen layout container for boutique page content area */
.shop-archive-container .col-full,
.shop-archive-container .site-main,
#primary.shop-archive-container .col-full,
body.page-template-page-boutique #content .col-full,
body.post-type-archive-product #content .col-full {
    max-width: 1440px !important;
    width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .shop-archive-container .col-full,
    .shop-archive-container .site-main,
    #primary.shop-archive-container .col-full,
    body.page-template-page-boutique #content .col-full,
    body.post-type-archive-product #content .col-full {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Hide default Storefront / WooCommerce parent breadcrumbs & duplicate sorting bar */
.storefront-breadcrumb,
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.storefront-sorting,
.intex-shop-products-column > .woocommerce-ordering,
.intex-shop-products-column > .woocommerce-result-count,
p.woocommerce-result-count {
    display: none !important;
}

.custom-intex-header .cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    color: #000000 !important;
}

/* Breadcrumbs */
.intex-shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #4b5563;
    margin-top: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.intex-shop-breadcrumb a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.intex-shop-breadcrumb a:hover {
    text-decoration: underline;
}

.intex-shop-breadcrumb .sep {
    color: #9ca3af;
    font-size: 0.8rem;
}

.intex-shop-breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

/* Page Title */
.intex-archive-title {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #111827 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.1 !important;
}

/* Top Meta Row (Product Count & Sort) */
.intex-shop-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.products-count-text {
    font-size: 1.15rem;
    color: #4b5563;
    font-weight: 500;
}

.shop-sort-dropdown select,
.sort-trigger-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #006b68;
    padding: 4px 28px 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #006b68;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 0;
}

.shop-sort-dropdown select:focus,
.sort-trigger-btn:focus {
    outline: none;
}

/* Main 2-Column Grid Layout */
.intex-shop-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar Filters */
.intex-shop-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-filter-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #006b68;
    margin: 0 0 12px 0;
}

.sidebar-divider {
    height: 1px;
    background-color: #006b68;
    opacity: 0.3;
    margin-bottom: 20px;
}

.sidebar-accordion-item {
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 12px;
}

.accordion-title {
    color: #006b68;
    font-size: 0.95rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.3rem;
    line-height: 1;
    color: #006b68;
    font-weight: 400;
}

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

.filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #111827;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.custom-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #006b68;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.custom-checkbox-label input:checked + .checkbox-box {
    background-color: #006b68;
}

.custom-checkbox-label input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-weight: 500;
    color: #111827;
}

.filter-count {
    color: #111827;
    font-weight: 500;
    font-size: 0.88rem;
}

/* Price Range Filter */
.price-range-container {
    padding-top: 4px;
}

.price-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.price-slider-track-wrap {
    padding: 10px 0;
}

.price-slider-track {
    height: 10px;
    background: #2dd4bf;
    border-radius: 5px;
    position: relative;
}

.slider-handle {
    width: 18px;
    height: 26px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.handle-left {
    left: 0;
}

.handle-right {
    right: 0;
}

/* Right Column: Compare & Product Grid */
.intex-shop-products-column {
    display: flex;
    flex-direction: column;
}

.intex-compare-bar {
    margin-bottom: 24px;
}

.compare-pill-btn {
    background: #f3f4f6;
    color: #111827;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.compare-pill-btn:hover {
    background: #e5e7eb;
}

/* 3 Column Grid */
.intex-products-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

/* Product Card Matching Image 3 */
.intex-card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.intex-card-img-wrapper {
    position: relative;
    background: #f4f5f6;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    transition: background 0.2s ease;
}

.intex-card-item:hover .intex-card-img-wrapper {
    background: #eeeeee;
}

.intex-card-img-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intex-card-img-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.intex-card-item:hover .intex-card-img-link img {
    transform: scale(1.04);
}

.intex-card-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intex-card-heart-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.intex-card-content {
    padding: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.intex-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.25;
}

.intex-card-title a {
    color: #111827;
    text-decoration: none;
}

.intex-card-title a:hover {
    text-decoration: underline;
}

.intex-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .intex-shop-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .intex-products-3col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .intex-products-3col-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .intex-archive-title {
        font-size: 2rem !important;
    }
}
