/* Helvetica Neue Font Definitions */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/helvetica-neue-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/helvetica-neue-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/helvetica-neue-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Helvetica Neue Condensed';
    src: url('../fonts/helvetica-neue-condenced-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: condensed;
}

@font-face {
    font-family: 'Helvetica Neue Condensed';
    src: url('../fonts/helvetica-neue-condenced-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-stretch: condensed;
}

/* Mobil Font Application */
.ecoflow-mobile-header-wrap,
.ecoflow-mobile-header,
.ecoflow-mobile-header *,
.ecoflow-mobile-menu-list,
.ecoflow-mobile-menu-list *,
.ecoflow-mobile-modal,
.ecoflow-mobile-modal * {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* ========================================
   DESKTOP'TA MOBİL ELEMENTLER GİZLİ
   ======================================== */
/* ========================================
   MOBİL STYLES (< 1024px)
   ======================================== */
@media (max-width: 768px) {
    .ecoflow-modal-content .ecoflow-mobile-accordion {
        padding: 0;
    }
}

@media (max-width: 1024px) {
    .ecoflow-bottom-image::before {
        display: none;
    }

    /* Desktop menüyü mobilde gizle */
    .ecoflow-mega-menu-wrapper,
    .ecoflow-menu-items,
    .ecoflow-mega-menu-dropdown,
    .ecoflow-menu-backdrop {
        display: none !important;
    }

    .ecoflow-product-tabs-wrapper,
    .ecoflow-mobile-accordion {
        min-width: 100%;
        padding: 0 28px;
    }

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

    .ecoflow-mobile-header-wrap {
        display: block !important;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10006;
        background: #fff;
    }

    .ecoflow-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        height: 40px;
        background-color: #000;
    }

    .ecoflow-header-logo img {
        height: 14px;
    }

    .ecoflow-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ecoflow-header-search img,
    .ecoflow-header-cart img {
        width: 24px;
        height: 24px;
    }

    .ecoflow-header-search svg,
    .ecoflow-header-cart svg {
        color: white;
        display: block;
    }

    .ecoflow-header-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px 0 5px;
    }

    .ecoflow-header-cart .cart-count {
        position: absolute;
        top: -8px;
        right: 0;
        background: #ff0000;
        color: #fff;
        font-size: 11px;
        font-weight: 500;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    /* Menu açıkken header gizle */
    body.ecoflow-menu-open .ecoflow-mobile-header-wrap {
        display: block !important;
        position: fixed;
    }

    /* Modal açıkken header göster */
    body.ecoflow-modal-open .ecoflow-mobile-header-wrap {
        display: block !important;
    }


    /* ========== TOGGLE BUTTON (3 ÇİZGİ) ========== */

    .ecoflow-mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 14px;
        height: 11px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        margin-top: -2px;
        position: relative;
    }

    .ecoflow-mobile-toggle:hover .ecoflow-mobile-toggle:focus,
    .ecoflow-mobile-toggle:active,
    .ecoflow-mobile-toggle.active:focus {
        background-color: transparent;
    }

    .toggle-line {
        width: 100%;
        height: 1px;
        position: relative;
        color: #fff;
    }

    .toggle-line::before {
        background-color: #fff;
        border-bottom-left-radius: 2px;
        border-top-right-radius: 2px;
        content: "";
        display: inline-block;
        height: 1px;
        transition: transform 0.4s ease 0.2s;
        width: 15px;
        position: absolute;
        left: 0;
        top: 2px;
    }

    button.ecoflow-mobile-toggle.active {
        margin-top: 0;
    }

    /* Açıkken X şekli */
    .ecoflow-mobile-toggle.active .line-1::before {
        transform: translateY(2px) rotate(45deg);
    }

    .ecoflow-mobile-toggle.active .line-2::before {
        opacity: 0;
        transform: scaleX(0);
    }

    .ecoflow-mobile-toggle.active .line-3::before {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ========== ANA MENÜ LİSTESİ ========== */

    .ecoflow-mobile-menu-list {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 40px;
        display: none;
        /* Kapalı başlar */
    }

    .ecoflow-mobile-menu-list.active {
        display: block;
        /* Açık olunca göster */
    }

    .ecoflow-mobile-menu-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ecoflow-mobile-menu-item {
        width: 100%;
        padding: 18px 20px;
        background: none;
        border: none;
        text-align: left;
        font-size: 16px;
        font-weight: 600;
        color: #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .ecoflow-mobile-menu-item:active {
        background: transparent;
        color: #000;
        outline: none;
    }

    .ecoflow-mobile-menu-item .menu-arrow {
        width: 45px;
        height: 16px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        display: inline-block;
    }

    /* ========== TAB WITH SIDEBAR (MOBİL) ========== */

    .ecoflow-mobile-modal .ecoflow-tab-with-sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ecoflow-mobile-modal .ecoflow-tab-main-content {
        width: 100%;
        order: 1;
        /* Üstte */
    }

    .ecoflow-mobile-modal .ecoflow-tab-side-links {
        width: 100%;
        order: 2;
        /* Altta */
        padding: 20px 16px 0 16px;
        margin-top: 0;
        min-width: 100%;
        width: 100%;

    }

    .ecoflow-mobile-modal .ecoflow-products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .ecoflow-mobile-modal .ecoflow-tab-side-links ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ecoflow-mobile-modal .ecoflow-tab-side-links li {
        margin-bottom: 12px;
    }

    .ecoflow-mobile-modal .ecoflow-tab-side-links a {
        font-size: 14px;
        color: #000;
        text-decoration: none;
        font-weight: 500;
    }

    .ecoflow-tab-side-links a::after {
        color: #000 !important;
        opacity: 1 !important;
    }



    /* ========== MODAL ========== */

    .ecoflow-mobile-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 99999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ecoflow-mobile-modal.active {
        display: block !important;
    }

    /* Modal Header */
    .ecoflow-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        height: 52px;
    }

    .ecoflow-modal-back {
        width: 16px;
        height: 16px;
        padding: 0;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border: none;
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);

    }


    /* Modal Close Button */
    .ecoflow-modal-close {
        width: 16px;
        height: 16px;
        background-image: url('/wp-content/uploads/2024/02/close.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Tüm button state'lerde transparent */
    .ecoflow-modal-close:hover,
    .ecoflow-mobile-toggle:hover,
    .ecoflow-modal-close:focus,
    .ecoflow-modal-close:focus-visible {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Active durumda hafif opacity */
    .ecoflow-modal-close:active {
        opacity: 0.7;
    }

    .ecoflow-modal-title {
        font-size: 14px;
        font-weight: 600;
        color: #000;
        margin: 0;
        flex: 1;
        text-align: center;
        font-family: 'Helvetica Neue' !important;
    }

    .ecoflow-mobile-modal .ecoflow-modal-content {
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }


    /* ========== ALT TAB ACCORDION ========== */

    .ecoflow-mobile-modal .ecoflow-product-tabs {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-bottom: none;
        margin-bottom: 0;
        padding: 0;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        border: none;
        border-bottom: 1px solid #e5e5e5;
        background: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: 600;
        color: #000;
        cursor: pointer;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab:active {
        background: #f9f9f9;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab::after {
        content: '';
        width: 20px;
        height: 20px;
        background-image: url('/wp-content/uploads/2024/02/base.png');
        background-size: contain;
        background-repeat: no-repeat;
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab.active::after {
        transform: rotate(-90deg);
    }

    /* Tab İçerikleri */
    .ecoflow-mobile-modal .ecoflow-product-tabs-content {
        padding: 0;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab-content {
        display: none;
        padding: 20px;
        background: #fff;
    }

    .ecoflow-mobile-modal .ecoflow-product-tab-content.active {
        display: block;
    }


    /* ========== ÜRÜN KARTLARI ========== */

    .ecoflow-products-grid,
    .ecoflow-mobile-modal .ecoflow-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ecoflow-product-card:hover {
        background-color: rgba(0, 0, 0, 0.04) !important;
    }

    .ecoflow-product-card {
        border-radius: 0;
    }

    .ecoflow-product-image {
        padding: 0 10px;
        min-height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ecoflow-product-image img {
        max-height: 150px;
    }

    .ecoflow-product-info {
        padding: 0;
    }

    .ecoflow-product-title {
        font-size: 14px;
        margin-bottom: 6px;
        min-height: 55px;
    }

    .ecoflow-product-specs {
        font-size: 12px;
        margin-bottom: 12px;
        min-height: auto;
    }

    .ecoflow-product-buttons {
        display: flex;
        flex-direction: row;
        gap: 16px;
        align-items: flex-start;
        margin-top: 0;
        padding: 9px 0;
    }

    .ecoflow-product-button {
        font-size: 10px;
        text-decoration: underline !important;
        font-weight: 500;
    }

    .ecoflow-product-buttons .ecoflow-product-button:first-child::after {
        display: none;
    }

    button.sm-trigger.ecoflow-header-icon-btn {
        color: #fff;
        display: inline-flex;
        padding: 0;
    }

    .ecoflow-mobile-header .ecoflow-header-cart .ecoflow-cart-count {
        right: 0;
    }


    /* ========== ÜRÜN KARTLARI ANİMASYONU ========== */

    .ecoflow-mobile-modal .ecoflow-product-card {
        opacity: 0;
        animation: productFadeIn 0.3s ease forwards;
        position: relative;
        width: 100%;
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        background-color: #fafafa;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
    }

    @keyframes productFadeIn {
        from {
            opacity: 0;
            transform: translate(-20px, 10px);
        }

        to {
            opacity: 1;
            transform: translate(0, 0);
        }
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(6) {
        animation-delay: 0.3s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(7) {
        animation-delay: 0.35s;
    }

    .ecoflow-mobile-modal .ecoflow-product-card:nth-child(8) {
        animation-delay: 0.4s;
    }


    /* ========== YAN MENÜ ========== */

    .ecoflow-side-links {
        width: 100%;
        min-width: 100%;
        margin-top: 20px;
        border-top: 1px solid #e5e5e5;
        padding-top: 20px;
    }

    .ecoflow-side-links li {
        margin-bottom: 12px;
    }

    .ecoflow-side-links a {
        font-size: 14px;
    }


    /* ========== CARD MENU ========== */

    .ecoflow-card-menu-container {
        flex-direction: column;
        gap: 20px;
    }

    .ecoflow-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 24px;
    }

    .ecoflow-card {
        max-height: 200px;
        border-radius: 4px;
    }

    .ecoflow-card-image {
        height: 200px;
    }

    .ecoflow-card-content {
        padding: 16px;
    }

    .ecoflow-card-title {
        font-size: 14px;
    }

    .ecoflow-mobile-modal .ecoflow-product-specs {
        font-size: 10px;
        color: #83868a;
        margin-bottom: 0;
        margin-top: 4px;
        line-height: 1.4;
        font-weight: 500;
        letter-spacing: .5px;
    }

    /* ========== LIST MENU ========== */

    .ecoflow-list-menu-container {
        flex-direction: column;
        gap: 20px;
        padding: 16px 24px;
    }

    .ecoflow-list-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        display: grid;
    }

    .ecoflow-list-column {
        max-width: 100%;
    }

    .ecoflow-column-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .ecoflow-column-links a {
        font-size: 13px;
    }

    .ecoflow-bottom-images {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .ecoflow-bottom-image {
        height: 200px;
        border-radius: 4px;
    }

    .ecoflow-image-overlay span {
        color: #fff;
        font-size: 14px;
        display: flex;
        font-weight: 500;
        width: 100%;
        justify-content: space-between;
    }
}

/* ========================================
   MOBILE SMALL (< 380px)
   ======================================== */
@media (max-width: 768px) {
    .ecoflow-modal-content .ecoflow-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {

    .ecoflow-mobile-header {
        padding: 0 16px;
    }

    .ecoflow-header-logo img {
        height: 32px;
    }

    .ecoflow-mobile-menu-item {
        padding: 16px;
        font-size: 15px;
    }

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

    /* Grid Container */
    .ecoflow-products-grid,
    .ecoflow-mobile-modal .ecoflow-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }

    /* Grid Items - Taşmayı önle */
    .ecoflow-products-grid .ecoflow-product-card {
        min-width: 0;
        /* ÇOK ÖNEMLİ! */
        max-width: 100%;
        overflow: hidden;
    }

    /* İçindeki görseller */
    .ecoflow-product-card .ecoflow-product-image,
    .ecoflow-product-card .ecoflow-product-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }

    .ecoflow-products-grid .ecoflow-product-buttons {
        margin-top: 12px;
        padding: 0 0 9px 0;
    }

    /* Text taşmasını önle */
    .ecoflow-product-card .ecoflow-product-title,
    .ecoflow-product-card .ecoflow-product-specs {
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }

    /* Modal content padding kontrolü */
    .ecoflow-mobile-modal .ecoflow-modal-content {
        padding: 09;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .ecoflow-product-image {
        min-height: max-content;
        padding: 0;
    }

    .ecoflow-product-title {
        font-size: 13px;
    }

    .ecoflow-product-specs {
        font-size: 11px;
    }
}

/* ============================================
   MOBİL ACCORDION YAPISI
   ============================================ */

.ecoflow-mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ecoflow-accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #111827 !important;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.ecoflow-accordion-header:hover,
.ecoflow-accordion-header:focus,
.ecoflow-accordion-header:active,
.ecoflow-accordion-header:focus-visible {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.ecoflow-accordion-header:active {
    background: #f9fafb;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    background-image: url('/wp-content/uploads/2024/02/base.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
    display: inline-block;
    transform: rotate(90deg);
}

.ecoflow-accordion-item.active .accordion-icon {
    transform: rotate(270deg);
}

.ecoflow-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9fafb;
}

.ecoflow-accordion-item.active .ecoflow-accordion-content {
    max-height: 5000px;
    /* Yeterince büyük */
    padding: 0 16px;
    background-color: #fff;
}

/* Alt tab açıklaması */
.ecoflow-accordion-content .ecoflow-tab-description {
    font-size: 12px;
    color: #000;
    margin-bottom: 16px;
    padding: 10px 7px;
    border-bottom: none;
}

/********** MOBİL EFFECT ***********/
/* ====================================
   MOBİL MODAL - SMOOTH ANİMASYON
   ==================================== */

.ecoflow-mobile-modal .mobil-menu-card .ecoflow-card,
.ecoflow-mobile-modal .mobil-menu-list .ecoflow-list-column,
.ecoflow-mobile-modal .mobil-menu-list .ecoflow-bottom-image {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.8);
    transform-origin: top;
}

.ecoflow-mobile-modal .ecoflow-card.animating,
.ecoflow-mobile-modal .ecoflow-list-column.animating,
.ecoflow-mobile-modal .ecoflow-bottom-image.animating {
    transition: all 0.5s ease;
}