/**
 * ProWatch Special Product Gallery - Full Dark Theme (#0f1115)
 */

/* 1. Global Dark Background Overrides & Page Resets */
html,
body,
#page,
.site,
.site-content,
main,
.site-main,
.entry-content,
.wp-site-blocks,
#primary,
.hero-section,
.container {
    background-color: #0f1115 !important;
    color: #f8fafc !important;
    margin: 0 !important;
}

/* 2. Header Full Dark Theme Integration */
header,
.site-header,
#masthead,
.navbar {
    background-color: #0f1115 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #ffffff !important;
}

.site-title,
.site-title a,
.site-branding a,
.site-branding span,
.main-navigation a,
.nav-menu a,
.header-actions a,
.cart-contents,
.account-link,
.mobile-menu-toggle {
    color: #ffffff !important;
}

.header-actions svg,
.cart-icon,
.account-icon,
.mobile-menu-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* 3. Full Width Seamless Gallery Container (Centered, Responsive to Zoom) */
.pw-gallery-wrapper.pw-dark-mode {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 0 !important;
    background: #0f1115 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Minimalist Integrated Header (Centered) */
.pw-gallery-header {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto 24px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 16px;
    gap: 12px;
    box-sizing: border-box;
}

.pw-gallery-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: center;
}

.pw-gold-accent {
    color: #d4af37;
    background: linear-gradient(135deg, #fce08b 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* 5 Centered Pagination Dots (Matte Gold) */
.pw-swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.pw-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.4);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pw-swiper-pagination .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
    background: #e5c158;
    border-color: #f5d77f;
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.7);
}

/* ==========================================================================
   Interactive Horizontal Top Bar Filter Panel (Lux Dark Theme)
   ========================================================================== */
.pw-filter-bar-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto 24px auto;
    padding: 0 28px;
    box-sizing: border-box;
    position: relative;
    z-index: 40;
}

.pw-filter-panel {
    background: #0a0a0a;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.pw-filter-panel-header {
    display: none;
}

.pw-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pw-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.pw-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.pw-filter-price-group {
    min-width: 210px;
    flex: 1.2;
}

.pw-filter-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Dropdowns & Input Fields */
.pw-filter-select,
.pw-filter-input {
    width: 100%;
    height: 42px;
    background: #0f1115;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    color: #ffffff;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.pw-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e5c158' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.pw-filter-select option {
    background: #0a0a0a;
    color: #ffffff;
    padding: 10px;
}

.pw-filter-select:hover,
.pw-filter-input:hover,
.pw-filter-select:focus,
.pw-filter-input:focus {
    border-color: #e5c158;
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.3);
}

/* Active Filter Glow Effect */
.pw-filter-select.pw-active-filter,
.pw-filter-input.pw-active-filter {
    border-color: #e5c158 !important;
    background-color: rgba(229, 193, 88, 0.08) !important;
    color: #e5c158 !important;
    box-shadow: 0 0 16px rgba(229, 193, 88, 0.45) !important;
    font-weight: 700;
}

/* Price Box */
.pw-price-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pw-price-dash {
    color: #d4af37;
    font-weight: 700;
}

.pw-price-min,
.pw-price-max {
    width: 50%;
    text-align: center;
}

/* Filter Action Buttons */
.pw-filter-more-toggle,
.pw-filter-reset-group {
    flex: 0 0 auto;
    min-width: auto;
}

.pw-btn-more-filters {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: #11141c;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    color: #e5c158;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pw-btn-more-filters:hover,
.pw-btn-more-filters.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #e5c158;
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.3);
}

.pw-more-arrow {
    transition: transform 0.25s ease;
}

.pw-btn-more-filters.active .pw-more-arrow {
    transform: rotate(180deg);
}

.pw-btn-reset-filters {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pw-btn-reset-filters:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

/* Mobile Filter Toggle Button (<768px) */
.pw-mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.pw-mobile-filter-toggle:hover {
    border-color: #e5c158;
    background: #11141c;
}

.pw-active-filter-badge {
    background: #e5c158;
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* AJAX Loader Overlay */
.pw-gallery-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: 16px;
}

.pw-gallery-loader.active {
    opacity: 1;
    pointer-events: auto;
}

.pw-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(212, 175, 55, 0.2);
    border-top-color: #e5c158;
    border-radius: 50%;
    animation: pwSpin 0.8s linear infinite;
    box-shadow: 0 0 15px rgba(229, 193, 88, 0.4);
}

