/* General Styles */
:root {
    --brand-purple: #8A2BE2;
    --dark-bg: #000000;
    --text-white: #ffffff;
    --gray-text: #a1a1a1;
}
/* Фикс скроллбара для корзины */
/* Вставь это в блок <style> в <head> */
.cart-items {
    max-height: 450px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
}
/* Вставляй это прямо в index.html в тег <style> */
.cart-body {
    max-height: 400px !important; /* Жестко ограничиваем высоту */
    overflow-y: auto !important;   /* Включаем прокрутку */
    overflow-x: hidden !important;
    padding-right: 5px;
}

/* Стилизация полосы прокрутки */
.cart-body::-webkit-scrollbar {
    width: 6px;
}
.cart-body::-webkit-scrollbar-thumb {
    background-color: #8A2BE2;
    border-radius: 10px;
}
.cart-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Красивый фиолетовый скролл */
.cart-items::-webkit-scrollbar { width: 5px; }
.cart-items::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.cart-items::-webkit-scrollbar-thumb { background: #8A2BE2; border-radius: 10px; }

body {
    margin: 0;
    padding: 0;
    background-color: white;
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #7b2ff7 0%, #a134eb 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.phone {
    color: white;
    text-decoration: none;
    display: inline-block; /* Essential for the underline to align correctly */
    position: relative;    /* Becomes the anchor for our fake underline */
}

.phone::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;          /* Thickness of your underline */
    bottom: -2px;         /* Position below the text */
    left: 0;
    background-color: white;

    /* The Magic: Start at zero width and set the origin to the left */
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}

.phone:hover::after {
    /* Scale to full width on hover */
    transform: scaleX(1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.nav-links a {
    color: white !important;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 300;
    transition: 0.3s all ease-in-out;
}
.nav-links a:hover {
    font-size: 1rem;
    font-weight: 350;
}

.btn-top {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s all ease-in-out;
}
.btn-top:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    height: calc(100vh - 70px);
    padding: 0 10%;
    position: relative;
    color: white;
}

/* Add a dark overlay so text pops if the image is too bright */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Put text above the overlay */
    max-width: 600px;
}

.hero-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--gray-text);
    font-family: "Raleway", sans-serif;
    font-weight: 400;
}
.hero-content{
    font-size: 40px;
    display: flex;
    flex-direction: column;
}
.hero-content h1{
    margin: 0;
}
.btn-primary {
    background-color: var(--brand-purple);
    border: 1px solid var(--brand-purple);
    color: white;
    padding: 15px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    width: fit-content;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    transition: 0.3s all ease-in-out;
}
.btn-primary:hover {
    background-color: rgba(138,33, 226, 0.6) !important;
}

.hero-image img {
    max-width: 500px;
    filter: drop-shadow(0 0 50px rgba(138, 43, 226, 0.3));
}
/* Container that hides the horizontal overflow */
.slider-wrapper {
    position: relative;
    width: 100% !important; /* Change from 100vw to 100% */
    overflow: hidden;
    background-color: #000;
    /* Remove the left/right 50% and margin-left/right -50vw lines */
}

/* The wrapper must be full viewport width */


.slider-container {
    display: flex;
    /* This ensures the container is wide enough for all slides */
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.slide {
    flex: 0 0 100%; /* Force each slide to be exactly 100% of the wrapper */
    width: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box; /* Crucial so padding doesn't break width */
}

/* Dots Styling */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-content h1 {
    word-break: break-word; /* Чтобы длинные слова не толкали экран */
    overflow-wrap: break-word;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s all ease-in-out;
}

.dot.active {
    background: white;
    width: 30px; /* Makes the active dot an oval, like modern UI */
    border-radius: 10px;
}

/* Catalog Grid */
.catalog {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 40px;
    margin: 0;
    color: black;
}

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

.product-card {
    background: #111;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-img img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}

.price {
    font-size: 1.2rem;
    color: var(--brand-purple);
    font-weight: bold;
}

.fa-brands {
    font-size: 25px;
    transition: 0.3s all ease-in-out;
}
.connections {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fa-telegram:hover {
    color: lightblue;
}
.fa-whatsapp:hover {
    color: lightgreen;
}
.fa-instagram:hover {
    color: #FF3778;
}

.highlited {
    color: var(--brand-purple);
    font-size: 50px;
}
.catalog-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--gray-text);
    font-family: "Raleway", sans-serif;
    font-weight: 400;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    justify-content: center !important;
    align-content: center;

}

.category-card {
    border: 1px solid #333;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}
.category-info * {
    color: black;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-purple);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}
.category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-info h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}

