/* public/assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --color-red: #E31E24;
    --color-dark-red: #b01217;
    --color-black: #1a1a1a;
    --color-cream: #F9F9F9;
    --color-white: #FFFFFF;
    --color-text-gray: #555555;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(227, 30, 36, 0.15);
    --radius: 20px;
    --font-main: 'Nunito', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-cream);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    background: var(--color-white);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-text-gray);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-red);
}

.breadcrumbs .separator {
    color: #999;
    margin: 0 5px;
}

.breadcrumbs .current {
    color: var(--color-red);
    font-weight: 600;
}

/* --- HEADER --- */
header {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img { 
    height: 45px; 
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Nav */
nav ul { 
    display: flex; 
    gap: 30px; 
}

nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px;
    background: var(--color-red); 
    transition: var(--transition);
}

nav a:hover::after { 
    width: 100%; 
}

nav a:hover { 
    color: var(--color-red); 
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.lang-switch a:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

.lang-switch a.active {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Mobile Menu Button */
.burger-menu { 
    display: none; 
    font-size: 28px; 
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-white);
    padding: 5px;
    transition: var(--transition);
}

.burger-menu:hover {
    color: var(--color-red);
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative; 
    z-index: 2; 
    max-width: 650px;
    animation: fadeInLeft 1s ease;
}

.hero h1 {
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 25px; 
    font-weight: 900;
}

.hero p { 
    font-size: 1.15rem; 
    margin-bottom: 35px; 
    color: #e0e0e0; 
    max-width: 90%; 
}

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 14px 35px;
    background-color: var(--color-red);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
    transition: var(--transition);
    min-height: 48px; /* Доступность для мобильных */
}

.btn:hover { 
    background-color: var(--color-dark-red); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.6); 
}

.btn:active {
    transform: translateY(-1px);
}

/* --- SECTIONS COMMON --- */
.section-title {
    text-align: center; 
    font-size: 2.2rem; 
    margin: 80px 0 50px; 
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px;
    background: var(--color-red); 
    margin: 15px auto 0; 
    border-radius: 2px;
}

/* --- SWIPER CAROUSEL --- */
.swiper {
    width: 100%;
    padding-bottom: 60px !important;
}

.swiper-slide {
    height: auto;
}

.cat-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
}

/* КВАДРАТНЫЕ ИЗОБРАЖЕНИЯ */
.img-square-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.img-square-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .img-square-wrapper img { 
    transform: scale(1.08); 
}

.cat-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.cat-info h3 { 
    margin: 0; 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: var(--color-black);
    line-height: 1.3;
}

