/*
 * PWD WC Product Archive Pro - Frontend Styles
 * Version: 1.0.3
 */

/* ============================================================
   RESET / BASE
============================================================ */
.pwd-wpa-archive-wrap *,
.pwd-wpa-filter-wrap *,
.pwd-wpa-qv-overlay * {
    box-sizing: border-box;
}

.pwd-wpa-hidden {
    display: none !important;
}

/* ============================================================
   GRID LAYOUTS
============================================================ */
.pwd-wpa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.pwd-wpa-layout--list {
    grid-template-columns: 1fr;
}

/* Masonry via CSS columns */
.pwd-wpa-masonry {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

.pwd-wpa-masonry .pwd-wpa-product {
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

/* ============================================================
   PRODUCT CARD
============================================================ */
.pwd-wpa-product {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Same height */
.pwd-wpa-product--same-height {
    height: 100%;
}

.pwd-wpa-product--same-height .pwd-wpa-product__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwd-wpa-product--same-height .pwd-wpa-product__actions {
    margin-top: auto;
}

/* List layout */
.pwd-wpa-layout--list .pwd-wpa-product {
    flex-direction: row;
}

.pwd-wpa-layout--list .pwd-wpa-product__image {
    width: 280px;
    flex-shrink: 0;
}

.pwd-wpa-layout--list .pwd-wpa-product__content {
    flex: 1;
    padding: 20px;
}

/* ── Image ── */
.pwd-wpa-product__image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.pwd-wpa-product__image-link {
    display: block;
    overflow: hidden;
}

.pwd-wpa-product__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Secondary image */
.pwd-wpa-img--secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pwd-wpa-product--has-secondary:hover .pwd-wpa-img--primary {
    opacity: 0;
}

.pwd-wpa-product--has-secondary:hover .pwd-wpa-img--secondary {
    opacity: 1;
}

/* ── Hover Effects ── */
.pwd-wpa-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.pwd-wpa-hover-zoom:hover .pwd-wpa-img--primary {
    transform: scale(1.06);
}

.pwd-wpa-hover-overlay .pwd-wpa-product__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.pwd-wpa-hover-overlay:hover .pwd-wpa-product__image::after {
    background: rgba(0,0,0,0.18);
}

.pwd-wpa-hover-border:hover {
    border-color: #2271b1;
}

/* ── Content ── */
.pwd-wpa-product__content {
    padding: 16px;
}

.pwd-wpa-product__cats {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 6px;
}

.pwd-wpa-product__cats a {
    color: inherit;
    text-decoration: none;
}

.pwd-wpa-product__cats a:hover {
    color: #2271b1;
}

.pwd-wpa-product__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.pwd-wpa-product__title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s;
}

.pwd-wpa-product__title a:hover {
    color: #2271b1;
}

.pwd-wpa-product__rating {
    margin-bottom: 8px;
}

.pwd-wpa-product__rating .star-rating {
    font-size: 13px;
}

.pwd-wpa-product__price {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    /* No hardcoded color here — Elementor controls this via the Price style section */
}

/*
 * Full WooCommerce price HTML structure (WC 7+):
 *
 * <span class="price">
 *   <span class="woocommerce-Price-amount amount">
 *     <bdi>
 *       <span class="woocommerce-Price-currencySymbol">R</span>
 *       800,00
 *     </bdi>
 *   </span>
 * </span>
 *
 * "bdi" holds the actual visible text — it MUST be targeted explicitly.
 * All children set to inherit so the Elementor color flows all the way down.
 */
.pwd-wpa-product__price .price,
.pwd-wpa-product__price .price .woocommerce-Price-amount,
.pwd-wpa-product__price .price .amount,
.pwd-wpa-product__price .price bdi,
.pwd-wpa-product__price .price .woocommerce-Price-currencySymbol {
    color: inherit !important;
}

.pwd-wpa-product__price .price del,
.pwd-wpa-product__price .price del .woocommerce-Price-amount,
.pwd-wpa-product__price .price del .amount,
.pwd-wpa-product__price .price del bdi,
.pwd-wpa-product__price .price del .woocommerce-Price-currencySymbol {
    color: #999;
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 4px;
    text-decoration: line-through;
}

.pwd-wpa-product__price .price del bdi,
.pwd-wpa-product__price .price del .woocommerce-Price-amount,
.pwd-wpa-product__price .price del .amount {
    color: inherit !important;
}

.pwd-wpa-product__price .price ins,
.pwd-wpa-product__price .price ins .woocommerce-Price-amount,
.pwd-wpa-product__price .price ins .amount,
.pwd-wpa-product__price .price ins bdi,
.pwd-wpa-product__price .price ins .woocommerce-Price-currencySymbol {
    text-decoration: none;
    color: #e74c3c;
}

.pwd-wpa-product__price .price ins bdi,
.pwd-wpa-product__price .price ins .woocommerce-Price-amount,
.pwd-wpa-product__price .price ins .amount {
    color: inherit !important;
}

.pwd-wpa-product__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ── Actions ── */
.pwd-wpa-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Add to Cart Button ── */
.pwd-wpa-btn {
    display: inline-block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.pwd-wpa-btn--cart,
.pwd-wpa-btn--view {
    background-color: #2271b1;
    color: #fff !important;
    border-color: #2271b1;
}

.pwd-wpa-btn--cart:hover,
.pwd-wpa-btn--view:hover {
    background-color: #135e96;
    color: #fff !important;
    border-color: #135e96;
}

.pwd-wpa-btn--cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pwd-wpa-btn--cart.added {
    background-color: #46b450;
    border-color: #46b450;
}

/* ── Quick View Button ── */
.pwd-wpa-quick-view {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(255,255,255,0.95);
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.pwd-wpa-product:hover .pwd-wpa-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Badges ── */
.pwd-wpa-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/*
 * Fix 2: Hide WooCommerce's native .onsale / .woocommerce-badge span
 * inside our product cards so only our plugin badges display.
 */
.pwd-wpa-product .onsale,
.pwd-wpa-product span.onsale,
.pwd-wpa-product .woocommerce-badge {
    display: none !important;
}

.pwd-wpa-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 3px;
    line-height: 1.5;
    text-transform: uppercase;
}

.pwd-wpa-badge--sale {
    background-color: #e74c3c;
    color: #fff;
}

.pwd-wpa-badge--oos {
    background-color: #777;
    color: #fff;
}

.pwd-wpa-badge--new {
    background-color: #2ecc71;
    color: #fff;
}

.pwd-wpa-badge--featured {
    background-color: #f39c12;
    color: #fff;
}

/* ── Vendor ── */
.pwd-wpa-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pwd-wpa-vendor-logo-img {
    max-width: 40px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.pwd-wpa-vendor-name,
.pwd-wpa-vendor-name-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.pwd-wpa-vendor-name-link:hover {
    text-decoration: underline;
}

/* ── Third-Party Hooks ── */
.pwd-wpa-tp-hooks {
    width: 100%;
}

.pwd-wpa-tp-hooks a,
.pwd-wpa-tp-hooks button,
.pwd-wpa-tp-hooks input[type="submit"] {
    display: inline-block;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px;
}

.pwd-wpa-tp-hooks a:hover,
.pwd-wpa-tp-hooks button:hover,
.pwd-wpa-tp-hooks input[type="submit"]:hover {
    background: #e9e9e9;
    color: #111;
}

/* ── No products ── */
.pwd-wpa-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: #777;
    font-size: 15px;
}

/* ============================================================
   LOAD MORE / INFINITE SCROLL
============================================================ */
.pwd-wpa-load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.pwd-wpa-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.pwd-wpa-load-more:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.pwd-wpa-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pwd-wpa-infinite-sentinel {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

/* ============================================================
   SPINNER
============================================================ */
.pwd-wpa-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pwd-wpa-spin 0.7s linear infinite;
    vertical-align: middle;
}

.pwd-wpa-filter-wrap .pwd-wpa-spinner {
    border-color: rgba(34,113,177,0.3);
    border-top-color: #2271b1;
}

@keyframes pwd-wpa-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   SKELETON LOADING
============================================================ */
.pwd-wpa-product--skeleton {
    pointer-events: none;
    animation: pwd-wpa-skeleton-pulse 1.4s ease-in-out infinite;
}

.pwd-wpa-product--skeleton .pwd-wpa-product__image,
.pwd-wpa-product--skeleton .pwd-wpa-product__title,
.pwd-wpa-product--skeleton .pwd-wpa-product__price,
.pwd-wpa-product--skeleton .pwd-wpa-btn {
    background: #e8e8e8;
    color: transparent !important;
    border-color: transparent;
    border-radius: 4px;
}

@keyframes pwd-wpa-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ============================================================
   FILTER WIDGETS - SHARED
============================================================ */
.pwd-wpa-filter-wrap {
    margin-bottom: 24px;
}

.pwd-wpa-filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #222;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* List */
.pwd-wpa-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pwd-wpa-filter-list li {
    margin-bottom: 6px;
}

.pwd-wpa-filter-list li a,
.pwd-wpa-filter-list li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.pwd-wpa-filter-list li a:hover,
.pwd-wpa-filter-list li.active a {
    color: #2271b1;
}

.pwd-wpa-filter-list .count {
    font-size: 11px;
    color: #999;
}

/* Children (subcategories) */
.pwd-wpa-filter-list--children {
    padding-left: 16px;
    margin-top: 4px;
}

/* Checkboxes */
.pwd-wpa-checkbox,
.pwd-wpa-radio {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2271b1;
}

/* Buttons */
.pwd-wpa-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pwd-wpa-filter-btn {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f7f7f7;
    color: #444;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.5;
}

.pwd-wpa-filter-btn:hover,
.pwd-wpa-filter-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Select / Dropdown */
.pwd-wpa-filter-select,
.pwd-wpa-sortby-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

/* ============================================================
   PRICE RANGE FILTER
============================================================ */
.pwd-wpa-price-slider-widget {
    padding: 8px 4px;
}

.pwd-wpa-price-slider {
    margin-bottom: 16px;
    height: 4px;
}

/* noUiSlider overrides */
.noUi-target {
    background: #e5e5e5;
    border: none;
    box-shadow: none;
    height: 4px;
    border-radius: 2px;
}

.noUi-connects {
    border-radius: 2px;
}

.noUi-connect {
    background: #2271b1;
}

.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    top: -7px !important;
    right: -9px !important;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #2271b1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: grab;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

.pwd-wpa-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.pwd-wpa-price-from,
.pwd-wpa-price-to {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    flex: 1;
}

.pwd-wpa-currency {
    color: #888;
    font-size: 12px;
}

.pwd-wpa-price-min,
.pwd-wpa-price-max {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #333;
    background: transparent;
    padding: 0;
}

.pwd-wpa-price-sep {
    color: #aaa;
    flex-shrink: 0;
}

.pwd-wpa-price-filter-btn {
    width: 100%;
    padding: 8px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pwd-wpa-price-filter-btn:hover {
    background: #135e96;
}

/* Price readout for slider-only mode */
.pwd-wpa-price-readout {
    font-size: 13px;
    color: #444;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ============================================================
   RATING FILTER
============================================================ */
.pwd-wpa-rating-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    transition: color 0.2s;
}

.pwd-wpa-rating-link:hover {
    color: #2271b1;
}

.pwd-wpa-star {
    color: #ddd;
    font-size: 16px;
    transition: color 0.15s;
}

.pwd-wpa-star--filled {
    color: #f5a623;
}

.pwd-wpa-rating-item.active .pwd-wpa-rating-link {
    color: #2271b1;
    font-weight: 600;
}

/* ============================================================
   ATTRIBUTE SWATCHES
============================================================ */
.pwd-wpa-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pwd-wpa-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    font-size: 10px;
    text-align: center;
    line-height: 24px;
    overflow: hidden;
}

.pwd-wpa-swatch:hover {
    transform: scale(1.1);
    border-color: #999;
}

.pwd-wpa-swatch.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.3);
}

/* ============================================================
   TAG CLOUD
============================================================ */
.pwd-wpa-filter-tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pwd-wpa-filter-tag-cloud .pwd-wpa-tag-item a {
    display: inline-block;
    padding: 4px 10px;
    background: #f2f2f2;
    color: #444;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pwd-wpa-filter-tag-cloud .pwd-wpa-tag-item a:hover,
.pwd-wpa-filter-tag-cloud .pwd-wpa-tag-item.active a {
    background: #2271b1;
    color: #fff;
}

/* ============================================================
   ACTIVE FILTERS
============================================================ */
.pwd-wpa-active-filters-wrap {
    margin-bottom: 16px;
}

.pwd-wpa-active-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pwd-wpa-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4fb;
    color: #2271b1;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #bdd5ef;
}

.pwd-wpa-tag-remove {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.15s;
}

.pwd-wpa-tag-remove:hover {
    color: #c00;
}

.pwd-wpa-clear-all {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #fff;
    color: #c00;
    border: 1px solid #f5c6c6;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pwd-wpa-clear-all:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* ============================================================
   SORT BY
============================================================ */
.pwd-wpa-sortby-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pwd-wpa-sortby-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.pwd-wpa-sortby-select {
    flex: 1;
    min-width: 160px;
}

/* ============================================================
   RESULTS COUNT
============================================================ */
.pwd-wpa-results-count {
    font-size: 13px;
    color: #777;
    margin: 0 0 16px;
}

/* ============================================================
   QUICK VIEW MODAL
============================================================ */
.pwd-wpa-qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pwd-wpa-fade-in 0.2s ease;
}

@keyframes pwd-wpa-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pwd-wpa-qv-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    animation: pwd-wpa-slide-up 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes pwd-wpa-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.pwd-wpa-qv-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    z-index: 1;
}

