/* ==========================================================
   GET4HOME PREMIUM
   HEADER
========================================================== */

/* ---------- Общий контейнер ---------- */

.g4h-container{
    max-width:1280px;
    margin:0 auto;
    padding:0 32px;
}

/* ---------- Header ---------- */

.g4h-header{
    position:sticky;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    background:linear-gradient(90deg,#149dcb 0%,#118fc4 60%,#1088bf 100%);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.admin-bar .g4h-header{
    top:32px;
}

/* ---------- Layout ---------- */

.g4h-header .g4h-container{

    height:82px;

    display:grid;

    grid-template-columns:
        190px
        minmax(340px,560px)
        1fr
        auto;

    align-items:center;

    gap:34px;

}

/* ---------- Logo ---------- */

.g4h-logo{

    color:#fff;

    text-decoration:none;

    white-space:nowrap;

    display:inline-flex;

    align-items:center;

    gap:10px;

    line-height:1;

}

.g4h-logo-icon{

    height:34px;

    width:auto;

    display:block;

}

.g4h-logo-text{

    font-size:26px;

    font-weight:800;

    letter-spacing:-.02em;

    color:#fff;

}

.g4h-logo-text span{

    color:#ffea10;

}

/* ---------- Search ---------- */

.g4h-search{

    position:relative;

}

.g4h-search-icon{

    position:absolute;

    left:20px;

    top:50%;

    transform:translateY(-50%);

    color:rgba(255,255,255,.9);

    font-size:19px;

    pointer-events:none;

}

.g4h-search input{

    width:100%;

    height:52px;

    border-radius:999px;

    border:1px solid rgba(255,255,255,.18);

    background:rgba(255,255,255,.14);

    color:#fff;

    padding:0 24px 0 52px;

    font-size:15px;

    outline:none;

    transition:.3s;

}

.g4h-search input::placeholder{

    color:rgba(255,255,255,.75);

}

.g4h-search input:hover{

    background:rgba(255,255,255,.18);

}

.g4h-search input:focus{

    background:rgba(255,255,255,.24);

    border-color:rgba(255,255,255,.45);

}

/* ---------- Menu ---------- */

.g4h-nav{

    display:flex;

    justify-content:flex-end;

}

.g4h-menu{

    display:flex;

    align-items:center;

    gap:26px;

    list-style:none;

    margin:0;

    padding:0;

}

.g4h-menu li{

    margin:0;

}

.g4h-header .g4h-menu a{

    display:flex;

    align-items:center;

    gap:7px;

    color:#fff;

    text-decoration:none;

    font-size:15px;

    font-weight:700;

    transition:.25s;

}

.g4h-menu a span{

    font-size:17px;

    line-height:1;

}

.g4h-menu a:hover{

    opacity:.85;

}

/* ---------- Actions ---------- */

.g4h-actions{

    display:flex;

    align-items:center;

    gap:10px;

}

.g4h-account,
.g4h-cart{

    position:relative;

    width:50px;

    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    text-decoration:none;

    backdrop-filter:blur(10px);

    transition:.25s;

}

.g4h-account:hover,
.g4h-cart:hover{

    background:rgba(255,255,255,.22);

    transform:translateY(-2px);

}

.g4h-cart em{

    position:absolute;

    top:-4px;

    right:-4px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:#ffd000;

    color:#004f80;

    font-size:11px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

}

/* ---------- Бургер (кнопка мобильного меню) ---------- */

.g4h-burger{

    display:none;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:5px;

    width:42px;

    height:42px;

    padding:0;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    cursor:pointer;

    transition:.25s;

}

.g4h-burger:hover{

    background:rgba(255,255,255,.22);

}

.g4h-burger span{

    display:block;

    width:20px;

    height:2px;

    border-radius:2px;

    background:#fff;

    transition:.25s;

}

/* Крестик, когда меню открыто */
.g4h-burger.is-active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}
.g4h-burger.is-active span:nth-child(2){
    opacity:0;
}
.g4h-burger.is-active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* ---------- Мобильное меню (выезжающая панель) ---------- */

.g4h-drawer-overlay{

    position:fixed;

    inset:0;

    z-index:1100;

    background:rgba(10,25,40,.5);

    opacity:0;

    visibility:hidden;

    transition:opacity .25s ease;

}

.g4h-drawer-overlay.is-open{

    opacity:1;

    visibility:visible;

}

.g4h-drawer{

    position:fixed;

    top:0;

    right:0;

    bottom:0;

    z-index:1200;

    width:320px;

    max-width:85vw;

    background:#fff;

    box-shadow:-12px 0 40px rgba(0,0,0,.2);

    transform:translateX(100%);

    transition:transform .3s ease;

    display:flex;

    flex-direction:column;

    overflow-y:auto;

}

.g4h-drawer.is-open{

    transform:translateX(0);

}

.g4h-drawer-head{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 20px;

    background:linear-gradient(90deg,#149dcb 0%,#118fc4 60%,#1088bf 100%);

    color:#fff;

    flex-shrink:0;

}

.g4h-drawer-head-title{

    font-size:17px;

    font-weight:800;

}

.g4h-drawer-close{

    border:none;

    background:rgba(255,255,255,.14);

    color:#fff;

    width:36px;

    height:36px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:.25s;

}

.g4h-drawer-close:hover{

    background:rgba(255,255,255,.26);

}

.g4h-drawer-nav{

    padding:10px 0 24px;

}

.g4h-drawer-menu{

    list-style:none;

    margin:0;

    padding:0;

}

.g4h-drawer-menu > li{

    border-bottom:1px solid #eef1f5;

}

.g4h-drawer-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:16px 20px;

    color:#173d66;

    text-decoration:none;

    font-size:15px;

    font-weight:700;

}

