:root { --color-primary: #3d2b1f; --color-secondary: #8c6c50; --color-bg: #fdfaf7; --color-white: #ffffff; --color-text: #2c1e14; --color-text-muted: #6b5a4d; --color-border: #eadfd4; --shadow: 0 4px 20px rgba(0,0,0,0.06); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--color-bg); color: var(--color-text); line-height: 1.5; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: white; border-bottom: 1px solid var(--color-border); padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-primary); }
.logo-icon { background: var(--color-primary); color: white; width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 20px; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.logo-sub { font-size: 9px; font-weight: 600; color: var(--color-secondary); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

.header-right { display: flex; align-items: center; gap: 15px; }
.header-contacts { display: flex; align-items: center; gap: 10px; margin-right: 10px; order: 1; }
.cart-btn { order: 2; }
.lang-switcher { display: flex; gap: 6px; margin-left: 5px; order: 3; }

.lang-btn { 
    background: transparent; border: none; 
    color: var(--color-text-muted); padding: 0; 
    cursor: pointer; font-size: 13px; font-weight: 700; 
    transition: 0.2s;
}
.lang-btn.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }
.lang-btn:hover { color: var(--color-primary); }

.header-phone { text-decoration: none; color: var(--color-primary); font-weight: 800; font-size: 16px; transition: 0.2s; white-space: nowrap; }
.social-icons { display: flex; gap: 10px; }
.social-link { transition: 0.2s; display: flex; align-items: center; text-decoration: none; }
.social-link svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1)); }
.social-link:hover { transform: scale(1.1); }

.cart-btn { background: var(--color-primary); color: white; border: none; padding: 10px 18px; border-radius: 30px; cursor: pointer; font-weight: 700; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cart-btn:hover { background: var(--color-secondary); transform: translateY(-2px); }
.cart-count { background: white; color: var(--color-primary); min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; padding: 0 4px; }

.hero { position: relative; min-height: 400px; display: flex; align-items: center; background: #1a1512 url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?q=80&w=2070') center/cover no-repeat; color: white; padding: 60px 0; text-align: left; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(26,21,18,0.9) 0%, rgba(26,21,18,0.5) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: white; }
.hero h1 span { color: var(--color-secondary); }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.btn-hero { 
    display: inline-block; 
    background: var(--color-primary); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 16px;
    transition: 0.3s; 
    border: 2px solid var(--color-primary);
}
.btn-hero:hover { 
    background: white; 
    color: var(--color-primary); 
    transform: translateY(-3px); 
}

/* Адаптація шапки */
@media (max-width: 768px) {
    .header-content { 
        flex-wrap: wrap; 
        gap: 15px; 
    }
    .logo-wrap { flex: 1; justify-content: flex-start; }
    .header-right { 
        width: 100%; 
        justify-content: space-between; 
        order: 2; 
        padding-top: 10px;
        border-top: 1px solid var(--color-border);
    }
    .logo-main { font-size: 16px; }
    .logo-sub { display: none; }
}

@media (max-width: 480px) {
    .hero { min-height: 250px; }
    .hero h1 { font-size: 24px; }
}

.catalog { padding: 40px 0; }
.filter-scroll-container { 
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; 
    scrollbar-width: none; align-items: center; justify-content: center; 
}
.filter-scroll-container::-webkit-scrollbar { display: none; }
.filter-divider { width: 1px; height: 24px; background: var(--color-border); margin: 0 5px; flex-shrink: 0; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--color-border); background: white; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--color-text-muted); transition: 0.2s; }
.filter-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

