* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #fafaf8; color: #212127; line-height: 1.5; }
:root {
    --primary: #3a2c1b;
    --primary-light: #5c4a32;
    --accent: #b87c4d;
    --gray-light: #f4f1eb;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 30px rgba(0,0,0,0.08);
    --border-radius: 20px;
}
h1, h2, h3, .logo-title { font-family: Arial, sans-serif; font-weight: 700; }

/* ========================================== */
/*  НАВІГАЦІЯ (ФІКСОВАНА)                    */
/* ========================================== */
.navbar {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: transform 0.3s ease;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 55px; }
.logo-title { font-size: 1.6rem; color: var(--primary); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; color: #5a5a62; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.cart-icon { position: relative; cursor: pointer; font-size: 1.5rem; color: var(--primary); }
.cart-count { position: absolute; top: -10px; right: -12px; background: var(--accent); color: white; font-size: 0.7rem; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Мобільні пристрої - фіксований хедер */
@media (max-width: 768px) {
    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
        padding: 10px 5% !important;
    }
    
    /* Фікс для Safari на iOS */
    @supports (-webkit-touch-callout: none) {
        .navbar {
            position: -webkit-sticky !important;
            position: sticky !important;
        }
    }
}

/* Фікс для дуже старих браузерів */
@supports not (position: sticky) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    body {
        padding-top: 80px;
    }
    @media (max-width: 768px) {
        body {
            padding-top: 70px;
        }
    }
}

/* ========================================== */
/*  КОШИК (CART SIDEBAR) - ВИПРАВЛЕНО        */
/* ========================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    height: 100dvh; /* dvh — динамічна висота, враховує адресну панель */
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.cart-overlay.open {
    right: 0;
}

/* Для браузерів, які не підтримують dvh */
@supports not (height: 100dvh) {
    .cart-overlay {
        height: 100vh;
        height: calc(100vh - env(safe-area-inset-bottom, 0px));
    }
}

