/* ==========================================================================
   HELKEM AJAX SHOP
   Shortcode: [helkem_shop]
   ========================================================================== */

/* ==========================================================================
   ALAP FONT
   ========================================================================== */

body .helkem-card,
body .helkem-card * {
    font-family: 'Inter', sans-serif !important;
}

/* ==========================================================================
   FŐ LAYOUT
   ========================================================================== */

body .helkem-shop-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 64px !important;
    max-width: 1500px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

body .helkem-shop-grid-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   SZŰRŐ SIDEBAR
   ========================================================================== */

body .helkem-shop-filters {
    width: 330px !important;
    min-width: 330px !important;
    flex-shrink: 0 !important;
}

body .helkem-filter-box {
    background: #10262C !important;
    border: 1px solid rgba(13, 192, 218, .12) !important;
    border-radius: 14px !important;
    padding: 28px 28px 30px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08) !important;
}

body .helkem-filter-title {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin: 0 0 22px !important;
}

body .helkem-filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .helkem-filter-list li {
    margin: 0 0 13px !important;
}

body .helkem-filter-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
}

body .helkem-filter-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    margin: 1px 0 0 !important;
    border: 2px solid #9BE23B !important;
    border-radius: 3px !important;
    background: transparent !important;
    cursor: pointer !important;
    position: relative !important;
}

body .helkem-filter-checkbox:checked {
    background: #9BE23B !important;
    box-shadow: 0 0 0 3px rgba(155, 226, 59, .14) !important;
}

body .helkem-filter-checkbox:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 4px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #10262C !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

body .helkem-filter-close {
    display: none !important;
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

body .helkem-shop-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 26px !important;
}

body .helkem-filter-toggle {
    display: none !important;
    background: #11BBD4 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

body .helkem-sort-wrap {
    margin-right: auto !important;
}

body .helkem-sort-wrap select {
    background: #10262C !important;
    color: #ffffff !important;
    border: 1px solid rgba(13, 192, 218, .25) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    outline: none !important;
}

body .helkem-view-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

body .helkem-view-btn {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #10262C !important;
    border: 1px solid rgba(13, 192, 218, .18) !important;
    border-radius: 10px !important;
    opacity: .55 !important;
    cursor: pointer !important;
    padding: 8px !important;
    transition: .2s ease !important;
}

body .helkem-view-btn.is-active {
    opacity: 1 !important;
    border-color: #11BBD4 !important;
    box-shadow: 0 0 0 3px rgba(17, 187, 212, .14) !important;
}

body .helkem-view-btn img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

body .helkem-view-btn.tablet-only {
    display: none !important;
}

/* ==========================================================================
   GRID
   ========================================================================== */

body .helkem-products-grid {
    display: grid !important;
    width: 100% !important;
    gap: 44px 76px !important;
    align-items: stretch !important;
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body .helkem-products-grid.helkem-view-large {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body .helkem-products-grid.helkem-view-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 34px !important;
}

/* ==========================================================================
   TERMÉKKÁRTYA
   ========================================================================== */

body .helkem-card {
    background: #10262C !important;
    border: 1px solid rgba(13, 192, 218, .13) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .11) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

body .helkem-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(17, 187, 212, .35) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18) !important;
}

/* ==========================================================================
   TERMÉKKÉP
   ========================================================================== */

