/* --- Brand Header --- */
.pss-brand-header {
    display: flex;
    flex-wrap: nowrap; /* Force side-by-side on desktop */
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.pss-brand-info {
    flex: 0 0 70%;
    max-width: 70%;
    color: #000;
}

.pss-brand-title {
    margin: 0px !important;
    font-size: 2.2em;
    line-height: 1.2;
}

.pss-brand-subtitle {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.5px;
}

.pss-brand-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
}

.pss-brand-logo {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    justify-content: flex-end;
}
.pss-brand-logo img {
    display: block;
    width: 100%;       /* Full width of the 30% container */
    height: auto;      /* Maintain aspect ratio */
    object-fit: contain;
}

/* --- Filter Bar --- */
.pss-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom to match inputs */
    gap: 15px;
    margin-bottom: 20px;
}

.pss-filter-left {
    flex: 1 1 auto;
}

.pss-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: #000;
    /* text-transform: uppercase; REMOVED */
    letter-spacing: 0.3px;
}

/* Search */
.pss-search-wrap {
    position: relative;
    max-width: 350px;
}

.pss-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    z-index: 10; /* Ensure visibility */
    display: block; /* Remove flex here to avoid scaling issues */
    width: 16px; 
    height: 16px;
    line-height: 1;
}

.pss-search-icon svg,
.pss-label-icon svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    fill: #555; /* Fallback fill */
}

.pss-search-wrap input[type="text"] {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Left padding for icon */
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 15px;
}
.pss-search-wrap input[type="text"]:focus {
    background: #fff;
    border-color: #aaa;
    outline: none;
}

/* Dropdown */
.pss-filter-right select {
    padding: 8px 30px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 15px;
    cursor: pointer;
    min-width: 200px;
    height: 42px; /* Match height of search input roughly */
}

/* Divider & Status */
.pss-divider {
    border: 0 !important;
    border-top: 1px solid #E6007E !important; /* Explicit border style */
    height: 1px !important; /* Ensure height > 0 for visibility */
    margin: 20px 0 30px 0 !important; /* Significant bottom margin */
    width: 100% !important;
    display: block !important;
    background: transparent !important; /* Prevent Elementor background overrides */
    opacity: 1 !important;
}

/* Breadcrumbs */
.pss-breadcrumbs {
    font-size: 0.9em;
    color: #000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    
    /* Full Width Breakout Trick */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 20px calc(50vw - 50% + 20px); /* Keep text aligned with container */
    box-sizing: border-box;
}

.pss-breadcrumbs a,
.pss-breadcrumbs span {
    color: #000 !important; /* Force black color on everything */
    text-decoration: none;
}

.pss-breadcrumb-icon {
    position: relative;
    top: 2px;
    margin-right: 6px;
}

.pss-filter-status {
    font-size: 0.95em;
    color: #000;
    margin-bottom: 30px;
}

.pss-breadcrumb-current {
    font-weight: 700;
}

/* --- Products Grid --- */
.pss-products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pss-products-grid.pss-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pss-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #000;
    /* New Styles: Shadow instead of Border, Square Corners */
    border: 0; 
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Light shadow */
    padding: 20px; /* Moved padding from inline to CSS */
    transition: box-shadow 0.3s ease;
}

.pss-product-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pss-product-card-image img {
    width: auto!important;
    height: 200px!important;
}

.pss-product-card > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.pss-product-card img {
    margin: 0 auto;
    display: block;
}

.pss-card-specs {
    margin: 20px 0 15px 0;
    padding-left: 20px; /* Indent bullets slightly, keeping text aligned neatly */
    list-style-type: disc;
}
.pss-card-specs li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #000;
    font-size: .9em;
}

.pss-card-footer {
    margin-top: auto;
    width: 100%;
}

.pss-btn-datasheet {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: transparent;
    color: #000 !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9em;
    margin-top: 20px;
    transition: all 0.3s;
}

.pss-btn-datasheet svg {
    display: block;
    flex-shrink: 0;
}

.pss-btn-inquiry {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #000;
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9em;
    margin-top: 10px;
    transition: all 0.3s;
}

.pss-btn-inquiry:hover {
    background-color: #333;
    color: #fff !important;
}

@media (max-width: 900px) {
    .pss-brand-header {
        flex-wrap: wrap; /* Stack on mobile */
        flex-direction: column-reverse; 
        gap: 15px;
    }
    .pss-brand-info,
    .pss-brand-logo {
        flex: 1 1 auto;
        max-width: 100%;
        justify-content: flex-start;
    }
    .pss-brand-logo {
        margin-bottom: 10px;
    }
    .pss-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .pss-search-wrap {
        max-width: 100%;
    }
    .pss-products-grid.pss-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pss-products-grid.pss-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Brands List Shortcode [pss_brands] --- */
.pss-brands-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.pss-brand-item {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.pss-brand-item:hover {
    transform: scale(1.05);
}

.pss-brand-item a {
    display: block;
    line-height: 0;
}

.pss-brand-logo-img {
    display: block;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .pss-brands-list {
        justify-content: center;
        gap: 15px;
    }
    .pss-brand-logo-img {
        max-height: 40px;
    }
}

/* --- Categories Grid Shortcode [pss_categories] --- */
.pss-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.pss-category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px;
    background: #ffffffda;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
}

.pss-category-card:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.pss-category-card-title {
    color: #000;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .pss-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pss-categories-grid {
        grid-template-columns: 1fr;
    }
    .pss-category-card {
        min-height: 100px;
    }
}

/* --- Taxonomy Overview Cards [pss_categories_overview], [pss_brands_overview] --- */
.pss-taxonomy-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #000;
    border: 0;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.pss-taxonomy-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pss-taxonomy-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    padding: 20px;
}

.pss-taxonomy-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pss-taxonomy-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
}

.pss-taxonomy-card-content {
    padding: 20px;
    flex-grow: 1;
}

.pss-taxonomy-card-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.4em !important;
    font-weight: 700;
    color: #000;
}

.pss-product-card-title {
    font-size: 1em !important;
}

.pss-product-card-desc p {
    font-size: 0.9em;
    line-height: 1.5;
}

.pss-taxonomy-card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.pss-taxonomy-card-desc p {
    margin: 0 0 10px 0;
}

.pss-taxonomy-card-footer {
    padding: 0 20px 20px 20px;
}

.pss-btn-view-products {
    display: block;
    width: 100%;
    background-color: #000;
    color: #fff !important;
    text-align: center;
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.pss-btn-view-products:hover {
    background-color: #333;
    color: #fff !important;
}

.pss-dropdown:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.pss-dropdown:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
    opacity: 0.6;
}

