/* ========================================
   MINI CART OVERLAY
======================================== */

.ecoflow-mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 888888;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ecoflow-mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MINI CART DRAWER
======================================== */

.ecoflow-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -515px;
    width: 515px;
    height: 100%;
    background: #fff;
    z-index: 888889;
    
    /* Flexbox Layout */
    display: flex;
    flex-direction: column;
    
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.ecoflow-mini-cart-drawer.active {
    right: 0;
}

/* ========================================
   HEADER (SABİT ÜST)
======================================== */

.ecoflow-cart-header {
    flex-shrink: 0; /* Küçülmez */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    margin: 0 30px;
}

.ecoflow-cart-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.ecoflow-cart-close {
    background: #999;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    padding: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 50px;
    transition: all .3s;
}
.ecoflow-cart-close:hover,
.ecoflow-cart-close:focus,
.ecoflow-cart-close:focus-visible {
  background-color: transparent;
  color: #000;
  outline: none;
}
.ecoflow-cart-close:hover {
    color: #000;
}

/* ========================================
   BODY (KAYDIRILABİLİR ORTA)
======================================== */

.ecoflow-cart-body {
    flex: 1; /* Kalan alanı kapla */
    overflow-y: auto; /* Dikey scroll */
    overflow-x: hidden; /* Yatay scroll yok */
    padding: 0 30px;
}
.ecoflow-item-content {
    display: flex;
    gap: 35px;
    flex-direction: column;
    padding-left: 0;
    padding-top: 17px;
    width: 100%;
}
.ecoflow-item-header, .ecoflow-item-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Scroll bar styling */
.ecoflow-cart-body::-webkit-scrollbar {
    width: 6px;
}

.ecoflow-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ecoflow-cart-body::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

.ecoflow-cart-body::-webkit-scrollbar-thumb:hover {
    background: #00BF98;
}

/* ========================================
   CART ITEMS
======================================== */

.ecoflow-cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0 30px;
    border-bottom: 1px solid #f0f0f0;
}

.ecoflow-cart-item:last-of-type {
    border-bottom: none;
}

/* Product Image */
.ecoflow-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.ecoflow-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ecoflow-item-image a {
    display: block;
}

/* Product Details */
.ecoflow-item-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ecoflow-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
}

.ecoflow-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.ecoflow-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.ecoflow-item-title a:hover {
    color: #000;
}

.ecoflow-item-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Care Badge Box */
.ecoflow-care-badge-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #06f0;
    border: 1px solid #06F;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
    justify-content: space-between;
    width: 95%;
}

.ecoflow-care-text i {
    align-items: center;
    flex-shrink: 0;
    color: #06f;
}

.ecoflow-care-text {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.ecoflow-care-price {
    font-size: 11px;
    font-weight: 700;
    color: #06F;
    line-height: 1;
}

/* Pricing */
.ecoflow-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 4px;
}

.ecoflow-regular-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    line-height: 1;
}

.ecoflow-sale-price {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

/* Actions (Right Side) */
.ecoflow-item-actions {
        display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    justify-content: space-between;
    min-width: 408px;

}

/* Quantity Controls */
.ecoflow-item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: .8px solid #e5e5e5;
    border-radius: .8px;
    overflow: hidden;
    height: 33px;
}

.ecoflow-qty-btn {
    background: #f8f8f8;
    border: none;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #666;
    transition: background 0.2s, color 0.2s;
}

.ecoflow-qty-btn:hover {
    background: #e5e5e5;
    color: #000;
}

.ecoflow-qty-btn svg {
    width: 38px;
    height: 38px;
}

.ecoflow-qty-input {
    width: 33px !important;
    height: 33px;
    border: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    padding: 0 !important;
    margin: 0 !important;
}

.ecoflow-qty-input:focus {
    outline: none;
}

/* Remove Button */
.ecoflow-item-remove {
    background: none;
    border: none;
    color: #757575;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    transition: all .3s;
}

.ecoflow-item-remove:hover {
    color: #000;
    background-color: transparent;
}

/* Empty Cart */
.ecoflow-empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ecoflow-empty-cart p {
    font-size: 16px;
    margin: 0;
}


/* Empty Cart */
.ecoflow-empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ecoflow-empty-cart p {
    font-size: 16px;
    margin: 0;
}

/* ========================================
   FBT SUGGESTIONS SECTION
======================================== */

.ecoflow-fbt-section {
    margin-top: 24px;
    padding: 15px 24px;
    border: 1px solid #E3E3E3;
}

.ecoflow-fbt-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.ecoflow-fbt-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FBT Item */
.ecoflow-fbt-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: transparent;
    align-items: center;
    transition: all 0.2s;
}

.ecoflow-fbt-item:hover {
    background: transparent;
    outline: none;
}

/* FBT Image */
.ecoflow-fbt-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.ecoflow-fbt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* FBT Info */
.ecoflow-fbt-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecoflow-fbt-name {
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FBT Pricing */
.ecoflow-fbt-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ecoflow-fbt-regular-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    line-height: 1;
}

.ecoflow-fbt-sale-price {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
}

.ecoflow-fbt-price {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
}

/* FBT Add Button */
.ecoflow-fbt-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: white;
    border: none;
    border-radius: 0;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ecoflow-fbt-add-btn:hover,
.ecoflow-fbt-add-btn:focus,
.ecoflow-fbt-add-btn:active {
    background: #000;
    outline: none;
    color: #fff;
}


