.mfp-wqv .mfp-content {
    max-width: 1000px !important;
    width: 90% !important;
}

.sp-wqv-content {
    max-width: 1000px !important;
    max-height: min(92vh, 720px) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.wqv-product-images {
    width: 50% !important;
}
.wqv-product-images img {
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    object-fit: cover;
}
.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.wqv-product-info {
    width: 50% !important;
    padding: 32px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'PT Mono', monospace;
}

.wqv-product-info .wqv-product-content {
    padding: 0 !important;
    overflow: visible !important;
}

/* WC variation price block — дублирует верхнюю цену */
.wqv-product-info .woocommerce-variation.single_variation,
.wqv-product-info .single_variation {
    display: none !important;
}

/* Qty скрыт: single=1, Abo=3/6 через JS */
.wqv-product-info .variations_form .quantity {
    display: none !important;
}

.wqv-product-info .woocommerce-variation-add-to-cart.variations_button {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Title */
.wqv-product-info .product_title {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

/* Price */
.wqv-product-info .price {
    font-family: 'PT Mono', monospace !important;
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
}
.wqv-product-info .price del {
    opacity: 0.5;
}

/* Description */
.wqv-product-info .woocommerce-product-details__short-description,
.wqv-product-info .woocommerce-product-details__short-description p {
    font-family: 'PT Mono', monospace !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 16px !important;
}

/* Ratings */
.wqv-product-info .woocommerce-product-rating {
    margin-bottom: 12px !important;
}

/* Variation dropdown -> hidden, replaced by JS buttons */
.wqv-product-info table.variations {
    display: none !important;
}

/* Purchase grid (variations + Abonnement) — aligned with single product */
.w22-qwv-purchase-grid {
    margin-bottom: 16px;
    padding-top: 8px;
}

.w22-qwv-purchase-grid .wqv-var-btn,
.w22-qwv-purchase-grid .wqv-sub-btn {
    padding: 0.125rem 0.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    white-space: nowrap;
}

.w22-qwv-purchase-grid .wqv-var-btn.is-active,
.w22-qwv-purchase-grid .wqv-sub-btn.is-active {
    opacity: 1;
    font-weight: 700;
}

.w22-purchase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    width: 100%;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
}

.w22-purchase-sep {
    color: #9ca3af;
    line-height: 1;
    user-select: none;
}

.w22-purchase-divider {
    grid-column: 1 / -1;
    border-top: 1px solid #d1d5db;
    width: 80%;
    margin: 0.65rem auto;
}

/* Legacy — keep if old markup cached */
.wqv-variation-buttons {
    display: none !important;
}

/* Add to cart button */
.wqv-product-info .single_add_to_cart_button,
.wqv-product-info .button {
    font-family: 'PT Mono', monospace !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    text-align: center !important;
}
.wqv-product-info .single_add_to_cart_button:hover,
.wqv-product-info .button:hover {
    background: #fff !important;
    color: #000 !important;
}

/* Close button */
.mfp-wqv .mfp-close {
    font-size: 28px !important;
    color: #000 !important;
    opacity: 0.6;
    right: 8px !important;
    top: 8px !important;
}
.mfp-wqv .mfp-close:hover {
    opacity: 1;
}

/* Product meta (SKU, categories) */
.wqv-product-info .product_meta {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* ===== FOOTER ACCORDION (MOBILE) ===== */

@media (max-width: 767px) {
    .footer-section {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 10px;
    }

    /* скрыть маленькие бордер-сепараторы под заголовками в мобилке */
    .footer-section > .w-\[15\%\],
    .footer-section > .w-\[20\%\] {
        display: none;
    }

    .footer-accordion-toggle {
        cursor: pointer;
    }

    .footer-accordion-icon {
        transition: transform 0.2s ease;
    }

    .footer-section.footer-open .footer-accordion-icon {
        transform: rotate(90deg);
    }

    .footer-section .footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        text-align: left;
        margin-top: 0.5rem;
    }

    .footer-section.footer-open .footer-accordion-content {
        max-height: 500px; /* достаточно для контента */
    }

    .footer-section .footer-accordion-content > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* всё содержимое аккордеона в мобилке выравниваем влево */
    .footer-section .footer-accordion-content .payment-icons,
    .footer-section .footer-accordion-content .w-24 {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-section .footer-accordion-content .w-24 {
        width: auto !important;
        text-align: left;
    }

    /* скрыть все маленькие бордер-сепараторы в секциях футера на мобилке */
    .footer-section .w-\[15\%\],
    .footer-section .w-\[20\%\] {
        display: none;
    }
}

@media (min-width: 768px) {
    .footer-accordion-icon {
        display: none;
    }

    .footer-section .footer-accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Mobile Quick View layout */
@media (max-width: 640px) {
    .sp-wqv-content {
        flex-direction: column !important;
        max-height: 90vh !important;
    }
    .wqv-product-images,
    .wqv-product-info {
        width: 100% !important;
    }
    .wqv-product-images {
        max-height: 250px;
    }
    .wqv-product-info {
        padding: 20px !important;
    }
}