/* mobile.css - Адаптивные стили и бургер-меню */

/* Общие адаптивные стили */
@media (max-width: 1200px) {
    .luxury-nav {
        padding: 1rem 2rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        justify-items: center;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header {
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .order-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .luxury-nav {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-gold, .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cart-item {
        grid-template-columns: 180px 1fr;
        grid-template-rows: auto auto;
    }

    .cart-item-image {
        width: 180px;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
}

/* ========== БУРГЕР-МЕНЮ ========== */
.nav-hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-hamburger i {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Мобильная версия */
@media (max-width: 1024px) {
    .luxury-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-brand {
        flex-shrink: 0;
    }
    
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(212, 175, 55, 0.1);
        border-radius: 10px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--black);
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .nav-link span {
        min-width: 40px;
        color: var(--gold);
        font-weight: 600;
    }
    
    .cart-widget {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 140px;
        margin: 0 auto 16px;
        padding: 10px 20px;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 40px;
        color: var(--white);
        text-decoration: none;
    }
    
    .cart-widget i {
        font-size: 1rem;
        color: var(--gold);
        margin-right: 8px;
    }
    
    .cart-widget .cart-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        background: var(--gold);
        color: var(--black);
        border-radius: 50%;
        padding: 0 5px;
        font-size: 0.75rem;
        font-weight: bold;
    }
    
    .cart-tooltip {
        display: none;
    }
    
    .mobile-social {
        display: block;
        width: 100%;
    }
}

/* Предотвращение скролла */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Кнопки в корзине */
@media (max-width: 768px) {
    .cart-item-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 8px;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .quantity-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 12px;
        color: var(--gold);
        font-size: 1.2rem;
        padding: 0;
        margin: 0;
    }
    
    .remove-item {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 0, 0, 0.05);
        border: 1px solid rgba(255, 0, 0, 0.2);
        border-radius: 12px;
        color: #ff6b6b;
        font-size: 1rem;
        padding: 0;
    }
    
    .remove-text {
        display: none;
    }
}

/* Адаптивность для каталога */
@media (max-width: 768px) {
    .catalog-header {
        padding: 4rem 1rem;
    }
    
    .catalog-title {
        font-size: 2.5rem;
    }
    
    .category-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pages-wrapper .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body {
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Предотвращение скролла */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Мобильная версия навигации */
@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--black);
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        opacity: 1;
        transform: none;
        color: var(--white);
        -webkit-text-fill-color: currentColor;
    }

    .nav-menu.active .nav-link {
        animation: fadeInUp 0.35s ease both;
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }

    .nav-menu.active .mobile-social {
        animation: fadeInUp 0.35s ease 0.25s both;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link span {
        min-width: 40px;
        color: var(--gold);
        font-weight: 600;
    }
    
    .cart-widget {
        margin-top: auto;
        margin-bottom: 2rem;
        padding: 1rem;
        background: rgba(212, 175, 55, 0.1);
        border-radius: 10px;
        justify-content: center;
    }

    .nav-menu .nav-link.cart-widget {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 1rem 0 1.5rem !important;
        padding: 1rem 1.25rem !important;
        box-shadow: none !important;
        background: rgba(212, 175, 55, 0.1) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 40px !important;
    }

    .nav-menu .cart-widget-icon {
        position: static !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        min-width: 0 !important;
        color: inherit !important;
        font-weight: normal !important;
    }

    .nav-menu .cart-widget i {
        margin: 0 !important;
        font-size: 1.2rem !important;
    }

    .nav-menu .cart-widget .cart-count {
        min-width: 22px !important;
        width: 22px !important;
        height: 22px !important;
        position: absolute !important;
        top: 10px !important;
        right: 14px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        border: 2px solid var(--black-light) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 5px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        background: var(--gold) !important;
        color: var(--black) !important;
        border-radius: 50% !important;
        z-index: 2 !important;
    }

    .nav-menu .cart-widget .cart-tooltip {
        display: none !important;
    }
    
    .mobile-social {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .mobile-social a,
    .mobile-hours {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--gray);
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .mobile-social i {
        color: var(--gold);
        width: 20px;
    }
}

/* Анимации для бургер-меню */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-section {
        padding: 2rem 1rem 6rem;
    }
    
    .cart-item {
        grid-template-columns: 180px 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }

    .cart-item-image {
        width: 180px;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-controls {
        margin-right: auto;
    }
    
    .summary-card {
        position: static;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 1rem;
    }
}

/* Адаптивность для каталога */
@media (max-width: 768px) {
    .catalog-header {
        padding: 4rem 1rem;
    }
    
    .catalog-title {
        font-size: 2.5rem;
    }
    
    .category-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pages-wrapper .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность для форм */
@media (max-width: 480px) {
    .subscribe-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 30px;
    }
    
    .promo-code {
        flex-direction: column;
    }
    
    .promo-code input,
    .promo-code button {
        width: 100%;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Ховер-эффекты для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .btn-gold:hover,
    .btn-outline:hover,
    .btn-order:hover {
        transform: none;
    }
    
    .nav-link:hover span {
        color: var(--gold);
    }
}

/* Дополнительные улучшения для тач-устройств */
@media (max-width: 1024px) {
    .product-card {
        cursor: default;
    }
    
    .btn-gold,
    .btn-outline,
    .btn-order,
    .quantity-btn,
    .remove-item {
        min-height: 44px; /* Минимальный размер для удобного тапа */
    }
    
    input,
    select,
    textarea {
        font-size: 16px; /* Предотвращает масштабирование на iOS */
    }
}

/* Темная тема для мобильных устройств */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: var(--black-light);
    }
    
    .menu-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Анимация появления страницы */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageFadeIn 0.5s ease;
}

/* Улучшение скроллбара для мобильных */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 2px;
    }
}

