/* styles.css */

/* Root Variables */
:root {
    /* Existing variables */
    --primary-color: #2c3e50;
    --secondary-color: #95a5a6;
    --accent-color: rgba(231, 76, 60, 0.9);
    --background-color: #ecf0f1;
    --input-background: #ffffff;
    --input-border: #bdc3c7;
    --tag-background: #e74c3c;
    --tag-text: #ffffff;
    --switch-off: #bdc3c7;
    --switch-on: #e74c3a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --card-background: #ffffff;
    --card-border: #bdc3c7;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --button-hover: #c0392b;
    --scrollbar-bg: #bdc3c7;
    --scrollbar-thumb: #7f8c8d;
    --scrollbar-thumb-hover: #95a5a6;
    --badge-a: #27ae60;
    --badge-b: #f39c12;
    --badge-c: #c0392b;
    --price-color: #2980b9;
    --font-family: 'Inter', sans-serif;
    --footer-text-color: #ffffff;
    --footer-icon-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* New variables for toggle-suggestions-btn */
    --toggle-btn-bg-color: rgba(255, 255, 255, 0.5);
    --toggle-btn-border-color: rgba(204, 204, 204, 0.5);
    --toggle-btn-color: rgba(85, 85, 85, 0.7);
    --toggle-btn-hover-bg-color: rgba(240, 240, 240, 0.7);
    --toggle-btn-hover-color: rgba(85, 85, 85, 0.9);
    --toggle-btn-focus-shadow: rgba(0, 123, 255, 0.5);
}



/* Контейнер для всего содержимого */
.main-content {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

img, svg {
    max-width: 100%;
    height: auto;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.nav-bar {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-bar-top, .nav-bar-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-bar-top {
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-bar a {
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
    font-weight: 500;
}

.nav-bar a:hover {
    background-color: var(--accent-color);
}

/* Language Selection */
.language-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-select img {
    width: 15px;
    height: 15px;
    cursor: pointer;
    transition: transform var(--transition-speed), border 0.3s;
    border: 2px solid transparent;
    border-radius: 50%;
}

.language-select img.selected {
    transform: scale(1.1);
    border: 2px solid var(--accent-color);
}

.selected-language {
    cursor: pointer;
}

.selected-language img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    transition: transform var(--transition-speed), border 0.3s;
}

.selected-language img:hover {
    transform: scale(1.1);
}

body {
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Минимальная высота body равна высоте экрана */
    margin: 0;
  }

  .home-content {
    display: none;
    grid-template-areas:
      "banner banner"
      "newarrivals rightcol";
    grid-template-columns: 20% 75%; /* Остальные значения оставляем как есть */
    gap: 10px;
    margin-top: 120px;
    padding: 10px;
    overflow: hidden; 
    align-items: stretch;
  }

  .banner-image {
    grid-area: banner;
    width: 100%;
    max-height: 170px; /* Настраиваем по необходимости */
    object-fit: cover;
    display: block;
    border-radius: 15px; /* Если нужно оставить */
  }

  /* Для мобильных экранов (до 768px) */
  @media (max-width: 767px) {
    .banner-image {
      max-height: 150px; /* Делаем баннер компактнее */
      border-radius: 5px; /* Уменьшаем скругления */
    }
  
    .home-content {
      display: flex;
      flex-direction: column; /* На мобильных все элементы идут в колонку */
      gap: 10px;
    }

    .new-arrivals-container,
    #right-col {
      width: 100%; /* Чтобы блоки не сжимались */
    }
}
  
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-align: left;
    color: var(--primary-color);
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===================== Recently Added Parts Carousel Styles ===================== */

/* Стили блока Recently added parts */
.recently-added-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    padding: 10px;
    background-color: var(--background-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Занимает только вторую колонку grid-контейнера */
    grid-column: 2 / 3;
  }
  
  .recently-added-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
  }
  
  .recently-added-carousel {
    display: flex;
    gap: 15px;
    scroll-behavior: smooth;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  
  .recently-added-carousel::-webkit-scrollbar {
    display: none;
  }
  .recently-added-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .recently-added-info {
    padding: 12px;
}

.recently-added-info .part-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.recently-added-info .price {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 8px 0;
}
  .recently-added-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    min-height: 280px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }
  .recently-added-card.visible {
    opacity: 1;
    transform: translateX(0);
}
  .recently-added-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .recently-added-card img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .recently-added-card .part-id {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
  }
  
  .recently-added-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
  }
  
  .recently-added-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .recently-added-arrow.left {
    left: 10px;
  }
  .recently-added-arrow.right {
    right: 10px;
  }
  
  .recently-added-arrow.hidden {
    display: none;
  }
  
  


  .new-arrivals-container {
    grid-area: newarrivals;
  }