/* Стили навигации слайдера */
.swiper-button-next, 
.swiper-button-prev { 
    color: var(--color-red) !important; 
    background: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet { 
    background: #999 !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active { 
    background: var(--color-red) !important; 
    transform: scale(1.2);
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover { 
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-content { 
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date { 
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.news-card h4 { 
    margin: 0 0 10px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    line-height: 1.4;
    flex-grow: 1;
}

.news-card p { 
    font-size: 0.95rem; 
    color: var(--color-text-gray); 
    margin: 0; 
}

/* --- ABOUT SECTION --- */
.about-section { 
    background: var(--color-white); 
    padding: 100px 0; 
}

.about-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center;
}

.about-text h2 { 
    font-size: 2.5rem; 
    margin-top: 0; 
    font-weight: 900;
    line-height: 1.2;
}

.about-text p { 
    color: var(--color-text-gray); 
    font-size: 1.1rem; 
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-img img { 
    width: 100%; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-card); 
}

/* --- CATALOG STYLES --- */
.catalog-layout { 
    display: flex; 
    gap: 30px; 
    padding: 40px 0; 
    align-items: flex-start;
}

.sidebar { 
    width: 280px; 
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.catalog-content { 
    flex-grow: 1; 
}

.filter-box { 
    background: var(--color-white); 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: var(--shadow-card); 
    margin-bottom: 20px; 
}

.filter-title { 
    font-weight: bold; 
    margin-bottom: 15px; 
    display: block; 
    font-size: 1.1em;
    color: var(--color-black);
}

.filter-group { 
    margin-bottom: 15px; 
}

.filter-group label { 
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px; 
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.filter-group label:hover {
    background: #f5f5f5;
}

.filter-input { 
    width: 100%; 
    padding: 10px 15px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.price-row { 
    display: flex; 
    gap: 10px; 
}

.btn-filter { 
    width: 100%; 
    background: var(--color-black); 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 48px;
}

.btn-filter:hover { 
    background: var(--color-red); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.reset-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--color-text-gray);
    padding: 8px;
    transition: var(--transition);
}

.reset-link:hover {
    color: var(--color-red);
}

/* Product Cards in Catalog */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-red);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    margin: 5px 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    flex-grow: 1;
}

.product-price {
    font-weight: bold;
    color: var(--color-red);
    font-size: 1.2rem;
    margin: 15px 0;
}

/* --- FOOTER --- */
footer {
    background: var(--color-black);
    color: #bbb;
    padding: 70px 0 30px;
    margin-top: 80px;
}

footer h4 { 
    color: var(--color-white); 
    margin-bottom: 20px; 
    font-size: 1.2rem; 
    font-weight: 700;
}

footer i { 
    color: var(--color-red); 
    margin-right: 10px; 
    width: 20px; 
    text-align: center;
}

footer a:hover {
    color: var(--color-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.5;
}

.social-links {
    font-size: 24px;
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--color-red);
}

/* --- PRODUCT DETAIL PAGE --- */
.product-wrap { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; 
    padding: 40px 0; 
    min-height: 60vh; 
}

.product-gallery { 
    position: sticky;
    top: 100px;
}

.main-img { 
    width: 100%; 
    border-radius: 15px; 
    margin-bottom: 15px; 
    box-shadow: var(--shadow-card);
}

.spec-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 25px 0; 
    font-size: 0.95rem; 
}

.spec-table tr:nth-child(odd) { 
    background: #f9f9f9; 
}

.spec-table td { 
    padding: 12px; 
    border-bottom: 1px solid #eee; 
}

.spec-table td:first-child { 
    font-weight: bold; 
    color: #555; 
    width: 40%; 
}

.price-tag { 
    font-size: 2rem; 
    color: var(--color-red); 
    font-weight: 900; 
    margin: 15px 0; 
}

.brand-label { 
    background: var(--color-black); 
    color: white; 
    padding: 5px 10px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    text-transform: uppercase;
    display: inline-block;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-window {
    background: white;
    padding: 35px;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.close-btn {
    position: absolute; 
    top: 15px; 
    right: 20px;
    font-size: 28px; 
    cursor: pointer; 
    color: #888;
    transition: var(--transition);
}

.close-btn:hover { 
    color: var(--color-red); 
}

.form-input {
    width: 100%; 
    padding: 12px 15px; 
    margin-bottom: 15px;
    border: 2px solid #e0e0e0; 
    border-radius: 8px;
    font-size: 1rem; 
    box-sizing: border-box;
    transition: var(--transition);
}

.form-input:focus { 
    border-color: var(--color-red); 
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes slideUp { 
    from { transform: translateY(20px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .about-img { 
        order: -1; 
    }
    
    .product-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .burger-menu { 
        display: block; 
    }
    
    nav {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--color-black);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    nav a {
        font-size: 18px;
        display: block;
        padding: 15px;
    }
    
    nav a::after {
        display: none;
    }
    
    /* Hero Mobile */
    .hero { 
        height: 60vh;
        min-height: 400px;
        text-align: center; 
        justify-content: center; 
    }
    
    .hero::before { 
        background: rgba(0,0,0,0.6); 
    }
    
    .hero-content { 
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Sections Mobile */
    .section-title {
        font-size: 1.8rem;
        margin: 50px 0 30px;
    }
    
    /* Catalog Mobile */
    .catalog-layout { 
        flex-direction: column; 
    }
    
    .sidebar { 
        width: 100%;
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-card-content {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    /* News Grid Mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 60px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-window {
        padding: 25px;
    }
}