.g4h-drawer-menu a span{

    display:flex;

    color:#118fc4;

    flex-shrink:0;

}

.g4h-drawer-row{

    display:flex;

    align-items:center;

}

.g4h-drawer-row a{

    flex:1 1 auto;

}

.g4h-drawer-toggle{

    border:none;

    background:transparent;

    color:#118fc4;

    width:44px;

    height:44px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:transform .25s ease;

}

.g4h-drawer-toggle.is-active{

    transform:rotate(180deg);

}

.g4h-drawer-submenu{

    list-style:none;

    margin:0;

    padding:0 0 8px;

    background:#f7f9fb;

    max-height:0;

    overflow:hidden;

    transition:max-height .3s ease;

}

.g4h-drawer-submenu.is-open{

    max-height:1200px;

}

.g4h-drawer-submenu a{

    padding:12px 20px 12px 40px;

    font-size:14px;

    font-weight:600;

    color:#3a5a78;

}

/* "Δείτε όλα τα προϊόντα" — отдельная строка снизу списка категорий,
   чтобы с мобильного меню всё ещё можно было попасть на страницу со
   всеми товарами (раньше это делал клик по самой "Προϊόντα", но
   теперь он только разворачивает категории). */
.g4h-drawer-viewall{

    border-top:1px solid #e3e9ef;

    margin-top:4px;

}

.g4h-drawer-viewall a{

    font-weight:800;

    color:#1f6fb2;

}

/* Блокировка прокрутки страницы, пока открыто мобильное меню */
body.g4h-drawer-open{

    overflow:hidden;

}

/* ---------- Mobile ---------- */

@media (max-width:1300px){

    .g4h-header .g4h-container{

        grid-template-columns:160px 1fr auto;

    }

    .g4h-nav{

        display:none;

    }

    .g4h-burger{

        display:flex;

    }

}

@media (max-width:768px){

    .g4h-container{

        padding:0 18px;

    }

    .g4h-header .g4h-container{

        height:72px;

        grid-template-columns:130px 1fr auto;

        gap:14px;

    }



    .g4h-search input{

        height:46px;

    }

    .g4h-account,
    .g4h-cart{

        width:44px;

        height:44px;

    }

}
.g4h-search-icon{

    display:flex;
    align-items:center;
    justify-content:center;

}

.g4h-search-icon svg{

    width:20px;
    height:20px;

    stroke:#ffffff;

}
/* ==========================================================
   УВЕДОМЛЕНИЕ "ДОБАВЛЕНО В КОРЗИНУ" — ненавязчивый тост справа
========================================================== */

.g4h-atc-modal-overlay{
    position:fixed;
    top:100px;
    right:24px;
    z-index:9999;
    pointer-events:none;
}

.g4h-atc-modal{
    width:340px;
    max-width:calc(100vw - 32px);
    background:#fff;
    border-radius:22px;
    box-shadow:0 20px 50px rgba(0,0,0,.18);
    padding:20px;
    opacity:0;
    transform:translateX(120%);
    transition:opacity .25s ease, transform .3s ease;
    pointer-events:auto;
}

.g4h-atc-modal-overlay.is-visible .g4h-atc-modal{
    opacity:1;
    transform:translateX(0);
}

.g4h-atc-modal-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.g4h-atc-modal-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#e9f9ee;
    color:#1f9d55;
    flex-shrink:0;
}

.g4h-atc-modal-title{
    font-weight:800;
    font-size:16px;
    color:#173d66;
    flex:1 1 auto;
}

.g4h-atc-modal-close{
    border:none;
    background:transparent;
    color:#6b7280;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    padding:0;
    flex-shrink:0;
}

.g4h-atc-modal-body{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:22px;
}

.g4h-atc-modal-thumb{
    width:64px;
    height:64px;
    border-radius:14px;
    object-fit:contain;
    background:#fff;
    flex-shrink:0;
    background:#f5f7fa;
}

.g4h-atc-modal-info{
    min-width:0;
}

.g4h-atc-modal-name{
    font-weight:700;
    color:#222;
    font-size:14px;
    line-height:1.35;
}

.g4h-atc-modal-meta{
    margin-top:4px;
    font-size:13px;
    color:#6b7280;
    font-weight:600;
}

.g4h-atc-modal-actions{
    display:flex;
    gap:12px;
}

.g4h-atc-modal-continue,
.g4h-atc-modal-viewcart{
    flex:1 1 0;
    height:46px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.g4h-atc-modal-continue{
    border:1px solid #e2e2e2;
    background:#f5f7fa;
    color:#173d66;
}

.g4h-atc-modal-continue:hover{
    background:#eef1f5;
}

.g4h-atc-modal-viewcart{
    border:none;
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    color:#0077B6;
    font-weight:800;
}

.g4h-atc-modal-viewcart:hover{
    box-shadow:0 6px 14px rgba(255,133,0,.35);
    transform:translateY(-1px);
}

@media(max-width:480px){

    .g4h-atc-modal-overlay{
        top:auto;
        bottom:16px;
        right:16px;
        left:16px;
    }

    .g4h-atc-modal{
        width:100%;
        transform:translateY(120%);
    }

    .g4h-atc-modal-overlay.is-visible .g4h-atc-modal{
        transform:translateY(0);
    }

    .g4h-atc-modal-actions{
        flex-direction:column;
    }

}

/* Состояние загрузки на кнопке "Προσθήκη στο καλάθι" пока идёт
   AJAX-запрос (страница товара). */
.g4h-loading{
    opacity:.6 !important;
    cursor:wait !important;
    pointer-events:none;
}

@media(max-width:700px){

    .g4h-logo-icon{

        height:28px;

    }

    .g4h-logo-text{

        font-size:20px;

    }

}