.ecoflow-fbt-add-btn svg {
    flex-shrink: 0;
}

/* Loading state for FBT button */
.ecoflow-fbt-add-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ecoflow-fbt-add-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
}

/* ========================================
   FOOTER (SABİT ALT)
======================================== */

.ecoflow-cart-footer {
    flex-shrink: 0; /* Küçülmez */
    padding: 24px 34px;
    background: #fff;
    box-shadow: 0 -4px 14px 0 rgba(0, 0, 0, 0.05);
}

.ecoflow-cart-totals {
    margin-bottom: 16px;
}

.ecoflow-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecoflow-total-row span:first-child {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.ecoflow-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00D4AA;
}

/* Checkout & View Cart Buttons */
.ecoflow-checkout-btn,
.ecoflow-view-cart-btn {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.ecoflow-checkout-btn {
    background: #2164ff;
    color: white;
}

.ecoflow-checkout-btn:hover {
    background: #0052CC;
    color: white;
}

.ecoflow-view-cart-btn {
    background: white;
    color: #2164ff;
    border: 2px solid #2164ff;
}

.ecoflow-view-cart-btn:hover {
    background: #f5f8ff;
    color: #2164ff;
}

/* Cart Info */
.ecoflow-cart-info {
    text-align: center;
    margin-top: 12px;
}

.ecoflow-cart-info p {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
}

.ecoflow-cart-info a {
    font-size: 12px;
    color: #2164ff;
    text-decoration: none;
}

.ecoflow-cart-info a:hover {
    text-decoration: underline;
}

/* ========================================
   LOADING STATE
======================================== */

.ecoflow-cart-body.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.ecoflow-cart-body.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00D4AA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 750px) {
    .ecoflow-mini-cart-drawer {
        width: 100%;
        right: -100%;
    }
}
@media (max-width: 768px) {

    .ecoflow-cart-item {
        border: none;
        gap: 12px;
        position: relative;
        margin-bottom: 10px;
        padding: 17px 18px 10px 4px;;
    }
    .ecoflow-cart-item:after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 13px;
    width: calc(100% - 20px);
    height: 1px;
    background: #ebe9e9;
}
.ecoflow-item-content {
    gap: 0;
}
.ecoflow-cart-footer .ecoflow-checkout-btn, 
.ecoflow-cart-footer .ecoflow-view-cart-btn {
    height: 45px;
    padding: 10px;
    font-size: 13px;
    line-height: 1;
    align-content: center;
    width: auto;
}
.ecoflow-cart-footer {
    padding: 24px;
}
.ecoflow-cart-footer .ecoflow-total-row {
    justify-content: flex-start;
    gap: 4px;
    align-items: flex-end;
}
    .ecoflow-item-image {
        width: 120px;
        height: 120px;
    }
    .ecoflow-cart-footer .ecoflow-total-row span:first-child , 
    .ecoflow-cart-footer .ecoflow-total-amount{
        line-height: 1;
    }
.ecoflow-item-content .ecoflow-item-header {
    flex-direction: column;
    gap: 9px;
}
.ecoflow-item-content .ecoflow-item-footer {
    flex-direction: row-reverse;
}
.ecoflow-item-content .ecoflow-item-title a {
    font-size: 17px;
}
.ecoflow-item-content .ecoflow-item-pricing {
    align-items: flex-start;
}
    .ecoflow-item-actions {
        min-width: 90px;
    }
    .ecoflow-item-footer .ecoflow-item-quantity {
        height: 38px;
    }

    .ecoflow-qty-btn {
        width: 38px;
        height: 38px;
    }
    .ecoflow-cart-header h2 {
        font-size: 16px;
    }
.ecoflow-item-footer .ecoflow-item-remove {
    padding: 0;
    height: max-content;
    align-self: flex-end;
}
    .ecoflow-qty-input {
        width: 38px !important;
    }

    .ecoflow-fbt-item {
        grid-template-columns: 50px 1fr auto;
        gap: 10px;
        padding: 10px;
    }

    .ecoflow-fbt-image {
        width: 50px;
        height: 50px;
    }

    .ecoflow-fbt-name {
        font-size: 12px;
    }

    .ecoflow-fbt-add-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .ecoflow-mini-cart-drawer.active {
        z-index: 9999999;
    }
    .ecoflow-mini-cart-drawer .ecoflow-cart-header {
        margin: 0;
        padding: 5px 0 0 24px;
    }
.ecoflow-mini-cart-drawer .ecoflow-cart-body {
    padding: 0;
}
.ecoflow-cart-close {
    background-color: transparent;
    color: #03060b;
    width: 44px;
    height: 44px;
}

}
/* Delete Confirmation Popup */
.ecoflow-delete-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000000;
}

.ecoflow-delete-popup.active {
    display: flex;
}

.ecoflow-delete-popup-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ecoflow-delete-popup-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1a1a1a;
}

.ecoflow-delete-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ecoflow-delete-cancel,
.ecoflow-delete-confirm {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ecoflow-delete-cancel {
    background: #f0f0f0;
    color: #333;
}

.ecoflow-delete-cancel:hover {
    background: #e0e0e0;
}

.ecoflow-delete-confirm {
    background: #e53935;
    color: white;
}

.ecoflow-delete-confirm:hover {
    background: #c62828;
}