/* Планшети: 2 колонки */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Телефони: 1 колонка */
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* IMAGE WRAPPER */
.product-image-wrap { width: 100%; height: 260px; position: relative; overflow: hidden; background: #fdfaf7; display: flex; align-items: center; justify-content: center; }

.product-bag-img { width: 80%; height: 80%; object-fit: contain; z-index: 2; position: relative; transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.beans-image { display: none; }

/* PRODUCT CARD HOVER EFFECT */
.product-card:hover .product-bag-img { transform: scale(1.05); }

.product-label-name { background: white; color: #3d2b1f; padding: 10px 8px; border-radius: 2px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.02); }

.product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.method-badge { font-size: 10px; font-weight: 800; background: #f4f1ee; color: var(--color-primary); padding: 3px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 10px; display: inline-block; width: fit-content; }
.flavor-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 20px 0; }
.note-tag { display: flex; align-items: center; gap: 4px; background: #fdfaf7; border: 1px solid #eadfd4; padding: 3px 8px; border-radius: 15px; font-size: 11px; font-weight: 700; color: var(--color-primary); }
.product-desc { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; height: 60px; overflow: hidden; line-height: 1.5; }
.taste-profile { margin-bottom: 25px; border-top: 1px solid #eee; padding-top: 15px; }
.taste-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.dots-container { display: flex; gap: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #e5dfd9; }
.dot.active { background: var(--color-secondary); }

.weight-group { display: flex; gap: 8px; margin-bottom: 25px; }
.weight-btn { flex: 1; padding: 8px 5px; font-size: 12px; border-radius: 10px; border: 1px solid var(--color-border); background: white; cursor: pointer; font-weight: 700; transition: 0.2s; }
.weight-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid #eee; }
.product-price { font-size: 24px; font-weight: 800; color: var(--color-primary); }
.btn-buy { background: var(--color-primary); color: white; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-buy:hover { background: var(--color-secondary); }

/* CART DRAWER */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: flex-end; z-index: 10000; }
.cart-overlay.active { display: flex !important; }
.cart-drawer { 
    width: 90%; 
    max-width: 400px; 
    margin: 20px; 
    background: white; 
    height: calc(100vh - 40px); 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: -5px 0 20px rgba(0,0,0,0.1); 
    border-radius: 20px;
}
.cart-header { margin-bottom: 15px; }
.cart-header h2 { font-size: 18px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding-right: 5px; }
.cart-item { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; position: relative; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.cart-item-info h4 { font-size: 13px; margin-bottom: 4px; font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--color-border); background: white; cursor: pointer; font-weight: 700; font-size: 14px; }
.remove-item { position: absolute; top: 0; right: 0; cursor: pointer; font-size: 18px; color: #ccc; }

.cart-footer { padding-top: 20px; border-top: 2px solid #eee; }
.footer-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.total-row { font-size: 18px; font-weight: 800; margin: 5px 0 15px 0; border-top: 1px solid #eee; padding-top: 5px; }
#mainOrderBtn { width: 100%; padding: 12px !important; font-size: 14px !important; border-radius: 8px; }

/* MODAL QUICK VIEW */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.8); display: none; 
    align-items: center; justify-content: center; 
    z-index: 2000; padding: 15px; 
}
.modal-overlay.active { display: flex !important; }
.modal-content { 
    background: white; width: 100%; max-width: 550px; 
    border-radius: 16px; display: flex; 
    position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
    .modal-content { flex-direction: column; }
    .modal-image-side { min-height: 180px; }
    .modal-info-side { padding: 15px; }
}
.modal-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: #f4f1ee; border: none; font-size: 18px; cursor: pointer; z-index: 10; }
.modal-image-side { flex: 1; background: #f9f7f5; display: flex; align-items: center; justify-content: center; }
.modal-image-side img { width: 50%; height: auto; object-fit: contain; }
.modal-info-side { flex: 1; padding: 20px; text-align: left; }
.modal-info-side h2 { font-size: 18px !important; margin-bottom: 8px !important; }
.modal-info-side p { font-size: 13px !important; margin-bottom: 10px !important; }
.modal-info-side .taste-profile { margin-bottom: 10px; }
.modal-info-side .product-price { font-size: 20px !important; }
.modal-info-side .btn-buy { padding: 8px 16px !important; font-size: 13px !important; }
.modal-info-side .weight-btn { padding: 4px 8px !important; font-size: 11px !important; }