/* ==========================================================================
   EYELOVEYOU SHOP - TELJES CSS
   ========================================================================== */

/* SZÍNVILÁG BEÁLLÍTÁSA (Itt írd át a kódot!) */
:root {
    --eyeloveyou-primary: #D89244; /* Ezt cseréld le az új színre! */
    --eyeloveyou-text: #1a1a1a;
    --eyeloveyou-bg: #fff;
}

/* --------------------------------------------------------------------------
   1. FŐ LAYOUT
   -------------------------------------------------------------------------- */
body .eyeloveyou-shop-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Lista stílusok resetelése */
body ul.eyeloveyou-filter-list, 
body ul.eyeloveyou-filter-children {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* BAL OLDAL - SZŰRŐ SÁV */
body .eyeloveyou-shop-filters {
    width: 260px !important;
    min-width: 260px !important; 
    flex-shrink: 0 !important;
    background: #fff !important;
    padding: 20px !important;
    border: 2px solid #000 !important;
    border-radius: 0px !important;
}

/* JOBB OLDAL - TARTALOM */
body .eyeloveyou-shop-grid-wrap {
   
    flex-grow: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    
}

/* --------------------------------------------------------------------------
   2. GRID RENDSZER
   -------------------------------------------------------------------------- */
body .eyeloveyou-products-grid {
    display: grid !important;
    gap: 30px !important;
    margin-top: 20px !important;
    width: 100% !important;
    grid-template-columns: repeat(3, 1fr) !important; 
}

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

body .eyeloveyou-products-grid.eyeloveyou-view-compact {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Loader */
.eyeloveyou-shop-loader {
    text-align: center;
    padding: 30px;
    font-weight: 600;
    color: var(--eyeloveyou-primary);
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. TERMÉKKÁRTYA DESIGN
   -------------------------------------------------------------------------- */
body .eyeloveyou-card {
    background: var(--eyeloveyou-bg) !important;
    border-radius: 0px !important;
    border: 2px solid #000 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
    position: relative !important;
    padding-bottom: 10px !important;
    box-shadow: 5px 5px 0px 0px #000000 !important;
}

body .eyeloveyou-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
}

/* KÉP */
body .eyeloveyou-image {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    margin-bottom: 0 !important;
}

/* KÉP */
body .eyeloveyou-image img {
    width: 100% !important;
    height: auto !important;        /* A magasság a képtől függ */
    aspect-ratio: auto !important;  /* Nincs kényszerített arány */
    object-fit: contain !important; /* Teljes kép látszik */
    display: block !important;
    transition: transform 0.5s ease !important;
}

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

/* TARTALOM */
body .eyeloveyou-content {
    padding: 20px 25px 5px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-align: left !important;
}

/* KATEGÓRIA */
body .eyeloveyou-cat {
    font-size: 11px !important;
    color: var(--eyeloveyou-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
}

/* CÍM */
body .eyeloveyou-title {
    font-family: 'Poppins', sans-serif !important; /* Itt változtass fontot ha kell */
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: var(--eyeloveyou-text) !important;
    margin: 0 0 10px 0 !important;
}

/* ÁR */
body .eyeloveyou-price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--eyeloveyou-text) !important;
    margin-bottom: 20px !important;
    margin-top: auto !important;
}

/* GOMB */
body .eyeloveyou-button {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: #C4F7A1 !important;
    color: #000 !important; /* Szöveg színe a gombon */
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 0px !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    text-align: center !important;
    align-self: flex-start !important;
    transition: background 0.3s ease, opacity 0.3s ease !important;
    margin-bottom: 15px !important;
}
body .eyeloveyou-button:hover {
    opacity: 0.9 !important;
}

/* ALSÓ CSÍK */
body .eyeloveyou-line {
    width: 85% !important;
    height: 0px !important;
    background: var(--eyeloveyou-primary) !important;
    margin: 0 auto !important;
    position: absolute !important;
    bottom: 25px !important;
    left: 0 !important; right: 0 !important;
    border-radius: 10px !important;
    opacity: 0.9 !important;
}

/* --------------------------------------------------------------------------
   4. TOOLBAR
   -------------------------------------------------------------------------- */
body .eyeloveyou-shop-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    padding: 15px !important;
    border-bottom: 0px solid #eee !important;
    border-radius: 0px !important;
    flex-wrap: wrap !important;
    background-color: #fff;
    border: 2px solid #000 !important;
}

body .eyeloveyou-filter-toggle {
    display: none !important; 
    background: #222 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 15px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    margin-right: 10px !important;
    border-radius: 8px !important;
}

/* ÚJ GOMB: NÁLUNK VÁSÁROLTÁK */
body .eyeloveyou-referencia-btn {
    display: none !important; /* Desktopon rejtve */
}

body .eyeloveyou-sort-wrap select {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background-color: #fff !important;
    color: #333 !important;
}

body .eyeloveyou-sort-wrap {
    font-size: 15px !important;
}

