:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f9f9f9;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0; color: var(--black); background: var(--white);
    text-transform: uppercase; letter-spacing: 1px;
}

/* Header */
 header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; border-bottom: 1px solid #eee;
    position: sticky; top: 0; background: white; z-index: 1000;
}


.logo { font-size: 24px; font-weight: 900; text-decoration: none; color: black; }

nav a { text-decoration: none; color: black; margin-left: 25px; font-size: 12px; }

/* Grid */
.container { padding: 80px 5%; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

@media (max-width: 768px) { .product-grid { grid-template-columns: 1fr; } }

.card { text-align: center; }
.card img { width: 100%; height: 450px; object-fit: cover; background: var(--gray); }
.card h3 { margin: 15px 0 5px; font-size: 14px; }
.card p { margin-bottom: 15px; font-weight: 300; }

/* Buttons */
.btn {
    display: inline-block; padding: 15px 30px; background: var(--black);
    color: var(--white); text-decoration: none; font-size: 11px; border: 1px solid black;
    transition: 0.3s; cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn-outline { background: white; color: black; width: 100%; box-sizing: border-box; margin-top: 5px; }

/* Advantages Block */
.advantages { background: var(--black); color: var(--white); padding: 100px 5%; display: flex; justify-content: space-around; text-align: center; }
.adv-item h3 { font-size: 16px; margin-bottom: 10px; }
.adv-item p { font-size: 12px; opacity: 0.7; text-transform: none; }

/* Slider (Horizontal Scroll) */
.slider { display: flex; overflow-x: auto; gap: 20px; padding: 40px 0; }
.slider img { height: 300px; filter: grayscale(100%); transition: 0.5s; }
.slider img:hover { filter: grayscale(0%); }

footer { padding: 60px 5%; border-top: 1px solid #eee; text-align: center; font-size: 12px; }

.features-section {
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.features-section .container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 0 40px;
    position: relative;
}

/* Создаем тонкие вертикальные линии между блоками */
.feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #eee;
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.feature-item h3 {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    text-transform: uppercase; /* В первом варианте текст был капсом */
    letter-spacing: 1px;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .features-section .container {
        flex-direction: column;
    }
    .feature-item {
        margin-bottom: 50px;
        padding: 0 20px;
    }
    .feature-item:not(:last-child)::after {
        display: none; /* Убираем линии на мобильных */
    }
}

/* Адаптация для экранов смартфонов */
@media (max-width: 768px) {
    /* Контейнер теперь имеет небольшие отступы по бокам */


    /* В карточке товара фото и текст встают в колонку */
    section > div {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Фото товара занимает всю ширину */
    div[style*="flex: 1"] {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Увеличиваем кнопки, чтобы по ним было удобно попадать пальцем */
    .btn-add, .btn-submit {
        padding: 18px !important;
        font-size: 14px !important;
    }

    /* Делаем заголовки чуть компактнее */
    h1 {
        font-size: 24px !important;
        letter-spacing: 3px !important;
    }
}


@media (max-width: 600px) {
    header {
        flex-direction: column; /* Ставим лого над меню */
        gap: 10px;
    }
    .nav-links {
        font-size: 12px; /* Уменьшаем шрифт, чтобы влезло в строку */
        justify-content: center;
    }
    .cart-container, .main-content {
    padding-left: 25px !important;
    padding-right: 25px !important;
}
}



@media (max-width: 768px) {
    
	.features-section .container {
        flex-direction: column; /* Блоки встают друг под друга */
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        border-right: none; /* Убираем вертикальные линии */
        border-bottom: 1px solid #eee; /* Добавляем горизонтальные для разделения */
        padding: 30px 0;
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
	/* Главный контейнер для всех страниц */
    .main-container {
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Центровка всего контента */
        text-align: center !important;
    }
    
    /* Карточка товара в каталоге */
    .product-card {
        width: 100% !important;
        max-width: 350px !important; /* Ограничиваем, чтобы не раздувало */
        margin: 0 auto 40px auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .product-card img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important;
        object-fit: cover;
    }

    .product-card h3, .product-card .price {
        width: 100% !important;
        text-align: center !important; /* Текст строго по центру */
    }
    
    header {
        padding: 20px 0 !important;
        display: flex !important;
        flex-direction: column !important; /* Лого над меню */
        align-items: center !important;
        width: 100% !important;
        border-bottom: 1px solid #eee;
    }

    .logo {
        margin-bottom: 15px !important;
        font-size: 24px !important;
    }
    
    .nav-links {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important; /* Расстояние между Калолог, О бренде, Корзина */
        width: 100% !important;
    }
    
    .nav-links a {
        font-size: 10px !important; /* Чуть меньше для iPhone */
        letter-spacing: 1px !important;
    }
}





/* --- БАЗОВЫЕ СТИЛИ КОРЗИНЫ --- */
.cart-container {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 60vh;
}

.cart-title {
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-size: 22px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
    width: 100%;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin: 0;
}

.item-meta {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin: 0;
}

.remove-link {
    color: #bbb;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 5px;
    align-self: flex-start;
}

.cart-item-price {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.cart-total-block {
    margin-top: 40px;
    text-align: center;
}

.total-text {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.checkout-button {
    display: block;
    background: #000;
    color: #fff !important;
    padding: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    transition: background 0.3s;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (iPhone 12 Pro) --- */
@media (max-width: 480px) {
    .cart-item {
        gap: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .item-name {
        font-size: 12px;
    }

    .cart-item-price {
        font-size: 14px;
    }
}

/* Стили для пустой корзины */
.cart-empty {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cart-empty p {
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-to-catalog {
    color: #000;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    border-bottom: 1px solid #000; /* Элегантное подчеркивание */
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.back-to-catalog:hover {
    opacity: 0.6;
}























.about-page {
    padding: 100px 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 700px; /* Ограничиваем ширину для легкого чтения */
    text-align: center;
}

.about-title {
    font-size: 40px;
    letter-spacing: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.about-subtitle {
    font-size: 12px;
    color: #888;
    letter-spacing: 5px;
    margin-bottom: 80px;
}

.about-text-block {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 80px;
    color: #333;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    text-align: left;
}

.value-item span {
    display: block;
    font-size: 10px;
    color: #ccc;
    margin-bottom: 10px;
}

.value-item h3 {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 11px;
    line-height: 1.6;
    color: #666;
    text-transform: uppercase;
}

.about-footer-quote {
    border-top: 1px solid #eee;
    padding-top: 50px;
    letter-spacing: 3px;
    font-size: 14px;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .about-values {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-title {
        font-size: 30px;
    }
}