.new-arrivals-container::-webkit-scrollbar {
    width: 6px;
}

.new-arrivals-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.new-arrivals-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.new-arrivals-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.right-col {
        grid-area: rightcol;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
.new-arrivals-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.new-arrival-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.new-arrival-item:last-child {
    margin-bottom: 0;
}

.new-arrival-item:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}
.new-arrival-item.visible {
    opacity: 1;
    transform: translateY(0);
}


.new-arrival-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.new-arrival-info {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ======= Блок брендов ======= */
.brands-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 auto;
  }
  
  .brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;              /* Adequate height for two text lines */
    background-color: #fafafa;   /* Light background */
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    /* Use a modern, refined font (ensure it is imported in your HTML) */
    font-family: 'Open Sans', sans-serif;
    transition: transform 0.2s, background-color 0.2s;
  }
  
  .brand-box:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
  }
  
  .brand-box p {
    margin: 5px 0;
  }
  
  p[data-translate="brand_name"] {
    font-size: 20px;       /* Larger font for the brand name */
    font-weight: 600;
    color: #333;
  }
  
  p[data-translate="parts_count"] {
    font-size: 14px;       /* Smaller font for the parts count */
    color: #777;
  }
  
  .brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .brands-header-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .brands-header-selector select {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    outline: none;
    cursor: pointer;
  }
  
  

 /* Model card styling */
 .model-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px); /* Размытие фона за элементом */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  /* Hover effect */
  .model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Square image with modern styling */
  .model-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }
  
/* Label styling with a more modern and pleasant font */
.model-label {
    padding: 10px;
    text-align: center;
    color: #333;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .home-content {
        display: grid;
        grid-template-columns: 100% !important;
        grid-template-areas:
            "banner"
            "newarrivals"
            "rightcol";
        gap: 10px;
    }
    .brands-container {
        grid-template-columns: repeat(4, 1fr);
      }
      .brands-header {
        display: block;
      }
      .brand-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100px; /* Set a fixed height for all brand boxes */
        box-sizing: border-box;
      }
      
      p[data-translate="brand_name"] {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0;
      }
      
      p[data-translate="parts_count"] {
        font-size: 10px;
        color: #777;
        margin: 0;
        margin-top: auto; /* Push parts_count to the bottom of the box */
      }
      
    .model-label {
        font-size: 14px;
        padding: 6px;
    }
    .new-arrivals-carousel {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        padding-bottom: 10px;
      }
    
      .new-arrivals-carousel::-webkit-scrollbar {
        display: none;
      }
    
      .new-arrivals-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }
    
      .new-arrival-item {
        flex: 0 0 auto;
        width: 150px;
        margin-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
      }
    
      .new-arrival-image {
        width: 100%;
        height: 100px;
        margin-right: 0;
        margin-bottom: 8px;
      }
    
      .new-arrival-info {
        font-size: 12px;
      }
    
}



  

.sidebar {
    width: clamp(200px, 15%, 600px); /* Плавное изменение ширины */
    height: calc(100% - 270px);      /* Полная высота с учётом top */
    box-sizing: border-box;          /* Учёт padding в ширине */
    padding: 10px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    position: fixed;
    top: 130px; /* Высота nav-bar */
    bottom: 130px;
    left: 0;
    overflow-y: auto;
    transition: transform var(--transition-speed), width 0.3s ease; /* Анимация ширины */
    z-index: 999;
}

.sidebar h3 {
    margin: 0;
    text-align: center;
    color: var(--primary-color);
    border-bottom: 2px solid var(--input-border);
    padding-bottom: 8px;
    font-size: 18px;
    flex: 0 0 auto; /* Заголовок не растягивается */
}