.pwd-wpa-qv-close:hover {
    color: #111;
}

.pwd-wpa-qv-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.pwd-wpa-qv-loading .pwd-wpa-spinner {
    width: 36px;
    height: 36px;
    border-color: rgba(34,113,177,0.2);
    border-top-color: #2271b1;
}

.pwd-wpa-qv-content {
    display: none;
}

.pwd-wpa-qv-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Gallery */
.pwd-wpa-qv-gallery {}

.pwd-wpa-qv-main-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.pwd-wpa-qv-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pwd-wpa-qv-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pwd-wpa-qv-thumb.active,
.pwd-wpa-qv-thumb:hover {
    border-color: #2271b1;
}

/* Details */
.pwd-wpa-qv-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pwd-wpa-qv-title a {
    color: #1e1e1e;
    text-decoration: none;
}

.pwd-wpa-qv-rating {
    margin-bottom: 10px;
}

.pwd-wpa-qv-price {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.pwd-wpa-qv-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
}

.pwd-wpa-qv-meta {
    font-size: 13px;
    color: #777;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwd-wpa-qv-meta strong {
    color: #444;
}

.pwd-wpa-qv-view-full {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: #2271b1;
    text-decoration: underline;
}

/* ============================================================
   MOBILE OFF-CANVAS FILTER
============================================================ */
.pwd-wpa-mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
}

