
/* Глобальные стили для предотвращения горизонтального скролла */
body, html {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'Benzin-Regular';
    src: url('../fonts/benzin-regular/fonts/benzin-regular.eot');
    src: url('../fonts/benzin-regular/fonts/benzin-regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/benzin-regular/fonts/benzin-regular.woff2') format('woff2'),
        url('../fonts/benzin-regular/fonts/benzin-regular.woff') format('woff'),
        url('../fonts/benzin-regular/fonts/benzin-regular.ttf') format('truetype'),
        url('../fonts/benzin-regular/fonts/benzin-regular.svg#benzin-regular') format('svg');
}

@font-face {
    font-family: 'Benzin-Bold';
    src: url('../fonts/benzin-bold/fonts/benzin-bold.eot');
    src: url('../fonts/benzin-bold/fonts/benzin-bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/benzin-bold/fonts/benzin-bold.woff2') format('woff2'),
        url('../fonts/benzin-bold/fonts/benzin-bold.woff') format('woff'),
        url('../fonts/benzin-bold/fonts/benzin-bold.ttf') format('truetype'),
        url('../fonts/benzin-bold/fonts/benzin-bold.svg#benzin-bold') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.header {
    background-color: #ed5c1e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-group {
    display: flex;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
}

.search-input {
    border: none;
    outline: none;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 15px;
    color: #000000;
    width: 150px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.search-icon {
    width: 20px;
    height: auto;
}

.city-switcher {
    position: relative;
    margin-left: 10px;
}

.city-button {
    background: none;
    border: none;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 17px;
    width: 130%;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px 20px 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.city-button:hover {
    background-color: #ed5c1ea6;
}

.city-button.brand {
    cursor: default;
    padding: 5px 10px;
}

.chevron-down {
    margin-left: 5px;
    font-size: 16px;
    font-weight: normal;
    color: #FFFFFF;
}

.city-modal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    width: 200px;
    z-index: 1100;
}

.city-modal.active {
    display: block;
}

.city-modal a {
    display: block;
    padding: 10px 20px;
    color: #ed5c1e;
    text-decoration: none;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 15px;
    transition: background-color 0.2s;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.city-modal a:hover {
    background-color: #f5f5f5;
}

.city-modal a.current {
    color: #777;
    pointer-events: none;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-img {
    width: 70px;
    height: auto;
}

.right-group {
    display: flex;
    align-items: center;
}

.phone-numbers a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    margin: 5px 0;
    font-size: 17px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.cart {
    display: flex;
    align-items: center;
    margin-left: 30px;
    cursor: pointer;
}

.cart-sum {
    margin-right: 10px;
    font-size: 17px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    color: #FFFFFF;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.cart-amount {
    font-weight: normal;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.dcart-icon {
    width: 35px;
    height: auto;
    filter: brightness(0) invert(1);
}

.mobile-menu-icon {
    display: none;
    color: #FFFFFF;
    font-size: 24px;
    position: relative;
    z-index: 1201;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.mobile-menu-icon.hidden {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #ed5c1e;
    transition: left 0.3s ease;
    padding-top: 20px; /* Adjusted to account for close button */
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling */
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu.open {
    left: 0;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1201;
}

.mobile-menu-close-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icon white */
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
    flex-grow: 1;
    margin-top: 40px; /* Space for close button */
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 19px;
    display: flex;
    align-items: center;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.mobile-menu img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.menu-icon,
.cart-icon,
.promo-icon,
.info-icon,
.contacts-icon {
    filter: brightness(0) invert(1);
}

.info-icon {
    width: 23px !important;
    height: 23px !important;
    margin-right: 12px !important;
}

/* New styles for category list in mobile menu */
.category-list {
    list-style: none;
    padding-left: 34px; /* Indent to align with menu items */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-list.open {
    max-height: 500px; /* Adjust based on expected number of categories */
}

.category-list li {
    margin: 10px 0;
}

.category-list a {
    font-size: 17px; /* Slightly smaller than main menu items */
    color: #CCCCCC; /* Lighter color to differentiate */
    display: block;
    text-decoration: none;
}

.category-list a:hover {
    color: #FFFFFF;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-icon {
    display: none;
}

.mobile-search-bar {
    display: none;
    background: #ed5c1e;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 48px;
    padding: 8px 15px;
    z-index: 1200;
    transition: right 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
}

.mobile-search-bar.active {
    display: flex;
    right: 0;
    opacity: 1;
}

.mobile-search-img {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-right: 10px;
}

.mobile-search-input-container {
    position: relative;
    flex: 1;
}

.mobile-search-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 44px 8px 12px;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 17px;
    color: #FFFFFF;
    outline: none;
    background: #ed5c1e;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.mobile-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 25px 25px;
    margin-top: 10px;
}

.action-buttons .action-button {
    display: flex;
    align-items: center;
    background-color: #f1f4f9;
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #000000;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 17px;
    font-weight: normal;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.action-buttons .action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
}

.social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.social-title {
    color: #FFFFFF;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.mobile-social {
    display: flex;
    gap: 15px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    transform: scale(1.1);
}

.mobile-social img {
    width: 28px;
    height: 28px;
}

.schedule-section {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.current-schedule {
    display: flex;
    align-items: center;
    background-color: #4CAF50;
    color: #FFFFFF;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 17px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.current-schedule.closed {
    background-color: #F44336;
}

.schedule-day {
    margin-right: 8px;
    font-weight: normal;
    font-family: 'Benzin-Bold', Arial, sans-serif;
    font-size: 17px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.schedule-time {
    margin-right: 8px;
}

.schedule-modal {
    display: none;
    position: fixed;
    z-index: 1300;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.schedule-modal::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .schedule-modal {
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100%;
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
        border-radius: 20px 20px 0 0;
    }

    .schedule-modal.active {
        display: block;
        transform: translateY(0);
    }

    .schedule-content {
        border-radius: 20px 20px 0 0;
    }
}

@media (min-width: 768px) {
    .schedule-modal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        max-width: 90%;
        max-height: 70vh;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 20px;
    }

    .schedule-modal.active {
        display: block;
        opacity: 1;
    }
}

.schedule-arrow-placeholder {
    display: none;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    color: #ed5c1e;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 1300;
}

.schedule-arrow-placeholder::after {
    content: '﹀';
}

.schedule-hide-button {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    background: #ed5c1e;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Benzin-Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
}

@media (max-width: 767px) {
    .schedule-arrow-placeholder,
    .schedule-hide-button {
        display: block;
    }
    .schedule-close {
        display: none;
    }
    .city-button.brand {
        width: 230px;
    }
}

@media (min-width: 768px) {
    .schedule-close {
        display: block;
    }
}

.schedule-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #ed5c1e;
    cursor: pointer;
    font-weight: bold;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.schedule-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ed5c1e;
    font-family: 'Benzin-Regular', Arial, sans-serif;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 100%;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item.current-day {
    background-color: #4CAF50;
    color: #FFFFFF;
    font-weight: normal;
    padding: 5px 16px;
    border-radius: 20px;
}

.schedule-item.current-day.closed {
    background-color: #F44336;
}

.scroll-to-top {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 900;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top::before {
    content: '↑';
    color: #000;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    display: block;
}

@media (max-width: 768px) {
    .header {
        transform: translateY(0) !important;
    }
    
    .header-container {
        justify-content: space-between;
        position: relative;
        min-height: 48px;
        padding: 6px 15px;
    }
    
    .left-group,
    .right-group,
    .logo,
    .search-bar,
    .phone-numbers,
    .cart {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        line-height: 1;
    }
    
    .city-switcher {
        position: absolute;
        left: 45%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .city-modal {
        left: 50%;
        transform: translateX(-50%);
        top: 40px;
    }
    
    .mobile-search-icon {
        display: block;
        position: absolute;
        right: 15px;
        top: 56%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .mobile-search-bar {
        display: flex;
        height: 48px;
        padding: 8px 15px;
        transition: right 0.3s ease, opacity 0.3s ease;
    }
    
    .mobile-search-bar.active {
        right: 0;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .mobile-search-bar,
    .mobile-menu,
    .mobile-menu-icon,
    .mobile-search-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .action-buttons .action-button {
        padding: 12px 18px;
        font-size: 16px;
        letter-spacing: 0.02em;
        line-height: 1.5;
    }
    
    .button-icon {
        width: 20px;
        height: 20px;
    }
    
    .social-section {
        padding: 0 20px 20px;
    }
    
    .schedule-section {
        padding: 18px 20px;
    }
    
    .schedule-modal {
        padding: 15px;
        width: 100%;
    }
    
    .schedule-item {
        font-size: 14px;
        padding: 4px 0;
        gap: 4px;
        letter-spacing: 0.02em;
        line-height: 1.5;
    }
    
    .schedule-item.current-day {
        padding: 4px 16px;
    }
    
    .schedule-close {
        top: 8px;
        right: 8px;
        font-size: 20px;
    }
}
