/*
Theme Name:   Vineta Child Theme
Description:  Write here a brief description about your child-theme
Author:       Themesflat
Author URL:   https://themesflat.co/fashion-vineta/
Template:     vineta
Version:      1.0.0
Tested up to: 5.8.1
Requires PHP: 5.6
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  vineta-child-theme
*/

/* Style 6 Cards - Apply same styles as Elementor but without wrapper requirement */

/* Fix swiper slide width */
.swiper-slide:has(.card-product.style-6) {
    width: 345px !important;
    max-width: 345px !important;
}

/* Center navigation buttons vertically */
.fl-control-sw2:has(.card-product.style-6) .nav-next-bought,
.fl-control-sw2:has(.card-product.style-6) .nav-prev-bought {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Hide page title/breadcrumb section globally */
.tf-page-title.parallax {
    display: none !important;
}

/* Hide Compare, Share and Add to wishlist buttons on product page */
.single-product .tf-product-info-item-compare,
.single-product .tf-product-info-item-share,
.single-product .tf-product-info-item-wishlist,
.single-product .wcboost-wishlist-button,
.single-product .wcboost-products-compare-button,
.single-product .tf-btn-share,
.single-product .tf-product-info-extra-link,
.single-product .tf-compare-btn,
.single-product .product-extra-icon {
    display: none !important;
}

/* Hide quantity selector and Buy Now button */
.single-product .quantity,
.single-product .tf-product-info-quantity,
.single-product .tf-btn-buy-now,
.single-product .buy-now,
.single-product a.tf-btn.btn-fill.animate-hover-btn.radius-3.tf-btn-buy-now {
    display: none !important;
}

/* Hide "More payment options" */
.single-product .tf-more-payment-options,
.single-product .payment-more-option,
.single-product .more-choose-payment,
.single-product a.more-choose-payment {
    display: none !important;
}

/* Hide "Clear" button on variation selectors */
.single-product .reset_variations,
.single-product a.reset_variations {
    display: none !important;
}

/* Center text */
.card-product.style-6 .card-product-info,
.card-product.style-6 .card-product-info .type,
.card-product.style-6 .card-product-info .name-product {
    text-align: center !important;
}

/* Center price */
.card-product.style-6 .card-product-info .price-wrap,
.card-product.style-6 .price-wrap {
    justify-content: center !important;
    display: flex !important;
}

/* Red sale price */
.card-product.style-6 .price-wrap ins,
.card-product.style-6 .price-wrap ins .woocommerce-Price-amount,
.card-product.style-6 ins {
    color: #ff6f61 !important;
}

/* Fixed image height */
.card-product.style-6 .card-product-wrapper img,
.card-product.style-6 .card-product-wrapper .img-product,
.card-product.style-6 .card-product-wrapper .img-hover {
    height: 207.26px !important;
    max-height: 207.26px !important;
    object-fit: contain !important;
}

/* Hide ALL buttons and hover icons */
.card-product.style-6 .list-product-btn,
.card-product.style-6 ul.list-product-btn,
.card-product.style-6 .list-product-btn li,
.card-product.style-6 .list-product-btn li a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.card-product.style-6 .cls-btn,
.card-product.style-6 div.cls-btn,
.card-product.style-6 .cls-btn a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide wishlist, compare, quickview, cart icons */
.card-product.style-6 .box-icon,
.card-product.style-6 .hover-tooltip,
.card-product.style-6 .add-to-cart,
.card-product.style-6 .wishlist,
.card-product.style-6 .compare,
.card-product.style-6 .quickview {
    display: none !important;
    visibility: hidden !important;
}

/* Hide "Elevate Your Style" banner in filter sidebar */
.tf-shop-sidebar .banner-gr-style-2,
.tf-shop-sidebar .tf-banner-content,
.offcanvas-filter .banner-gr-style-2,
.offcanvas-filter .tf-banner-content,
.offcanvas .banner-gr-style-2,
.widget_tf_banner,
.sidebar-product .banner-gr-style-2,
.tf-col-sidebar .banner-gr-style-2,
#block-34,
.widget_block .sb-banner,
.canvas-sidebar #block-34,
.offcanvas #block-34 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide shopping cart cross-sell recommendations */
.tf-minicart-recommendations {
    display: none !important;
}

/* Hide "View cart" button in mini cart (keep only checkout button) */
.tf-mini-cart-view-checkout a[href*="/cart/"] {
    display: none !important;
}

/* Hide order note and shipping calculator in mini cart */
.tf-mini-cart-tool,
.tf-mini-cart-tool-btn.btn-add-note,
.tf-mini-cart-tool-btn.btn-estimate-shipping {
    display: none !important;
}

/* WooCommerce Blocks Checkout - Clean up payment section */

/* Remove black border around payment options */
.wc-block-components-radio-control-accordion-option {
    border: none !important;
    box-shadow: none !important;
}

/* Show shipping method labels (override any hiding) */
.wc-block-checkout__shipping-option .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__label,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label {
    display: inline-block !important;
    visibility: visible !important;
}

/* Hide "Stripe" label/header - but ONLY in payment methods section */
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__label-group,
.wp-block-woocommerce-checkout-payment-block #radio-control-wc-payment-method-options-stripe__label,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option .wc-block-components-radio-control__label {
    display: none !important;
}

