/* =========================================================
   OptProTen — единая таблица стилей (VER: крупные картинки)
   ========================================================= */

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #95a5a6;
    --accent-dark: #34495e;
    --success: #27ae60;
    --danger: #e74c3c;
    --light: #f5f7fa;
    --border: #e0e0e0;
    --text: #333;
    --text-muted: #6c757d;
    --radius: 8px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,.06);
    --shadow-md: 0 5px 15px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    margin: 0;
}
h1,h2,h3,h4,h5 { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--primary); }

/* ---------- ШАПКА ---------- */
.site-header {
    background: linear-gradient(to right, var(--accent-dark), var(--primary));
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1000;
}
.site-header .navbar-brand { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.site-header .navbar-brand i { color: var(--accent); }
.site-header .nav-link { color: #ecf0f1 !important; font-weight: 500; }
.site-header .nav-link:hover { color: #fff !important; }

.cart-link {
    color: #fff; font-size: 1.4rem; position: relative;
    text-decoration: none; padding: 6px;
}
.cart-count {
    position: absolute; top: -4px; right: -8px;
    background: var(--danger); color: #fff;
    border-radius: 50%; min-width: 22px; height: 22px;
    font-size: .75rem; display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

/* ---------- ГЛАВНЫЙ БАННЕР ---------- */
.hero {
    background: linear-gradient(135deg, var(--accent-dark), var(--primary));
    color: #fff; padding: 80px 0;
}
.hero h1 { color: #fff; font-size: 3rem; text-transform: uppercase; }
.hero .lead { font-size: 1.15rem; opacity: .95; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--primary); }

/* ---------- ЗАГОЛОВКИ СЕКЦИЙ ---------- */
.section-title { text-align: center; margin-bottom: 15px; position: relative; padding-bottom: 15px; }
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 3px;
    background: var(--accent);
}
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

/* =========================================================
   ★★★ КАРТОЧКА ТОВАРА — ОЧЕНЬ КРУПНЫЕ КАРТИНКИ ★★★
   ========================================================= */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-image {
    /* ★ ОЧЕНЬ КРУПНАЯ: было 240px → стало 350px */
    height: 350px;
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.product-image img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image i { font-size: 5rem; color: #bdc3c7; }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.product-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.25;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-specs {
    font-size: .85rem; color: #666; margin-bottom: 10px;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.product-description {
    font-size: .9rem; color: #777; margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 1.35rem; font-weight: 700; color: var(--primary);
    margin-bottom: 14px;
}
.product-actions { display: flex; gap: 8px; }
.btn-add-to-cart, .btn-details {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px; border-radius: 6px; font-size: .9rem;
    font-weight: 500; cursor: pointer; transition: all .2s;
    text-decoration: none; border: 1px solid transparent;
}
.btn-add-to-cart { background: var(--accent); color: #fff; flex: 1; }
.btn-add-to-cart:hover { background: var(--primary); color: #fff; }
.btn-details { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-details:hover { background: var(--accent); color: #fff; }

/* ---------- КАТЕГОРИИ ---------- */
.category-card {
    display: block; padding: 24px; background: #fff;
    border-radius: var(--radius); text-align: center;
    text-decoration: none; color: var(--text);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--primary); }
.category-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.5rem;
}
.category-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ---------- СТАТИСТИКА ---------- */
.stats { background: linear-gradient(135deg, var(--primary), var(--accent-dark)); color: #fff; padding: 50px 0; }
.stat-item { text-align: center; padding: 15px; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #ecf0f1; }
.stat-label { color: #bdc3c7; }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantage-card { padding: 25px; text-align: center; background: #fff; border-radius: var(--radius); height: 100%; box-shadow: var(--shadow-sm); }
.advantage-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}

/* ---------- ФУТЕР ---------- */
.site-footer { background: var(--accent-dark); color: #ecf0f1; padding: 50px 0 20px; margin-top: 60px; }
.site-footer h5 { color: #fff; margin-bottom: 18px; font-size: 1.15rem; }
.contact-list, .footer-menu { list-style: none; padding: 0; }
.contact-list li, .footer-menu li { margin-bottom: 8px; }
.contact-list i { margin-right: 8px; width: 18px; }
.footer-menu a { color: #ecf0f1; text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.15); }
.copyright { text-align: center; color: #95a5a6; font-size: .9rem; margin: 0; }

/* ---------- УВЕДОМЛЕНИЯ ---------- */
.notification {
    position: fixed; top: 20px; right: 20px;
    padding: 14px 18px; border-radius: var(--radius);
    color: #fff; z-index: 10000;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-md);
    animation: slideIn .3s ease-out;
    min-width: 260px; max-width: 420px;
}
.notification.success { background: var(--success); }
.notification.error   { background: var(--danger); }
.notification.info    { background: #17a2b8; }
.notification-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; margin-left: auto; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- КАТАЛОГ: ФИЛЬТРЫ ---------- */
.category-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; }
.category-btn {
    flex: 0 0 auto; padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: #fff; color: var(--primary);
    text-decoration: none; font-size: .85rem; white-space: nowrap;
}
.category-btn:hover, .category-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-form { max-width: 520px; margin: 0 auto 30px; }

/* ---------- КАРТОЧКА ТОВАРА (СТРАНИЦА) ---------- */
.product-gallery .main-image {
    width: 100%; height: 520px; background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.product-gallery .main-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbnail-gallery { display: flex; gap: 8px; overflow-x: auto; }
.thumbnail-item {
    width: 90px; height: 90px; flex: 0 0 auto;
    border: 2px solid transparent; border-radius: 6px; cursor: pointer;
    background: #f8f9fa; overflow: hidden;
}
.thumbnail-item.active { border-color: var(--accent-dark); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.specs-table { width: 100%; }
.specs-table td { padding: 6px 0; border-bottom: 1px solid #eee; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }

/* ---------- КОРЗИНА / ОФОРМЛЕНИЕ ---------- */
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background: #f8f9fa; border-radius: 6px; padding: 4px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 4rem; color: #bdc3c7; margin-bottom: 16px; }

/* =========================================================
   АДАПТИВ — пропорционально уменьшаем крупные картинки
   ========================================================= */
@media (max-width: 992px) {
    /* Планшет: 3 карточки в ряд */
    .product-image { height: 280px; padding: 15px; }
}

@media (max-width: 768px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2rem; }
    /* Планшет: 2 карточки в ряд */
    .product-image { height: 250px; padding: 12px; }
    .product-title { font-size: .95rem; }
    .product-price { font-size: 1.15rem; }
    .product-gallery .main-image { height: 400px; }
    .thumbnail-item { width: 70px; height: 70px; }
}

@media (max-width: 576px) {
    /* Мобильный: 2 карточки в ряд */
    .product-image { height: 200px; padding: 10px; }
    .product-info { padding: 12px; }
    .product-title { font-size: .85rem; min-height: 2em; }
    .product-description { display: none; }
    .product-price { font-size: 1rem; }
    .btn-add-to-cart, .btn-details { font-size: .78rem; padding: 7px 8px; }
    .product-gallery .main-image { height: 300px; }
    .thumbnail-item { width: 60px; height: 60px; }
}