/* 1. ОБЩИЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #0077b6; /* Голубой текст */
    line-height: 1.6;
    overflow-x: hidden;

    /* ФОН САЙТА */
    background-image: url('backgr1.jpg'); /* Твое новое фото фона */
    background-size: cover; /* Растягивает фото на весь экран */
    background-attachment: fixed; /* Фон не прокручивается вместе с контентом */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f8ff; 
    
    margin: 0;
}

h1, h2, h3 {
    color: #0096c7;
    font-family: 'Montserrat', sans-serif;
}

/* 2. ШАПКА (HEADER) */
header {
    background-color: #ffffff; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 60px; 
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #0077b6;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00b4d8;
}

/* КОРЗИНА В ШАПКЕ */
.cart-status {
    background: #ffffff;
    color: #0077b6;
    padding: 10px 22px;
    border: 2px solid #0077b6;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 119, 182, 0.1);
}

.cart-status:hover {
    background: #0077b6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* 3. ГЛАВНЫЙ БЛОК (HERO) */
.hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.6); /* Чуть больше непрозрачности, чтобы текст на фоне фото читался лучше */
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,1);
    margin-bottom: 10px;
}

/* 4. КАТАЛОГ И СЕКЦИИ */
.catalog, .about-section, .map-section, .reviews-section {
    padding: 40px 5%;
    background-color: rgba(255, 255, 255, 0.95); /* Полупрозрачный белый фон секций, чтобы просвечивал backgr.jpg */
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* КАРТОЧКА ТОВАРА */
.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px; 
    border: 1px solid #e0f2fe;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #00b4d8;
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.4s;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* --- КРАСИВЫЕ ЦЕННИКИ --- */
.product-price, .product-card p:nth-of-type(2) { 
    display: block;
    font-size: 1.8rem; 
    color: #023e8a; 
    font-weight: 800;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.product-card:hover .product-price {
    color: #00b4d8;
    transform: scale(1.1);
}

/* --- КНОПКА "В КОРЗИНУ" --- */
.btn-buy, .product-card button {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 50px; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-buy:hover, .product-card button:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0096c7 100%);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.5);
    transform: translateY(-2px);
}

.btn-buy:active, .product-card button:active {
    transform: scale(0.95);
}

/* 5. ПОДВАЛ */
footer {
    text-align: center;
    padding: 40px;
    background: #001219;
    color: white;
    margin-top: 50px;
}

/* 6. АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 { font-size: 1.8rem; }
    
    body {
        background-size: cover; 
    }

    .catalog {
        padding: 20px 3%;
    }
}