.category-info span {
    color: var(--brand-purple);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-img img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.1) rotate(5deg);
}

/* Основной контейнер секции */
.features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif; /* Похож на шрифт со скрина */
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 40px;
    margin-bottom: 40px;
}

/* Элемент списка */
.feature-item {
    text-align: left;
}

.feature-icon {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.feature-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666; /* Серый цвет текста */
}

/* Ссылка "Подробнее о нас" */
.more-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #8a2be2; /* Твой фиолетовый */
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s all ease-in-out;
}

.circle-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #8a2be2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    transition: 0.3s all ease-in-out;
}


/* Адаптив для мобилок */
@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr; /* В одну колонку на телефонах */
    }
}
@media (max-width: 768px) {
    .footer-nav-side {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .footer-nav-side {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }
}
.more-link:hover .circle-arrow {
    background: var(--brand-purple);
}
.more-link:hover .fa-chevron-right {
    color: white;
}

.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--brand-purple);
}

/* Сетка ровно на 3 колонки */
.product-grid-limited {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card-v2 {
    border-radius: 20px;
    padding: 20px;
    transition: 0.3s all ease-in-out;
}

.product-img-wrapper {
    transition: 0.5s all ease-in-out
}
.product-card-v2:hover .product-img-wrapper {
    scale: 1.04;
}

.product-img-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-info-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.product-info-v2 h3 {
    font-size: 30px;
    margin: 0 0 0px 0;
    font-weight: 700;
    color: black;
    text-align: center;
}
.buttons {
    width: 100%;
    justify-content: center;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.price-v2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
}

.add-to-cart-btn {
    background: var(--brand-purple);
    color: white;
    border: none;
    width: 100%;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.product-btn {
    background: var(--brand-purple);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}


.add-to-cart-btn:hover {
    background: #a134eb;
    transform: scale(1.05);
}

/* Адаптивность: на мобилках в 1 колонку */
@media (max-width: 768px) {
    .product-grid-limited {
        grid-template-columns: 1fr;
    }
}
.main-footer {
    background-color: #0a0a0a;
    padding: 80px 0 40px 0;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

/* Логотип в футере */
.footer-logo {
    font-size: 2rem;
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 25px;
    color: white;
}

.footer-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Сетка ссылок */
.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--brand-purple);
}

/* Иконки соцсетей */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: white;
    color: black;
}

/* Нижняя панель */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 40px;
}

.tg-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #333;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-bottom: 40px;
}

.tg-channel-btn:hover {
    background: #161616;
    border-color: #555;
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Иконка в хедере */
.cart-trigger {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-purple);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 900;
}

/* Оверлей (фон) */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 20000;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
}
.cart-overlay.active { visibility: visible; opacity: 1; }

/* Боковая панель */
.cart-drawer {
    position: absolute;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid var(--glass-border);
    padding: 40px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}
.cart-overlay.active .cart-drawer { right: 0; }

.cart-items { flex-grow: 1; overflow-y: auto; margin: 30px 0; }

.cart-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}
.total-price { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }

.checkout-btn {
    width: 100%;
    background: white;
    color: black;
    padding: 20px;
    border-radius: 15px;
    border: none;
    font-weight: 900;
    display: flex; justify-content: space-between;
    cursor: pointer;
}

.cart-drawer {
    position: absolute;
    right: -450px;
    top: 0;
    width: 450px;
    /* Фикс №1: Используем 100% вместо 100vh, чтобы не вылезать за пределы body */
    height: 100%;
    /* Фикс №2: Режим гибкого контейнера */
    display: flex;
    flex-direction: column;

    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(138, 43, 226, 0.3);
    padding: 30px;
    box-sizing: border-box; /* Чтобы паддинги не раздували высоту */
    z-index: 20001;
}

/* Фикс №3: Заставляем центральную часть сжиматься, а футер — прижиматься вниз */
.cart-body {
    flex: 1; /* Забирает всё доступное место */
    overflow-y: auto; /* Разрешает скролл только здесь */
    margin: 20px 0;
    min-height: 0; /* Важно для корректного скролла во flex-боксе */
}

.cart-footer-modern {
    margin-top: auto; /* Гарантированно толкает футер в самый низ */
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    /* Фикс №4: Небольшой отступ снизу на случай странных панелей задач */
    margin-bottom: 10px;
}

/* Шапка корзины */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-cart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}
.close-cart-btn:hover { background: var(--brand-purple); transform: rotate(90deg); }



/* Стилизация скроллбара */
.cart-body::-webkit-scrollbar { width: 4px; }
.cart-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }



.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.total-label { color: var(--text-dim); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; display: flex; align-items: center;   /* vertical */ justify-content: center; /* horizontal */}
.total-amount { font-size: 1.5rem; font-weight: 900; color: #fff; }

/* Кнопка с неоновым свечением */
.checkout-neon-btn {
    width: 100%;
    padding: 20px;
    background: var(--brand-purple);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transition: 0.3s;
}

.checkout-neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.7);
}


/* Плавное появление новых товаров (опционально) */
.cart-item-card {
    transition: all 0.3s ease;
    animation: slideInLeft 0.3s ease-out;
    overflow-x: hidden; /* Это скроет вылетающую вправо карточку */
}

/* Контейнер для товаров в корзине */
.cart-body {
    overflow-y: hidden !important; /* Убираем скролл для вылетающих элементов */
    position: relative;
    padding: 10px; /* Чтобы тени карточек не обрезались */
}

/* Обновленная анимация удаления */
.item-fade-out {
    animation: slideOutCompact 0.4s ease forwards !important;
}

@keyframes slideOutCompact {
    0% {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
    }
    100% {
        /* Смещаем меньше (всего на 30px), чтобы не провоцировать скролл */
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: 0;
    }
}
.cart-body * {
    overflow-y: hidden !important; /* Убираем скролл для вылетающих элементов */
    overflow-x: hidden !important; /* Убираем скролл для вылетающих элементов */
}

/* Стиль сообщения об ошибке */
.cart-error-msg {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    animation: shake 0.4s ease-in-out;
    margin-bottom: 10px;
}

/* Анимация тряски */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Скрываем ошибку по умолчанию */
.hidden {
    display: none;
}

/* Контейнер для сообщения об успехе */
.order-success-overlay {
    text-align: center;
    padding: 40px;
    animation: fadeInScale 0.5s ease forwards;
}

.success-icon {
    font-size: 5rem;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    margin-bottom: 20px;
    display: block;
}

.success-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.success-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Эффект свечения для кнопки "На главную" */
.back-home-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--main-purple);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.back-home-btn:hover {
    background: var(--main-purple);
    box-shadow: 0 0 20px var(--main-purple);
}

/* --- ADAPTIVE DESIGN --- */

/* 1. Планшеты и небольшие ноутбуки (до 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Скрываем текстовые ссылки, можно заменить на "бургер-меню" */
    }

    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .product-grid-limited {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки вместо 3 */
    }
    /* Показываем кнопку меню */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: 1px solid rgba(255,255,255,0.3);
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 3px 6px;
        border-radius: 8px;
        transition: 0.3s;
    }

    .mobile-menu-btn:hover {
        background: rgba(255,255,255,0.1);
    }

    /* Настраиваем телефон (если решите оставить его в одну строку) */
    .phone {
        font-size: 0.8rem;
        white-space: nowrap; /* Чтобы номер не разрывался */
    }
}

/* 2. Смартфоны (до 768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1rem;
    }

    /* Слайдер и Hero */
    .slide {
        padding: 0 20px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .highlited {
        font-size: 35px;
    }

    /* Сетки категорий и товаров */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .product-grid-limited {
        grid-template-columns: 1fr; /* 1 товар в ряд */
    }

    /* Футер */
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    /* Корзина */
    .cart-drawer {
        width: 100%; /* Корзина на весь экран мобильного */
        right: -100%;
        padding: 20px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 3. Маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        padding: 12px 0;
    }

    .price-v2 {
        font-size: 1.1rem;
    }

    .product-info-v2 h3 {
        font-size: 22px;
    }
    .section-header {
        flex-direction: column;
    }
    .section-title {
        text-align: center;
    }
}

/* --- FIXES FOR EXISTING CLASSES --- */

/* Чтобы картинки не вылезали за пределы на мобилках */
img {
    max-width: 100%;
    height: auto;
}

/* Фикс для слайдера (чтобы не было горизонтального скролла на странице) */
.slider-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* --- ADAPTIVE HEADER FIX --- */

@media (max-width: 768px) {
    /* 1. Simplify the navbar padding */
    .navbar {
        padding: 10px 0;
    }

    /* 2. Hide desktop navigation links on mobile */
    .nav-links {
        display: none;
    }

    /* 3. Reorganize the container */
    .nav-container {
        flex-direction: row; /* Keep logo and right side on one line */
        flex-wrap: wrap;    /* Allow wrapping if necessary */
        justify-content: space-between;
        padding: 0 15px;
    }

    /* 4. Fix the Logo size */
    .logo {
        font-size: 0.9rem;
        max-width: 50%;
    }

    /* 5. Adjust the right-side icons and phone */
    .nav-right {
        gap: 10px; /* Bring icons closer together */
    }

    /* 6. Hide or simplify the phone number */
    .phone {
        font-size: 0.8rem;
        display: none; /* Often best to hide text-heavy phone numbers on mobile headers */
    }
    .phone-menu {
        display: block !important;
        width: fit-content;
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto
    }

    /* OR if you want to keep the phone, use only an icon */
    /* .phone-text { display: none; } */

    /* 7. Icons Adjustment */
    .connections {
        gap: 8px;
    }

    .fa-brands {
        font-size: 20px; /* Slightly smaller icons */
    }
}