.sidebar-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: none;
}

.filter-group {
    margin-bottom: 1px;
    position: relative;
    flex: 1; /* Растягиваем группу фильтров */
}

.filter-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.sidebar button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 6px;
    transition: background-color var(--transition-speed);
    align-self: center;
    width: 100%; /* Кнопка занимает всю ширину */
    flex: 0 0 auto; /* Кнопка не растягивается */
}

.sidebar button:hover {
    background-color: var(--button-hover);
}

/* Search Container */
.search-container {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--input-background);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: inset 0 1px 3px var(--shadow-color);
    margin: 0 10px;
    justify-content: flex-start;
}

.search-container .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: 8px;
}

.tags-input {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 6px 10px;
    background-color: var(--input-background);
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    margin-right: 8px;
}

.tags-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 0;
}

.tags-container .tag {
    background-color: var(--tag-background);
    border-radius: 4px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--tag-text);
}

.tags-container .tag span {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
}

.tags-input input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 16px; /* Increased to prevent mobile zoom */
    padding: 4px;
    background-color: transparent;
    transition: box-shadow var(--transition-speed);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags-input input[type="text"]::placeholder {
    color: var(--secondary-color);
    font-size: 16px; /* Increased to prevent mobile zoom */
}

.search-container input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 16px; /* Increased to prevent mobile zoom */
    border: none;
    border-radius: 4px;
    min-width: 120px;
    background-color: var(--input-background);
    transition: box-shadow var(--transition-speed);
}

.search-container input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 5px var(--accent-color);
}

.search-container button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-container button:hover {
    background-color: var(--button-hover);
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    font-size: 14px;
    color: var(--secondary-color);
}

.autocomplete-suggestion:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}
.cart-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    padding-left: 15px;
    position: relative; /* Для позиционирования счетчика */
}

.cart-counter {
    position: absolute;
    top: 0px; /* Смещение вверх от верхнего края иконки */
    right: 0; /* Смещение вправо */
    background: var(--accent-color); /* Цвет круга */
    border-radius: 50%; /* Круглая форма */
    width: 16px; /* Размер круга */
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; /* Меньший размер шрифта */
}

.cart-counter span {
    color: #ffffff;
}

.cart-icon {
    width: 30px;
    height: 30px;
    transition: opacity 0.3s;
}

.cart-container:hover .cart-icon {
    opacity: 0.7;
}
  
  
.main-content {
    margin-top: 120px; /* Высота nav-bar */
    margin-left: 16%; /* Ширина sidebar */
    padding: 10px;
    gap: 10px;
}



#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* по умолчанию скрыт */
    z-index: 10;
  }
  #sidebar-overlay.active {
    display: block;
  }
  

/* Results Section */
.results {
    width: 100%;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-container label {
    font-size: 14px;
    color: var(--primary-color);
}

.sort-container select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color var(--transition-speed);
}

.sort-container select:focus {
    outline: none;
    border-color: var(--accent-color);
}
.card-wrapper {
    background-color: rgba(0, 0, 0, 0.03); /* Еще более светлый фон */
    border-radius: 12px; /* Легкое закругление углов */
    padding: 6px; /* Небольшие внутренние отступы */
    margin: 6px; /* Внешние отступы для разделения между элементами */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Очень легкая тень */
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    width: 100%;
}

.product-detail-view {
    display: block;
}

#results-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    cursor: pointer;
    width: 300px;
    height: 420px;
    box-sizing: border-box;
    margin: 20px 0; /* Добавляем отступы сверху и снизу */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

/* Image Container */
.image-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.price {
    position: absolute;
    bottom: 10px; /* Расположение внизу */
    right: 10px;  /* Расположение справа */
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон для контраста */
    border-radius: 4px;
    z-index: 2; /* Убедимся, что Price сверху */
}

.price_card {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон для контраста */
    border-radius: 4px;
    z-index: 2; /* Убедимся, что Price сверху */
}



/* Part ID */
.part-id {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 3;
}

