/* ============================================
   VOLODONUM — WARIANTY PRODUKTU v6.3
   Plik: volodonum-variants.css

   v6.3: Tytuł, cena, wysyłka, opinie — nowa stylizacja
   v6.2: Modal przenoszony do body przez JS
   ============================================ */

/* ────────────────────────────────────────────
   LAYOUT — grupy wariantów POD SOBĄ
   ──────────────────────────────────────────── */
.product-variants {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-variants-item {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    clear: both;
}

.product-variants-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-variants-item .input-container {
    float: none !important;
}

.product-variants-item .form-control-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
}


/* ────────────────────────────────────────────
   KOLORY — duże swatche 52×52px
   ──────────────────────────────────────────── */
.product-variants-item .input-color {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.product-variants-item .input-container:has(.input-color),
[data-group-type="color"] .input-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.product-variants-item .input-container .color {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.product-variants-item .input-container .color:hover {
    border-color: #ccc;
    transform: scale(1.05);
}

.product-variants-item .input-color:checked + .color {
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.product-variants-item .input-color:checked + .color::after {
    content: '✓';
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.product-variants-item .input-color:checked + .color[style*="ffffff"]::after,
.product-variants-item .input-color:checked + .color[style*="FFFFFF"]::after,
.product-variants-item .input-color:checked + .color[style*="#fff"]::after {
    color: #333;
    text-shadow: none;
}

/* Nazwa koloru pod swatchem */
.product-variants-item .input-container:has(.input-color)::after,
[data-group-type="color"] .input-container::after {
    content: attr(title);
    font-size: 11px;
    color: #888;
    font-weight: 400;
    text-align: center;
}

.product-variants-item .input-container:has(.input-color:checked)::after {
    color: #ff6b00;
    font-weight: 600;
}

.product-variants-item .color .attribute-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Niedostępny kolor */
.product-variants-item .input-container.attribute-not-in-stock .color {
    opacity: 0.35;
}

.product-variants-item .input-container.attribute-not-in-stock .color::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #999;
    transform: rotate(-45deg);
    z-index: 1;
}


/* ────────────────────────────────────────────
   ROZMIARY — pill buttons
   ──────────────────────────────────────────── */
.product-variants-item .input-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.product-variants-item .radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 48px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    user-select: none;
    box-sizing: border-box;
}

.product-variants-item .radio-label:hover {
    border-color: #ff6b00;
    background: #fff9f5;
}

.product-variants-item .input-radio:checked + .radio-label,
.product-variants-item .radio-label.active {
    border-color: #ff6b00;
    background: #ff6b00;
    color: #fff;
}

.product-variants-item .input-container.attribute-not-in-stock .radio-label {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f5f5f5;
}


/* ── ERROR STATE ── */
.product-variants-item.size-error .radio-label {
    border-color: #e74c3c;
}

.product-variants-item.size-error .form-control-label {
    color: #e74c3c;
}

.size-error-message {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
}

.product-variants-item.size-error .size-error-message {
    display: flex;
}

@keyframes volo-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.product-variants-item.size-error ul {
    animation: volo-shake 0.5s ease;
}


/* ────────────────────────────────────────────
   SELECT (dropdown)
   ──────────────────────────────────────────── */
.product-variants-item .form-control-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease;
}

.product-variants-item .form-control-select:focus {
    border-color: #ff6b00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}


/* ────────────────────────────────────────────
   AVAILABLE SIZES (iqitsizeguide) — ukryj
   ──────────────────────────────────────────── */
.iqitsizeguide-avaiable-sizes {
    display: none !important;
}


/* ────────────────────────────────────────────
   PRZYCISK "Tabela rozmiarów"
   ──────────────────────────────────────────── */
[data-button-action="open-iqitsizecharts"] {
    background: transparent !important;
    border: none !important;
    color: #ff6b00 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 0 !important;
    display: inline !important;
}

[data-button-action="open-iqitsizecharts"]:hover {
    color: #e06000 !important;
}

[data-button-action="open-iqitsizecharts"] i {
    display: none;
}

.product-variants-item .form-control-label.volo-size-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-variants-item .form-control-label .selected-value {
    font-weight: 400;
    color: #888;
}


/* ────────────────────────────────────────────
   SIZE CHART MODAL — style wizualne
   ──────────────────────────────────────────── */

/* Ukryj sticky bar gdy modal jest otwarty */
body.modal-open .volo-sticky-cart {
    display: none !important;
}

/* Przycisk X w headerze */
#iqitsizecharts-modal .modal-header {
    position: relative;
}

#iqitsizecharts-modal .close,
#iqitsizecharts-modal button.close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    opacity: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
}

