/* =====================================================================
   GIFT PANEL DRAWER
   Desktop: sepetin solunda ayrÄ± bir cep
   Mobile: sepetin iÃ§inde bottom sheet
   ===================================================================== */

.ecoflow-gift-panel-drawer {
    --gift-drawer-width: 280px;

    position: fixed;
    top: 0;
    right: 515px;
    height: 100vh;
    width: var(--gift-drawer-width);
    background: #f6f7f8;
    z-index: 888888;
    transform: translateX(var(--gift-drawer-width));
    transition: transform 0.35s ease, opacity 0.2s ease;
    overflow: visible;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);

    /* VarsayÄ±lan: tamamen gizli â€” sepet henÃ¼z aÃ§Ä±lmadÄ± veya tier yok */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Sepet aÃ§Ä±k + tier var â†’ cep DOM'da aktif (toggle gÃ¶rÃ¼nÃ¼r, iÃ§erik hÃ¢lÃ¢ kapalÄ± olabilir) */
.ecoflow-gift-panel-drawer.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Cep aÃ§Ä±k â€” iÃ§erik gÃ¶rÃ¼nÃ¼r olur */
.ecoflow-gift-panel-drawer.is-open {
    transform: translateX(0);
}

/* =====================================================================
   GIFT TOGGLE â€” Cep drawer'Ä±n child'Ä±, cep ile birlikte hareket eder
   ===================================================================== */

/* Toggle â€” cep drawer'Ä±n child'Ä±, cep ile birlikte hareket eder.
   Cep is-visible olunca toggle da otomatik gÃ¶rÃ¼nÃ¼r (cep'in opacity'sini alÄ±r) */
