/* ============================================= */
/* Основні стилі */
/* ============================================= */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}
@media (max-width: 767px) {
    body { padding-bottom: 82px !important; }
}
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ============================================= */
/* МОБІЛЬНА НИЖНЯ НАВІГАЦІЯ */
/* ============================================= */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 6px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.18);
    z-index: 99999 !important;
    height: 62px;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    text-align: center;
    color: #555;
    font-size: 11px;
    flex: 1;
    position: relative;
}

.mobile-bottom-nav .nav-item .glyphicon {
    font-size: 23px;
    display: block;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-label {
    display: block;
    font-size: 10px;
}

.mobile-badge {
    position: absolute;
    top: -6px;
    right: 20%;
    background: #f60;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    padding: 0 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Футер */
.site-footer {
    border-top: 1px solid #ebebeb;
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    font-family: 'Inter', Arial, sans-serif;
}
.site-footer-brand {
    color: #f60;
    font-weight: 700;
}

/* Ховаємо на десктопі */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ============================================= */
/* Каталог модальне вікно */
/* ============================================= */
.catalog-modal {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    z-index: 100001;
}

.catalog-overlay {
    position: absolute;
    background: rgba(0,0,0,0.45);
    top: 0; left: 0; right: 0; bottom: 0;
}

.catalog-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1150px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.close-catalog {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 26px;
    line-height: 1;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.15s;
}
.close-catalog:hover { color: #444; background: #f2f2f2; }

.catalog-body {
    display: flex;
    overflow: hidden;
    position: relative;
    max-height: calc(100vh - 80px);
}

.catalog-left {
    width: 250px;
    flex-shrink: 0;
    background: #fafafa;
    border-right: 1px solid #eeeeee;
    overflow-y: auto;
    padding: 8px 0;
}

.main-cat-item {
    padding: 11px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14.5px;
    color: #333;
    border-left: 3px solid transparent;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}

.main-cat-item:hover,
.main-cat-item.active {
    background: #fff4ec;
    color: #f60;
    border-left-color: #f60;
}

.main-cat-item img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    object-fit: contain;
}

.catalog-right {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

.sub-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 9px;
}

.sub-cat-item {
    padding: 11px 14px;
    background: #f7f7f7;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sub-cat-item:hover {
    background: #fff4ec;
    color: #f60;
    border-color: #f7c8a0;
    text-decoration: none;
}

@media (max-width: 767px) {
    .catalog-modal {
        top: 62px;
    }
    .catalog-content {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.18);
    }
    /* Відкриття зверху (зі side drawer) */
    .catalog-modal.from-top .catalog-content {
        top: 0;
        bottom: auto;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.18);
    }
    .catalog-body {
        max-height: 76vh;
    }
    .catalog-left {
        width: 38%;
        min-width: 110px;
    }
    .catalog-right {
        padding: 12px;
    }
    .sub-cat-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .catalog-content {
        width: 100%;
        left: 0;
        transform: none;
        max-width: 100%;
    }
    .catalog-left {
        width: 210px;
    }
}

/* ============================================= */
/* Sidebar */
/* ============================================= */
.sidebar {
    background: white;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 64px;
}

.main-category-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    font-weight: 500;
}

.main-category-link:hover {
    background: #fff0e6;
    color: #f60;
}

.main-category-link img {
    width: 26px;
    height: 26px;
    margin-right: 10px;
    object-fit: contain;
}

.subcategory-list {
    margin-left: 38px;
    margin-bottom: 12px;
}

.sub-category-link {
    display: block;
    padding: 6px 12px;
    color: #555;
    text-decoration: none;
    font-size: 14.5px;
}

.sub-category-link:hover {
    color: #f60;
}

/* ============================================= */
/* Продуктові картки */
/* ============================================= */
.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    margin-bottom: 20px;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    padding: 15px;
    background: #fafafa;
}

.product-title {
    font-size: 15.5px;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 44px;
}

.current-price {
    font-size: 19px;
    font-weight: 700;
    color: #f60;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    display: block;
}

.btn-buy {
    background: #f60;
    border: none;
    font-weight: 600;
}

.btn-buy:hover {
    background: #e55a00;
}

/* ============================================= */
/* Додаткові класи */
/* ============================================= */
.mobile-hidden {
    display: none;
}

@media (min-width: 768px) {
    .mobile-hidden {
        display: block;
    }
}

/* ============================================= */
/* Бокова панель (side drawer) */
/* ============================================= */
.side-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100002;
    pointer-events: none;
}
.side-drawer.open { pointer-events: all; }

.side-drawer-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s;
}
.side-drawer.open .side-drawer-overlay { opacity: 1; }

.side-drawer-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.14);
    overflow-y: auto;
}
.side-drawer.open .side-drawer-panel { transform: translateX(0); }

.side-drawer-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.side-drawer-close {
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.15s;
}
.side-drawer-close:hover { color: #333; background: #f5f5f5; }

.side-drawer-cats {
    margin: 14px 16px 6px;
    padding: 13px 18px;
    background: #f60;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
    width: calc(100% - 32px);
    box-sizing: border-box;
}
.side-drawer-cats:hover { background: #e55a00; }

.side-drawer-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 16px;
}

.side-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    border-radius: 10px;
    margin: 0 8px;
    transition: background 0.13s, color 0.13s;
}
.side-drawer-nav a:last-child { border-bottom: none; }
.side-drawer-nav a:hover { background: #fff4ec; color: #f60; text-decoration: none; }
.side-drawer-nav .sd-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 0;
}
.side-drawer-nav .sd-icon svg { display: block; }

@media (max-width: 767px) {
    .side-drawer-panel { width: 260px; }
}

/* ============================================= */
/* Інформаційні сторінки */
/* ============================================= */
.info-breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 20px 0;
    font-size: 13px;
    color: #aaa;
    display: flex;
    gap: 6px;
    align-items: center;
}
.info-breadcrumb a { color: #aaa; text-decoration: none; }
.info-breadcrumb a:hover { color: #f60; }

.info-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}
.info-page h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}
.info-page h2 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 22px 0 8px;
}
.info-page p, .info-page ul, .info-page ol {
    color: #555;
    line-height: 1.75;
    margin-bottom: 12px;
    font-size: 15px;
}
.info-page ul, .info-page ol { padding-left: 22px; }
.info-block {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border-left: 4px solid #f60;
}
.info-block h2 { margin-top: 0 !important; }

/* ============================================= */
/* Футер посилання */
/* ============================================= */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 10px;
    margin-bottom: 8px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.footer-links a:hover { color: #f60; text-decoration: none; }
.footer-links .fl-sep { color: #ddd; font-size: 13px; }
.footer-copy { font-size: 13px; color: #bbb; }
 