#iqitsizecharts-modal .close:hover {
    background: #eee;
    color: #333;
}

/* Obrazki w treści */
#iqitsizecharts-modal .rte-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Ukryj tabs jeśli tylko jedna zakładka */
#iqitsizecharts-modal .nav-tabs:has(> .nav-item:only-child) {
    display: none;
}

#iqitsizecharts-modal .nav-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 16px;
}

#iqitsizecharts-modal .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin-bottom: -2px;
}

#iqitsizecharts-modal .nav-tabs .nav-link.active {
    color: #ff6b00;
    border-bottom-color: #ff6b00;
    background: transparent;
}

#iqitsizecharts-modal .modal-title {
    font-weight: 700;
    color: #333;
    padding-right: 44px;
}

#iqitsizecharts-modal .modal-content {
    border: none;
    border-radius: 16px;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    #iqitsizecharts-modal.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #iqitsizecharts-modal .modal-dialog {
        margin: 16px;
        height: auto;
        min-height: auto;
        max-height: calc(100vh - 32px);
        width: calc(100% - 32px);
    }

    #iqitsizecharts-modal .modal-content {
        height: auto;
        min-height: auto;
        max-height: calc(100vh - 32px);
        display: flex;
        flex-direction: column;
    }

    #iqitsizecharts-modal .modal-header {
        padding: 20px 20px 12px;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }

    #iqitsizecharts-modal .modal-title {
        font-size: 18px;
    }

    #iqitsizecharts-modal .modal-body {
        padding: 16px 20px 24px;
        overflow-y: auto;
        flex: 1 1 auto;
    }
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
    #iqitsizecharts-modal .modal-dialog {
        max-width: 520px;
        margin: 10vh auto;
    }

    #iqitsizecharts-modal .modal-content {
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    #iqitsizecharts-modal .modal-header {
        padding: 24px 28px 16px;
        border-bottom: 1px solid #eee;
    }

    #iqitsizecharts-modal .modal-title {
        font-size: 20px;
    }

    #iqitsizecharts-modal .modal-body {
        padding: 20px 28px 28px;
    }
}


/* ────────────────────────────────────────────
   ROZMIARY W MODALU (wstrzykiwane przez JS)
   ──────────────────────────────────────────── */
.modal-size-selector {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.modal-size-selector-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.modal-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-size-btn {
    min-width: 52px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
}

.modal-size-btn:hover {
    border-color: #ff6b00;
    background: #fff9f5;
}

.modal-size-btn.active {
    border-color: #ff6b00;
    background: #ff6b00;
    color: #fff;
}

.modal-size-btn.unavailable {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Przycisk "Zamknij" pod rozmiarami w modalu */
.modal-size-close-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 0;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    text-align: center;
}

.modal-size-close-btn:hover {
    border-color: #ccc;
    background: #f9f9f9;
    color: #333;
}


/* ════════════════════════════════════════════
   DODAJ DO KOSZYKA — Desktop
   ════════════════════════════════════════════ */
.product-add-to-cart {
    padding-top: 16px !important;
}

/* Ukryj element minimalnej ilości */
.product-minimal-quantity {
    display: none !important;
}

/* ── Layout: qty + button w jednym rzędzie ── */
.product-add-to-cart .product-quantity {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 0;
}

.product-add-to-cart .col-add-qty {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.product-add-to-cart .col-add-btn {
    flex: 1;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}


/* ── QTY +/- wrapper ── */
.product-add-to-cart .qty.volo-qty-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: visible;
    background: #fff;
    width: auto !important;
    flex-wrap: nowrap;
}

/* Bootstrap touchspin wrapper - nie rozciągaj */
.product-add-to-cart .qty.volo-qty-wrap .bootstrap-touchspin {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
}

.product-add-to-cart #quantity_wanted {
    width: 40px !important;
    height: 48px;
    text-align: center;
    border: none !important;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
    box-shadow: none !important;
    flex: 0 0 40px !important;
}