.ecoflow-gift-toggle {
    position: absolute;
    top: 50%;
    left: -32px; /* Cep'in sol dÄ±ÅŸÄ±na taÅŸÄ±yor */
    transform: translateY(-50%);
    width: 32px;
    height: 64px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 50px 0 0 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2164ff;
    z-index: 888890;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.ecoflow-gift-toggle:hover {
    background: #f8f8f8;
    color: #000;
}

.ecoflow-gift-toggle-icon {
    width: 30px;
    height: 33px;
    transition: transform 0.3s ease;
}

/* Cep aÃ§Ä±kken ok yÃ¶nÃ¼ dÃ¶ner â€” cep'in is-open state'inden tetiklenir */
.ecoflow-gift-panel-drawer.is-open .ecoflow-gift-toggle-icon {
    transform: rotate(180deg);
}

/* =====================================================================
   MULTI-TIER PANEL CONTAINER
   ===================================================================== */

.ecoflow-gift-panels-container {
    display: block;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* TÃ¼m tier panelleri varsayÄ±lan gizli */
.ecoflow-gift-panels-container .ecoflow-gift-panel {
    display: none !important;
    padding: 20px 16px;
    position: relative;
}

/* Sadece visible olan gÃ¶rÃ¼nÃ¼r */
.ecoflow-gift-panels-container .ecoflow-gift-panel.visible {
    display: block !important;
}

/* =====================================================================
   PANEL HEADER
   ===================================================================== */

.ecoflow-gift-panel-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ecoflow-gift-panel-header-text {
    flex: 1;
}

.ecoflow-gift-panel-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111827;
    text-transform: uppercase;
}

.ecoflow-gift-panel-subtitle {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Kapat butonu â€” desktop'ta gizli, mobilde gÃ¶rÃ¼nÃ¼r */
.ecoflow-gift-panel-close {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    line-height: 0;
}

.ecoflow-gift-panel-close svg {
    width: 22px;
    height: 22px;
}

/* =====================================================================
   LOCK NOTICE
   ===================================================================== */

.ecoflow-gift-panel-lock-notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

.ecoflow-gift-panel-lock-notice strong {
    color: #92400e;
    font-weight: 700;
}

.ecoflow-gift-panel-lock-notice.info {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e3a8a;
}

/* =====================================================================
   ÃœRÃœN KARTLARI (Desktop dikey)
   ===================================================================== */

.ecoflow-gift-panel-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ecoflow-gift-product {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.ecoflow-gift-product:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ecoflow-gift-product.selected {
    border-color: #2164ff;
    background: #eff6ff;
}

.ecoflow-gift-product.loading,
.ecoflow-gift-product.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ecoflow-gift-product.not-selectable {
    opacity: 0.55;
    cursor: not-allowed;
}

.ecoflow-gift-product.not-selectable:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.ecoflow-gift-product-image {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.ecoflow-gift-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ecoflow-gift-selected-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #2164ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.ecoflow-gift-selected-check svg {
    width: 12px;
    height: 12px;
}

.ecoflow-gift-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ecoflow-gift-product-name {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ecoflow-gift-product-subtitle {
    margin: 0 0 8px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

.ecoflow-gift-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ecoflow-gift-original-price {
    font-size: 12px;
    color: #2164ff;
    text-decoration: line-through;
    font-weight: 500;
}

.ecoflow-gift-free-price {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

/* =====================================================================
   PROGRESS BAR
   ===================================================================== */

.ecoflow-cart-progress-wrapper {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 30px;
    padding: 15px 0;
}

.ecoflow-cart-progress {
    padding: 0 0 30px;
    position: relative;
}

.ecoflow-progress-info {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.4;
}

.ecoflow-progress-info strong {
    color: #2164ff;
    font-weight: 600;
}

.ecoflow-progress-congrats {
    color: #059669;
    font-weight: 600;
}

.ecoflow-progress-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 14px;
}

.ecoflow-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #2164ff 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecoflow-progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ecoflow-progress-dot:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ecoflow-progress-dot.reached {
    border-color: #2164ff;
    background: #2164ff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.ecoflow-progress-dot-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecoflow-progress-dot-icon svg {
    width: 100%;
    height: 100%;
}

.ecoflow-progress-dot.reached .ecoflow-progress-dot-icon {
    color: #fff;
}

.ecoflow-progress-dot-amount {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 600;
}

.ecoflow-progress-dot.reached .ecoflow-progress-dot-amount {
    color: #2164ff;
    font-weight: 700;
}

/* =====================================================================
   CART ITEM HEDÄ°YE ETÄ°KETLERÄ°
   ===================================================================== */

.ecoflow-gift-free-label {
    display: inline-block;
    padding: 2px 8px;
    background: #059669;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.ecoflow-gift-qty-lock {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

/* =====================================================================
   MOBILE (< 992px) â€” Sepetin iÃ§inde bottom sheet
   ===================================================================== */

@media (max-width: 991px) {

    /* Toggle butonu mobilde gizli */
    .ecoflow-gift-toggle {
        display: none !important;
    }

    /* Gift panel: sepetin iÃ§inde, alttan aÃ§Ä±lÄ±r */
    .ecoflow-gift-panel-drawer {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 60%;
        transform: translateY(100%);
        border-radius: 16px 16px 0 0;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        z-index: 88888888;
        display: flex;
        flex-direction: column;
    }

    .ecoflow-gift-panel-drawer.is-open {
        transform: translateY(0);
    }

    .ecoflow-gift-panels-container {
        height: auto;
        max-height: 100%;
    }

    .ecoflow-mini-cart-drawer {
        position: fixed;
    }

    /* Arka plan karartma */
    .ecoflow-mini-cart-drawer.gift-sheet-open::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9;
        pointer-events: none;
    }

    /* Close butonu mobilde gÃ¶rÃ¼nÃ¼r */
    .ecoflow-gift-panel-close {
        display: block;
    }

    .ecoflow-gift-panel {
        padding: 18px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile kartlar: yatay liste */
    .ecoflow-gift-panel-products {
        gap: 8px;
    }

    .ecoflow-gift-product {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 10px 12px;
        background: #f6f7f8;
        border-radius: 8px;
    }

    .ecoflow-gift-product-image {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }

    .ecoflow-gift-product-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ecoflow-gift-product-name {
        margin: 0;
        font-size: 12px;
        text-align: left;
    }

    .ecoflow-gift-product-subtitle {
        margin: 0;
        font-size: 11px;
        text-align: left;
    }

    .ecoflow-gift-product-price {
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .ecoflow-gift-original-price {
        font-size: 11px;
    }

    .ecoflow-gift-free-price {
        font-size: 12px;
        font-weight: 700;
        color: #dc2626;
        letter-spacing: 0.3px;
    }

    .ecoflow-gift-panel-lock-notice {
        font-size: 11px;
        padding: 8px 10px;
    }

    .ecoflow-gift-stock-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* Progress bar mobile */
    .ecoflow-cart-progress {
        padding: 12px 14px 28px;
    }

    .ecoflow-progress-info {
        font-size: 12px;
        margin-bottom: 25px;
    }

    .ecoflow-progress-dot {
        width: 24px;
        height: 24px;
    }

    .ecoflow-progress-dot-icon {
        width: 12px;
        height: 12px;
    }

    .ecoflow-progress-dot-amount {
        font-size: 9px;
    }
}

@media (max-width: 479px) {
    .ecoflow-progress-dot-amount {
        display: none;
    }

    .ecoflow-progress-dot:first-of-type .ecoflow-progress-dot-amount,
    .ecoflow-progress-dot:last-of-type .ecoflow-progress-dot-amount {
        display: block;
    }
}

/* ============================================================
   CART PAGE GIFT SECTION â€” Inline, full-width
   ============================================================ */
.ecoflow-cart-page-gift-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 20px 24px;
    background: transparent;
    border-bottom: 1px solid #ededed;
    box-sizing: border-box;
}

.ecoflow-cart-page-gift-section .ecoflow-cart-progress {
    margin: 0;
    padding: 0;
    background: transparent;
}

.ecoflow-cart-page-gift-progress {
    width: 100%;
    padding: 8px 16px 24px;
    box-sizing: border-box;
}

.ecoflow-cart-page-gift-products-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #e8e8ee;
    opacity: 1;
    max-height: 2000px;
    transition: max-height 0.5s ease, opacity 0.45s ease, transform 0.45s ease;
}

.ecoflow-cart-page-gift-products-wrap.tier-just-reached {
    animation: ecoflowGiftSlideDown 0.6s ease both;
}

@keyframes ecoflowGiftSlideDown {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        max-height: 2000px;
        opacity: 1;
        transform: translateY(0);
    }
}

.ecoflow-cart-page-gift-products-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ecoflow-cart-page-gift-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.ecoflow-cart-page-gift-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6c6f7a;
}

.ecoflow-cart-page-gift-products {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    padding-top: 10px;
}

/* Cart-page kartlarÄ±: 4 sÃ¼tun, responsive flex-basis */
.ecoflow-cart-page-gift-section .ecoflow-gift-product {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
    padding: 14px;
    background: #f7f8fb;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product:hover {
    border-color: #2164ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(28, 45, 217, 0.12);
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.selected {
    border-color: #2164ff;
    background: #eef0ff;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.loading,
.ecoflow-cart-page-gift-section .ecoflow-gift-product.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.not-selectable,
.ecoflow-cart-page-gift-section .ecoflow-gift-product.out-of-stock {
    opacity: 0.55;
    cursor: not-allowed;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.not-selectable:hover,
.ecoflow-cart-page-gift-section .ecoflow-gift-product.out-of-stock:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-subtitle {
    margin: 0;
    font-size: 12px;
    color: #6c6f7a;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-original-price {
    font-size: 12px;
    color: #9a9da8;
    text-decoration: line-through;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-free-price {
    font-size: 13px;
    font-weight: 700;
    color: #2164ff;
    letter-spacing: 0.4px;
}

/* Sepet sayfasÄ± gift-item adet alanÄ±: gizle ama gridi bozma */
.cart-item.is-gift-item .item-quantity-gift,
.cart-item-mobile.is-gift-item .item-quantity-gift,
.ecoflow-cart-item.is-gift-item .ecoflow-item-quantity-gift {
    visibility: hidden;
    pointer-events: none;
}

/* ============================================================
   CART PAGE â€” TIER PANELS (her tier ayrÄ± panel, dot click ile geÃ§iÅŸ)
   ============================================================ */
.ecoflow-cart-page-gift-panels {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ecoflow-cart-page-gift-panel {
    display: none;
    flex-direction: column;
    width: 100%;
}

.ecoflow-cart-page-gift-panel.visible {
    display: flex;
    animation: ecoflowGiftPanelFade 0.3s ease;
}

@keyframes ecoflowGiftPanelFade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecoflow-cart-page-gift-panel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e3e5ec;
}

.ecoflow-cart-page-gift-panel-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.ecoflow-cart-page-gift-panel-threshold {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #eef0ff;
    color: #1c2dd9;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.ecoflow-cart-page-gift-panel.tier-unreached .ecoflow-cart-page-gift-panel-threshold {
    background: #fef3c7;
    color: #92400e;
}

/* GeÃ§ilmemiÅŸ tier iÃ§in kilit notu */
.ecoflow-cart-page-gift-lock-notice {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

.ecoflow-cart-page-gift-lock-notice strong {
    color: #92400e;
    font-weight: 700;
}

/* Bilgi tonu — geçilmiş ama active olmayan tier'lar için */
.ecoflow-cart-page-gift-lock-notice.info {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e3a8a;
}

/* Geçilmiş ama active olmayan tier ürün kartları — pasif ama farklı renkte */
.ecoflow-cart-page-gift-section .ecoflow-gift-product.tier-not-active {
    opacity: 0.6;
    cursor: not-allowed;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.tier-not-active:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Tier kilitli Ã¼rÃ¼n kartlarÄ± â€” pasif gÃ¶rÃ¼nÃ¼m */
.ecoflow-cart-page-gift-section .ecoflow-gift-product.tier-locked {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f2f6;
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.tier-locked .ecoflow-gift-product-image {
    filter: grayscale(0.3);
}

.ecoflow-cart-page-gift-section .ecoflow-gift-product.tier-locked:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Kilit ikonu rozeti â€” geÃ§ilmemiÅŸ tier Ã¼rÃ¼nleri */
.ecoflow-gift-locked-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecoflow-gift-locked-badge svg {
    width: 14px;
    height: 14px;
}

/* Progress dot tÄ±klanabilir â€” pointer cursor */
.ecoflow-cart-page-gift-section .ecoflow-progress-dot {
    cursor: pointer;
}

.ecoflow-cart-page-gift-section .ecoflow-progress-dot:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.05);
}

/* ============================================================
   ACCORDION â€” Hediye Ã¼rÃ¼nleri aÃ§/kapat
   ============================================================ */
.ecoflow-cart-page-gift-collapse {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 1500px;
    opacity: 1;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-collapse {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* KapalÄ±yken: baÅŸlÄ±k (HEDÄ°YENÄ° SEÃ‡ + tier alt baÅŸlÄ±ÄŸÄ±) + Ã¼st border de gizlenir,
   sadece progress bar + toggle butonu gÃ¶rÃ¼nÃ¼r */
.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-products-header {
    display: none;
}

.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-products-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Toggle butonu â€” collapse'in altÄ±nda */
.ecoflow-cart-page-gift-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 20px;
    transition: margin-top 0.35s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    background: #f3f4f9;
    border: 1px solid #e1e3ec;
    border-radius: 24px;
    color: #2164ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ecoflow-cart-page-gift-toggle:hover {
    background: #eef0ff;
    border-color: #c5cbf7;
}

.ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    transform: rotate(-180deg);
}

.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-chevron {
    transform: rotate(0deg);
}

/* Label gÃ¶rÃ¼nÃ¼rlÃ¼ÄŸÃ¼: open default, closed sadece collapsed iken */
.ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-label-closed {
    display: none;
}

.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-label-open {
    display: none;
}

.ecoflow-cart-page-gift-section.is-collapsed .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-label-closed {
    display: inline;
}

/* Responsive: tablet 3 sÃ¼tun, mobil 2 sÃ¼tun */
@media (max-width: 1024px) {
    .ecoflow-cart-page-gift-section .ecoflow-gift-product {
        flex: 0 0 calc(33.3333% - 11px);
        max-width: calc(33.3333% - 11px);
    }
}

@media (max-width: 720px) {
    .ecoflow-cart-page-gift-section {
        padding: 18px;
    }

    .ecoflow-cart-page-gift-products {
        gap: 12px;
    }

    .ecoflow-cart-page-gift-section .ecoflow-gift-product {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 10px;
    }

    .ecoflow-cart-page-gift-title {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .ecoflow-cart-page-gift-section .ecoflow-gift-product-name {
        font-size: 13px;
    }
}

/* ============================================================
   MOBILE-DEFAULT-COLLAPSED — Sepet sayfası hediye akordiyonu
   Mobilde JS beklemeden CSS ile kapalı render edilir (FOUC engellenir).
   Kullanıcı açtığında JS `.is-mobile-expanded` ekler → bu kurallar düşer.
   Sayfa yenilemede class gitmiş olur → tekrar kapalı.
   ============================================================ */
@media (max-width: 768px) {
    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-collapse {
        max-height: 0;
        opacity: 0;
        margin: 0;
        padding: 0;
    }

    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-products-header {
        display: none;
    }

    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-products-wrap {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-chevron {
        transform: rotate(0deg);
    }

    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-label-open {
        display: none;
    }

    .ecoflow-cart-page-gift-section:not(.is-mobile-expanded) .ecoflow-cart-page-gift-toggle .ecoflow-gift-toggle-label-closed {
        display: inline;
    }
}