@media (max-width: 768px) {
    /* Скрываем соцсети и обычные ссылки */
    .connections .fa-brands {
        display: none !important;
    }
}

/* Скрываем кнопку меню на компьютерах */
.mobile-menu-btn {
    display: none;
}


/* Стили для мобильного меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 30000;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-drawer {
    position: absolute;
    right: -100%; /* Изначально спрятано справа */
    top: 0;
    width: 80%; /* Занимает 80% экрана */
    max-width: 350px;
    height: 100%;
    background: #0a0a0a;
    padding: 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: 0.3s all ease-in-out;
}
.mobile-nav-links a:hover {
    color: #8A2BE2;;
}

.menu-footer {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.footer-socials{
    justify-content: center;
}

/* --- FULL-WIDTH OPEN FOOTER --- */
.main-footer {
    background: #000;
    color: #fff;
    padding: 80px 0 20px 0; /* Убрали боковые отступы у родителя */
    width: 100%;
    border-top: 1px solid rgba(138, 43, 226, 0.15);
    position: relative;
    overflow: hidden;
}

/* Контейнер теперь на 90% ширины, без жестких границ карточки */
.footer-wide-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0px;
}

/* Левая сторона: Жирный логотип */
.footer-brand-side {
    flex: 1;
}

.footer-logo {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #fff 30%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.5;
    max-width: 300px;
    line-height: 1.6;
}

/* Соцсети: просто в ряд, без лишних оберток */
.footer-social-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.footer-social-row a {
    color: #fff;
    font-size: 1.3rem;
    opacity: 0.4;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-row a:hover {
    opacity: 1;
    color: #8A2BE2;
    transform: translateY(-3px);
}

/* Правая сторона: Навигация */
.footer-nav-side {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.nav-column h4 {
    font-size: 30px;
    letter-spacing: 3px;
    color: #8A2BE2;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.nav-column a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.6;
    transition: 0.2s;
}

.nav-column a:hover {
    opacity: 1;
    padding-left: 5px;
}

/* Футер боттом: Линия на весь экран */
.footer-bottom-line {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 5%;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.3;
}

.legal-links {
    display: flex;
    gap: 20px;
}
.legal-links a {
    color: white;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .footer-wide-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-nav-side {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        text-align: left;
    }

    .footer-brand-side {
        margin-bottom: 40px;
    }

    .footer-social-row {
        justify-content: center;
    }
}

.footer-wide-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Центрируем основные блоки относительно друг друга */
    align-items: flex-start;
    gap: 100px; /* Увеличиваем отступ между брендом и ссылками */
}

.footer-brand-side {
    flex: 0 1 auto; /* Убираем жадное растягивание */
    text-align: left;
}

.footer-nav-side {
    flex: 0 1 auto; /* Убираем flex: 2, чтобы блок не давил вправо */
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)); /* Устанавливаем комфортную ширину колонок */
    gap: 60px;
}
* {
    box-sizing: border-box;
}

/* На мобилках всё в одну колонку по центру */
@media (max-width: 992px) {
    .footer-wide-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .footer-nav-side {
        grid-template-columns: 1fr; /* На узких экранах лучше в один ряд */
        text-align: center;
    }
     .footer-logo {
        text-align: center;
    }
    .footer-tagline {
        text-align: center;
    }
}

@media (max-width: 512px) {
    .bottom-content > span {
        padding-right: 20px;
    }
}