.product-add-to-cart #quantity_wanted::-webkit-inner-spin-button,
.product-add-to-cart #quantity_wanted::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Qty +/- buttons (shared style for desktop and sticky) ── */
.volo-qty-btn {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
}

.volo-qty-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.volo-qty-btn:active {
    background: #eee;
}


/* ── Add-to-cart button — orange gradient ── */
.product-add-to-cart .add-to-cart,
.product-add-to-cart .add-to-cart.btn {
    width: 100%;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    min-height: 48px;
}

.product-add-to-cart .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.product-add-to-cart .add-to-cart:active {
    transform: scale(0.98) !important;
}

.product-add-to-cart .add-to-cart:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Ukryj FA ikony w przycisku PS */
.product-add-to-cart .add-to-cart .fa {
    display: none !important;
}

/* Tekst buttona */
.product-add-to-cart .add-to-cart .volo-btn-text {
    display: inline;
}

/* PS spinner podczas ładowania — tylko gdy button ma klasę is-loading */
.product-add-to-cart .add-to-cart.is-loading .spinner-icon {
    display: inline-block !important;
}

/* ── Ukryj natywne touchspin strzałki (góra/dół) ── */
.product-add-to-cart .input-group-btn-vertical {
    display: none !important;
}

/* ── Payment — image + label ── */
.volo-payment-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

.volo-payment-label {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.2px;
}

.volo-payment-img {
    max-width: 75%;
    height: auto;
    opacity: 0.7;
}

/* Na mobile: ukryj desktopowe payment icons (są w sticky) */
@media (max-width: 767px) {
    .volo-payment-wrap:not(.volo-payment-sticky) {
        display: none !important;
    }
}

/* Na desktop: wyrównanie do lewej */
@media (min-width: 768px) {
    .volo-payment-wrap:not(.volo-payment-sticky) {
        align-items: flex-start;
    }
}

/* ── Ukryj wishlist, compare, share ── */
/* Modal jest przenoszony do body przez JS, więc można bezpiecznie ukrywać */
.product-additional-info,
.social-sharing,
.product-actions [data-button-action="add-to-wishlist"],
.wishlist-button-add,
.product-actions .compare,
.product-actions .btn-compare,
[data-button-action="add-to-compare"],
.links-bottom-left,
.product-quantity .wishlist-button-add,
.product-quantity ~ div:has([data-button-action="add-to-wishlist"]),
.product-quantity ~ div:has([data-button-action="add-to-compare"]) {
    display: none !important;
}

/* Ukryj hook displayAfterProductAddCartBtn (wishlist/compare) */
.product-quantity .col:not(.col-add-qty):not(.col-add-btn) {
    display: none !important;
}


/* ════════════════════════════════════════════
   STICKY CART BAR — Mobile only
   ════════════════════════════════════════════ */

/* Domyślnie ukryty (desktop) */
.volo-sticky-cart {
    display: none;
}