body .helkem-card-image-wrap {
    position: relative !important;
    background: #ffffff !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

body .helkem-card-image {
    display: block !important;
    background: #ffffff !important;
    width: 100% !important;
    aspect-ratio: 1 / .96 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

body .helkem-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 22px !important;
    border-radius: 12px 12px 0 0 !important;
    transition: transform .35s ease !important;
}

body .helkem-card:hover .helkem-card-image img {
    transform: scale(1.035) !important;
}

/* ==========================================================================
   KEDVENC SZÍV
   ========================================================================== */

body .helkem-card-fav {
    position: absolute !important;
    top: 13px !important;
    right: 13px !important;
    z-index: 5 !important;
}

body .helkem-card-fav a,
body .helkem-card-fav button,
body .helkem-card-fav .helkem-fav-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    color: #11BBD4 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   KÁRTYA TARTALOM
   ========================================================================== */

body .helkem-card-content {
    padding: 28px 30px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

body .helkem-card-title {
    margin: 0 0 5px !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

body .helkem-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

body .helkem-card-code {
    color: rgba(255, 255, 255, .8) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    opacity: .8 !important;
    margin-bottom: 24px !important;
}

body .helkem-card-data {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin-top: auto !important;
    margin-bottom: 18px !important;
    flex-wrap: wrap !important;
}

body .helkem-card-data * {
    color: #ffffff !important;
}

body .helkem-card-data svg,
body .helkem-card-data i {
    color: #11BBD4 !important;
    fill: #11BBD4 !important;
}

body .helkem-card-price {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 18px !important;
}

body .helkem-card-price * {
    color: #ffffff !important;
}

body .helkem-card-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: #11BBD4 !important;
    color: #ffffff !important;
    border-radius: 7px !important;
    padding: 13px 16px !important;
    min-height: 48px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: .2s ease !important;
}

body .helkem-card-button:hover {
    background: #0EAAC1 !important;
    color: #ffffff !important;
}

body .helkem-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

body .helkem-cart-icon img {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    object-fit: contain !important;
}

/* ==========================================================================
   LOADER / EMPTY
   ========================================================================== */

body .helkem-shop-loader,
body .helkem-empty {
    color: #ffffff !important;
    text-align: center !important;
    padding: 28px !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   DESKTOP ONLY
   ========================================================================== */

@media (min-width: 769px) {

    body .helkem-view-btn.mobile-only {
        display: none !important;
    }

    body .helkem-filter-close {
        display: none !important;
    }
}

/* ==========================================================================
   DESKTOP KÖZTES SÁV (oldalsáv + 3/4 oszlop, szellősebb gap helyett kisebb)
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1300px) {

    body .helkem-shop-wrap {
        gap: 40px !important;
    }

    body .helkem-products-grid.helkem-view-large {
        gap: 36px 40px !important;
    }

    body .helkem-products-grid.helkem-view-compact {
        gap: 28px !important;
    }
}

/* ==========================================================================
   TABLET (769px – 1024px)
   Mobil-szerű drawer szűrő + hamburger, full-width rács.
   Nézetváltó: 2 vagy 3 oszlop. Alapból 3 oszlop.
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

    body .helkem-shop-wrap {
        display: block !important;
        padding: 0 22px !important;
        margin: 32px auto !important;
    }

    /* Szűrő drawer – mint mobilon, csak szélesebb */
    body .helkem-shop-filters {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 62% !important;
        max-width: 420px !important;
        min-width: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #0B1E23 !important;
        z-index: 99999 !important;
        padding: 26px !important;
        transform: translateX(-110%) !important;
        transition: transform .28s ease !important;
        box-shadow: 15px 0 40px rgba(0, 0, 0, .35) !important;
    }

    body .helkem-shop-filters.is-open {
        transform: translateX(0) !important;
    }

    body .helkem-filter-close {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        margin-left: auto !important;
        margin-bottom: 14px !important;
        width: 38px !important;
        height: 38px !important;
        background: #11BBD4 !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 10px !important;
        font-size: 20px !important;
        font-weight: 900 !important;
        cursor: pointer !important;
        z-index: 5 !important;
    }

    /* Toolbar */
    body .helkem-shop-toolbar {
        justify-content: space-between !important;
        gap: 12px !important;
        margin-bottom: 22px !important;
        flex-wrap: nowrap !important;
    }

    body .helkem-filter-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .helkem-sort-wrap {
        margin-right: 0 !important;
    }

    /* Gomb-láthatóság: csak a tablet gombok látszanak */
    body .helkem-view-btn.desktop-only {
        display: none !important;
    }

    body .helkem-view-btn.mobile-only {
        display: none !important;
    }

    body .helkem-view-btn.tablet-only {
        display: inline-flex !important;
    }

    /* Rács: alapból (és tablet-3 nézetben) 3 oszlop */
    body .helkem-products-grid,
    body .helkem-products-grid.helkem-view-large,
    body .helkem-products-grid.helkem-view-compact,
    body .helkem-products-grid.helkem-view-tablet-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 26px !important;
        align-items: stretch !important;
    }

    /* 2 oszlopos tablet nézet */
    body .helkem-products-grid.helkem-view-tablet-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
        align-items: stretch !important;
    }

    body .helkem-card {
        height: 100% !important;
        min-height: 0 !important;
    }
}

