/* ===== PSH LAYOUT & GRID ===== */
.psh-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5em;
    align-items: start;
}

.psh-main-content {
    min-width: 0;
}

.psh-sidebar-wrapper {
    position: sticky;
    top: 2em;
}

/* ===== IMPROVED SEARCH HUB FORM ===== */
.psh-search-hub-wrapper {
    margin: 2em 0;
}

#psh-search-form {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2em;
    display: block;
}

.psh-search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.psh-search-field,
.psh-filter-field {
    margin-bottom: 0;
}

.psh-search-field label,
.psh-filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
}

.psh-search-field input[type="search"],
.psh-filter-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
}

.psh-search-field input[type="search"]:focus,
.psh-filter-field select:focus {
    outline: none;
    border-color: var(--psh-primary, #2271b1);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.psh-search-field input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
    padding-left: 40px;
}

.psh-filter-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

#psh-search-results-container {
    transition: opacity 0.3s ease-in-out;
}

/* Search Button Styles */
.psh-search-actions {
    display: flex;
    flex-direction: column;
}

.psh-search-actions label {
    margin-bottom: 8px;
    visibility: hidden;
}

.psh-search-submit {
    background: var(--psh-primary, #2271b1);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.psh-search-submit:hover {
    background: var(--psh-primary-dark, #135e96);
    transform: translateY(-1px);
}

/* Responsive design for search fields */
@media (max-width: 1024px) {
    .psh-search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .psh-search-field {
        grid-column: 1 / -1;
    }
    
    .psh-search-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .psh-search-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
/* ===== SIMPLE SEARCH FORM ===== */
.psh-search-field-form{
    margin-bottom: 0;
    margin-right: 50px;
}

.psh-search-field-form label {
    display: flex;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
}

.psh-search-field-form input[type="search"]{
    width: 100%;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
}

.psh-search-field-form  input[type="search"]:focus {
    outline: none;
    border-color: var(--psh-primary, #2271b1);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.psh-search-field-form input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
    padding-left: 40px;
}
/* ===== ARCHIVE GRID ===== */
.psh-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.psh-archive-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.psh-archive-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.psh-archive-item .entry-title {
    margin: 0 0 1em 0;
    font-size: 1.2em;
}

.psh-archive-item .entry-title a {
    text-decoration: none;
    color: #333;
}

.psh-archive-item .entry-title a:hover {
    color: var(--psh-primary, #2271b1);
}

.psh-archive-item .entry-summary {
    color: #666;
    line-height: 1.6;
}

/* ===== ARCHIVE HEADERS ===== */
.psh-archive-header {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 2px solid #f0f0f0;
}

.psh-archive-title {
    margin: 0 0 0.5em 0;
    color: #333;
    font-size: 2em;
    font-weight: 700;
}

.psh-archive-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

.psh-brand-logo-archive {
    margin-top: 1em;
    max-width: 200px;
}

.psh-brand-logo-archive img {
    border-radius: 8px;
}

/* ===== SINGLE PRODUCT STYLES ===== */
.psh-product-article {
    background: #fff;
    border-radius: 8px;
    padding: 2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.psh-product-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5em;
    margin: 2em 0;
}

.psh-product-details h3 {
    margin: 0 0 1em 0;
    color: #333;
}

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

.psh-product-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.psh-product-details li:last-child {
    border-bottom: none;
}

.psh-shop-link {
    display: inline-block;
    background: var(--psh-secondary, #28a745);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.psh-shop-link:hover {
    background: var(--psh-secondary-dark, #218838);
}

.psh-linked-content {
    margin: 2em 0;
}

.psh-linked-content h3 {
    margin: 0 0 1em 0;
    color: #333;
}

.psh-linked-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.psh-linked-content li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.psh-linked-content li:last-child {
    border-bottom: none;
}

.psh-linked-content li a {
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
}

.psh-linked-content li a:before {
    content: "📄";
    margin-right: 8px;
    font-size: 0.9em;
}

.psh-linked-content li a:hover {
    color: var(--psh-primary, #2271b1);
}

/* ===== SIDEBAR & WIDGETS ===== */
.psh-sidebar {
    margin-top: 2em;
}

.psh-widget {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.psh-widget-title {
    font-size: 1.1em;
    margin: 0 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-weight: 600;
}

.psh-search-form {
    position: relative;
}

.psh-search-field {
    display: flex;
    gap: 5px;
}

.psh-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.psh-search-submit {
    background: var(--psh-primary, #2271b1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.psh-search-submit:hover {
    background: var(--psh-primary-dark, #135e96);
}

/* ===== SIDEBAR LISTS ===== */
.psh-brand-list,
.psh-category-list,
.psh-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.psh-brand-item,
.psh-category-item,
.psh-popular-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f5f5f5;
}

.psh-brand-item:last-child,
.psh-category-item:last-child,
.psh-popular-item:last-child {
    border-bottom: none;
}

.psh-brand-link,
.psh-category-link,
.psh-popular-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.psh-brand-link:hover,
.psh-category-link:hover,
.psh-popular-link:hover {
    color: var(--psh-primary, #2271b1);
}

.psh-brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 3px;
}

.psh-brand-name,
.psh-category-name,
.psh-popular-title {
    flex: 1;
    font-size: 0.9em;
}

.psh-brand-count,
.psh-category-count,
.psh-popular-views {
    font-size: 0.8em;
    color: #999;
    margin-left: 8px;
}

.psh-view-all {
    display: block;
    text-align: center;
    margin-top: 1em;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.psh-view-all:hover {
    background: #e9ecef;
    color: var(--psh-primary, #2271b1);
}

.psh-no-items {
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    margin: 0;
    padding: 1em 0;
}

/* ===== CTA & BUTTONS ===== */
.psh-cta-content {
    text-align: center;
}

.psh-cta-content p {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 1.5em;
}

.psh-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psh-cta-button {
    display: block;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.psh-cta-primary {
    background: var(--psh-primary, #2271b1);
    color: white;
    border: 2px solid var(--psh-primary, #2271b1);
}

.psh-cta-primary:hover {
    background: var(--psh-primary-dark, #135e96);
    border-color: var(--psh-primary-dark, #135e96);
}

.psh-cta-secondary {
    background: transparent;
    color: var(--psh-primary, #2271b1);
    border: 2px solid var(--psh-primary, #2271b1);
}

.psh-cta-secondary:hover {
    background: var(--psh-primary, #2271b1);
    color: white;
}

/* ===== UTILITY STYLES ===== */
.psh-breadcrumbs {
    background: linear-gradient(135deg, var(--psh-primary, #667eea) 0%, var(--psh-primary-dark, #764ba2) 100%);
    color: white;
    padding: 1em 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
}

.psh-breadcrumbs a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.psh-breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.psh-breadcrumbs .separator {
    margin: 0 0.5em;
    color: rgba(255,255,255,0.7);
}

.psh-breadcrumbs .current {
    color: white;
    font-weight: 600;
}

.psh-content-meta {
    display: flex;
    gap: 1.5em;
    margin: 1em 0;
    padding: 1em 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #666;
}

.psh-rating-wrapper {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5em;
    margin: 2em 0;
    text-align: center;
}

.psh-rating-question {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 1em 0;
    color: #333;
}

.psh-rating-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.psh-rating-buttons button {
    padding: 10px 25px;
    border: 2px solid var(--psh-primary, #2271b1);
    background: white;
    color: var(--psh-primary, #2271b1);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.psh-rating-buttons button:hover {
    background: var(--psh-primary, #2271b1);
    color: white;
}

.psh-rating-feedback {
    font-weight: bold;
    padding: 0.5em;
    margin-top: 0.5em;
    display: block;
    border-radius: 4px;
}

.psh-rating-feedback.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.psh-rating-feedback.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.psh-no-results {
    text-align: center;
    padding: 3em 2em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.psh-no-results h3 {
    margin: 0 0 1em 0;
    color: #6c757d;
}

.psh-no-results p {
    margin: 0 0 2em 0;
    color: #6c757d;
    font-size: 1.1em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .psh-main-layout {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .psh-sidebar-wrapper {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .psh-archive-title {
        font-size: 1.5em;
    }
    
    .psh-archive-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .psh-widget {
        padding: 1em;
    }
    
    .psh-product-article,
    .psh-archive-item {
        padding: 1em;
    }
    
    .psh-content-meta {
        flex-direction: column;
        gap: 0.5em;
    }
}

/* ===== BREADCRUMB STYLES ===== */
.psh-breadcrumbs {
    padding: 1em 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
    font-size: 0.9em;
}

.psh-breadcrumbs a {
    text-decoration: none;
}

.psh-breadcrumbs .separator {
    margin: 0 0.5em;
}

.psh-breadcrumbs .current {
    font-weight: 600;
}

/* Gradient Style (Default) */
.psh-breadcrumbs--gradient {
    background: linear-gradient(135deg, var(--psh-primary, #667eea) 0%, var(--psh-primary-dark, #764ba2) 100%);
    color: white;
}

.psh-breadcrumbs--gradient a {
    color: rgba(255,255,255,0.9);
}

.psh-breadcrumbs--gradient a:hover {
    color: white;
    text-decoration: underline;
}

.psh-breadcrumbs--gradient .separator {
    color: rgba(255,255,255,0.7);
}

.psh-breadcrumbs--gradient .current {
    color: white;
}

/* Minimal Style */
.psh-breadcrumbs--minimal {
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    color: #888;
}

.psh-breadcrumbs--minimal a {
    color: #555;
}

.psh-breadcrumbs--minimal a:hover {
    color: var(--psh-primary, #2271b1);
    text-decoration: underline;
}

.psh-breadcrumbs--minimal .separator {
    color: #ccc;
}

.psh-breadcrumbs--minimal .current {
    color: #333;
}

/* Brand Logo Styles */
.psh-brand-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
}

.psh-brand-logo-small {
    width: 80px;
    height: 40px;
    object-fit: contain;
    margin-right: 5px;
    border-radius: 3px;
}

.psh-brand-logo-inline {
    width: 60px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 2px;
}

.psh-product-brands {
    margin: 10px 0;
}

/* Archive Item Thumbnails */
.psh-archive-item-thumbnail {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.psh-archive-item-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.psh-archive-item:hover .psh-archive-item-thumbnail img {
    transform: scale(1.05);
}

.psh-content-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--psh-primary, #2271b1);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Improved Product Details */
.psh-product-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2em;
    margin: 2em 0;
    border: 1px solid #e9ecef;
}

.psh-product-details-card h3 {
    margin: 0 0 1.5em 0;
    color: #333;
    font-size: 1.4em;
    border-bottom: 2px solid var(--psh-primary, #2271b1);
    padding-bottom: 0.5em;
}

.psh-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.psh-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.psh-detail-item:last-child {
    border-bottom: none;
}

.psh-detail-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.psh-detail-value {
    color: #6c757d;
    flex: 1;
    text-align: right;
}

.psh-shop-link-item {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1em;
    margin-top: 1em;
    border-top: 2px solid #dee2e6;
}

.psh-shop-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--psh-secondary, #28a745);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.psh-shop-link-button:hover {
    background: var(--psh-secondary-dark, #218838);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Resources Grid */
.psh-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    margin-top: 1em;
}

.psh-resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.psh-resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--psh-primary, #2271b1);
}

.psh-resource-item .dashicons {
    color: var(--psh-primary, #2271b1);
    font-size: 1.2em;
}

.psh-resource-item a {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.psh-resource-type {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.psh-no-resources {
    text-align: center;
    padding: 2em;
    color: #6c757d;
    font-style: italic;
}

/* Content Archive Styles */
.psh-content-meta {
    margin: 10px 0;
    font-size: 0.9em;
    color: #6c757d;
}

.psh-read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--psh-primary, #2271b1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.psh-read-more:hover {
    background: var(--psh-primary-dark, #135e96);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .psh-details-grid {
        grid-template-columns: 1fr;
    }
    
    .psh-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .psh-detail-value {
        text-align: left;
    }
    
    .psh-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .psh-brand-logo {
        width: 100px;
        height: 50px;
    }
}

/* Styles for grouped resources on product page */
.psh-grouped-resources h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.2em;
    color: #333;
}

.psh-grouped-resources h4:first-of-type {
    margin-top: 10;
}