body .eyeloveyou-view-toggle {
    display: flex !important;
    gap: 5px !important;
}

body .eyeloveyou-view-toggle button {
    background: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    opacity: 0.4 !important;
    padding: 4px !important;
    transition: 0.3s !important;
}

body .eyeloveyou-view-toggle button.is-active {
    opacity: 1 !important;
    border-color: #a0a0a0 !important;
    border-radius: 4px !important;
}

body .eyeloveyou-view-toggle img {
    width: 22px !important;
    height: auto !important;
    display: block !important;
}

@media(min-width: 769px) {
    body .eyeloveyou-view-btn.mobile-only { display: none !important; }
}

/* --------------------------------------------------------------------------
   5. SZŰRŐ LISTA (SIDEBAR)
   -------------------------------------------------------------------------- */
body .eyeloveyou-filter-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--eyeloveyou-primary) !important;
    display: inline-block !important;
}

body .eyeloveyou-filter-parent {
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

body .eyeloveyou-filter-children {
    padding-left: 15px !important;
    margin-top: 8px !important;
}

body .eyeloveyou-filter-children li {
    margin-bottom: 5px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

body .eyeloveyou-filter-checkbox {
    margin-right: 8px !important;
    accent-color: var(--eyeloveyou-primary) !important;
}

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

/* --------------------------------------------------------------------------
   6. RESPONSIVE (TABLET & MOBIL)
   -------------------------------------------------------------------------- */
@media(max-width: 1024px) {
    body .eyeloveyou-products-grid.eyeloveyou-view-compact {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    body .eyeloveyou-products-grid {
        gap: 20px !important;
    }
}

@media(max-width: 768px) {
    body .eyeloveyou-shop-wrap {
        display: block !important;
        padding: 0 15px !important;
        margin-top: 20px !important;
    }

    /* --- MOBIL FILTER PANEL (OFF-CANVAS) --- */
    body .eyeloveyou-shop-filters {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 85% !important; max-width: 300px !important;
        height: 100vh !important;
        z-index: 99999 !important;
        transform: translateX(-110%) !important;
        transition: transform 0.3s ease !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2) !important;
        overflow-y: auto !important;
        background: #fff !important;
    }
    body .eyeloveyou-shop-filters.is-open { transform: translateX(0) !important; }

    /* --- STICKY BEZÁRÓ GOMB --- */
    body .eyeloveyou-filter-close {
        display: block !important;
        position: sticky !important;
        top: 15px !important;
        float: right !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 24px !important;
        color: #333 !important;
        z-index: 100 !important;
        cursor: pointer !important;
        line-height: 35px !important;
        margin-bottom: 10px !important;
    }

    body .eyeloveyou-filter-toggle { 
        display: inline-block !important;
    }

    /* --- ÚJ GOMB MEGJELENÍTÉSE MOBILON --- */
    body .eyeloveyou-referencia-btn {
        display: inline-block !important;
        padding: 8px 15px !important;
        background: var(--eyeloveyou-primary) !important;
        color: #fff !important;
        border: 0px solid #ccc !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        margin-bottom: 10px !important;
        cursor: pointer !important;
    }
    body .eyeloveyou-referencia-btn:hover {
        opacity: 0.9 !important;
    }

    /* Toolbar átrendezése */
    body .eyeloveyou-shop-toolbar { 
        gap: 10px !important; 
        align-items: center !important;
        padding: 15px !important;
        
    }
    

    /* Nézetváltó gombok */
    body .eyeloveyou-view-toggle { display: flex !important; margin-left: auto !important; }
    body .eyeloveyou-view-btn.desktop-only { display: none !important; }
    body .eyeloveyou-view-btn.mobile-only { display: inline-block !important; }

    /* MOBIL GRID */
    body .eyeloveyou-products-grid,
    body .eyeloveyou-products-grid.eyeloveyou-view-large,
    body .eyeloveyou-products-grid.eyeloveyou-view-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    body .eyeloveyou-products-grid.eyeloveyou-view-mobile-1 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    body .eyeloveyou-image img { height: 160px !important; }
    body .eyeloveyou-view-mobile-1 .eyeloveyou-image img { height: 260px !important; }

    body .eyeloveyou-content { padding: 12px !important; }

    /* MOBIL FONT MÉRETEK */
    body .eyeloveyou-title { font-size: 13px !important; margin-bottom: 5px !important; }
    body .eyeloveyou-price { font-size: 13px !important; }
    body .eyeloveyou-button { padding: 8px 12px !important; font-size: 12px !important; width: 100% !important; }
    
    body .eyeloveyou-line { bottom: 15px !important; height: 5px !important; }
    body .eyeloveyou-card { padding-bottom: 10px !important; }
    
    body .eyeloveyou-sort-wrap select {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    background-color: #fff !important;
    color: #333 !important;
}

body .eyeloveyou-sort-wrap {
    font-size: 12px !important;
}
}