@keyframes pwSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pw-loader-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e5c158;
    letter-spacing: 0.03em;
}

/* No Products Found Message */
.pw-no-products {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background: #0a0a0a;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pw-btn-reset-inline {
    margin-top: 8px;
}

/* Mobile Off-Canvas / Drawer (<768px) */
@media (max-width: 767px) {
    .pw-mobile-filter-toggle {
        display: flex;
    }

    .pw-filter-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #0a0a0a;
        border-left: 2px solid #d4af37;
        border-radius: 0;
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 24px 20px;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    }

    .pw-filter-bar-container.pw-filter-open .pw-filter-panel {
        right: 0;
    }

    .pw-filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .pw-filter-panel-header h3 {
        font-size: 1.1rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0;
    }

    .pw-filter-close-btn {
        background: transparent;
        border: none;
        color: #d4af37;
        font-size: 1.8rem;
        cursor: pointer;
        line-height: 1;
    }

    .pw-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .pw-filter-bar-container.pw-filter-open .pw-filter-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .pw-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pw-filter-group {
        width: 100%;
    }
}

/* Swiper Outer Container with Safe Edge Padding for Arrows */
.pw-swiper-outer {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.pw-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e5c158;
    border: 2px solid #f5d77f;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 193, 88, 0.5);
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.pw-swiper-btn svg {
    stroke: #0a0a0a;
    stroke-width: 3;
}

.pw-swiper-prev { left: 0px; }
.pw-swiper-next { right: 0px; }

.pw-swiper-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.85);
}

.pw-swiper-btn.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: pointer !important;
}

/* Swiper Container & Equal Height Grid */
.pw-product-swiper {
    padding: 6px 2px 14px 2px;
    overflow: hidden;
}

.pw-product-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.pw-slide-item {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Premium Card Layout (#0a0a0a, Gold Border & Outer Glow) */
.pw-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.pw-card:hover {
    border-color: #f5d77f;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
}

/* 1. Clean Display Window Photo Container (#08090c) */
.pw-card-media {
    position: relative;
    padding: 14px;
    background: #08090c;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pw-main-image-wrap,
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%; /* Proportional aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #08090c;
    background-color: #08090c;
    cursor: pointer;
}

.pw-main-image,
.product-image,
.main-product-image,
.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    padding: 8px;
    transition: transform 0.4s ease-in-out, opacity 0.25s ease;
    will-change: transform;
    z-index: 1;
}

/* Prevent duplicate image layers */
.pw-main-image-wrap img:not(.pw-main-image) {
    display: none !important;
}

/* Hover Zoom ONLY on Devices with Fine Pointer / Mouse (Desktop) */
@media (hover: hover) {
    .pw-main-image-wrap:hover .pw-main-image {
        transform: scale(1.08);
    }

    .pw-main-image-wrap:hover .pw-zoom-icon {
        opacity: 1;
        transform: scale(1);
    }
}

/* Magnifier Zoom Icon on Top Right */
.pw-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    cursor: pointer;
}

.pw-zoom-icon:hover {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #fce08b;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}

/* Lightbox Full-Size Photo Modal */
.pw-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 9, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.pw-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pw-lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pw-lightbox-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.25);
}

.pw-lightbox-img {
    max-width: 82vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.pw-lightbox-title {
    margin-top: 12px;
    color: #fce08b;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.pw-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    color: #fce08b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.pw-lightbox-close:hover {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #fce08b;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
    transform: scale(1.1);
}

/* Hover Zoom Magnifier */
.pw-zoom-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: 10px;
    z-index: 3;
}

.pw-main-image-wrap:hover .pw-zoom-result {
    opacity: 1;
}

.pw-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}

.pw-zoom-icon:hover {
    background: #d4af37;
    color: #0b0d10;
    border-color: #d4af37;
}

.pw-zoom-icon:hover {
    background: #d4af37;
    color: #0b0d10;
    border-color: #d4af37;
}

/* 3 Thumbnails Container */
.pw-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.pw-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    background: #06070a;
    padding: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
}

.pw-thumb:hover,
.pw-thumb.active {
    border-color: #e5c158;
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.6);
    transform: scale(1.06);
}

/* Card Content Distribution */
.pw-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
    gap: 10px;
    justify-content: space-between;
}