/* Для Android Chrome, де адресна панель змінює розмір */
@supports (-webkit-touch-callout: none) {
    .cart-overlay {
        height: -webkit-fill-available;
        height: 100dvh;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 15px 0;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* плавний скрол на iOS */
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
}

.cart-item-price {
    color: var(--accent);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.cart-total {
    border-top: 2px solid #ddd;
    padding-top: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0; /* не стискається */
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    margin-top: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 40px;
    flex-shrink: 0; /* не стискається */
    margin-bottom: env(safe-area-inset-bottom, 0px);
}

.close-cart {
    background: none;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

/* ========================================== */
/*  ГЕРО-БЛОК З ФОНОМ (ДЕСКТОП / МОБІЛЬНІ)   */
/* ========================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/img/WooDBanner3.png') center/cover fixed;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 20px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Планшети */
@media (max-width: 992px) {
    .hero {
        height: 75vh;
        min-height: 450px;
        width: auto;
        background-position: center;
        background-size: cover;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Мобільні пристрої - використовуємо WooDBanner2.png */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/img/WooDBanner2.png') center;
        width: auto;
        height: 70vh;
        min-height: 400px;
        background-position: center;
        background-size: cover;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Фікс для Safari на iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: cover;
    }
}

/* ========================================== */
/*  КНОПКИ                                   */
/* ========================================== */
.btn { display: inline-block; background: var(--primary); color: white; padding: 12px 36px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; border-radius: 40px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.btn:hover { background: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* ========================================== */
/*  КАТЕГОРІЇ                                */
/* ========================================== */
.categories-section { padding: 60px 5%; background: linear-gradient(135deg, #fff 0%, #f9f7f3 100%); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; position: relative; padding-bottom: 20px; }
.section-title:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--accent); border-radius: 3px; }
.categories-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.category-card { background: white; padding: 30px 40px; text-align: center; font-weight: bold; font-size: 1.3rem; cursor: pointer; transition: 0.3s; min-width: 200px; border-radius: 40px; text-decoration: none; color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); }
.category-card:hover, .category-card.active { background: var(--primary); color: white; transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ========================================== */
/*  ТОВАРИ                                    */
/* ========================================== */
.products-section { padding: 60px 5%; background: #fafaf8; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; max-width: 1400px; margin: 0 auto; }
.product-card { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); border: 1px solid rgba(0,0,0,0.03); }
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.product-img { width: 100%; height: 260px; object-fit: cover; background: #eaeef2; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.03); }
.product-info { padding: 20px; }
.product-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.product-category { color: #888; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 10px; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin: 12px 0; }
.add-to-cart { background: var(--primary); color: white; border: none; padding: 10px 0; width: 100%; font-weight: 600; cursor: pointer; border-radius: 40px; transition: 0.2s; }
.add-to-cart:hover { background: var(--primary-light); }
.product-card-link { text-decoration: none; color: inherit; display: block; }

/* ========================================== */
/*  ДЕТАЛЬНА СТОРІНКА ТОВАРУ                  */
/* ========================================== */
.product-detail-container { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: white; padding: 40px; border-radius: 30px; box-shadow: var(--shadow-sm); }
.product-gallery { display: flex; flex-direction: column; gap: 15px; }
.product-main-image { position: relative; cursor: zoom-in; border-radius: 20px; overflow: hidden; }
.product-main-image img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.3s; }
.product-main-image:hover img { transform: scale(1.05); }
.zoom-icon { position: absolute; bottom: 15px; right: 15px; background: rgba(0,0,0,0.6); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transition: opacity 0.3s; }
.product-main-image:hover .zoom-icon { opacity: 1; }
.product-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbnail { cursor: pointer; border-radius: 12px; overflow: hidden; border: 2px solid transparent; transition: all 0.3s; aspect-ratio: 1; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.thumbnail.active { border-color: var(--accent); }
.product-detail-info h1 { font-size: 2.2rem; margin-bottom: 10px; color: var(--primary); }
.product-detail-category { color: #888; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 15px; }
.product-detail-price { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 20px 0; }
.product-detail-desc { color: #555; line-height: 1.8; margin: 20px 0; }
.product-detail-actions { display: flex; gap: 15px; margin-top: 30px; }
.product-detail-actions .btn { padding: 14px 30px; }
.quantity-selector { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.quantity-selector input { width: 60px; padding: 10px; text-align: center; border: 1px solid #ddd; border-radius: 8px; }
.breadcrumbs { padding: 20px 5%; background: transparent; font-size: 0.9rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.not-found { text-align: center; padding: 60px 20px; }

/* ========================================== */
/*  ЛАЙТБОКС                                 */
/* ========================================== */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; padding: 20px; }
.lightbox.active { display: flex; flex-direction: column; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; z-index: 3001; }
.lightbox-close:hover { color: #ccc; }
.lightbox-content { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.lightbox-content img { max-width: 90%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 3001; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-thumbnails { display: flex; justify-content: center; gap: 10px; padding: 20px 0; overflow-x: auto; }
.lightbox-thumbnail { width: 80px; height: 80px; cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid transparent; transition: 0.3s; flex-shrink: 0; }
.lightbox-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumbnail:hover { transform: scale(1.05); }
.lightbox-thumbnail.active { border-color: white; }

/* ========================================== */
/*  МОДАЛЬНІ ВІКНА                            */
/* ========================================== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2500; align-items: center; justify-content: center; overflow-y: auto; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 30px; max-width: 500px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); }
.modal-large { max-width: 700px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #888; z-index: 10; }
.close-modal:hover { color: var(--primary); }

/* ========================================== */
/*  ФОРМИ                                    */
/* ========================================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 12px; font-size: 14px; font-family: Arial, sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.btn-block { width: 100%; }
.order-summary { background: var(--gray-light); padding: 20px; border-radius: 16px; margin: 20px 0; }
.order-summary h3 { margin-bottom: 15px; color: var(--primary); }
.order-item-summary { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ddd; }
.order-total { font-size: 1.3rem; font-weight: bold; text-align: right; margin-top: 15px; padding-top: 15px; border-top: 2px solid var(--primary); }

/* ========================================== */
/*  АДМІН-ПАНЕЛЬ                             */
/* ========================================== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1606761568499-6d2451b23c66?w=2070&q=80') center/cover fixed; }
.login-box { background: white; padding: 40px; border-radius: 30px; max-width: 400px; width: 90%; box-shadow: var(--shadow-md); }
.login-box h2 { text-align: center; margin-bottom: 30px; color: var(--primary); }
.login-box input { width: 100%; padding: 14px; margin: 10px 0; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; }
.login-box .btn { width: 100%; padding: 14px; margin-top: 20px; border-radius: 40px; }
.login-error { color: #e74c3c; text-align: center; margin-top: 15px; display: none; }
.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: #888; text-decoration: none; }

.admin-tabs { display: flex; justify-content: center; gap: 10px; padding: 20px 5%; background: white; border-bottom: 1px solid #eee; }
.admin-tab { padding: 12px 30px; background: none; border: none; font-size: 1rem; font-weight: 600; color: #888; cursor: pointer; border-radius: 40px; transition: 0.3s; }
.admin-tab:hover { background: #f0f0f3; }
.admin-tab.active { background: var(--primary); color: white; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-panel { padding: 40px 5%; background: #fef9e8; }
.admin-form { max-width: 700px; margin: 0 auto; background: white; padding: 30px; border-radius: 30px; box-shadow: var(--shadow-sm); }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 12px; }
.product-list-admin { margin-top: 40px; }
.admin-product-item { background: white; padding: 12px; margin: 10px 0; display: flex; justify-content: space-between; align-items: center; border-radius: 16px; border: 1px solid #eee; }
.admin-product-item-actions { display: flex; gap: 8px; }
.edit-product { background: #3498db; color: white; border: none; padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.delete-product { background: #c0392b; color: white; border: none; padding: 6px 12px; border-radius: 20px; cursor: pointer; }

.orders-filter { margin-bottom: 20px; }
.orders-filter select { padding: 10px 20px; border: 1px solid #ddd; border-radius: 12px; font-size: 14px; }
.orders-list-admin { display: flex; flex-direction: column; gap: 15px; }
.order-card { background: white; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.order-id { font-weight: bold; color: var(--primary); }
.order-date { color: #888; font-size: 0.9rem; }
.order-status { padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-new { background: #3498db; color: white; }
.status-processing { background: #f39c12; color: white; }
.status-shipped { background: #2ecc71; color: white; }
.status-delivered { background: #27ae60; color: white; }
.status-cancelled { background: #e74c3c; color: white; }
.order-customer { margin-bottom: 15px; }
.order-customer p { margin: 5px 0; color: #555; }
.order-customer i { width: 20px; color: var(--accent); }
.order-products { margin: 15px 0; }
.order-product-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.order-total-amount { font-size: 1.2rem; font-weight: bold; }
.order-actions { display: flex; gap: 10px; }
.order-actions select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 12px; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.order-details-section { margin-bottom: 25px; }
.order-details-section h3 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #eee; color: var(--primary); }
.order-details-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ========================================== */
/*  ЗАВАНТАЖЕННЯ ЗОБРАЖЕНЬ (АДМІН)           */
/* ========================================== */
.images-upload-container { margin: 15px 0; }
.drop-zone { border: 2px dashed #ccc; border-radius: 20px; padding: 30px 20px; text-align: center; background: #fafafa; transition: all 0.3s; cursor: pointer; }
.drop-zone:hover { border-color: var(--accent); background: #f0f0f3; }
.drop-zone.drag-over { border-color: #2ecc71; background: #e8f8f5; }
.drop-zone i { font-size: 40px; color: var(--accent); margin-bottom: 10px; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 15px; }
.image-thumbnail { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); border: 2px solid #eee; transition: 0.2s; }
.image-thumbnail:hover { border-color: var(--accent); transform: scale(1.02); }
.image-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.image-thumbnail .remove-image { position: absolute; top: 5px; right: 5px; background: #e74c3c; color: white; border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.image-thumbnail:hover .remove-image { opacity: 1; }
.image-thumbnail .remove-image:hover { background: #c0392b; }
.image-thumbnail .main-badge { position: absolute; bottom: 5px; left: 5px; background: var(--primary); color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 20px; }
.images-grid .add-more-btn { aspect-ratio: 1; border: 2px dashed #ccc; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: #fafafa; transition: 0.2s; color: #888; }
.images-grid .add-more-btn:hover { border-color: var(--accent); background: #f0f0f3; color: var(--accent); }
.images-grid .add-more-btn i { font-size: 30px; margin-bottom: 5px; }
.form-actions { display: flex; gap: 10px; margin: 20px 0; }

/* ========================================== */
/*  ПУБЛІЧНІ СТОРІНКИ (TERMS, DELIVERY)      */
/* ========================================== */
.terms-container { max-width: 900px; margin: 0 auto; padding: 60px 5%; background: white; border-radius: 40px; box-shadow: var(--shadow-sm); }
.terms-container h1 { font-size: 2.5rem; margin-bottom: 30px; text-align: center; color: var(--primary); }
.terms-container h2 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--accent); }
.terms-container p, .terms-container li { color: #555; line-height: 1.8; margin-bottom: 15px; }
.last-updated { text-align: right; color: #888; margin-top: 40px; font-style: italic; }

/* ========================================== */
/*  ФУТЕР                                    */
/* ========================================== */
.footer { background: var(--primary); color: #ccc; padding: 40px 5%; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-section h4 { color: #fff; font-size: 1.1rem; margin-bottom: 15px; font-weight: 700; }
.footer-section p { color: #ccc; line-height: 1.6; font-size: 0.95rem; margin: 8px 0; }
.footer-section p i { width: 25px; color: #b87c4d; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #ccc; text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }

.social-links-footer { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.social-links-footer a { display: inline-flex; align-items: center; justify-content: center; width: 55px; height: 55px; background: rgba(255,255,255,0.1); border-radius: 50%; text-decoration: none; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.15); }
.social-links-footer a i { color: #ffffff !important; font-size: 1.8rem; }
.social-links-footer a:hover { background: #b87c4d; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 25px rgba(184,124,77,0.5); border-color: #b87c4d; }
.social-links-footer a:hover i { color: #ffffff !important; }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #999; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ========================================== */
/*  МОБІЛЬНА НАВІГАЦІЯ                       */
/* ========================================== */
.hamburger { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); padding: 5px 10px; line-height: 1; transition: all 0.3s ease; z-index: 101; }
.hamburger:hover { color: var(--accent); }
.hamburger i { font-size: 1.8rem; }
.nav-right { display: flex; align-items: center; gap: 15px; }

/* ========================================== */
/*  ПІДКАТЕГОРІЇ                             */
/* ========================================== */
.subcategory-container { text-align: center; margin: 20px 5% 0; }
.subcategory-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; background: white; padding: 15px 20px; border-radius: 60px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.subcategory-label { font-weight: 600; color: var(--primary); margin-right: 10px; align-self: center; }
.subcat-btn { background: #f0f0f3; border: none; padding: 8px 20px; border-radius: 40px; font-weight: 500; cursor: pointer; transition: 0.2s; color: #333; }
.subcat-btn:hover { background: #e0e0e6; transform: translateY(-2px); }
.subcat-btn.active { background: var(--accent); color: white; }

/* ========================================== */
/*  АДАПТИВ (МОБІЛЬНІ)                       */
/* ========================================== */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .navbar { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: 12px 5%; }
    .brand { flex: 1; }
    .nav-links { display: none !important; width: 100%; flex-direction: column; gap: 10px; padding: 20px 0 25px; border-top: 1px solid #eee; margin-top: 15px; text-align: center; background: white; position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100; }
    .nav-links.open { display: flex !important; }
    .nav-links a { padding: 12px 0; font-size: 1.1rem; width: 100%; border-bottom: 1px solid #f5f5f5; }
    .nav-links a:last-child { border-bottom: none; }
    .footer-links { flex-direction: column; gap: 10px; align-items: center; }
    .cart-overlay { max-width: 100%; }
    .product-detail { grid-template-columns: 1fr; padding: 20px; }
    .product-detail-actions { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .order-footer { flex-direction: column; gap: 15px; }
    .order-actions { width: 100%; flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links-footer { justify-content: center; }
    .social-links-footer a { width: 50px; height: 50px; }
    .social-links-footer a i { font-size: 1.6rem; }
    .footer-links { align-items: center; }
}

@media (max-width: 480px) {
    .social-links-footer a { width: 65px; height: 65px; }
    .social-links-footer a i { font-size: 2rem; }
    .product-img { height: 200px; }
}