/* style/style.css */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- БЛОКИРОВКА ГУГЛА (ЧТОБЫ НЕ ВЫЛЕЗАЛ БАННЕР) --- */
html, body { top: 0 !important; margin-top: 0 !important; min-height: 100vh !important; }
.goog-te-banner-frame { display: none !important; visibility: hidden !important; }
body > .skiptranslate { display: none !important; }
iframe[id^=":"] { top: -1000px !important; visibility: hidden !important; }
.goog-tooltip, #goog-gt-tt { display: none !important; pointer-events: none !important; }
font { background: transparent !important; box-shadow: none !important; color: inherit !important; }

/* --- ОСНОВНОЙ СТИЛЬ --- */
body {
    font-family: 'Inter', sans-serif;
    /* Royal Blue Gradient (Королевский синий) */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    padding-bottom: 60px;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 15px; width: 100%; flex: 1; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- НАВИГАЦИЯ --- */
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 25px; color: rgba(255,255,255,0.9); flex-wrap: wrap; gap: 15px;
}
.nav-links { display: flex; gap: 20px; list-style: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.phone-number { font-weight: 700; color: #fff; font-size: 14px; white-space: nowrap; }

/* --- ХЕДЕР --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-bottom: 30px;
}
.logo h1 {
    font-size: 28px; font-weight: 900; color: white; margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.search-box { flex-grow: 1; max-width: 500px; margin: 0 auto; width: 100%; }
.search-box input {
    width: 100%; padding: 12px 20px;
    background: #fff; border: 3px solid #4facfe; border-radius: 50px;
    font-size: 16px; font-weight: 600; color: #333;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}
.search-box input:focus { outline: none; box-shadow: 0 0 30px rgba(79, 172, 254, 0.8); }

.header-actions { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.icon-btn { color: white; font-size: 24px; cursor: pointer; transition: 0.3s; }
.icon-btn:hover { color: #4facfe; transform: scale(1.1); }

/* КНОПКА КОРЗИНЫ */
.header-cart-btn {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4);
    color: white; font-weight: 700; font-size: 15px; padding: 8px 20px; border-radius: 50px;
    text-decoration: none; transition: 0.3s; position: relative;
}
.header-cart-btn:hover { background: rgba(255, 255, 255, 0.25); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.cart-icon { width: 18px; height: 18px; fill: white; }
.cart-badge {
    background: #ff416c; color: white; font-size: 11px; font-weight: 900;
    padding: 2px 6px; border-radius: 10px; position: absolute; top: -5px; right: -5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- ФИЛЬТРЫ (КРАСИВЫЕ КАТЕГОРИИ) --- */
.filters-container {
    display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 5px;
}
.filter-btn {
    padding: 10px 25px; border-radius: 30px; 
    background: rgba(255,255,255,0.15); /* Прозрачный белый */
    border: 1px solid rgba(255,255,255,0.4); 
    color: white; font-weight: 700; font-size: 14px; 
    white-space: nowrap; cursor: pointer; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.filter-btn:hover {
    background: white; color: #1e3c72; transform: translateY(-2px);
}
.filter-btn.active {
    background: white; color: #1e3c72; border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- БЕЛЫЕ БЛОКИ (ДЛЯ КОРЗИНЫ И ТОВАРА) --- */
.white-panel {
    background: #ffffff; 
    border-radius: 20px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden; 
    margin-bottom: 40px; 
    padding: 30px;
}

/* --- СТРАНИЦА ТОВАРА --- */
.product-card-wrap {
    background: #ffffff; border-radius: 20px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden; margin-bottom: 40px; position: relative;
}
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { padding: 40px; border-right: 1px solid #eee; display: flex; flex-direction: column; align-items: center; position: relative; }
.main-photo-box { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; cursor: zoom-in; position: relative; }
.main-photo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Стрелки слайдера */
.gal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(0,0,0,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 20px; color: #555; transition: 0.2s; z-index: 10;
}
.gal-arrow:hover { background: rgba(0,0,0,0.1); color: #000; }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }

.thumbs-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.thumb-item { width: 60px; height: 60px; border: 1px solid #ddd; border-radius: 8px; padding: 2px; cursor: pointer; opacity: 0.7; }
.thumb-item.active { border-color: #1e3c72; opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: contain; }

.pd-info { padding: 40px 50px; }
.pd-title { font-size: 28px; font-weight: 800; color: #1e3c72; margin-bottom: 10px; line-height: 1.2; }
.pd-price { font-size: 42px; font-weight: 800; color: #1e3c72; margin-bottom: 25px; }
.pd-buy-block { display: flex; gap: 15px; margin-bottom: 30px; }
.btn-buy-lg { flex: 1; padding: 18px; background: linear-gradient(90deg, #1e3c72, #2a5298); color: white; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; text-align: center; }
.btn-fav { width: 60px; border: 1px solid #eee; border-radius: 12px; background: white; color: #ff416c; font-size: 24px; cursor: pointer; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.service-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #444; background: #f8f9fa; padding: 12px; border-radius: 10px; border: 1px solid #eee; }
.more-link { display: inline-block; margin-top: 15px; color: #1e3c72; font-weight: 700; border-bottom: 1px dashed #1e3c72; }

/* НИЖНИЕ БЛОКИ */
.content-box { background: white; border-radius: 20px; padding: 40px; margin-bottom: 40px; }
.box-header { font-size: 24px; font-weight: 700; color: #1e3c72; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.spec-name { color: #777; width: 40%; }
.spec-val { font-weight: 600; color: #333; }
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 15px; overflow: hidden; }
.video-responsive iframe { position: absolute; top:0; left:0; width:100%; height:100%; }

/* --- ТОВАРЫ НА ГЛАВНОЙ --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-bottom: 50px; }
.product-card { background: white; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.product-image { height: 220px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 15px; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 16px; font-weight: 700; color: #1e3c72; margin-bottom: 8px; height: 40px; overflow: hidden; }
.product-meta { font-size: 12px; color: #777; display: flex; justify-content: space-between; margin-bottom: 10px; }
.product-price { font-size: 22px; font-weight: 800; color: #1e3c72; margin-bottom: 15px; }
.card-buttons { display: flex; gap: 8px; margin-top: auto; }
.btn-card-cart { width: 45px; height: 40px; border-radius: 10px; background: #f0f4f8; border: 1px solid #ddd; color: #1e3c72; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.btn-card-cart:hover { background: #1e3c72; color: white; border-color: #1e3c72; }
.btn-card-buy { flex: 1; height: 40px; border-radius: 10px; background: linear-gradient(90deg, #1e3c72, #2a5298); color: white; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: 0.2s; text-decoration: none; }

/* КОРЗИНА */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th { text-align: left; padding: 10px; border-bottom: 2px solid #eee; color: #1e3c72; }
.cart-table td { padding: 15px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.qty-control { display: flex; align-items: center; gap: 5px; }
.qty-btn { width: 25px; height: 25px; background: #f0f4f8; border: 1px solid #ddd; border-radius: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1e3c72; font-weight: bold; text-decoration: none; }
.qty-val { font-weight: bold; width: 20px; text-align: center; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #1e3c72; }
input, textarea { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 10px; font-size: 16px; }
input:focus, textarea:focus { border-color: #1e3c72; outline: none; }

/* --- ВСПЛЫВАШКА (TOAST) --- */
.toast-notification {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: rgba(30, 60, 114, 0.95); color: white; padding: 15px 30px; border-radius: 50px;
    font-weight: 600; font-size: 15px; z-index: 10000; opacity: 0; transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
}
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); z-index: 99999; 
    align-items: center; justify-content: center; cursor: zoom-out; 
}
.modal-overlay img { max-width: 90%; max-height: 90%; border-radius: 5px; object-fit: contain; }

/* КРЕСТИК */
.modal-close {
    position: absolute; top: 30px; right: 30px; 
    color: white; font-size: 40px; line-height: 1; cursor: pointer; z-index: 100000;
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); color: #ff416c; transform: rotate(90deg); }

/* СНЕЖИНКИ */
.snowflake { position: fixed; top: -20px; z-index: 9999; pointer-events: none; color: #fff; opacity: 0.8; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(105vh) rotate(360deg); opacity: 0.2; } }

footer { text-align: center; color: rgba(255,255,255,0.6); padding-top: 30px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }

/* АДАПТИВ */
@media (max-width: 768px) {
    .top-nav { flex-direction: column; align-items: stretch; gap: 15px; }
    .nav-links { justify-content: center; width: 100%; }
    .nav-right { justify-content: space-between; width: 100%; }
    header { flex-direction: column; align-items: stretch; }
    .search-box { order: 2; }
    .header-actions { width: 100%; justify-content: center; margin-left: 0; margin-top: 10px; order: 3; }
    .pd-grid { grid-template-columns: 1fr; }
    .pd-gallery { padding: 0 0 20px 0; border: none; }
    .pd-info { padding: 0; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
}
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }


/* --- ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ЯЗЫКОВ --- */
.lang-switch {
    display: flex;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 2px;
    margin-right: 15px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.lang-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* АКТИВНЫЙ ЯЗЫК - БЕЛЫЙ ФОН, СИНИЙ ТЕКСТ */
.lang-btn.active {
    background: #ffffff !important;
    color: #1e3c72 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 1 !important;
}