/* 2. Product Title (Soft White, 1-2 lines) */
.pw-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pw-card-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pw-card-title a:hover {
    color: #e5c158;
}

/* 3. Price & Warranty Single Line (Matte Gold Accent) */
.pw-price-warranty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
    margin: 2px 0;
}

.pw-price-tag .amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e5c158;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.pw-warranty-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e5c158;
    background: rgba(212, 175, 55, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* 4. Compact Specs Spoiler (Hidden by default) */
.pw-specs-spoiler {
    margin: 2px 0;
}

.pw-spoiler-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0e1015;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    list-style: none;
}

.pw-spoiler-btn::-webkit-details-marker,
.pw-spoiler-btn::marker {
    display: none;
}

.pw-spoiler-btn:hover {
    color: #f8fafc;
    border-color: #d4af37;
    background: #141720;
}

.pw-spoiler-arrow {
    color: #d4af37;
    transition: transform 0.25s ease;
}

details[open] .pw-spoiler-arrow {
    transform: rotate(180deg);
}

.pw-specs-content {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-specs-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #0e1015;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 0.78rem;
}

.pw-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.35;
}

.pw-spec-key {
    color: #94a3b8;
    font-weight: 500;
}

.pw-spec-val {
    color: #e2e8f0;
    font-weight: 600;
    text-align: right;
}

.pw-info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
    background: rgba(212, 175, 55, 0.04);
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #d4af37;
}

.pw-info-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pw-stock-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5c158;
    box-shadow: 0 0 6px #e5c158;
    display: inline-block;
}

/* 5. Full Width Primary CTA Button (#0b5538) */
.pw-card-actions {
    margin-top: auto;
    padding-top: 6px;
}

.pw-btn-buy-full {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    background: #0b5538;
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 16px rgba(11, 85, 56, 0.6);
    text-decoration: none;
    transition: all 0.25s ease;
}

.pw-btn-buy-full:hover {
    background: #0e6b45;
    border-color: #e5c158;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(14, 107, 69, 0.8), 0 0 15px rgba(229, 193, 88, 0.3);
}

/* Lightbox Modal */
.pw-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 10, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.pw-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.pw-lightbox-content {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.pw-lightbox.active .pw-lightbox-content {
    transform: scale(1);
}

.pw-lightbox-title {
    margin-top: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.pw-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pw-lightbox-close:hover {
    background: #d4af37;
    color: #0b0d10;
    border-color: #d4af37;
}

/* Mobile Responsiveness (<768px) */
@media (max-width: 768px) {
    .pw-gallery-wrapper.pw-dark-mode {
        padding: 16px 10px;
        margin: 16px auto;
        border-radius: 16px;
    }

    .pw-gallery-heading {
        font-size: 1.2rem;
    }

    .pw-swiper-outer {
        padding: 0;
    }

    .pw-swiper-prev { left: 2px; }
    .pw-swiper-next { right: 2px; }

    .pw-swiper-btn {
        width: 38px;
        height: 38px;
    }

    .pw-card-content {
        padding: 12px;
        gap: 8px;
    }

    .pw-card-title {
        font-size: 0.98rem;
        min-height: auto;
    }

    .pw-price-tag .amount {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   Interactive Product Gallery Filter (Lux Dark Theme #0a0a0a & #d4af37)
   ========================================================================== */

/* 1. Top Bar Filter Wrapper (Desktop) */
.pw-filter-bar {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto 20px auto;
    padding: 0 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pw-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.pw-filter-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Select Controls */
.pw-filter-select,
.pw-mobile-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #0a0a0a;
    border: 1.5px solid #d4af37;
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 36px 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    outline: none;
}

.pw-filter-select:hover,
.pw-mobile-select:hover,
.pw-filter-select:focus,
.pw-mobile-select:focus {
    border-color: #f5d77f;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

/* Active Glow Effect for Selected Filters */
.pw-filter-select.is-active,
.pw-mobile-select.is-active,
.pw-filter-btn.is-active {
    background-color: #12151e !important;
    border-color: #f5d77f !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.55), 0 0 4px #d4af37 !important;
}

/* Price Range Filter Component */
.pw-filter-price-wrap {
    position: relative;
}

.pw-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0a0a0a;
    border: 1.5px solid #d4af37;
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pw-filter-btn:hover {
    border-color: #f5d77f;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.pw-filter-label {
    color: #94a3b8;
    font-weight: 500;
}

.pw-price-value-text {
    color: #d4af37;
    font-weight: 700;
}

/* Price Range Popover */
.pw-price-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    width: 280px;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.25);
    display: none;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.pw-price-popover.active {
    display: flex;
    animation: pwFadeIn 0.2s ease-out;
}

@keyframes pwFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pw-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pw-price-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pw-price-field label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pw-price-input {
    width: 100%;
    background: #141720;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.pw-price-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Dual Range Slider Component */
.pw-dual-range-container {
    position: relative;
    height: 6px;
    margin: 8px 0 4px 0;
}

.pw-slider-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
}

.pw-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    height: 100%;
}

.pw-range-input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #ffffff;
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transition: transform 0.15s ease;
}

.pw-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #f5d77f;
}

.pw-range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #ffffff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Action Buttons: "Більше фільтрів" & "Скинути" */
.pw-btn-more-filters {
    background: transparent;
    border: 1.5px dashed rgba(212, 175, 55, 0.45);
    color: #d4af37;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pw-btn-more-filters:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #ffffff;
}

.pw-btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pw-btn-reset-filters:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

/* Secondary Filters Container */
.pw-secondary-filters {
    padding-top: 4px;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
}

/* Mobile Filter Trigger Button (<768px) */
.pw-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: #0a0a0a;
    border: 1.5px solid #d4af37;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.2);
    transition: all 0.25s ease;
}

.pw-mobile-filter-btn:hover {
    border-color: #f5d77f;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.pw-filter-badge {
    background: #d4af37;
    color: #0a0a0a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Off-Canvas Drawer Modal */
.pw-filter-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pw-filter-offcanvas.active {
    opacity: 1;
    pointer-events: auto;
}

.pw-offcanvas-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
}

.pw-offcanvas-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 88vw;
    max-width: 380px;
    height: 100%;
    background: #0a0a0a;
    border-left: 1.5px solid #d4af37;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.pw-filter-offcanvas.active .pw-offcanvas-content {
    transform: translateX(0);
}

