/* --- Search Warning (Empty State) --- */
.pzx-search-warning-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.pzx-search-warning-box {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    border: 1px solid #eaeaea;
}

.pzx-warning-icon {
    margin-bottom: 24px;
    color: #000000;
    /* Black */
    background-color: rgba(0, 0, 0, 0.05);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.pzx-warning-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
}

.pzx-warning-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.pzx-warning-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.pzx-btn-primary {
    display: inline-block;
    background: #000000;
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pzx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

/* --- Active Filters (Chips) --- */
.pzx-active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.pzx-chip {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    /* Minimal rounding, sleek look */
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.pzx-chip:hover {
    border-color: #000;
    color: #000;
    background-color: #fafafa;
}

.pzx-chip i {
    margin-left: 8px;
    font-size: 14px;
    color: #999;
}

.pzx-chip:hover i {
    color: #000;
}

.pzx-clear-filters {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    margin-left: 10px;
    cursor: pointer;
}

.pzx-clear-filters:hover {
    color: #000;
}

/* --- Search Page Grid Layout --- */
.pzx-search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    padding-top: 20px;
}

@media (max-width: 992px) {
    .pzx-search-layout {
        grid-template-columns: 1fr;
    }
}

.pzx-search-sidebar {
    background: transparent;
    padding-right: 20px;
}

/* Sidebar Styling Overrides - PAEN STYLE */
.pzx-sidebar-filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.pzx-sidebar-filter-group:last-child {
    border-bottom: none;
}

.pzx-sidebar-header {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    /* Almost black */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 5px;
    text-transform: none;
    /* Removed uppercase enforcement for cleaner look */
}

.pzx-sidebar-header i {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.pzx-sidebar-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.pzx-sidebar-content {
    /* Collapsible content area */
}

/* Individual Filter Item */
.pzx-filter-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* --- Modern Checkbox Styling (Custom Structure) --- */
.pzx-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 0;
}

.pzx-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pzx-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    margin: 0;
    transition: color 0.2s ease;
    user-select: none;
}

.pzx-checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #dcdcdc;
    /* Subtle grey border */
    border-radius: 4px;
    /* Soft rounding */
    background-color: #fff;
    margin-right: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    color: transparent;
    /* Hide icon by default */
}

.pzx-checkbox-box i {
    font-size: 11px;
    transition: transform 0.2s ease;
    transform: scale(0);
}

.pzx-checkbox-text {
    padding-top: 1px;
}

/* Checked State */
.pzx-checkbox-input:checked~.pzx-checkbox-label .pzx-checkbox-box {
    background-color: #000;
    border-color: #000;
    color: #fff;
    /* Show icon */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pzx-checkbox-input:checked~.pzx-checkbox-label .pzx-checkbox-box i {
    transform: scale(1);
    color: #fff;
}

.pzx-checkbox-input:checked~.pzx-checkbox-label {
    color: #000;
    font-weight: 700;
}

/* Hover State */
.pzx-checkbox-wrapper:hover .pzx-checkbox-box {
    border-color: #999;
}

/* --- Search Page Header & Breadcrumb Refinement --- */
.cat-detail-main-div .page-banner-main {
    background: #fff !important;
    /* Clean white background */
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    /* REMOVED LINES */
}

.cat-detail-main-div .page-banner-in-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Assuming page-banner-in-text is usually a container or centered text block, we redefine it */
    text-align: left !important;
    padding: 0 15px;
    /* Add padding if container is missing */
    max-width: 1400px;
    /* Match grid width */
    margin: 0 auto;
}

.cat-detail-main-div .page-banner-h {
    font-family: 'Inter', sans-serif;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.5px;
}

.cat-detail-main-div .page-banner-h i {
    color: #000;
    margin-right: 8px;
    font-size: 22px;
}

