* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1e2a3a;
    line-height: 1.4;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}
.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff9800;
}
.logo__accent { color: #ff5722; }
.cart-button {
    background: #ff9800;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.cart-button:active { background: #e68900; }
.cart-button__count {
    background: white;
    color: #ff9800;
    border-radius: 20px;
    padding: 0 6px;
    font-size: 0.8rem;
}
.hero {
    background: linear-gradient(105deg, #ff9800, #ff5722);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}
.hero__title { font-size: 2rem; margin-bottom: 8px; }
.hero__subtitle { font-size: 1.2rem; }
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.filter-button {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.filter-button--active, .filter-button:active {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}
/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:active { transform: scale(0.98); }
.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}
.product-card__image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f0f0f0;
    cursor: pointer;
}
.product-card__info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.product-card__short-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-card__price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
}
.product-card__price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #e91e63;
    background: #ffebee;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s;
    align-self: flex-start;
}
.product-card__add-btn {
    background: #ff9800;
    border: none;
    padding: 6px 14px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.product-card__add-btn:active { background: #e68900; }
.advantages {
    background: white;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.advantages-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}
.advantage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}
.advantage i { color: #ff9800; width: 24px; }
/* Отзывы */
.reviews-section { background: white; padding: 30px 0; }
.section-header {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.reviews-track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px;
}
.reviews-grid {
    display: flex;
    gap: 15px;
    width: max-content;
}
.review-card {
    scroll-snap-align: start;
    flex: 0 0 260px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.2s;
}
.review-card__header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.review-card__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.review-card__stars { color: #ffc107; font-size: 0.8rem; }
.review-card__photo {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.review-card__photo:hover { opacity: 0.9; transform: scale(1.02); }
.review-card p { font-size: 0.8rem; margin-top: 5px; }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.slider-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.slider-dot--active { background: #ff9800; width: 18px; border-radius: 10px; }

/* Попапы */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.popup {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.popup__close {
    position: sticky;
    top: 10px;
    float: right;
    font-size: 32px;
    font-weight: bold;
    background: rgba(0,0,0,0.1);
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    margin-top: -10px;
    margin-bottom: 10px;
}
.popup__image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 15px;
}
.popup .button--primary, #p-btn {
    background: #ff9800;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    width: 100%;
}
.popup-reviews {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.popup-review-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}
.popup-review-card p { font-size: 0.85rem; margin: 5px 0; }
.popup-review-card .stars { color: #ffc107; font-size: 0.8rem; }
.popup-review-card img { width: 100%; max-width: 150px; border-radius: 12px; margin-top: 5px; cursor: pointer; }

/* Корзина */
.cart__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.cart__clear { background: none; border: none; color: #dc3545; cursor: pointer; }
.cart__items { max-height: 300px; overflow-y: auto; }
.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item__image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-item__info { flex: 1; }
.cart-item__title { font-size: 0.9rem; font-weight: 500; }
.cart-item__price { font-size: 0.8rem; color: #e91e63; }
.cart-item__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.cart-item__quantity { display: flex; gap: 6px; align-items: center; }
.cart-item__quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}
.cart-item__remove { background: none; border: none; color: #dc3545; font-size: 1rem; cursor: pointer; }
.cart__summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}
.cart__total { font-size: 1.2rem; font-weight: bold; text-align: right; margin-bottom: 10px; }
.cart__min-order { font-size: 0.75rem; color: #e67e22; margin-bottom: 12px; }
#orderForm input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 1rem;
}
#orderForm button {
    width: 100%;
    background: #ff9800;
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.field-error { color: red; font-size: 0.7rem; display: none; }
.sticky-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e2a3a;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    display: none;
    gap: 12px;
    cursor: pointer;
    z-index: 99;
}
.sticky-cart--active { display: flex; }
.sticky-cart__count { background: #ff9800; border-radius: 20px; padding: 0 6px; }
.to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ff9800;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 99;
}
.to-top.show { display: block; }
.also-bought-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.also-bought__title { font-size: 1rem; margin-bottom: 10px; }
.also-bought__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.also-bought-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.also-bought-card__image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}
.also-bought-card__info { flex: 1; }
.also-bought-card__title { font-size: 0.75rem; font-weight: 500; }
.also-bought-card__price { font-size: 0.7rem; color: #e91e63; }
.also-bought-card__add-btn {
    background: #ff9800;
    border: none;
    padding: 4px 10px;
    border-radius: 40px;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
}
.footer {
    background: #1e2a3a;
    color: #aaa;
    padding: 30px 0 20px;
    margin-top: 40px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-link {
    color: #ff9800;
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
}
.requisites-panel {
    display: none;
    background: #2c3e4e;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
}
.requisites-panel.show { display: block; }
.req-line { margin-bottom: 4px; color: #ddd; }
.footer-copyright { font-size: 0.75rem; color: #777; }

/* ===== АДАПТАЦИЯ ПОД ТЕЛЕФОН: 2 КОЛОНКИ, ВЕРТИКАЛЬНОЕ РАСПОЛОЖЕНИЕ ЦЕНЫ И КНОПКИ ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card__image {
        aspect-ratio: 1/1;
        max-height: 160px;
        object-fit: cover;
    }
    .product-card__info {
        padding: 8px;
    }
    .product-card__title {
        font-size: 0.9rem;
    }
    .product-card__short-desc {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    .product-card__price {
        font-size: 1rem;
        padding: 4px 10px;
    }
    .product-card__add-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .review-card {
        flex: 0 0 200px;
    }
    .hero__title {
        font-size: 1.4rem;
    }
    .filter-button {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .container {
        padding: 0 8px;
    }
}
@media (max-width: 480px) {
    .product-card__image {
        max-height: 130px;
    }
    .product-card__price {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
}
/* Увеличенные поля формы заказа */
#orderForm input {
    font-size: 1.1rem;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.phone-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: -8px;
    margin-bottom: 12px;
    text-align: left;
}
/* Гарантия яркой цены */
.product-card__price {
    color: #e91e63 !important;
    background: #ffebee !important;
    font-weight: 800 !important;
}