.pw-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pw-offcanvas-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.pw-offcanvas-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pw-offcanvas-close:hover {
    background: #d4af37;
    color: #0b0d10;
}

.pw-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pw-mobile-field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-mobile-field-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pw-offcanvas-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #08090c;
}

.pw-btn-apply-mobile {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #0b5538;
    border: 1px solid #d4af37;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 85, 56, 0.6);
}

.pw-btn-reset-mobile {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

/* AJAX Spinner Loader Overlay */
.pw-gallery-loader {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(5px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pw-gallery-loader.active {
    opacity: 1;
    pointer-events: auto;
}

.pw-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: pwSpin 0.75s linear infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

@keyframes pwSpin {
    to { transform: rotate(360deg); }
}

/* No Products Found Block (Luxury Glassmorphism Dark Theme) */
.pw-no-products {
    width: 100%;
    max-width: 640px;
    margin: 30px auto;
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    gap: 16px;
    background: rgba(10, 10, 10, 0.85);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pw-no-products svg {
    color: #d4af37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
}

.pw-no-products:hover svg {
    transform: scale(1.08) rotate(-5deg);
}

.pw-no-products h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.pw-no-products p {
    margin: 0;
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 420px;
    line-height: 1.5;
}

.pw-btn-reset-inline {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1.5px solid #d4af37;
    color: #fce08b;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.pw-btn-reset-inline:hover {
    background: linear-gradient(135deg, #fce08b 0%, #d4af37 100%);
    color: #0a0a0a;
    border-color: #fce08b;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.pw-btn-reset-inline svg {
    color: inherit;
    filter: none;
}

/* Faceted Search Disabled Options Styling */
.pw-filter-select option:disabled,
.pw-mobile-select option:disabled,
option.is-disabled-facet {
    color: #64748b !important;
    background-color: #161920 !important;
    opacity: 0.5 !important;
}

/* Responsiveness (<768px) Overrides for Filters */
@media (max-width: 768px) {
    .pw-filter-bar {
        padding: 0 10px;
    }

    .pw-filter-group:not(.pw-mobile-filter-btn-wrap),
    .pw-btn-more-filters,
    .pw-btn-reset-filters,
    .pw-secondary-filters {
        display: none !important;
    }

    .pw-mobile-filter-btn {
        display: inline-flex !important;
    }
}