/* Card Content */
.card-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.detail {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.comment {
    font-size: 12px;
    color: black;
    font-style: oblique;
}

.oem-code, .producer {
    font-size: 12px;
    margin-top: 3px;
}

.quality {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.button-group button {
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.add-to-cart-btn, .ask-seller-btn,.view-parts-btn {
    flex: 1;
    padding: 10px 12px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed), transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:hover, .ask-seller-btn:hover,.view-parts-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn:active, .ask-seller-btn:active,.view-parts-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover .add-to-cart-icon, .ask-seller-btn:hover .ask-seller-icon {
    fill: #ffffff;
}

.add-to-cart-icon, .ask-seller-icon {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    transition: fill var(--transition-speed);
}

/* OEM Tooltip */
#oem-tooltip {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1004;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: absolute;
}

#oem-tooltip a {
    font-size: 12px;
    text-decoration: underline;
    color: var(--accent-color);
    margin-right: 5px;
    cursor: pointer;
}

#oem-tooltip a:hover {
    color: #c0392b; /* Замените на нужный оттенок */
}

#oem-tooltip span.close-tooltip {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
}

/* More Link */
.oem-code a.more-link {
    font-size: 14px; /* Увеличенный размер */
    font-weight: bold; /* Дополнительное выделение */
    color: rgba(231, 76, 60, 0.9);
}

/* Skeleton Loaders */


.card-placeholder {
    background-color: #e0e0e0;
    border: 1px solid var(--card-border);
    border-radius: 12px; /* Легкое закругление углов */
    padding: 6px; /* Небольшие внутренние отступы */
    margin: 6px; /* Внешние отступы для разделения между элементами */
    box-shadow: 0 4px 12px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    cursor: pointer;
    width: 300px;
    height: 420px;
    box-sizing: border-box;
}


.card-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: moveShimmer 1.5s infinite;
}

.card-placeholder .part-id-placeholder,
.card-placeholder .detail-placeholder,
.card-placeholder .comment-placeholder,
.card-placeholder .oem-code-placeholder,
.card-placeholder .producer-placeholder,
.card-placeholder .quality-placeholder,
.card-placeholder .price-placeholder,
.card-placeholder .button-group-placeholder {
    background-color: #c0c0c0;
    border-radius: 4px;
    margin: 8px 0;
}

.part-id-placeholder {
    width: 50px;
    height: 20px;
}

.detail-placeholder {
    width: 80%;
    height: 20px;
}

.comment-placeholder {
    width: 60%;
    height: 15px;
}

.oem-code-placeholder {
    width: 70%;
    height: 15px;
}

.producer-placeholder {
    width: 50%;
    height: 15px;
}

.quality-placeholder {
    width: 40%;
    height: 15px;
}

.price-placeholder {
    width: 30%;
    height: 20px;
}

.button-group-placeholder {
    width: 60%;
    height: 30px;
    margin-top: 10px;
}

/* Toggle Suggestions Button */
.toggle-suggestions-btn.transparent-arrow {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    padding: 0;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: rgba(85, 85, 85, 0.5);
    line-height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.toggle-suggestions-btn.transparent-arrow:hover {
    background-color: rgba(240, 240, 240, 0.5);
    color: rgba(85, 85, 85, 0.7);
}

.toggle-suggestions-btn.transparent-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.toggle-suggestions-btn.transparent-arrow.active {
    transform: translateY(-50%) rotate(180deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
}

.sidebar-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* Mobile Specific Styles */
@media (max-width: 1000px) {

    .card {
        width: 340px;
        height: 400px;

    }


    .price {
        bottom: 5px;
        right: 5px;
        font-size: 14px;
    }

    .card-content {
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }


    .cart-count {
        font-size: 10px; /* Уменьшите шрифт для компактности */
        padding: 2px 4px; /* Уменьшите padding */
        top: 0px; /* Настройте позиционирование */
        right: 0px;
    }

    .nav-bar-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .sidebar-toggle {
        display: block;
        margin-right: auto;
    }

    .search-container {
        width: 100%;
        padding: 8px 10px;
        margin: 0 5px 10px 5px;
    }

    .main-content {
        margin-left: 0; /* Ширина sidebar */
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .sidebar {
        display: none;
        width: 80%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
        transition: left var(--transition-speed);
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
    }

    .results {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 10px; /* Опционально: уменьшите промежуток между карточками */
    }

    .selected-language {
        display: flex;
        width: auto;
    }

    .language-select {
        display: none;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
    }

    .language-select.active {
        display: flex;
    }
}

/* Fade Animations */
.fade-enter {
    opacity: 0;
    transform: translateY(20px);
}
.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}
.fade-exit {
    opacity: 1;
    transform: translateY(0);
}
.fade-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

/* Photo Popup */
.photo-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.photo-popup-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.photo-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.popup-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.popup-navigation button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Cart Modal */
#cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color);
    padding: 20px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1001;
    width: 300px;
}

#cart-modal h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}


#cart-items li {
    padding: 8px;
    border-bottom: 1px solid var(--input-border);
    font-size: 14px;
    color: var(--secondary-color);
}