.pwd-wpa-offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,0.5);
}

.pwd-wpa-offcanvas-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    padding: 24px 20px;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.pwd-wpa-offcanvas-panel.is-open {
    left: 0;
}

.pwd-wpa-offcanvas-close {
    float: right;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    padding: 0;
    margin-bottom: 16px;
}

.pwd-wpa-offcanvas-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .pwd-wpa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pwd-wpa-masonry {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .pwd-wpa-grid {
        grid-template-columns: 1fr;
    }
    .pwd-wpa-masonry {
        column-count: 1;
    }
    .pwd-wpa-layout--list .pwd-wpa-product {
        flex-direction: column;
    }
    .pwd-wpa-layout--list .pwd-wpa-product__image {
        width: 100%;
    }
    .pwd-wpa-mobile-filter-toggle {
        display: flex;
    }
    .pwd-wpa-qv-inner {
        grid-template-columns: 1fr;
    }
    .pwd-wpa-qv-modal {
        padding: 24px 16px;
    }
}

/* ============================================================
   HELLO ELEMENTOR COMPATIBILITY
============================================================ */
.elementor-widget-pwd_wpa_product_archive .woocommerce-loop-product__link,
.elementor-widget-pwd_wpa_product_archive .button {
    text-decoration: none;
}

/* YITH Wishlist / Compare compatibility */
.elementor-widget-pwd_wpa_product_archive .yith-wcwl-add-to-wishlist,
.elementor-widget-pwd_wpa_product_archive .compare-button {
    margin: 0;
    display: inline-flex;
}

/* WPC Composite / Bundled compatibility */
.pwd-wpa-tp-hooks .added_to_cart {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    color: #46b450;
    font-weight: 600;
}