.cat-detail-main-div .page-banner-links {
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cat-detail-main-div .page-banner-links a {
    color: #666 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cat-detail-main-div .page-banner-links a:hover {
    color: #000 !important;
}

.cat-detail-main-div .page-banner-links span {
    margin: 0 8px;
    color: #ccc;
}

/* Mobile Adjustments for Header */
@media (max-width: 768px) {
    .cat-detail-main-div .page-banner-in-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Hide default dividers from old template if they sneak in */
.cat-left-box-h {
    display: none;
}

.cat-left-box-main {
    margin-bottom: 0;
}


/* Search Header (Results Count & Sort) */
.pzx-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.pzx-search-res-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.pzx-search-res-text strong {
    font-weight: 700;
    color: #000;
}

.pzx-search-sort-area {
    display: flex;
    align-items: center;
    gap: 15px;
}


.nice-select-cat-detail {
    border: 1px solid #e0e0e0;
    /* Softer grey border */
    border-radius: 4px;
    height: 42px;
    /* Slightly taller for touch targets */
    line-height: 40px;
    padding-left: 20px;
    padding-right: 45px;
    /* Space for arrow */
    font-size: 14px;
    color: #444;
    font-weight: 500;
    min-width: 200px;
    /* Ensure enough width */
    background-color: #fff;
    transition: all 0.2s ease;
}

.nice-select-cat-detail:active,
.nice-select-cat-detail.open,
.nice-select-cat-detail:focus {
    border-color: #000;
    /* Black emphasis on active */
}

/* Ensure the 'Stock Only' wrapper in header has some spacing */
.pzx-search-sort-area .pzx-checkbox-wrapper {
    margin-right: 25px;
    padding: 0;
}

/* Product Grid */
.pzx-search-grid {
    display: grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns per user request/image */
    gap: 30px;
    /* Increased gap for better spacing */
}

@media (max-width: 1400px) {
    .pzx-search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pzx-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pzx-search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Adjustments for pzx-product in search page context */
/* Muggo Style Product Card */
.pzx-search-grid .pzx-product {
    box-shadow: none;
    border: none;
    /* Truly borderless */
    background: #fff;
    height: 100%;
    padding: 0;
    /* Remove padding to let image fill width */
    position: relative;
    display: flex;
    flex-direction: column;
}

.pzx-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 10px;
}

.pzx-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Add to Cart Button - Visible and Sharp */
.pzx-add-to-cart-btn {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    /* Space between button and details */
}

.pzx-add-to-cart-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.pzx-product-info {
    text-align: center;
    padding: 0 10px 10px 10px;
}

/* Brand */
.pzx-product-brand {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    /* Extra bold */
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
}

/* Title */
.pzx-search-grid .pzx-product-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #333 !important;
    font-weight: 400 !important;
    margin: 0 0 15px 0;
    line-height: 1.4;
    height: 38px;
    /* Fixed height for alignment */
    overflow: hidden;
}

.pzx-search-grid .pzx-product-title a {
    color: #333;
    text-decoration: none;
}

/* Price Layout - Table System */
.pzx-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Discount Badge (Red Box) */
.pzx-product-discount-badge {
    background: #e11e24;
    /* Muggo Red */
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 40px;
    /* Fixed height to match price block */
}

/* Price Stack */
.pzx-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left relative to the wrapper */
    justify-content: center;
}

.pzx-product-price-old {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}

.pzx-product-price-current {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    /* Larger */
    font-weight: 800;
    /* Extra bold */
    color: #000;
    line-height: 1;
}

/* Color Swatches Container */
.pzx-product-meta {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    /* Increased height for larger swatches */
}

/* Swatch UI - Muggo Size (~35px) */
.pzx-swatch-link {
    display: block;
    text-decoration: none;
}

.pzx-swatch {
    width: 34px;
    /* Larger size */
    height: 34px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pzx-swatch:hover {
    transform: scale(1.1);
    border-color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar Header Typography override for Muggo feel */
.pzx-sidebar-header {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000 !important;
    padding: 15px 0;
    border-bottom: 1px solid transparent;
}

.pzx-sidebar-filter-group {
    border-bottom: 1px solid #f5f5f5 !important;
}