/* ============================================
   PRODUCT SEARCH LANDING (page-product-search)
   Compact toolbar + category dropdown (many categories)
   ============================================ */
.product-search-landing {
    --psl-radius: 12px;
    --psl-border: rgba(0, 0, 0, 0.08);
    --psl-muted: #6b7280;  
    --psl-surface: #ffffff;
    --psl-toolbar-bg: #fafbfc;
    background: #f0f1f3;
}
 
.product-search-landing__toolbar {
    padding: clamp(1.75rem, 5vw, 2.75rem) 0 clamp(1.5rem, 4vw, 2.25rem);
    background: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) 
}

.product-search-landing__header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.product-search-landing__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #111827;
    margin: 0 0 0.65rem;
}

.product-search-landing__lead {
    font-size: 0.8125rem;
    color: var(--psl-muted);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 36rem;
}

.product-search-landing__controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 0.25rem;
}
 
.product-search-landing__search-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-search-landing__body {
    align-items: flex-start;
}

.product-search-landing__search-bar {
    display: flex;
    align-items: stretch;
    background: var(--psl-surface);
    border: 1px solid var(--psl-border);
    border-radius: var(--psl-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-search-landing__search-bar:focus-within {
    border-color: var(--primary-color, #11889e);
    box-shadow: 0 0 0 3px rgba(17, 136, 158, 0.1);
}

.product-search-landing__search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline-start: 0.75rem;
    padding-inline-end: 0.15rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.product-search-landing__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    padding: 0.65rem 0.4rem;
    color: #111827;
    outline: none;
}

.product-search-landing__input::placeholder {
    color: #9ca3af;
}

.product-search-landing__search-submit {
    flex-shrink: 0;
    margin: 0.3rem;
    padding: 0 1rem;
    border: none;
    border-radius: calc(var(--psl-radius) - 3px);
    background: var(--primary-color, #11889e);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.product-search-landing__search-submit:hover {
    background: #0d6b7d;
}

.product-search-landing__search-submit:active {
    transform: scale(0.98);
}
 
.product-search-landing__reset {
    align-self: center;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.75rem;
    color: var(--psl-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-search-landing__reset:hover {
    color: var(--primary-color, #11889e);
}

/* Sidebar matches shop archive; show filter title (global .shop-filters > h4 is hidden) */
.product-search-landing .shop-filters > h4 {
    display: block;
}

.product-search-landing__results {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.product-search-landing__grid {
    scroll-margin-top: 0.5rem;
}

.product-search-landing__loading {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.product-search-landing__spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(17, 136, 158, 0.2);
    border-top-color: var(--primary-color, #11889e);
    border-radius: 50%;
    animation: product-search-landing-spin 0.7s linear infinite;
}

@keyframes product-search-landing-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-search-landing__empty {
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.product-search-landing__empty--muted {
    color: var(--psl-muted);
}

@media (max-width: 576px) {
    .product-search-landing__search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-search-landing__search-icon {
        display: none;
    }

    .product-search-landing__input {
        padding: 0.65rem 0.85rem;
        border-bottom: 1px solid var(--psl-border);
    }

    .product-search-landing__search-submit {
        margin: 0.3rem;
        padding: 0.65rem 1rem;
    }
}
 
/* ============================================
   SHOP SEARCH HEADER (Top of Product List)
   ============================================ */
.products-search-header #shop-search {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.6rem 1rem;
}

.products-search-header #shop-search:focus {
    border-color: var(--primary-color, #11889e);
    box-shadow: 0 0 0 3px rgba(17, 136, 158, 0.1);
}
 
/* ============================================
   SINGLE SHOP PRODUCT MODERN STYLES
   ============================================ */

/* Product Info Layout */
.product-info {
    position: relative;
    z-index: 1;
}

.product-title {
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Pricing Card */
.product-pricing-card {
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.price-final {
    line-height: 1;
}

/* Quantity Selector Modern */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
}

.quantity-selector input {
    font-family: inherit;
    background: transparent;
}

.quantity-selector button {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.quantity-selector button:hover {
    opacity: 1;
    color: var(--primary-color) !important;
    background-color: rgba(0,0,0,0.03);
}

.quantity-selector button:active {
    transform: scale(0.95);
}

/* Add to Cart Button */
.add-to-cart-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 136, 158, 0.3) !important;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Trust Features */
.product-trust-features .icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Modern Tabs */
.product-tabs .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    gap: 2rem;
}

.product-tabs .nav-link {
    border: none;
    background: transparent;
    padding: 1rem 0;
    font-weight: 600;
    color: #666;
    position: relative;
    font-size: 1.1rem;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.product-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.product-tabs .tab-content {
    box-shadow: none !important;
    border: 1px solid #f0f0f0;
    padding: 2.5rem !important;
}

/* Specifications Table Modern */
.specifications-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table th {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #444;
    width: 25% !important;
    border-radius: 8px;
}

.specifications-table td {
    padding: 1rem 1.5rem;
    color: #666;
}

.shop-filters > h4{
    display: none
}

/* ============================================
   SHOP ARCHIVE HEAD + SIDEBAR SPACING FIXES
   ============================================ */
.shop-archive .shop-archive-head {
    min-height: clamp(220px, 30vw, 320px);
}

.shop-archive .shop-archive-head::before {
    background: linear-gradient(180deg, rgba(6, 24, 33, 0.72) 0%, rgba(6, 24, 33, 0.45) 100%);
}

.shop-archive .shop-archive-head__content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    padding-inline: 1rem;
}

.shop-archive .shop-archive-head h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.shop-archive .shop-archive-head__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.86rem, 1.6vw, 1rem);
    line-height: 1.7;
}

.shop-archive .shop-content {
    padding-top: clamp(1.4rem, 3vw, 2.5rem) !important;
}

.shop-archive .shop-sidebar-host {
    margin-bottom: 0 !important;
}

.shop-archive .shop-filters-title {
    display: block !important;
    margin-bottom: 0.8rem !important;
}

.shop-archive .shop-filters.shop-filters-modern {
    padding: 1rem !important;
}

.shop-archive .shop-filters.shop-filters-modern .filter-group {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #edf2f7;
}

.shop-archive .shop-filters.shop-filters-modern .filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0.35rem !important;
}

.shop-archive .shop-filters-apply {
    margin-top: 0.75rem;
}
  
/* ============================================
   Shop sidebar: mobile drawer + desktop inline
   ============================================ */
.shop-sidebar-toggle.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    max-width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 8px;
}

.shop-sidebar-toggle.button svg.shop-sidebar-toggle__icon {
    flex-shrink: 0;
    display: block;
    opacity: 0.95;
    transform: none;
}

.shop-sidebar-toggle.button:hover svg.shop-sidebar-toggle__icon {
    transform: none;
    opacity: 1;
}

.shop-sidebar-host {
    position: relative;
}

.shop-sidebar-backdrop {
    display: none;
}

.shop-sidebar-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.shop-sidebar-panel__title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #111827;
}

.shop-sidebar-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0 0.15rem;
    color: #374151;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.shop-sidebar-close:hover {
    opacity: 1;
    color: var(--primary-color, #11889e);
}

@media (max-width: 991.98px) {
    .shop-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s ease, visibility 0.32s ease;
    }

    body.shop-sidebar-open .shop-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .shop-sidebar-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1050;
        width: min(90vw, 320px);
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        left: 0;
        right: auto;
        transform: translate3d(-102%, 0, 0);
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        will-change: transform;
    }

    body.shop-sidebar-open .shop-sidebar-panel {
        transform: translate3d(0, 0, 0);
    }
 
    body.rtl .shop-sidebar-panel,
    html[dir="rtl"] .shop-sidebar-panel {
        left: auto;
        right: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translate3d(102%, 0, 0);
    }

    body.rtl.shop-sidebar-open .shop-sidebar-panel,
    html[dir="rtl"] body.shop-sidebar-open .shop-sidebar-panel {
        transform: translate3d(0, 0, 0);
    }

    .shop-sidebar-panel__filters.shop-filters {
        flex: 1;
        overflow-y: auto;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-overflow-scrolling: touch;
    }

    body.shop-sidebar-open {
        overflow: hidden;
        touch-action: none;
    }

    .shop-archive .shop-filters.shop-filters-modern {
        padding: 0.85rem !important;
    }

    .shop-archive .shop-filters.shop-filters-modern .filter-group {
        padding: 0.65rem !important;
    }
}

@media (min-width: 992px) {
    .shop-sidebar-backdrop {
        display: none !important;
    }

    .shop-sidebar-panel {
        position: static;
        display: block;
        width: auto;
        max-height: none;
        overflow: visible;
        transform: none !important;
        box-shadow: none;
        background: transparent;
    }

    .shop-sidebar-panel__header {
        display: none !important;
    }

    .shop-archive .shop-sidebar-host {
        padding-left: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .shop-archive .shop-archive-head {
        min-height: 190px;
    }

    .shop-archive .shop-archive-head h1 {
        margin-bottom: 0.45rem;
    }

    .shop-archive .shop-archive-head__lead {
        max-width: 92%;
        margin-inline: auto;
    }
}
.product-actions .button{
    box-shadow: none !important;
    font-size: 13px !important;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .single-shop-product .product-title,
    .product-info .product-title {
        font-size: 1.75rem;
    }
    
    .product-info {
        margin-top: 2rem;
    }
    
    .product-pricing-card {
        padding: 1.5rem !important;
    }
    
    .add-to-cart-section .d-flex {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        height: 50px;
    }
    
    .product-trust-features .col-6 {
        width: 100%;
    }
    
    .specifications-table th, 
    .specifications-table td {
        padding: 0.75rem;
    }
    
    .specifications-table th {
        width: 35% !important;
    }
}