/* ==========================================================================
   MOBIL
   ========================================================================== */

@media (max-width: 768px) {

    body .helkem-shop-wrap {
        display: block !important;
        padding: 0 18px !important;
        margin: 24px auto !important;
    }

    body .helkem-shop-filters {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 88% !important;
        max-width: 360px !important;
        min-width: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #0B1E23 !important;
        z-index: 99999 !important;
        padding: 22px !important;
        transform: translateX(-110%) !important;
        transition: transform .28s ease !important;
        box-shadow: 15px 0 40px rgba(0, 0, 0, .35) !important;
    }

    body .helkem-shop-filters.is-open {
        transform: translateX(0) !important;
    }

    body .helkem-filter-close {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        margin-left: auto !important;
        margin-bottom: 14px !important;
        width: 38px !important;
        height: 38px !important;
        background: #11BBD4 !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 10px !important;
        font-size: 20px !important;
        font-weight: 900 !important;
        cursor: pointer !important;
        z-index: 5 !important;
    }

    body .helkem-shop-toolbar {
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap !important;
    }

    body .helkem-filter-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .helkem-sort-wrap {
        flex: 1 !important;
        margin-right: 0 !important;
    }

    body .helkem-sort-wrap select {
        width: 100% !important;
    }

    body .helkem-view-btn.desktop-only {
        display: none !important;
    }

    body .helkem-view-btn.mobile-only {
        display: inline-flex !important;
    }

    body .helkem-products-grid,
    body .helkem-products-grid.helkem-view-large,
    body .helkem-products-grid.helkem-view-mobile-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    body .helkem-products-grid.helkem-view-mobile-1 {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        align-items: start !important;
    }

    body .helkem-products-grid.helkem-view-mobile-2 .helkem-card {
        height: 100% !important;
        min-height: 0 !important;
    }

    body .helkem-products-grid.helkem-view-mobile-1 .helkem-card {
        height: auto !important;
        min-height: 0 !important;
    }

    body .helkem-card {
        border-radius: 12px !important;
    }

    body .helkem-card-image-wrap {
        padding: 0 !important;
        border-radius: 12px 12px 0 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    body .helkem-card-image {
        aspect-ratio: 1 / 1.02 !important;
        border-radius: 12px 12px 0 0 !important;
    }

    body .helkem-card-image img {
        padding: 14px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    body .helkem-card-content {
        padding: 16px 14px 18px !important;
        flex: 1 !important;
        min-height: 0 !important;
    }

    body .helkem-products-grid.helkem-view-mobile-1 .helkem-card-content {
        flex: 0 0 auto !important;
    }

    body .helkem-card-title {
        font-size: 13px !important;
        line-height: 1.18 !important;
    }

    body .helkem-card-code {
        font-size: 12px !important;
        margin-bottom: 16px !important;
    }

    body .helkem-card-data {
        gap: 10px !important;
        flex-wrap: wrap !important;
        font-size: 11px !important;
        margin-bottom: 14px !important;
    }

    body .helkem-products-grid.helkem-view-mobile-1 .helkem-card-data {
        margin-top: 18px !important;
    }

    body .helkem-products-grid.helkem-view-mobile-2 .helkem-card-data {
        margin-top: auto !important;
    }

    body .helkem-card-price {
        font-size: 11px !important;
        margin-bottom: 14px !important;
    }

    body .helkem-card-button {
        min-height: 44px !important;
        padding: 11px 12px !important;
        font-size: 13px !important;
    }

    body .helkem-card-fav {
        top: 4px !important;
        right: 4px !important;
    }

    body .helkem-card-fav a,
    body .helkem-card-fav button,
    body .helkem-card-fav .helkem-fav-button {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
}





/* ==========================================================================
   AKCIÓS BADGE – TERMÉKKÁRTYA
   ========================================================================== */

body .helkem-card-sale-badge {
    position: absolute !important;
    top: 13px !important;
    left: 13px !important;
    z-index: 6 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;

    background: #9BE23B !important;
    color: #10262C !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .14) !important;
}

@media (max-width: 768px) {
    body .helkem-card-sale-badge {
        top: 8px !important;
        left: 8px !important;
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 10px !important;
    }
}