@media (max-width: 767px) {

    /* ── Na mobile: ukryj TYLKO qty i button ── */
    .product-add-to-cart .product-quantity {
        display: none !important;
    }

    .product-add-to-cart .product-minimal-quantity {
        display: none !important;
    }

    .product-add-to-cart {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ── Pokaż sticky bar ── */
    .volo-sticky-cart {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 4px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .volo-sticky-inner {
        max-width: 100%;
    }

    .volo-sticky-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* ── Qty w sticky bar ── */
    .volo-sticky-qty {
        display: flex;
        align-items: center;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: #fff;
    }

    .volo-sticky-qty .volo-qty-btn {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }

    .volo-sticky-qty-val {
        width: 28px;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        user-select: none;
        font-family: 'Lato', sans-serif;
    }

    /* ── Add-to-cart button w sticky bar ── */
    .volo-sticky-btn {
        flex: 1;
        padding: 13px 16px;
        border-radius: 10px;
        background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
        border: none;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        min-height: 48px;
        font-family: 'Lato', sans-serif;
        white-space: nowrap;
    }

    .volo-sticky-btn:active {
        transform: scale(0.98);
    }

    .volo-sticky-btn.volo-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .volo-sticky-btn .volo-price-in-btn {
        opacity: 0.85;
        font-weight: 500;
        font-size: 13px;
    }

    /* ── Payment w sticky bar ── */
    .volo-sticky-cart .volo-payment-wrap {
        margin-top: 8px;
    }

    .volo-sticky-cart .volo-payment-img {
        max-width: 75%;
    }

    /* ── Body padding na dole — żeby sticky nie zasłaniał treści ── */
    body.volo-has-sticky {
        padding-bottom: 95px !important;
    }
}


/* ════════════════════════════════════════════
   DODAJ DO KOSZYKA — Desktop responsywność
   ════════════════════════════════════════════ */
@media (min-width: 768px) {
    .product-add-to-cart .add-to-cart {
        padding: 16px 28px !important;
        font-size: 17px !important;
        border-radius: 12px !important;
    }

    .product-add-to-cart .add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    }
}


/* ════════════════════════════════════════════
   TYTUŁ I CENA — lepsza stylizacja
   ════════════════════════════════════════════ */
.product_header_container .page-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #222 !important;
    margin-bottom: 12px !important;
}

.product-prices {
    margin-bottom: 16px !important;
}

.product-prices .current-price-value {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.product-prices .tax-shipping-delivery-label {
    font-size: 13px !important;
    color: #888 !important;
    margin-top: 4px !important;
}

/* Ukryj oryginalne info o wysyłce pod ceną (obrazki truck) */
.product-information > .rte-content:first-child,
.product-information > .elementor-text-editor:first-child {
    display: none !important;
}


/* ════════════════════════════════════════════
   TRUST TILES — kafelki z ikonami
   ════════════════════════════════════════════ */
.volo-trust-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.volo-trust-tile {
    background: #fff;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.volo-trust-icon {
    font-size: 26px;
    margin-bottom: 6px;
    display: block;
}

.volo-trust-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.volo-trust-subtext {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}


/* ════════════════════════════════════════════
   SPECYFIKACJA PRODUKTU — details box
   ════════════════════════════════════════════ */
.volo-details-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.volo-details-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.volo-details-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.volo-details-list li {
    margin-bottom: 2px;
}

.volo-details-list li::marker {
    color: #ff6b00;
}


/* ════════════════════════════════════════════
   KOSZTY WYSYŁKI — ładne karty
   ════════════════════════════════════════════ */
.volo-delivery-options {
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 20px;
    background: #fff;
}

.volo-delivery-option {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.volo-delivery-option:last-child {
    border-bottom: none;
}

.volo-delivery-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volo-delivery-logo {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.volo-delivery-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.volo-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.volo-delivery-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.volo-delivery-time {
    font-size: 12px;
    color: #888;
}

.volo-delivery-price {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}


/* ════════════════════════════════════════════
   OPINIE O SKLEPIE
   ════════════════════════════════════════════ */
.volo-reviews-section {
    margin: 24px 0;
}

.volo-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.volo-reviews-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.volo-reviews-summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volo-reviews-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.volo-reviews-rating {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.volo-reviews-count {
    font-size: 12px;
    color: #888;
}

/* Pojedyncza opinia */
.volo-review-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.volo-review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.volo-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volo-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.volo-review-meta {
    display: flex;
    flex-direction: column;
}

.volo-review-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.volo-review-date {
    font-size: 11px;
    color: #888;
}

.volo-review-stars {
    color: #ffc107;
    font-size: 12px;
}

.volo-review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.volo-review-product {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.volo-omnibus-info {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    line-height: 1.4;
}

/* Desktop: grid dla opinii */
@media (min-width: 768px) {
    .volo-reviews-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .volo-review-card {
        margin-bottom: 0;
    }
}


/* ════════════════════════════════════════════
   FAQ — akordeon
   ════════════════════════════════════════════ */
.volo-faq-section {
    margin: 24px 0;
}

.volo-faq-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.volo-faq-list {
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.volo-faq-item {
    border-bottom: 1px solid #eee;
}

.volo-faq-item:last-child {
    border-bottom: none;
}

.volo-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.volo-faq-question:hover {
    background: #fafafa;
}

.volo-faq-question-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.volo-faq-icon {
    font-size: 18px;
    color: #888;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.volo-faq-item.active .volo-faq-icon {
    transform: rotate(180deg);
    color: #ff6b00;
}

.volo-faq-item.active .volo-faq-question {
    background: #fff9f5;
}

.volo-faq-item.active .volo-faq-question-text {
    color: #ff6b00;
}

.volo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.volo-faq-item.active .volo-faq-answer {
    max-height: 200px;
}

.volo-faq-answer-inner {
    padding: 0 20px 16px 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   SIZE MICROCOPY
   ══════════════════════════════════════════════ */
.volo-size-microcopy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}


/* ══════════════════════════════════════════════
   MODAL — DODANO DO KOSZYKA
   ══════════════════════════════════════════════ */
#blockcart-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#blockcart-modal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-bottom: none;
    padding: 18px 24px;
}

#blockcart-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

#blockcart-modal .modal-title .fa-check {
    font-size: 18px;
}

#blockcart-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    font-size: 28px;
    font-weight: 300;
    text-shadow: none;
    padding: 0;
    margin: -8px -8px -8px auto;
}

#blockcart-modal .modal-header .close:hover {
    opacity: 1;
}

#blockcart-modal .modal-body {
    padding: 24px;
}

/* Zdjęcie produktu */
#blockcart-modal .product-image {
    border-radius: 10px;
    max-width: 100%;
}