#cart-modal button {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color var(--transition-speed);
    font-size: 14px;
}

#cart-modal button:hover {
    background-color: var(--button-hover);
}

/* Additional Adjustments */
.cart-container,
.search-container,
.sidebar-toggle,
.cart-count {
    max-width: 100%;
    overflow: hidden;
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--switch-off);
    transition: background-color var(--transition-speed);
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--background-color);
    transition: transform var(--transition-speed);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--switch-on);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-group span {
    margin-left: 8px;
    font-size: 12px;
    color: var(--secondary-color);
}

.offer-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Прокрутка при необходимости */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    align-items: center;
    justify-content: center;
}


/* Содержимое модального окна */
.offer-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

/* Анимация появления */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Кнопка закрытия */
.offer-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.offer-close-button:hover,
.offer-close-button:focus {
    color: #000;
}

/* Информация о продукте */
.offer-product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.offer-product-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.offer-product-info div {
    flex: 1;
}

/* Форма */
#offer-make-an-offer-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#offer-make-an-offer-form input,
#offer-make-an-offer-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#offer-make-an-offer-form button {
    background-color: var(--accent-color, #007BFF);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}



/* Обратная связь */
.offer-feedback {
    margin-top: 10px;
    font-size: 14px;
}

/* Пример стилей для успеха и ошибки */
.offer-feedback.success {
    color: green;
}

.offer-feedback.error {
    color: red;
}

.cart-overlay, .checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.cart-overlay.active, .checkout-overlay.active {
    display:flex;
}
.cart-section, .checkout-section {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #333;
    border-radius: 8px;
    position: relative;
    width:90%;
    max-height:90%;
    overflow:auto;
}
.close-cart, .close-checkout {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #333;
}
.custom-cart-body {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow: hidden;
    width: 100%;
}
.custom-cart-items {
    flex: 2;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
    overflow-y: auto;
}
.custom-cart-summary {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}
.custom-cart-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.custom-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.custom-cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
    background: #eee;
}
.custom-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.custom-cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1em;
    color: #222;
}
.custom-cart-item-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
    font-style: italic;
}
.custom-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}
.custom-cart-price {
    font-weight: 600;
    color: #333;
    font-family: 'Inter', sans-serif;
}
.custom-cart-remove {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #d9534f;
    font-weight: bold;
}
.custom-cart-empty {
    text-align: center;
    color: #999;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 500;
}
.custom-cart-summary h3 {
    margin: 0;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
    font-family: 'Inter', sans-serif;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    margin-bottom: 5px;
    color: #444;
    font-family: 'Inter', sans-serif;
}
.summary-note {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 0.9em;
    color: #555;
}   
.summary-total {
    font-weight: 600;
    font-size: 1.1em;
    color: #222;
    margin-top: -10px;
}
.proceed-checkout {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}
.proceed-checkout:hover {
    background: #c9302c;
}