/* Предотвращение скролла при открытом меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/* mobile.css - Стили для мобильных устройств и бургер-меню */

/* Бургер-меню */
.nav-hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gold);
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 9998;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link span {
        margin-right: 1rem;
        color: var(--gold);
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9997;
        backdrop-filter: blur(3px);
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .mobile-social {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .mobile-social a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--gold);
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-hours {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--gray);
        font-size: 0.9rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    /* Герой секция */
    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    /* Продукты */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* История */
    .story-content {
        flex-direction: column;
    }
    
    .story-image {
        margin-bottom: 2rem;
    }
    
    /* Шаги заказа */
    .order-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        width: 100%;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Корзина */
    .cart-item {
        grid-template-columns: 180px 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }

    .cart-item-image {
        width: 180px;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .recommended-products {
        grid-template-columns: 1fr;
    }

    .recommended-item img {
        aspect-ratio: 956 / 1280;
        object-fit: cover;
        object-position: center;
        background: #141414;
    }

    .partnership-btn-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .partnership-btn-wrapper .partnership-main-btn {
        display: flex !important;
        width: 100% !important;
        max-width: 360px;
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .partnership-btn-wrapper .partnership-main-btn:first-of-type {
        margin-bottom: 1.25rem !important;
    }

    .production-location,
    .location-container,
    .location-info,
    .location-map,
    .map-container,
    .map-frame,
    #storesMap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .location-container {
        overflow: hidden;
    }

    .location-card,
    .working-hours,
    .location-description {
        overflow: hidden;
    }

    .location-card h4,
    .working-hours h4,
    .city,
    .delivery-note,
    .store-list-address {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .location-map,
    #storesMap {
        min-height: 380px !important;
        height: 380px !important;
    }

    .location-map {
        height: auto !important;
        min-height: 0 !important;
    }

    .map-container,
    .map-frame {
        height: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .production-location,
    .location-container,
    .location-info,
    .location-map,
    .map-container,
    .map-frame,
    #storesMap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .location-container {
        overflow: hidden;
    }

    .location-card,
    .working-hours,
    .location-description {
        overflow: hidden;
    }

    .location-card h4,
    .working-hours h4,
    .city,
    .delivery-note,
    .store-list-address {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .location-map {
        height: auto !important;
        min-height: 0 !important;
    }

    .map-container,
    .map-frame {
        height: auto !important;
    }

    #storesMap {
        height: 420px !important;
        min-height: 420px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        display: flex !important;
    }

    .nav-menu .nav-link,
    .nav-menu.active .nav-link {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        color: var(--white) !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .nav-menu .mobile-social,
    .nav-menu .mobile-hours {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu .mobile-social a,
    .nav-menu .mobile-hours {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.65rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
    }

    .nav-menu .mobile-social a {
        padding: 0.85rem 1.25rem !important;
        margin-bottom: 1rem !important;
        border-radius: 40px !important;
        background: rgba(212, 175, 55, 0.1) !important;
        border: 1px solid rgba(212, 175, 55, 0.25) !important;
        color: var(--gold) !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
    }

    .nav-menu .mobile-social a i,
    .nav-menu .mobile-hours i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 1.25rem !important;
        flex-shrink: 0 !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .nav-menu .mobile-social a span,
    .nav-menu .mobile-hours span {
        display: inline-block !important;
        line-height: 1.2 !important;
    }

    .nav-menu .mobile-hours {
        padding: 0.25rem 0 !important;
        color: var(--gray) !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    /* Еще меньшие экраны */
    .brand-name {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .btn-gold, .btn-outline {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
    }
}

.nav-menu .nav-link:not(.cart-widget) {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-link .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold);
    flex-shrink: 0;
    font-weight: 400;
}

.nav-link .nav-link-icon i {
    font-size: 0.95rem;
    line-height: 1;
}

.nav-link .nav-link-text {
    color: var(--white);
    font-weight: 500;
    line-height: 1.35;
}
