/* ------------------------------
   БАЗОВЫЕ СТИЛИ
------------------------------ */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #222;
}

/* ------------------------------
   ШАПКА
------------------------------ */
header,
.header-top {
    background-color: #1e1d1d;
    color: white;
    padding: 10px 0;
}

.header-inner {
    display: flex;
}

.logo {
    width: 150px;
    height: auto;
    margin-left: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    color: #ffcc80;
    text-decoration: none;
    font-weight: bold;
    margin-right: 20px;
}
.mobile-header-phone {
    color: #ffcc80;
    font-weight: bold;
    text-decoration: none;
}
.header-login {
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
}

.header-cart {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid #ff7043;
    border-radius: 8px;
    transition: 0.25s;
}

.header-cart:hover {
    background-color: #ff7043;
    color: white;
}

/* ------------------------------
   КАТЕГОРИИ (верхнее меню)
------------------------------ */
.categories-bar {
    background-color: #353535;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.categories-bar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.categories-bar a:hover {
    background-color: #4a4a4a;
    color: #fff;
}

/* ------------------------------
   СЕТКА ТОВАРОВ
------------------------------ */
.section-title {
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    box-shadow: 0 0 16px rgba(0,0,0,0.15);
    border-color: #ff7043;
}

.product-card img {
    max-height: 200px;
    width: auto;
    margin-bottom: 10px;
}

.product-title {
    font-weight: 600;
}

.product-price {
    color: #353535;
    margin: 10px 0;
    font-weight: bold;
}

.buy-btn {
    background-color: transparent;
    color: #ff7043;
    border: 2px solid #ff7043;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.buy-btn:hover {
    background-color: #ff7043;
    color: white;
}

/* ------------------------------
   ПОДВАЛ
------------------------------ */
footer {
    background-color: #1e1d1d;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ------------------------------
   МОБИЛЬНОЕ МЕНЮ
------------------------------ */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 112, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0);
    }
}

.mobile-menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    font-size: 28px;
    color: #ff7043;
    background: none;
    border: 1px solid rgb(255, 112, 67);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px);
    animation:
            slideDownFade 0.5s ease-out forwards,
            pulseGlow 2.5s infinite ease-out 1s;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.15);
    color: #ff7043;
    border-color: #ff7043;
    box-shadow: 0 0 8px rgba(255, 112, 67, 0.5);
}

@keyframes slideDownFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Скрыть кнопку меню, когда меню открыто */
.mobile-categories.open + .mobile-menu-btn {
    display: none !important;
}
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
        visibility: hidden;
        opacity: 0;
    }
}

@keyframes slideDownFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрыть кнопку меню, когда меню открыто */
.mobile-categories.open + .mobile-menu-btn {
    display: none !important;
}
.mobile-categories {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #1e1d1d;
    color: #fff;
    padding: 20px;
    transition: 0.3s ease;
    z-index: 9999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.mobile-categories.open {
    left: 0;
}

.mobile-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffccbc;
    border-bottom: 1px solid #ff7043;
    padding-bottom: 10px;
}

.mobile-categories a {
    display: block;
    color: #ffccbc;
    padding: 14px 0;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-categories a:hover {
    color: #ff7043;
}

/* Пульсирующий крестик */
.close-btn {
    font-size: 30px;
    cursor: pointer;
    color: #ff7043;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}


/* ------------------------------
   МОБИЛЬНАЯ АДАПТАЦИЯ
------------------------------ */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .header-right {
        display: none !important;
    }
    .categories-bar {
        display: none !important;
    }

}

.mobile-cart-wrapper {
    background: #353535;
    padding: 12px;
    display: flex;
    justify-content: center;
}

.mobile-cart-btn {
    background-color: transparent;
    border: 1px solid #ff7043;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.mobile-cart-btn:hover {
    background-color: #ff7043;
    color: #fff;
}

@media (min-width: 992px) {
    .mobile-cart-wrapper {
        display: none !important;
    }
}

/* ------------------------------
   МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ КАРТОЧЕК
------------------------------ */
@media (max-width: 480px) {
    .product-card {
        padding: 18px 14px;
    }
    .product-card img {
        max-height: 150px;
    }
}
/* --- МОБИЛЬНАЯ КНОПКА КОРЗИНЫ --- */

.mobile-cart-wrapper {
    background: #353535;
    padding: 12px;
    display: flex;
    justify-content: center;
}

.mobile-cart-btn {
    background-color: transparent;
    border: 1px solid #ff7043;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.mobile-cart-btn:hover {
    background-color: #ff7043;
    color: #fff;
}

/* Скрываем категории на мобилке */
@media (max-width: 992px) {
    .categories-bar {
        display: none !important;
    }
}

/* ПК — скрыть мобильную кнопку корзины */
@media (min-width: 992px) {
    .mobile-cart-wrapper {
        display: none !important;
    }
}
/* Общий контейнер */
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;

    display: flex;
    gap: 50px;
}

/* Фото */
.product-photo {
    flex: 1;
}

.product-photo-img {
    width: 100%;
    border-radius: 12px;
}

/* Правая сторона */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-price-big {
    font-size: 28px;
    font-weight: 800;
    color: #ff7043;
    margin-bottom: 20px;
}

.product-params div {
    font-size: 18px;
    margin-bottom: 6px;
}

.product-params span {
    color: #777;
}

.weight-label {
    margin-top: 25px;
    margin-bottom: 6px;
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.weight-select {
    appearance: none;
    -webkit-appearance: none;

    width: 200px;
    padding: 12px 16px;

    border-radius: 10px;
    border: 1.8px solid #ddd;

    font-size: 16px;
    color: #333;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3e%3cpolyline points='1 1 7 7 13 1' fill='none' stroke='%23999' stroke-width='2'/%3e%3c/svg%3e")
    no-repeat right 14px center;

    transition: 0.25s;
}

.weight-select:hover {
    border-color: #ff9b6a;
}

.weight-select:focus {
    border-color: #ff7043;
    box-shadow: 0 0 0 3px rgba(255,112,67,0.25);
    outline: none;
}

/* -------------------------------
   КНОПКА ДОБАВЛЕНИЯ В КОРЗИНУ
-------------------------------- */
.add-to-cart-btn {
    background: #ffffff;
    color: #ff7043;

    border: 2px solid #ff7043;
    border-radius: 12px;

    width: 80%;
    padding: 14px;

    font-size: 20px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.25s;

    margin-top: 25px; /* ← УВЕЛИЧИЛ отступ */
}

.add-to-cart-btn:hover {
    background: #ff7043;
    color: white;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Описание */
.product-description-full {
    margin-top: 30px;
    font-size: 17px;
    color: #444;
    line-height: 1.5;
}
.params-title {
    margin-top: 25px;
    font-size: 22px;
    font-weight: 700;
}
/* Мобильная версия */
@media(max-width: 900px) {
    .product-page {
        flex-direction: column;
    }
}