/* Nazwa produktu */
#blockcart-modal .product-name a {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

#blockcart-modal .product-name a:hover {
    color: #ff6b00;
}

/* Info o koszyku */
#blockcart-modal .cart-content {
    padding-top: 0 !important;
}

#blockcart-modal .cart-products-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

#blockcart-modal .cart-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

#blockcart-modal .cart-content strong {
    font-weight: 600;
}

/* Przyciski akcji */
#blockcart-modal .cart-content-btn {
    margin-top: 20px;
}

#blockcart-modal .cart-content-btn .btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}

#blockcart-modal .cart-content-btn .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

#blockcart-modal .cart-content-btn .btn-secondary {
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #666 !important;
    transition: all 0.2s ease;
}

#blockcart-modal .cart-content-btn .btn-secondary:hover {
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
    background: #fff9f5 !important;
}

/* Sekcja cross-selling */
#blockcart-modal .crossselling-products-modal {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#blockcart-modal .crossselling-products-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    font-family: 'Lato', sans-serif;
}

/* Linia podziału */
#blockcart-modal .divide-right {
    border-right: 1px solid #eee;
}

@media (max-width: 767px) {
    #blockcart-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    #blockcart-modal .modal-content {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    #blockcart-modal .modal-header {
        padding: 12px 16px;
    }

    #blockcart-modal .modal-title {
        font-size: 13px;
    }

    #blockcart-modal .modal-body {
        padding: 14px;
    }

    /* Zmniejsz zdjęcie produktu z col-6 na mniejsze */
    #blockcart-modal .modal-body .col-6.text-center {
        flex: 0 0 25%;
        max-width: 25%;
    }

    #blockcart-modal .divide-right {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    #blockcart-modal .cart-content-btn .btn {
        font-size: 13px !important;
        padding: 11px 16px !important;
    }

    /* Ukryj cross-selling na mobile żeby zmieścić modal */
    #blockcart-modal .crossselling-products-modal {
        display: none;
    }
}


/* ══════════════════════════════════════════════
   UKRYWANIE ELEMENTÓW DLA RUCHU Z REKLAM
   (Google Ads / Meta Ads landing page)
   ══════════════════════════════════════════════ */

/* Ukryj elementy gdy <html> ma klasę from-ads-landing */
html.from-ads-landing section.featured-products.block.block-section,
html.from-ads-landing footer#footer.js-footer,
html.from-ads-landing nav.breadcrumb,
html.from-ads-landing #iqit-reviews-tab,
html.from-ads-landing .card.iqitadditionaltab.iqitadditionaltab-3 {
    display: none !important;
}