.proceed-checkout:disabled {
    background-color: #cccccc; /* Серый фон */
    color: #666666; /* Темно-серый текст */
    border: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.modal-title span {
    font-size: 1.4em;
    font-weight: 600;
    color: #222;
    font-family: 'Inter', sans-serif;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
}
.order_section_heading {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
}
.order_section {
    width: 100%;
    margin-bottom: 20px;
    border-spacing: 0;
    border-collapse: separate;
}
#order_form input[type="text"],
#order_form input[type="email"],
#order_form input[type="tel"],
#order_form select,
#order_form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}
.order_calculations {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: flex-end; /* Содержимое выравнивается справа */
    align-items: center; /* Центрирование по вертикали */
    background-color: #f9f9f9; /* Светлый фон для контраста */
    border: 1px solid #ddd; /* Тонкая граница для выделения */
    border-radius: 8px; /* Закругленные углы */
    padding: 10px 20px; /* Отступы для внутреннего содержимого */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для глубины */
    margin-left: auto; /* Автоотступ слева для позиционирования справа */
}

.order_calculations > * {
    margin-left: 10px; /* Расстояние между элементами внутри блока */
}

.button3 {
    background: #ccc;
    color: #333;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}
.button3:hover {
    background: #bbb;
}
.order-submit {
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}
.order-submit:hover {
    background: #c0392b;
}
.parts_data {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}
.part_data_section {
    flex: 1;
    font-family: 'Inter', sans-serif;
}
.part_name {
    font-weight: bold;
    color: #222;
}
.checkout-price {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}
.part_part {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: inline-block;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
@media (max-width: 768px) {
    .custom-cart-body {
        flex-direction: column;
    }}

    .loading-spinner {
        border: 4px solid rgba(0, 0, 0, 0.1);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border-left-color: #09f;
        animation: spin 1s linear infinite;
        display: inline-block;
        vertical-align: middle;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Shipping Option Select Styles */
    #shipping-option {
        width: 100%;
        padding: 8px;
        margin-top: 8px;
        border-radius: 4px;
        border: 1px solid #ccc;
    }
    
    
    #cart-delivery-country, #cart-delivery-postcode {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .reserved-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #e74c3c;
        color: white;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 20px;
        text-align: center;
        pointer-events: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .add-to-cart-btn.disabled {
        background-color: #cccccc; /* Серый фон */
        color: #666666; /* Темно-серый текст */
        border: none;
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    .add-to-cart-btn.disabled:hover {
        /* Убираем эффекты при наведении для отключенной кнопки */
        background-color: #cccccc;
        color: #666666;
    }

    .add-to-cart-notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9); /* Эффект масштабирования */
        min-width: 320px;
        max-width: 90%;
        background: rgba(193, 190, 190, 0.2); /* Полупрозрачный белый фон */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Эффект тени */
        backdrop-filter: blur(10px); /* Размытие фона */
        border: 1px solid rgba(255, 255, 255, 0.5); /* Граница в тон фона */
        border-radius: 12px;
        z-index: 9999;
        text-align: center;
        font-family: 'Arial', sans-serif;
        font-size: 1rem;
        color: #333;
        opacity: 0;
        pointer-events: none; /* Пока скрыто, мышь не взаимодействует */
        transform-origin: center;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .add-to-cart-notification.show {
        opacity: 1;
        pointer-events: auto; /* Активируем мышь */
        transform: translate(-50%, -50%) scale(1); /* Плавное масштабирование */
    }
    
    .add-to-cart-notification h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 0 10px;
        color: #000;
    }
    
    .add-to-cart-notification p {
        font-size: 0.9rem;
        margin: 0 0 20px;
        color: #555;
    }
    
    .add-to-cart-notification button {
        background: #e74c3c;
        color: #fff;
        font-weight: bold;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background 0.3s ease, transform 0.2s ease;
    }
    
    .add-to-cart-notification button:hover {
        background: #c0392b;
        transform: scale(1.05);
    }
    
    .add-to-cart-notification button:active {
        transform: scale(0.95);
    }
    footer {
        background-color: var(--primary-color);
        padding: 10px 20px; /* Thinner padding */
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: var(--footer-text-color);
        width: 100%;
        box-shadow: 0 -2px 4px var(--shadow-color);
        box-sizing: border-box;
        margin-top: 40px; /* Space above the footer */
        z-index: 1000;
    }
    
    /* Footer Container */
    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0 auto;
        flex-wrap: wrap;

    }
    
    /* Footer Logo */
    .footer-logo {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 20%; /* Adjust as needed */
        margin-bottom: 20px;
    }
    
    .footer-logo img {
        width: 250px; /* Adjust size as needed */
        height: auto;
    }

        /* Footer Logo */
        .nav-logo {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            width: 20%; /* Adjust as needed */
        }
        
        .nav-logo img {
            width: 200px; /* Adjust size as needed */
            height: auto;
        }
    
    /* Footer Column */
    .footer-column {
        display: flex;
        flex-direction: column;
        width: 23%; /* Three columns */
        min-width: 200px;
        margin-bottom: 20px;
    }
    
    /* Footer Item */
    .footer-item {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        color: var(--footer-text-color);
        font-weight: var(--font-weight-regular);
    }
    
    /* Footer Icons */
    .footer-icon {
        color: var(--footer-icon-color);
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* Footer Links */
    footer a {
        color: var(--footer-text-color);
        text-decoration: none;
        font-weight: var(--font-weight-light);
    }
    
    footer a:hover {
        text-decoration: underline;
    }
    
    /* Text Styling */
    .footer-item span {
        font-weight: var(--font-weight-light);
    }


  /* Стили для информационного раздела */
#information-section {
    display: none;
    margin-top: 120px;
    flex: 1;
  }
  
  #information-section .information-container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
  }
  
  
  #information-section .tabs-sidebar {
    width: 250px; /* Фиксированная ширина боковой панели */
    border-left: 1px solid #ccc;
    padding-left: 20px;
  }
  
  /* Заставляем UL и LI занимать всю ширину боковой панели */
  #information-section .tabs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  
  #information-section .tabs-sidebar li {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Фиксированная ширина и высота кнопок */
  #information-section .tabs-sidebar button {
    display: block;         /* Обеспечивает блочное поведение */
    width: 250px;           /* Фиксированная ширина, равная ширине панели (можно скорректировать) */
    height: 50px;           /* Фиксированная высота */
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
  
  #information-section .tabs-sidebar button:hover,
  #information-section .tabs-sidebar button.active {
    background-color: #e0e0e0;
  }
  
  #information-section .tab-content {
    display: none;
    width: 100%;
  }
  
  #information-section .tab-content.active {
    display: block;
  }
  @media (max-width: 768px) {
    #information-section .information-container {
      flex-direction: column;
      padding: 10px;
    }
  
    #information-section .tabs-sidebar {
      width: 100%;
      border-left: none;
      border-bottom: 1px solid #ccc;
      padding-left: 0;
      margin-bottom: 10px;
    }
  
    #information-section .tabs-sidebar button {
      width: 100%;
      height: 45px;
      font-size: 14px;
    }
  
    #information-section .tab-content {
      width: 100%;
    }
    table.foto,
    table.foto tbody,
    table.foto tr,
    table.foto td {
      display: block;     /* снимаем табличную раскладку */
      width: 100%;        /* растягиваем на всю ширину экрана */
      box-sizing: border-box;
    }
  
    /* добавляем отступы между карточками */
    table.foto tr {
      margin-bottom: 24px;
    }
  
    /* центруем заголовки секций (те, что с colspan) */
    table.foto tr td[colspan] {
      text-align: center;
      padding: 0 0 8px;
    }
  
    /* картинка на всю ширину + небольшой скругленный стиль, если хочешь */
    img.foto {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto 8px;
    }
  
    /* текст внутри ячейки тоже пусть выглядит как карточка */
    table.foto td {
      padding: 12px 8px;
      border: 1px solid #e0e0e0;   /* легкая рамка, опционально */
      border-radius: 8px;
      background: #fafafa;
    }
  }
      .language-popup {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255,255,255,0.9);
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        display: none;
        flex-wrap: wrap;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1000;
      }
      .language-popup.active {
        display: flex;
      }
      .language-popup .set-language {
        margin: 5px;
        cursor: pointer;
      }
      .language-container {
        position: relative;
      }
      .language-popup {
        position: fixed;
        top: 3px;
        right: 10px;
        justify-content: center;
        flex-wrap: wrap;
      }
      .discount-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background-color: #d00;
        color: #fff;
        font-size: 0.75em;
        font-weight: bold;
        padding: 4px 6px;
        border-radius: 4px;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
      }
    @media (max-width: 768px) {
        

        .footer-container {
            flex-direction: column;
            align-items: flex-start;
        }
        .footer-column {
            width: 100%;
        }
        .footer-logo {
            width: 100%;
            justify-content: flex-start;
            margin-top: 10px;
        }
    }