/* Hide "Gem betalingsoplysninger..." checkbox */
.wc-block-components-payment-methods__save-card-info,
.wc-block-components-checkbox.wc-block-components-payment-methods__save-card-info {
    display: none !important;
}

/* Remove top border from product form */
form.cart.tf-product-total-quantity {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Checkout page support section spacing */
.woocommerce-checkout .tf-icon-carousel-inner {
    margin-top: 20px;
}

/* Hide order notes section completely on checkout */
.woocommerce-checkout .wc-block-checkout__order-notes,
.woocommerce-checkout #order-notes,
.woocommerce-checkout .wc-block-checkout__add-note,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block {
    display: none !important;
}

/* Hide subtotal line in checkout order summary */
.wp-block-woocommerce-checkout-order-summary-subtotal-block {
    display: none !important;
}

/* Hide coupon section on checkout */
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.woocommerce-checkout .wc-block-components-totals-coupon {
    display: none !important;
}

/* Hide promo banner on checkout page */
.woocommerce-checkout .fricykler-promo-banner {
    display: none !important;
}

/* Reduce spacing on checkout page */
.woocommerce-checkout #themesflat-content {
    padding-top: 20px !important;
    padding-bottom: 60px !important;
}

@media (max-width: 991px) {
    .woocommerce-checkout #themesflat-content {
        padding-top: 0 !important;
        padding-bottom: 40px !important;
    }

    /* Remove padding from checkout block on mobile */
    .woocommerce-checkout .wp-block-woocommerce-checkout {
        padding-top: 0 !important;
    }

    /* Fix checkout element order on mobile - use grid to reorder */
    .woocommerce-checkout .wc-block-components-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Express payment first */
    .woocommerce-checkout .wc-block-components-express-payment {
        grid-row: 1 !important;
    }

    /* Form fields after express payment */
    .woocommerce-checkout fieldset {
        grid-row: auto !important;
    }

    /* Order summary after all form fields */
    .woocommerce-checkout .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block {
        grid-row: 100 !important;
    }

    /* Terms after order summary */
    .woocommerce-checkout .wc-block-checkout__terms {
        grid-row: 101 !important;
    }

    /* Hide all support sections on mobile by default */
    .woocommerce-checkout .checkout-support-added {
        display: none !important;
    }

    /* Show only one support section after terms */
    .woocommerce-checkout .wc-block-checkout__actions .checkout-support-added:first-of-type {
        display: block !important;
        grid-row: 102 !important;
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }

    /* Button row last */
    .woocommerce-checkout .wc-block-checkout__actions .wc-block-checkout__actions_row {
        grid-row: 103 !important;
    }

    /* Make actions a grid container too */
    .woocommerce-checkout .wc-block-checkout__actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Hide footer content on mobile for checkout page */
    .woocommerce-checkout .footer-body {
        display: none !important;
    }
}

/* Static Promo Banner - NO ANIMATIONS */
.fricykler-promo-banner {
    background-color: #FFD21E;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0;
    z-index: 999;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner-track {
    display: flex;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}

.promo-banner-item {
    display: none;
}

.promo-banner-item:first-child {
    display: inline-block;
}

.promo-banner-item a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    display: inline-block;
}

.promo-banner-item a:hover {
    text-decoration: none;
    color: #000000;
}

@media (max-width: 768px) {
    .fricykler-promo-banner {
        height: 40px;
        padding: 0 10px;
    }

    .promo-banner-item a {
        font-size: 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}

/* Product Page Support Banner */
.product-support-banner {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-support-banner .support-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.product-support-banner .support-icon svg {
    width: 24px;
    height: 24px;
}

.product-support-banner .support-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-support-banner .support-content {
    flex: 1;
}

.product-support-banner .support-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.product-support-banner .support-phone {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.product-support-banner .support-phone a {
    color: #FF6F61;
    text-decoration: none;
    font-weight: 500;
}

.product-support-banner .support-phone a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .product-support-banner {
        padding: 14px 16px;
        margin: 24px 0;
    }

    .product-support-banner .support-icon {
        width: 40px;
        height: 40px;
    }

    .product-support-banner .support-text {
        font-size: 14px;
    }

    .product-support-banner .support-phone {
        font-size: 13px;
    }
}

/* Size Guide Modal */
.size-guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.size-guide-modal-overlay.active {
    display: flex;
}

.size-guide-modal {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.size-guide-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.size-guide-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.size-guide-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s;
}

.size-guide-modal-close:hover {
    color: #1f2937;
}

.size-guide-modal-close svg {
    width: 24px;
    height: 24px;
}

.size-guide-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.size-guide-intro {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.size-guide-table th,
.size-guide-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.size-guide-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1f2937;
}

.size-guide-table td {
    color: #4b5563;
}

.size-guide-table tr:hover {
    background: #f8f9fa;
}

.size-guide-cta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.size-guide-cta h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.size-guide-cta p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.size-guide-cta a {
    color: #FF6F61;
    text-decoration: none;
    font-weight: 600;
}

.size-guide-cta a:hover {
    text-decoration: underline;
}

/* Size Guide Inline Link */
.size-guide-inline-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.size-guide-inline-link:hover {
    color: #FF6F61;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .size-guide-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .size-guide-modal-header,
    .size-guide-modal-body {
        padding: 20px;
    }

    .size-guide-table th,
    .size-guide-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}