.phone-menu {
    text-align: center !important;
}
.toast-msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8A2BE2;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.connections * {
    color: white !important;
}
.gradient-text {
    /* Making the gradient deeper for legibility on white */
    background: linear-gradient(180deg, var(--brand-purple) 0%, #4b0082 100%);
    -webkit-background-clip: text;
}
.gradient-text {
    background: linear-gradient(180deg, var(--brand-purple) 0%, #4b0082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
    /* Уменьшаем заголовки секций */
    .section-title, .highlited {
        font-size: 28px !important;
    }

    /* Делаем кнопки компактнее */
    .btn-primary, .add-to-cart-btn, .product-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%; /* На мобилках кнопки на всю ширину удобнее для пальца */
    }

    /* Уменьшаем карточки товаров, чтобы они не были гигантскими */
    .product-card-v2 {
        padding: 10px !important;
    }

    .product-info-v2 h3 {
        font-size: 18px !important;
    }

    .price-v2 {
        font-size: 1.1rem !important;
    }

    /* Уменьшаем иконку корзины и лого, если нужно */
    .logo {
        font-size: 0.8rem !important;
    }
}

/* Базовые стили (Десктоп) */
.info-section {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 80px 20px;
    font-family: 'Raleway', sans-serif;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.map-box { flex: 1.8; max-width: 650px; display: flex; }
.map-wrapper {
    width: 100%; border-radius: 35px; overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: 0 25px 50px rgba(138, 43, 226, 0.1);
    background: #f0f0f0; height: 600px;
}
.map-wrapper iframe { width: 100%; height: 100%; display: block; }

.details-box { flex: 1; min-width: 350px; display: flex; flex-direction: column; justify-content: center; gap: 40px; }

.detail-title {
    font-size: 28px; font-weight: 900; margin-bottom: 25px;
    display: flex; align-items: center; gap: 15px; color: #8A2BE2; text-transform: uppercase;
}

.detail-content { padding-left: 42px; }
.address-main { font-size: 24px; font-weight: 800; margin: 0; }
.address-mall { font-size: 18px; color: #8A2BE2; font-weight: 700; margin: 5px 0; }
.address-street { color: #666; font-size: 16px; }

.delivery-cards { display: flex; flex-direction: column; gap: 20px; padding-left: 42px; }
.delivery-card { padding: 25px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; }
.delivery-card.primary { background: #f9f7ff; border-left: 6px solid #8A2BE2; }
.delivery-card.secondary { background: #fff; border: 1px solid #eee; border-left: 6px solid #333; }

.delivery-label { font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.delivery-price { color: #8A2BE2; font-size: 26px; font-weight: 900; }
.price-main { font-size: 20px; font-weight: 900; display: block; }
.price-sub { color: #8A2BE2; font-size: 12px; font-weight: 800; }

.nav-button {
    margin-left: 42px; display: block; background: #8A2BE2; color: #fff;
    padding: 22px; border-radius: 20px; text-decoration: none; font-weight: 900;
    text-align: center; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s;
}

/* --- АДАПТИВ ДЛЯ МОБИЛОК (до 768px) --- */
@media (max-width: 768px) {
    .info-section { padding: 40px 15px; }
    .info-container { gap: 30px; }

    .map-box { max-width: 100%; order: 2; } /* Карту вниз */
    .map-wrapper { height: 350px; border-radius: 20px; }

    .details-box { min-width: 100%; order: 1; } /* Инфу вверх */

    .detail-title { font-size: 22px; margin-bottom: 15px; }
    .detail-content, .delivery-cards, .nav-button { padding-left: 0; margin-left: 0; }

    .address-main { font-size: 20px; }
    .delivery-card { padding: 15px; }
    .delivery-price { font-size: 20px; }
    .nav-button { padding: 15px; font-size: 14px; }
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;      /* Позволяет элементам переноситься на новую строку */
    align-items: center;
    gap: 8px 12px;        /* Первый параметр — отступ между строками, второй — между элементами */
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;     /* Добавляем высоту строки для комфортного переноса */
}

.breadcrumb a {
    color: #888 !important;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;  /* Само слово внутри ссылки не будет разрываться */
}
.breadcrumb span {
    color: var(--accent) !important;
}

.breadcrumb i {
    font-size: 0.6rem;
    color: #666;          /* Делаем стрелочки чуть тусклее */
}

.breadcrumb span {
    color: #fff;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* На совсем маленьких экранах можно чуть уменьшить шрифт */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.7rem;
        gap: 6px 10px;
    }
}

/* Вставь это в блок <style> в <head> */
.cart-items {
    max-height: 450px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
}
/* Вставляй это прямо в index.html в тег <style> */
.cart-body {
    max-height: 400px !important; /* Жестко ограничиваем высоту */
    overflow-y: auto !important;   /* Включаем прокрутку */
    overflow-x: hidden !important;
    padding-right: 5px;
}

/* Стилизация полосы прокрутки */
.cart-body::-webkit-scrollbar {
    width: 6px;
}
.cart-body::-webkit-scrollbar-thumb {
    background-color: #8A2BE2;
    border-radius: 10px;
}
.cart-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Красивый фиолетовый скролл */
.cart-items::-webkit-scrollbar { width: 5px; }
.cart-items::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.cart-items::-webkit-scrollbar-thumb { background: #8A2BE2; border-radius: 10px; }
