* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#splash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(160deg, #F8FAFC 0%, #EEF2F7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
#splash .splash-logo {
    font-size: 38px;
    font-weight: bold;
    color: #2D3748;
    letter-spacing: 2px;
    margin-bottom: 32px;
}
#splash .splash-dots {
    display: flex;
    gap: 8px;
}
#splash .splash-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #629DD1;
    animation: dotBounce 1.2s ease-in-out infinite;
}
#splash .splash-dots span:nth-child(2) { animation-delay: 0.2s; }
#splash .splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

.wrapper {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 68px auto 60px;
    padding: 0 20px;
    min-height: calc(90vh - 108px);
}

.container {
    width: 70%;
    max-width: 1200px;
    min-width: 500px;
}



.sp_search-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    position: relative;
    z-index: 1000;
}

.sp_form-layout {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.sp_toggle-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2D3748;
    border: 1px solid #e8ecef;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 120px;
    height: 40px;
    position: relative;
}

.sp_toggle-filters:hover {
    background: #f0f7ff;
    color: #2D3748;
}

.sp_toggle-filters.sp_active {
    background: #f0f7ff;
}

.sp_toggle-filters .sp_icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('../icon/filter.png');
    position: relative;
}

.sp_toggle-filters.sp_active .sp_icon {
    background-image: url('../icon/close.png');
}

.sp_filter-dot {
    display: none;
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
}

.sp_filter-dot.sp_active {
    display: block;
}

.sp_query-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.sp_search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #e8ecef;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp_search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
    outline: none;
}

.sp_clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.sp_clear-input .sp_icon {
    width: 24px;
    height: 24px;
}

.sp_advanced-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.sp_advanced-icon .sp_icon {
    width: 24px;
    height: 24px;
    position: relative;

}

.sp_submit-btn {
    height: 40px;
    padding: 0 24px;
    background: #4a90e2;
    color: #fff;
    border: 1px solid #4a90e2;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100px;
}

.sp_submit-btn:hover {
    background: #357abd;
}

.sp_filters-container {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.sp_filters-container.sp_show {
    display: flex;
    opacity: 1;
    max-height: 600px;
    overflow: visible; /* Изменено с hidden на visible */
}

.sp_filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.sp_filters-row .sp_dropdown,
.sp_filters-row .sp_condition {
    width: 250px;
}

.sp_filters-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.sp_clear-filters {
    height: 40px;
    padding: 0 16px;
    background: none;
    color: #e53e3e;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
}

.sp_clear-filters:hover {
    color: #c53030;
}

.sp_dropdown {
    position: relative;
}

.sp_dropdown-toggle {
    width: 100%;
    height: 40px;
    padding: 0 30px 0 12px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    text-align: left;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.sp_dropdown-toggle:hover,
.sp_dropdown-toggle:focus {
    border-color: #4a90e2;
    outline: none;
}

.sp_dropdown-toggle:disabled {
    background: #f7f9fc;
    color: #999;
    cursor: not-allowed;
    border-color: #e8ecef;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat; /* <-- Убирает повторение */
    background-position: right 10px center; /* <-- Позиционирует иконку */
    background-size: 12px 12px; /* <-- Размер иконки */
    padding-right: 30px; /* <-- Добавляет отступ, чтобы текст не наехал на иконку */
}


.sp_dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    min-height: 250px;
    max-height: 300px;
    padding: 8px;
    flex-direction: column;
}

.sp_dropdown-menu.sp_open {
    display: flex;
}

.sp_clear-dropdown {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    font-size: 14px;
    color: #e53e3e;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: center;
}

.sp_clear-dropdown:hover {
    color: #c53030;
}

.sp_dropdown-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.sp_dropdown-search:focus {
    border-color: #4a90e2;
    outline: none;
}

.sp_dropdown-content {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}

.sp_dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp_dropdown-content ul li {
    padding: 8px 12px;
    font-size: 14px;
    transition: background 0.2s;
}

.sp_dropdown-content ul li:hover {
    background: #f0f7ff;
}

.sp_dropdown-content ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sp_category-item,
.sp_model-item {
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
}

.sp_category-item:hover,
.sp_model-item:hover {
    background: none;
}

.sp_category-name {
    display: inline-block;
}

.sp_toggle-icon {
    position: absolute;
    right: 12px;
    font-size: 14px;
    color: #666;
}

.sp_subcategory,
.sp_submodel {
    list-style: none;
    padding-left: 20px;
    margin: 8px 0;
}

.sp_category-item input[type="checkbox"],
.sp_model-item input[type="checkbox"] {
    width: 16px;
    height: 16px;

}

.sp_subcategory {
    display: none;
}

.sp_subcategory.sp_open {
    display: block;
}

.sp_submodel {
    display: block;
}

.sp_condition {
    display: flex;
    gap: 8px;
}

.sp_condition input[type="radio"] {
    display: none;
}

.sp_radio-btn {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.sp_radio-btn:hover {
    border-color: #4a90e2;
}

input[type="radio"]:checked + .sp_radio-btn {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.sp_subcategory {
    display: none;
}
.sp_subcategory.sp_open .sp_open {
    display: block;
}
.sp_toggle-icon {
    cursor: pointer;
    margin-left: 5px;
}


.sp_modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
}

.sp_modal-content {
    background: #fff;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sp_modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8ecef;
}

.sp_modal-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.sp_close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.sp_modal-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    padding-bottom: 64px; /* Отступ для фиксированного .sp_form-actions */
}

.sp_form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp_form-group label {
    font-size: 14px;
    font-weight: 500;
}

.sp_modal-form .sp_dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #fff;
    border: none;
    border-radius: 0;
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.sp_modal-form .sp_dropdown-menu.sp_open {
    display: flex;
}

.sp_dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1009;
}

.sp_dropdown-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.sp_dropdown-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.sp_dropdown-close svg {
    stroke: #333;
    transition: stroke 0.2s;
}

.sp_dropdown-close:hover svg {
    stroke: #4a90e2;
}

.sp_dropdown-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.sp_modal-form .sp_dropdown-content ul li {
    font-size: 16px;
    padding: 12px 16px;
}

.sp_dropdown-actions {
    padding: 1px;
    border-top: 1px solid #e8ecef;
    display: flex;
    height: 45px;
}

.sp_dropdown-actions .sp_clear-dropdown {
    flex: 1;
    background: none;
    color: #e53e3e;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.sp_dropdown-actions .sp_clear-dropdown:hover {
    color: #c53030;
}

.sp_dropdown-actions .sp_done-btn {
    flex: 1;
    background: none;
    color: #4a90e2;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.sp_dropdown-actions .sp_done-btn:hover {
    color: #357abd;
}

.sp_form-actions {
    border-top: 1px solid #e8ecef;
    display: flex;
    position: fixed; /* Прижимаем к нижнему краю экрана */
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1010;
}

.sp_form-actions .sp_clear-dropdown {
    flex: 1;
    background: none;
    color: #e53e3e;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.sp_form-actions .sp_clear-dropdown:hover {
    color: #c53030;
}

.sp_form-actions .sp_done-btn {
    flex: 1;
    background: none;
    color: #4a90e2;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.sp_form-actions .sp_done-btn:hover {
    color: #357abd;
}


.autocomplete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    pointer-events: auto;
}

.autocomplete-modal {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: none;
    z-index: 1000;
    pointer-events: auto;
}

.autocomplete-item {
    padding: 5px 10px 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f0f0f0;
}

.autocomplete-value {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.autocomplete-item .type {
    display: block;
    font-size: 10px; /* Меньший шрифт */
    color: #bbb; /* Еле заметный серый */
    line-height: 1.2;
}



@media (min-width: 768px) {
    .sp_advanced-icon {
        display: none;
    }

    .sp_modal-overlay {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .sp_search-container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        margin-top: -2px;
    }

    .sp_form-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .sp_toggle-filters,
    .sp_submit-btn {
        display: none;
    }

    .sp_query-container {
        min-width: 0;
    }

    .sp_search-input {
        height: 44px;
        font-size: 16px;
        border-radius: 6px;
    }

    .sp_modal-header {
        padding: 15px;
    }

    .sp_modal-form {
        padding: 15px;
    }

    .sp_modal-form .sp_clear-dropdown,
    .sp_modal-form .sp_done-btn {
        height: 48px;
        font-size: 16px;
    }
    .sp_clear-input {
        right: 35px;
    }

    .autocomplete-modal {
        width: 100%;
        width: 100%; /* Полная ширина .sp_form-layout */
        left: 0;
        border-radius: 0; /* Сохраняем скругление (или 0, если хочешь) */
        top: calc(100%);
        box-shadow: 0 0 0 0;
      }
      .autocomplete-item {
        font-size: 18px;
    }
}







.btn {
    height: 35px;
    width: 150px;
    padding: 0 30px;
    background: #629dd1;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 400 !important;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #528bbf;
}


.menu {
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.menu .go-back-btn {
    display: none;
}

.domain {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-right: auto;
    text-transform: uppercase;
}
.domain a {
    text-decoration: none;
    color:#2d3748;
}
.menu-items {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu li a {
    text-decoration: none;
    color: #333;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    line-height: 1;
}

.desktop-menu li a:hover {
    background: #ebf8ff;
    color: #007bff;
}

.desktop-menu li .add-link {
    background: #629dd1;
    color: #fff;
    font-weight: 400;
}

.desktop-menu li .add-link:hover {
    background: #528bbf;
    color: #fff;
}
.desktop-menu .lang-switcher {
    margin-left: -5px;
}
.desktop-menu .lang-switcher a {
    padding: 6px;
}

.desk-user-btn {
    margin-right: -15px;
    display: flex;
    align-items: center;
    padding: 4px; /* Увеличиваем область клика */
    cursor: pointer;
}

.desk-user-icon {
    width: 25px;
    height: 25px;
}

.notifications-btn {
    display: flex;
    align-items: center;
    padding: 4px; /* Увеличиваем область клика */
    cursor: pointer;
}

.desktop-menu .notification-icon {
    width: 25px;
    height: 25px;
}

.notification-icon:hover, .desk-user-icon:hover {
    opacity: 0.5;
}


.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px white;
}


.notifications-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.notifications-modal.active {
    display: block;
}

.desktop-notifications {
    top: 60px; /* Под верхним меню */
    right: 30px;
    width: 380px;
    height: calc(95% - 60px);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.notification-page {
    width: 100%;
    max-width: 1200px;
    min-width: 500px;
    min-height: 80vh;
}

.notifications-content {
      min-height: 86vh;
      margin: 0 auto;
      background-color: #fff;
      border-radius: 6px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
      padding: 15px;
}
.notifications-content h2 {
     font-size: 19px;
}

.load-more-container {
    text-align: center;
    padding: 15px 10px;
}
#load-more-notifications {
  background-color: transparent;
  border: none;
  color: #1877f2;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
#load-more-notifications:hover {
    background-color: #e7f3ff;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid #eee;
  position: relative;
  cursor: pointer;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item a {
    text-decoration: none;
}

.notif-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.notif-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.notif-content {
  flex: 1;
}

.notif-text {
  font-size: 14px;
  color: #050505;
  line-height: 1.4;
  display: grid;
}

.notif-time {
  font-size: 12px;
  color: #65676b;
  margin-top: 4px;
}
.notif-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.notif-mark-read-btn {
  background-color: transparent;
  border: none;
  color: #1877f2;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notif-mark-read-btn:hover {
  background-color: #e7f3ff;
}
.notif-item.unread {
  background-color: #e7f3ff;
  position: relative;
  border-radius: 6px;
}

/* Синяя точка */
.notif-item.unread::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: #1877f2;
  border-radius: 50%;
}

/* Можно сделать текст более жирным */
.notif-item.unread .notif-text {
  font-weight: 600;
}

.notif-footer {
    text-align: center;
    padding: 10px 0;
}
.view-all-notifications {
  background-color: transparent;
  border: none;
  color: #1877f2;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s ease;
  text-decoration: none;
}
.view-all-notifications:hover {
    background-color: #e7f3ff;
}


.mobile-notif-btn {
    display: none;
    order: -1;
    margin-right: auto;
    align-items: center;
    padding: 4px;
    margin-left: -12px;   /* сдвиг влево */
    margin-top: 8px;     /* сдвиг вниз */
}

.mobile-notif-btn .notification-icon {
    width: 24px;
    height: 24px;
    filter: invert(12%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(30%);
}

@media (max-width: 900px) {
    .mobile-notif-btn {
        display: flex;
    }
}



.mobile-menu {
    display: flex; /* Было display: none; заменяем */
    flex-direction: column;
    justify-content: space-between; /* Контакты внизу */
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    transition: right 0.3s ease-in-out; /* Было left — это ошибка, исправлено на right */
    z-index: 1001;
}

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

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-domain {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
}

.close-btn {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-items {
    list-style: none;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
}

.mobile-menu-items li {
    margin: 5px 0;
}

.mobile-menu-items li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #333;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    line-height: 1;
}

.mobile-menu .lang-switcher {
    display: flex;
    align-items: center;
}

.mobile-menu .lang-switcher img {
    width: 24px;
    height: auto;
    margin-right: -8px;
}

.mobile-menu .lang-switcher a {
    text-decoration: none;
    color: inherit;
}

.mobile-menu .contacts {
    padding: 10px;
}

.mobile-menu .contacts div {
    padding: 5px;
}
.mobile-menu .contacts img {
    width: 24px;
    height: auto;
    object-fit: contain;
}
.mobile-menu .contacts a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    gap: 8px; /* расстояние между иконкой и текстом */
}


.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #2d3748;
    border-radius: 2px;
    transition: all 0.3s;
}

.add-btn {
    display: none;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #629dd1;
    color: #fff;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 400 !important;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #528bbf;
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    display: none;
}

.bottom-menu-item {
    text-decoration: none;
    color: #2d3748;
    font-family: 'Roboto', Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 20%;
    transition: color 0.3s, background 0.3s;
    cursor: pointer;
    pointer-events: auto;
    flex-direction: column;
    margin-top: 3px;
}

.bottom-menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s;
    filter: invert(12%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(30%);
}

.bottom-menu-item span {
    font-size: 10px;
    padding: 2px;
}

.bottom-menu-item:hover .bottom-menu-icon {
    filter: brightness(0.8);
}

.bottom-menu-item.active .bottom-menu-icon {
    filter: brightness(0.8) !important;
}

.notif-wrapper {
    position: relative;
    display: inline-block;
}
.notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px white;
}



.burger-btn {
    border: none;
    background: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: -7px;
    display: none;
}
.burger-btn .bottom-menu-icon {
    display: grid;
    height: 32px;
    width: 32px;
    place-items: center;
    cursor: pointer;
}

.burger-btn:hover {
    color: #3182ce;
}




.ad-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 5px;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
}

.ad-cards .error-message {
    min-height: 60vh;
    margin: 0 auto;
    padding: 15px;
    max-height: 80vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-cards .error-message.search-form-width {
    width: 100%;
    max-width: inherit;
}

.ad-cards .error-message .error-icon {
    width: 400px;
    max-width: 100%;
    margin-bottom: 20px;
}

.ad-cards .error-message p {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0 10px;
    color: #333;
}

.ad-cards-title {
  grid-column: 1 / -1; /* Заголовок на всю ширину */
  text-align: left;   /* Выровнять по правому краю */
  margin: 5px 0 -10px 10px;
  font-size: 16px;
  text-transform: uppercase;
  color: #718096;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: transform 0.2s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card.premium {
    background: #fdfcff;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.card.vip {
    background: #fffefc;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card-img {
    position: relative;
    width: 100%;
    height: 150px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.card-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.card-content {
    padding: 5px 10px 10px 10px;
    position: relative;
}

.card h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: #2d3748;
    line-height: 1;
    font-weight: 700 !important;
}

.card p {
    font-size: 0.9rem;
    color: #718096;
    margin: 5px 0;
    line-height: 1;
}

.card .price {
    font-size: 1rem;
    font-weight: 500;
    color: limegreen;
    margin: 5px 0;
    line-height: 1;
}

.card .meta {
    font-size: 0.75rem;
    color: #a0aec0;
    margin: 5px 0 0;
    line-height: 1;
}

.favorites-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: url('../icon/bookmark-inact.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}



/* ── Неактивная карточка ── */
.card-inactive {
    opacity: 0.8;
}

/* ── Оверлей на фото ── */
.card-img {
    position: relative;
}

.card-inactive-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 0 0 6px 6px;
}



.favorites-btn:hover {
    background: url('../icon/bookmark-act.png') no-repeat center;
    background-size: contain;
}

.favorites-btn.favorited {
    background: url('../icon/bookmark-act.png') no-repeat center;
    background-size: contain;
}

.no-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.no-results-icon {
    height: 100px;
    text-align: center;
    margin-top: 25%;
    margin-bottom: 15px;
}
.no-results p {
    font-size: 20px;
}

.new-product-container {
    width: 100%;
    display: flex;
    gap: 30px;
}

.new-product-form {
    width: 70%;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.new-product-form .new-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
}

.new-product-form label {
    font-size: 0.9rem;
    color: #4a5568;
}

.new-product-form .required {
    color: #e53e3e;
}

.new-product-form input,
.new-product-form select,
.new-product-form textarea {
    height: 35px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.new-product-form textarea {
    height: auto;
    padding: 12px;
    resize: vertical;
}

.new-product-form input:focus,
.new-product-form select:focus,
.new-product-form textarea:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    outline: none;
}

.new-product-form .new-photo-input {
    display: none;
}

.new-product-form .new-photo-btn {
    display: inline-block;
    height: 35px;
    padding: 0 20px;
    background: #e6f0ff;
    color: #3182ce;
    border: 1px solid #3182ce;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.new-product-form .new-photo-btn:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-1px);
}

.new-product-form .new-condition {
    flex-direction: column;
    gap: 6px;
}

.new-product-form .new-radio-group {
    display: flex;
    gap: 10px;
}

.new-product-form .new-radio-group input[type="radio"] {
    display: none;
}

.new-product-form .new-radio-group .new-radio-btn {
    height: 35px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    font-size: 0.9rem;
    min-width: 60px;
    flex: 1;
}

.new-product-form .new-radio-group .new-radio-btn:hover {
    border-color: #3182ce;
}

.new-product-form .new-radio-group input[type="radio"]:checked + .new-radio-btn {
    border-color: #3182ce;
    background: #ebf8ff;
}

.new-product-form .description-full-width {
    grid-column: 1 / -1;
}

.new-product-form .photo-full-width {
    grid-column: 1 / -1;
}

.new-product-form .submit-full-width {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.new-product-form .new-submit-btn {
    height: 30px;
    padding: 0 20px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.new-product-form .new-submit-btn:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
}

.new-product-tips {
    width: 30%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.new-product-tips h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.new-product-tips ul {
    list-style: none;
    padding: 0;
}

.new-product-tips li {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.new-product-tips li:before {
    content: "•";
    color: #3182ce;
    position: absolute;
    left: 0;
}

.photo-count {
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 5px;
    display: block;
}


.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.photo-preview {
    position: relative;
    width: 100px;
    height: 100px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size excludes: 14px;
}

.preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}
}

.preloader p {
    color: #2d3748; /* Цвет текста как у body */
    font-size: 1rem;
    margin-top: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.universal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 35px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    cursor: pointer;
    user-select: none;
}
.universal-checkbox-label:hover { border-color: #3182ce; background: #ebf8ff; }
.universal-checkbox-label input[type="checkbox"] {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    opacity: 0 !important;
}
.universal-checkbox-box {
    width: 22px; height: 22px; min-width: 22px;
    border: 2px solid #cbd5e0; border-radius: 6px;
    background: #fff; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.universal-checkbox-box svg { width: 12px; height: 10px; opacity: 0; transition: opacity 0.2s ease; }
.universal-checkbox-label input[type="checkbox"]:checked ~ .universal-checkbox-box { background: #629dd1; border-color: #629dd1; }
.universal-checkbox-label input[type="checkbox"]:checked ~ .universal-checkbox-box svg { opacity: 1; }
.universal-checkbox-label input[type="checkbox"]:checked ~ span {
    color: #2d3748;
    font-weight: normal;
}
.universal-checkbox-label span { font-size: 14px; color: #4a5568; transition: color 0.2s ease; }
#is_universal {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



.add-preloader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  font-family: Arial, sans-serif;
}

.add-preloader.show {
  display: flex;
}

.add-preloader .add-spinner {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
  display: block;
}

.add-preloader p {
  font-size: 20px;
  margin: 0;
}






/* === Основной стиль формы РЕДАКТИРОВАНИЯ === */
.edit-product-form {
    width: 85%;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Все поля */
.edit-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
}

/* Поля на всю ширину */
.edit-form-group.full-width {
    grid-column: span 2;
}

/* Метки и инпуты */
.edit-product-form label {
    font-size: 0.9rem;
    color: #4a5568;
}
.edit-product-form .required {
    color: #e53e3e;
}
.edit-product-form input,
.edit-product-form textarea {
    height: 35px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.edit-product-form textarea {
    min-height: 200px;
    padding: 12px;
    resize: vertical;
}
.edit-product-form input:focus,
.edit-product-form textarea:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    outline: none;
}


/* Кнопка */
.edit-photo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}


.edit-add-photo-btn {
    width: 100px;
    height: 100px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

/* Иконка внутри кнопки (переопределяем 100x100 миниатюры) */
.edit-add-photo-btn .edit-add-photo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
}

.edit-add-photo-btn:hover {
    background: rgba(74, 144, 226, 0.15);
}


.edit-add-photo-btn label {
    cursor: pointer;
}


/* Превью фото */
.edit-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px; /* базовый отступ */
}
.edit-photo-wrapper > img:not(.set-main-photo):not(.edit-add-photo-icon) {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
}

.edit-photo-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.set-main-photo {
    position: absolute;
    bottom: -4px;
    right: -8px;
    width: 25px;
    height: 25px;
    object-fit: contain;
    padding: 0;    /* убираем внутренние отступы */
    cursor: pointer;
    transition: 0.2s;
    background-color: white;
    border-radius: 50%;
}

.set-main-photo:hover {
    opacity: 0.8;  /* красивый hover эффект */
}


.set-main-photo.is-main {
    opacity: 0.7;
}


/* Кнопка сохранить */
.button-wrapper {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-product-form button {
    height: 30px;
    width: 200px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.edit-product-form button:hover {
    background: #2b6cb0;
}
.edit-product-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.edit-remove-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.edit-remove-photo:hover {
    background: red;
}
.edit-product-form input#title:disabled {
    background-color: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}







/* Страница товара - Десктоп */
.product-page-inner {
    width: 100%;
    max-width: 1200px;
    min-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 20px;
    min-height: 80vh;
}

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

.product-header h1 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0;
}

.product-price-header {
    color: limegreen;
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0;
}

.product-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-gallery {
    flex: 2;
}

.no-favorites {
    display: grid;
    place-items: center;
    height: 60vh;
    grid-column: 1 / -1;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}
.product-content,
.product-gallery {
    overflow-x: visible;
    min-width: 0;
}
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px 16px 4px;           /* чуть больше места снизу под скроллбар, если он появится */
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    
    /* Плавный и медленный скролл */
    scroll-behavior: smooth;
    
    /* Скрываем стандартный скроллбар полностью */
    -ms-overflow-style: none;           /* Edge, IE */
    scrollbar-width: none;              /* Firefox */
}

/* Chrome, Safari, Edge — полностью скрытый скроллбар */
.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

/* Миниатюры */
.thumbnail-gallery img {
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e7f0;
    background: #f8fafc;
    
    /* Плавные переходы */
    transition: 
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* При наведении */
.thumbnail-gallery img:hover {
    border-color: #3b82f6;
    transform: scale(1.08);             /* чуть больше зум, выглядит приятнее */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* Активная (выбранная) миниатюра */
.thumbnail-gallery .active-thumbnail {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
    transform: scale(1.06);
    z-index: 2;
}

/* Дополнительно: очень плавное поведение при скролле (особенно важно при hover-скролле) */
.thumbnail-gallery {
    /* Усиливаем ощущение плавности */
    --scroll-duration: 1.4s;           /* можно попробовать 1.6s – 2s */
}

.button-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px 10px 10px 10px !important;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-details p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.product-details p strong {
    color: #2d3748;
}

.favorite-btn {
    background: rgba(255, 184, 67, 0.1);
    border: 1px solid #f5a623;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #f5a623;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.favorite-btn:hover {
    background-color: rgba(255, 184, 67, 0.3);
}

.favorite-btn[data-is-favorited="true"] {
    background-color: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.favorite-btn[data-is-favorited="true"]:hover {
    background-color: rgba(255, 77, 77, 0.3);
}


.sh-fav-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    width: 100%;
}

.share-btn {
    display: none;
    border: 1px solid #e2e8f0;
    background: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    align-items: center;
    transition: background 0.2s ease;
}

.share-button-icon {
    width: 25px;
    height: 25px;
}

.owner-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #718096;
    cursor: default;
    transition: border-color 0.3s, background-color 0.3s;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.owner-btn:hover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.show-number-btn {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.show-number-btn:hover {
    background-color: #218838;
}


.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 5px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid #25D366;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s;
}
.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.2);
}
.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.product-description {
    margin-top: 20px;
}

.product-description h2 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.product-description p {
    color: #718096;
    font-size: 1rem;
}

.product-meta {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.product-meta p {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 0;
}

.favorites-icon {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    vertical-align: middle;
    object-fit: contain;
}

.favorites-header .favorites-title {
    display: flex;
    align-items: center;
    padding: 20px 10px 0px 20px;
    text-align: left;
}

.favorites-header .favorites-title {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    font-size: 18px !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Разрешаем прокрутку при увеличении */
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
    overflow: visible; /* Разрешаем изображению выходить за границы при зуме */
}


#gallery-image {
touch-action: pinch-zoom;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform-origin: center; /* Центр масштабирования */
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1003; /* Над изображением */
}

.gallery-prev:hover, .gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-close {
    position: absolute;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.gallery-mobile-prev, .gallery-mobile-next {
    display: none;
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}
/* КНОПКИ VIP И ПОДНЯТЬ ОБЪЯВЛЕНИЕ */
.action-buttons {
    display: inline-block;
    gap: 10px;
    justify-content: space-between;
}

.vip-btn {
    background: #fff;
    border: 2px solid #f5a623;
    color: #f5a623;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-btn:hover {
    background: #f5a623;
    color: white;
}

.boost-btn {
    background: #fff;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boost-btn:hover {
    background: #007bff;
    color: white;
}

.status-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}


.edit-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid #4A90E2;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #4A90E2;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
}

.edit-btn:hover {
    background: rgba(74, 144, 226, 0.3);
}

.status-buttons .edit-btn.disabled {
    background: #ecf0f1 !important;
    color: #95a5a6 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    border: 1px solid #bdc3c7;
}

.delete-btn {
    background: rgba(255, 38, 38, 0.1);
    border: 1px solid #ff2626;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #ff2626;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
}

.delete-btn:hover {
    background: rgba(255, 38, 38, 0.3);
}

.similar-products {
    margin-top: 30px;
}

.similar-products h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.button-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: rgba(40, 167, 69, 0.9);
}

.notification.error {
    background: rgba(220, 53, 69, 0.9);
}

.confirm-state {
    background-color: #ff9800;
    color: white;
}

.report-btn {
    cursor: pointer;
}

.report-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.report-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    width: 400px;
    max-width: 90%;
}

.report-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.report-modal-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.report-modal-content textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.report-modal-content button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.report-modal-content button:hover {
    background-color: #cc0000;
}

/* Уникальные стили для поля ввода номера в add_product.php */
.new-phone-input {
    position: relative;
    margin-bottom: 20px;
}

.new-country-code {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 16px;
    pointer-events: none;
}
.new-phone-input input {
    width: 100%;
    height: 35px;
    padding: 0 12px 0 50px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.new-phone-input input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    outline: none;
}

.new-phone-input input::placeholder {
    color: #a0aec0;
}




/* ===== HEADER ===== */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}

/* ===== TITLE ===== */
.profile-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorites-icon {
    width: 14px;
    height: 14px;
}

/* ===== ACTION ICONS ===== */
.profile-actions {
    display: flex;
    align-items: center;
}

/* кнопка без фона */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;              /* чуть больше */
    height: 34px;

    background: none;         /* без заднего фона */
    border-radius: 0;
    text-decoration: none;
    padding: 0;
}

/* иконка */
.icon-btn img {
    width: 26px;              /* чуть больше */
    height: 26px;
    display: block;
    filter: brightness(0);    /* чёрная иконка */
}

/* hover */
.icon-btn:hover img {
    opacity: 0.7;             /* лёгкий эффект при наведении */
}






.profile-id {
    font-size: 18px;
    color: #2d3748;
    font-weight: 700 !important;
}

.car-profile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.car-profile-title img {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.car-profile-title img:hover {
    filter: grayscale(20%) brightness(90%) contrast(20%);

}

.car-profile-title > div {
    flex: 1;
    text-align: right;
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    padding-right: 15px;
}

.user-info {
    margin: 10px 20px;
    font-size: 16px;
    color: #4a5568;
}

.user-info .username {
    font-size: 24px;
    font-weight: 700 !important;
    color: #2d3748;
}

.user-info .registration-date {
    font-size: 12px;
}

/* Стили для заголовков секций */
.section-title {
    font-size: 18px;
    color: #2d3748;
    margin: 10px 0px 15px 5px;
    font-weight: 700;
}


/* Общий фон модального окна */
.profile-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 40px;
    width: 100%;
    height: 95%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.profile-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2d3748;
    z-index: 1;
}

/* Форматирование формы */
.profile-modal-form .profile-form-row {
    margin-bottom: 15px;
}

.profile-modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #4a5568;
}

.profile-modal-form input,
.profile-modal-form select {
    width: 100%;
    height: 35px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

.profile-modal-form input:focus,
.profile-modal-form select:focus {
    border-color: #3182ce;
    outline: none;
}

.profile-btn-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 10px 0;
    text-align: center;
    width: 30%;
}

.profile-btn-row .btn {
    padding: 8px 20px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.profile-btn-row .btn:hover {
    background-color: #2666a9;
}

/* По умолчанию — вертикально */
.profile-form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
}

.profile-form-row label {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
}

.profile-form-row input,
.profile-form-row select,
.profile-form-row textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Только строка с чекбоксом — в ряд */
.profile-form-row.condition-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.profile-form-row.condition-row label {
  margin-bottom: 0;
}

/* Стилизация чекбокса */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15px;
}


/* Унифицированные стили для разделяющих линий */
.divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 15px 20px;
    width: calc(100% - 40px);
}

.profile-nav {
    display: flex;
    gap: 20px;
    margin: 0 20px 15px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #718096;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-btn.active {
    color: #2d3748;
    font-weight: 700;
    border-bottom: 2px solid #629dd1;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}




.my-cars-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px 20px;
}

.car-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.car-button:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.car-name {
    font-size: 15px;
    font-weight: 500;
}

.delete-icon {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    cursor: pointer;
    transition: stroke 0.2s;
}
.delete-icon:hover {
    stroke: #ef4444;
}

.profile-card-action.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none; /* полностью отключает клик */
}



.action-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
}


.activate-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(74, 144, 226, 0.1);
    border: none;
    padding: 10px 15px;
    font-size: 1.0rem;
    color: #4A90E2;
    cursor: pointer;
    font-weight: 600;
}

.activate-btn:hover {
    background-color: rgba(74, 144, 226, 0.2);
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Стили для маленькой кнопки добавления */
.small-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: none; /* убираем фон */
    color: inherit; /* цвет иконки наследуется */
    border: none; /* убираем рамку */
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.small-add-btn:hover {
    filter: brightness(0.8); /* лёгкое затемнение при наведении */
    opacity: 0.7;
}

.small-add-btn:disabled {
    opacity: 0.5; /* немного прозрачная, если отключена */
    cursor: not-allowed;
}

.small-add-btn .button-icon {
    width: 24px;
    height: 24px;
    display: block;
}



/* Иконки только для карточек в профиле */
/* Контейнер карточек профиля */
.profile-cards .card {
    position: relative; /* для абсолютного позиционирования иконок */
}

/* Блок с иконками */
.profile-cards .profile-card-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    z-index: 10; /* выше контента */
    gap: 1px; /* минимальное расстояние между иконками */
}

/* Отдельная иконка */
.profile-cards .profile-card-action {
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-left: 0; /* убираем лишние отступы */
}


.profile-cards .profile-card-action img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.profile-cards .profile-card-action:hover {
    opacity: 0.8;
}






.description-input {
        width: 100%;
        min-height: 80px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        resize: vertical;
        font-family: 'Roboto', Helvetica, sans-serif;
    }

/* Список нужных запчастей */
.needed-parts-list h3 {
    margin: 10px 0 10px 10px;
}
.needed-parts-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.needed-part-item:hover {
    background-color: rgba(220, 220, 220, 0.1)
;
}

.needed-part-item {
    position: relative;
    padding: 10px 40px 10px 10px;
    transition: 0.3s ease;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3); /* Тонкая серая линия */
}

.needed-part-item:last-child {
    border-bottom: none;
}

.needed-part-card {
        width: 100%;
        padding: 15px;
        margin-bottom: 20px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 5px;
}

.needed-part-header {
        font-size: 18px;
        margin-bottom: 10px;
}
.needed-part-header strong {
        font-weight: bold;
}
.needed-part-card img {
        width: 12px;
        height: 12px;
}
.part-category {
        color: #555;
}

.part-condition {
        color: #777;
}
.needed-part-description {
        font-size: 14px;
        color: #333;
        margin: -10px 15px -5px 15px;
}

.part-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.part-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.part-title {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.list-tag-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.part-title strong {
    font-weight: bold;
    font-size: 16px;
}

.part-category {
    margin-left: 5px;
    font-size: 14px;
    color: #666;
}

.part-car {
    font-size: 14px;
    color: #4b5563;
    padding: 0 25px;
    font-weight: 500;
}


.part-description {
    font-size: 14px;
    color: #888;
    margin: 0 0 0 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.more-icon {
    width: 20px;
    height: 20px;
}

/* Модальное окно для действий */
.part-actions-modal-content {
    width: 400px;
    padding: 30px;
}

.part-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}


.part-actions button {
  padding: 10px 25px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  color: #000;
  margin:5px;
}


.delete-part-btn:hover {
    background-color: #ffcccc;
}

.found-part-btn:hover {
    background-color: #ccffcc;
}

.confirmation {
    text-align: center;
}

.confirmation p {
    margin: 10px 0;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.confirm-yes, .confirm-no {
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.confirm-yes {
    background-color: #4CAF50;
    color: white;
}

.confirm-no {
    background-color: #f44336;
    color: white;
}

.confirm-yes:hover {
    background-color: #4CAF50;
    filter: brightness(0.8);
}

.confirm-no:hover {
    background-color: #f44336;
    filter: brightness(0.8);
}


.filter-section {
    margin: 10px 25px 20px 0;
    width: 150px;
    margin-left: auto;
}
.filter-section select {
    width: 150px;
    padding: 2px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 20px 20px 20px 20px;
}

.tab-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.tab-btn.active {
    background: rgba(98, 157, 209, 0.2);
    color: #000;
    border: 1px solid #629dd1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.no-products {
    margin: 100px 0;
    text-align: center; /* центрируем текст */
    color: #718096;
}

.no-products a {
    color: #4a90e2;
    text-decoration: none;
    cursor: pointer;
}

.no-products a:hover {
    color: #2a6bc1;
}



.footer {
    width: 100%;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px 0px;
    padding: 20px 0;
    font-size: 14px;
    color: #333;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.footer-logo img {
    max-width: 120px;
}

.footer-contact {
    display: flex;
    gap: 10px;
    font-weight: 500;
}

.footer-contact a {
    font-size: 18px;
    color: #629dd1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #4878a8;
}

/* Разделительная линия */
.footer-divider {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

/* Ссылки по центру */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #629dd1;
}

/* Нижняя часть */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}

.copyright {
    color: #888;
}

/* Языковое меню */
.footer-language {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-language select {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

@media (min-width: 901px) {
    .query-wrapper {
        position: relative;
    }
    .advanced-search-icon {
        display: none;
    }
    .advanced-search {
        display: none;
    }
    .gallery-prev {
        left: 0;
    }
    .gallery-next {
        right: 0;
    }
    .gallery-close {
        top: 20px;
        right: 20px;
    }
    .gallery-prev, .gallery-next {
        display: block;
    }
}

@media (max-width: 900px) {

    input, textarea, select {
        font-size: 16px !important;
    }

    .wrapper {
        padding: 0;
        margin: 0 0 40px 0;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
        width: 100%;
        justify-content: flex-start;
    }
    .container {
        width: 100%;
        min-width: 0;
        padding: 0;
    }
    .new-product-container {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin-top: 0;
    }
    .new-product-form {
        width: 100%;
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    .new-product-form .new-form-group {
        padding: 0;
        width: 100%;
    }
    .new-product-form label {
        font-size: 0.85rem;
    }
    .new-product-form input,
    .new-product-form select,
    .new-product-form textarea {
        width: 100%;
        height: 35px;
        font-size: 0.9rem;
    }
    .new-phone-input input {
        font-size: 16px;
    }
    .new-product-form textarea {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        resize: vertical;
        max-height: 200px;
        min-height: 150px;
        touch-action: auto;
    }
    .new-product-form .new-photo-btn {
        width: 100%;
        font-size: 0.9rem;
    }
    .new-product-form .new-radio-group {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }
    .new-product-form .new-radio-btn {
        width: 50%;
        font-size: 0.8rem;
        min-width: 0;
        flex: 1;
        max-width: 50%;
    }
    .new-product-form .new-submit-btn {
        width: 100%;
        font-size: 0.9rem;
    }
    .new-product-tips {
        width: 100%;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    .new-product-tips h3 {
        font-size: 1rem;
    }
    .new-product-tips li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }



    /* === РЕДАКТИРОВАНИЕ === */
    .edit-product-form {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 30px 15px;
        margin: -5px 0 0 0;
        border-radius: 0;
    }

    .edit-form-group {
        padding: 0;
    }

    .edit-form-group.full-width {
        grid-column: span 1;
    }

    .edit-photo-preview {
        justify-content: center;
    }

    .edit-product-form button {
        width: 100%;
        height: 30px;
    }




    .product-page {
        padding: 0;
    }
    .product-page-inner {
        position: absolute;
        top: 35px;
        left: 0;
        width: 100%;
        min-width: 0;
        padding: 0 0 60px 0;
        border-radius: 0;
        min-height: -webkit-fill-available;
        min-height: calc(100vh -30px);
        box-sizing: border-box;
        overflow-y: auto;
    }
    .favorites-header {
        padding: 10px 15px;
    }
    .favorites-header .favorites-title {
        padding: 20px 10px 0 0;
        margin: -5px 0 -10px 0;
        text-align: left;
    }
    .product-content {
        flex-direction: column;
    }
    .main-image {
        height: 300px;
        border-radius: 0;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    .thumbnail-gallery {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        height: 60px;
        margin: 0 5px 0 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .thumbnail-gallery img {
        width: 80px;
        height: 60px;
        margin-right: -5px;
    }
    .button-stack {
        flex-direction: column;
        gap: 10px;
    }
    .product-details {
        gap: 6px;
        margin: -10px 0 10px 0;
    }
    .product-meta {
        flex-direction: column;
        gap: 1px;
        margin-left: 5px;
    }
    .product-header {
        margin: 20px 0 7px 0;
    }
    .product-header h1 {
        font-size: 20px;
        margin-left: 5px;
    }
    .product-price-header {
        font-size: 20px;
        margin-right: 5px;
        font-weight: bold;
        white-space: nowrap;
    }
    .favorite-btn:hover {
        background-color: rgba(255, 184, 67, 0.1);
    }
    .favorite-btn[data-is-favorited="true"]:hover {
        background-color: rgba(255, 77, 77, 0.1);
    }
    .share-btn {
        display: flex;
    }
    .product-description {
        margin: -10px 5px 0 5px;
    }
    .product-description p {
        margin: -10px 3px 0 5px;
    }
    .similar-products {
        margin: 10px 0 44px 0;
    }
    .similar-products h2 {
        margin: 0 5px 0 5px;
    }
    .report-modal-content {
            width: 100%;
            height: 100%;
            max-width: none;
            border-radius: 0;
            padding: 60px 15px 15px 15px ;
            box-sizing: border-box;
            overflow-y: auto;
        }
    .report-modal-content h2 {
            font-size: 20px;
        }
    .report-modal-content textarea {
            min-height: 200px;
        }

    .report-close {
            font-size: 34px;
            right: 15px;
            top: 45px;
            color: #000;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 5px;
            border-radius: 50%;
        }

    .search-form {
        padding: 15px 15px 5px 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin-top: 0;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }
    .query-wrapper {
        position: relative;
        width: 100%;
    }
    .query-input {
        width: 90%;
        padding-right: 40px;
        padding-left: 12px;
        height: 37px !important;
        box-sizing: border-box;
        border-color: #b2b2b2 !important;
    }
    .query-input::before {
        display: none;
    }
    .advanced-search-icon {
        position: absolute;
        right: 0;
        top: 52%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .advanced-search-icon .icon {
        width: 32px;
        height: 32px;
    }
    .city-select,
    .brand-model-group,
    .filter-select,
    .condition,
    .btn-row {
        display: none;
    }
    .filters-row {
        display: none;
    }
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100100;
    }
    .modal-content {
        background: white;
        width: 100%;
        height: 100%;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        display: flex;
        flex-direction: column;
        margin: 0;
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .modal-header h3 {
        font-size: 1.2rem;
        color: #2d3748;
    }
    .close-modal {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2d3748;
        cursor: pointer;
    }
    .modal-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .modal-form select {
        height: 35px;
        padding: 0 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 1rem;
        background: #fff;
        transition: border-color 0.3s, box-shadow 0.3s;
        width: 100%;
    }
    .modal-form select:focus {
        border-color: #629dd1;
        box-shadow: 0 0 0 3px rgba(98, 157, 209, 0.2);
        outline: none;
    }
    .modal-form .condition {
        display: flex;
        gap: 5px;
        align-items: center;
        width: 100%;
    }
    .modal-form .condition input[type="radio"] {
        display: none;
    }
    .modal-form .condition .radio-btn {
        height: 35px;
        padding: 0 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #fff;
        text-align: center;
        line-height: 35px;
        cursor: pointer;
        transition: border-color 0.3s, background 0.3s;
        font-size: 0.9rem;
        min-width: 60px;
        flex: 1;
    }
    .modal-form .condition .radio-btn:hover {
        border-color: #629dd1;
    }
    .modal-form .condition input[type="radio"]:checked + .radio-btn {
        border-color: #629dd1;
        background: #ebf8ff;
    }
    .modal-form .btn {
        height: 35px;
        width: 150px;
        padding: 0 30px;
        background: #629dd1;
        color: white;
        border: none;
        border-radius: 6px;
        font-family: 'Roboto', Helvetica, sans-serif;
        font-size: 0.9rem;
        font-weight: 400 !important;
        cursor: pointer;
        transition: background 0.3s, transform 0.2s;
        margin: 20px auto 0;
    }
    .modal-form .btn:hover {
        background: #528bbf;
    }
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin-top: -5px;
    }
    .form-actions .home-my-car {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-actions .home-my-car-btn {
        width: 100%;
        margin: 0;
        padding: 2px 15px;
        font-size: 15px;
    }
   .form-actions .home-my-car-btn:hover {
        background: #fff;
        color: #000;
        border: 1px solid #e2e8f0;
    }
    .home-my-car-btn img {
        width: 16px;
        height: 16px;
    }

    .ad-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 15px !important;
        width: 100% !important;
        margin-top: 0;
    }

    .card {
        border-radius: 6px;
        width: 100%;
        max-width: 100%;
        min-height: 200px;
    }

    .ad-cards-title {
        font-size: 14px;
    }

    .card-content {
        padding: 5px 8px 8px 8px;
    }

    .card h3 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card p {
        font-size: 0.8rem;
    }

    .card .price {
        font-size: 0.9rem;
    }

    .card .meta {
        font-size: 0.65rem;
    }

    .card-img {
        height: 120px;
    }

    .card-img img {
        height: 120px;
        width: 100%;
        object-fit: cover;
    }
    .card-icon {
        width: 20px;
        height: 20px;
    }

    .card-icon img {
        width: 14px;
        height: 14px;
    }

    .favorites-btn {
        width: 18px;
        height: 18px;
        bottom: 8px;
        right: 8px;
    }

    .ad-cards .error-message {
        padding: 15px;
        min-height: 200px;
    }

    .ad-cards .error-message.search-form-width {
        max-width: 90%;
    }

    .ad-cards .error-message .error-icon {
        width: 98%;
        max-width: 280px;
        margin-bottom: 20px;
    }

    .ad-cards .error-message p {
        font-size: 20px;
    }
    .domain {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }
    .desktop-menu {
        display: none;
    }
    .menu .burger, .menu .add-btn {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .bottom-menu {
        display: flex;
    }
    .bottom-menu-item {
        cursor: pointer;
        pointer-events: auto;
    }
    .favorites-icon {
        width: 10px;
        height: 10px;
        margin-right: 4px;
    }
    .menu .go-back-btn {
        display: grid;
        height: 32px;
        width: 32px;
        place-items: center;
        cursor: pointer;
        margin-left: -17px;
    }



    .gallery-prev, .gallery-next {
        display: none;
    }
    #gallery-image {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .gallery-modal {
        padding: 0;
    }
    .gallery-modal-content {
        max-width: 100%;
        max-height: 100vh;
    }
    .gallery-close {
        top: 10px;
        right: 10px;
    }
    .gallery-mobile-prev {
        left: 0;
    }
    .gallery-mobile-next {
        right: 0;
    }
    .gallery-mobile-prev, .gallery-mobile-next {
        display: block;
    }
    .no-favorites {
        margin-top: 10%;
        text-align: center;
    }
    .profile-header {
        margin-top: 15px;
        margin-left: -10px;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .car-profile-title {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .car-profile-title img {
        display: none;
    }

    .car-profile-title > div {
        text-align: center;
        width: 100%;
        font-size: 18px;
    }
    .filter-section {
        margin-top: 0;
    }
    .filter-section select {
        padding: 2px;
        font-size: 14px;
    }

    .logout-btn {
        padding: 5px 12px;
        font-size: 14px;
    }
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar {
        display: none;
    }
    .tabs button {
        scroll-snap-align: center;
    }
    .tab-content {
        padding-bottom: 45px;
    }

    .profile-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      z-index: 1000;
    }

    .profile-modal-content {
      width: 100vw;
      height: 100vh;
      max-width: none;
      border-radius: 0;
      background: #fff;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 20px 20px 70px 20px;
      overflow-y: auto;
    }

    .profile-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .profile-modal-header h3 {
      font-size: 1.2rem;
      color: #2d3748;
    }

    .profile-close-modal {
        background: none;
        border: none;
        font-size: 2.5rem;
        color: #2d3748;
        cursor: pointer;
     }
    .profile-modal-form {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .profile-modal-form select, input {
        height: 35px;
        padding: 0 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 1rem;
        background: #fff;
        transition: border-color 0.3s, box-shadow 0.3s;
        width: 100%;
        display: block;
    }
    .profile-modal-form select:focus {
        border-color: #629dd1;
        box-shadow: 0 0 0 3px rgba(98, 157, 209, 0.2);
        outline: none;
    }
    .profile-btn-row {
        display: inline-block;
        width: 100%;
        padding: 0;
    }
    .profile-btn-row .btn {
        height: 35px;
        width: 88vw;
        padding: 0 30px;
        background: #629dd1;
        color: white;
        border-radius: 6px;
        margin: 20px auto 0;
    }


    .footer {
        display: none;
    }
    .profile-nav {
        justify-content: center;
        gap: 15px;
        margin: 0 0 15px;
    }
    .nav-btn {
        font-size: 16px;
    }

    .my-cars-buttons {
        flex-direction: column;
        gap:0;
        margin: 0;
    }

    .car-button {
        width: 98%;
        margin: auto;
        border-radius: 8px;
    }
    .car-button:hover {
        border: 1px solid #d1d5db;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        transform: translateY(0px);
    }
    .car-button:active {
        border-color: #9ca3af;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }
    .delete-icon {
        width: 22px;
        height: 22px;
    }

    .delete-icon:hover {
        stroke: #9ca3af;
    }
    .delete-icon:active {
        stroke: #ef4444;
    }


    .notifications-content{
        padding-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .ad-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    .profile-header {
        padding: 10px;
    }
    .profile-title {
        font-size: 16px;
    }
    .profile-id {
        font-size: 16px;
    }
    .logout-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    .user-info {
        margin: 10px 15px;
    }
    .user-info .username {
        font-size: 20px;
    }
    .nav-btn {
        font-size: 16px;
    }
    .action-btn {
        font-size: 0.8rem;
    }
}



/* Стили для кастомных выпадающих списков */
.dropdown {
    position: relative;
    width: 100%;
    height: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.dropdown:hover {
    border-color: #3182ce;
}

.dropdown-toggle {
    width: 100%;
    height: 100%;
    padding: 0 30px 0 12px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    line-height: 35px;
    color: #2d3748;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23718096" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center;
    border: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-toggle.placeholder {
    color: #a0aec0;
}

.dropdown-toggle:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    border-radius: 6px;
}

.dropdown-menu {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    z-index: 1007;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #2d3748;
}

.dropdown-menu ul li:hover {
    background-color: #ebf8ff;
}

.dropdown-menu ul li.section-title {
    font-size: 0.9rem;
    color: #a0aec0;
    cursor: default;
    font-weight: 500;
    margin: 0 0 -5px 0;
}

.dropdown-menu ul li.section-title:hover {
    background-color: transparent;
}

.dropdown-menu ul li.clear-option {
    font-weight: normal;
    color: #e53e3e;
}

.dropdown-menu ul li.clear-option:hover {
    background-color: #fee2e2;
}

.model-group {
    margin-bottom: 4px;
}

.model-group label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 1rem;
    color: #2d3748;
}

.model-group label:hover {
    background-color: #ebf8ff;
}

.model-group input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.body-options {
    margin-left: 16px;
}

.body-options label {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.9rem;
    color: #2d3748;
}

.body-options label:hover {
    background-color: #ebf8ff;
}

.body-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

#car_models_container .clear-option {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #e53e3e;
}

#car_models_container .clear-option:hover {
    background-color: #fee2e2;
}

.category-option.disabled {
    color: #686868;
    cursor: default;
}
.has-subcategories {
    cursor: pointer;
}
.subcategory-list {
    list-style: none;
    padding-left: 20px;
    }
.toggle-icon {
    float: right;
    font-weight: bold;
}
.hidden {
    display: none !important;
}

/* Desktop Styles */
@media (min-width: 901px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 400px;
        overflow-y: auto;
    }
    .dropdown-head {
        display: none;
    }
    .dropdown-foot {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 900px) {
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background: #fff;
        transform: translateY(100vh); /* Скрываем за пределами экрана */
        transition: transform 0.3s ease-in-out;
        border: none;
        border-radius: 0;
        display: none;
        flex-direction: column;
        z-index: 1007;
    }
    .dropdown-menu.open {
        display: flex;
        transform: translateY(0);
    }
    .dropdown-head {
        padding: 15px;
        border-bottom: 1px solid #e2e8f0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        flex-shrink: 0;
        z-index: 1008;
    }
    .dropdown-head h2 {
        margin: 0;
        font-size: 1.3rem;
        color: #2d3748;
    }
    .dropdown-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    .dropdown-close:hover svg {
        stroke: #3182ce;
    }
    .dropdown-body {
        padding: 15px;
        overflow-y: auto;
        flex: 1;
        margin-top: 60px; /* Отступ для .dropdown-head */
        margin-bottom: 35px; /* Отступ для .dropdown-foot */
    }
    .dropdown-foot {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #e2e8f0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1008;
        flex-shrink: 0;
        height: 35px; /* Фиксированная высота футера */
    }
    .dropdown-reset, .dropdown-done {
        flex: 1;
        padding: 10px;
        font-size: 1rem;
        font-family: 'Roboto', sans-serif;
        border: none;
        background: none;
        cursor: pointer;
        margin: 0 5px;
        text-align: center;
    }
    .dropdown-reset {
        color: #e53e3e;
    }
    .dropdown-reset:hover {
        color: #c53030;
    }
    .dropdown-done {
        color: #3182ce;
    }
    .dropdown-done:hover {
        color: #2b6cb0;
    }
    .dropdown-toggle {
        font-size: 0.9rem;
    }
    .dropdown-menu ul li,
    .model-group label,
    #car_models_container .clear-option {
        font-size: 1.0rem;
    }
    .dropdown-menu ul li.clear-option {
        display: none;
    }
    .dropdown-menu ul li.clear-option {
        display: none;
    }
    #car_models_container .clear-option {
        display: none;
    }
}


.custom-select {
    position: relative;
    width: 100%;
    height: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-select:hover {
    border-color: #3182ce;
}

/* Тоггл */
.select-toggle {
    width: 100%;
    height: 100%;
    padding: 0 30px 0 12px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    line-height: 35px;
    color: #2d3748;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23718096" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center;
    border: none;
    text-align: left;
    cursor: pointer;
}

.select-toggle:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    border-radius: 6px;
}

/* Меню */
.select-menu {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    position: relative ;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-height: 70vh;
    overflow-y: auto;
}

/* Список */
.select-content {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Модели */
.model-item {
    padding: 0 12px;
    transition: background 0.2s ease;
}

.model-item:hover {
    background: rgba(0, 123, 255, 0.1); /* синий полупрозрачный */
}

/* Кузова */
.body-item {
    padding-left: 30px;
    transition: background 0.2s ease;
}

.body-item:hover {
    background: rgba(0, 123, 255, 0.1); /* синий полупрозрачный */
}


.ui-autocomplete {
        position: absolute;
        top: 100%;
        left: 0;
        width: 200px; /* Фиксированная ширина для десктопа */
        z-index: 1000;
        background: #f5f5f5;
        border: 1px solid #dcdcdc;
        border-radius: 6px;
        max-height: 150px;
        overflow-y: auto;
        overflow-x: hidden;
        list-style: none;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }

    .ui-autocomplete li {
        padding: 8px 10px;
        font-size: 16px;
        cursor: pointer;
    }

    .ui-autocomplete li:hover,
    .ui-autocomplete li.ui-state-focus {
        background: #f0f0f0; /* Простая подсветка */
    }


    /* Мобильная версия */
@media (max-width: 900px) {
    .ui-autocomplete {
        min-height: 80px;
        width: 90%;
    }
}


/* Кнопка очистить */

.reset-button button {
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 17px;
    font-weight: normal;
    color: #e53e3e;
    padding: 10px;
    margin-top: 3px;
}

.reset-button button:hover {
    background-color: #fee2e2;
}


/* Общий стиль для label с checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
}

.label-text {
    display: inline-block;
    font-size: 14px;
    color: #333;
    padding-left: 10px;
}



.beta-banner {
    margin-top: 5px;
    background-color: #ffeb3b;
    color: #333;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

.beta-label {
    font-size: 12px;
    background: #ff9800;
    color: #fff;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
    vertical-align: middle;
}



.filter-section {
    margin: 20px 0;
    width: 100%; /* обязательно, чтобы блок растянулся */
}

.filter-wrapper {
    display: flex;
    justify-content: flex-end; /* выравниваем блок кнопок вправо */
}

.radio-filter {
    display: flex;
    gap: 8px;           /* расстояние между кнопками */
    flex-wrap: nowrap;  /* в ряд */
}

.radio-filter input[type="radio"] {
    display: none;
}

.radio-filter label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 30px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    white-space: nowrap; 
}

.radio-filter label:hover {
    border-color: #4a90e2;
}

.radio-filter input[type="radio"]:checked + label {
    border-color: #4a90e2;
    background: #f0f7ff;
}

@media (max-width: 600px) {
    .filter-wrapper {
        padding: 0 5px; /* отступ слева и справа */
    }

    .radio-filter {
        display: flex;
        flex-direction: row; /* кнопки в ряд */
        gap: 6px;
        overflow-x: auto;    /* горизонтальный скролл */
        width: 100%;
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
    }

    /* опционально: скрыть стандартную полоску прокрутки */
    .radio-filter::-webkit-scrollbar {
        display: none;
    }

    .radio-filter label {
        flex: 0 0 auto; /* кнопки под текст, не растягиваются */
        font-size: 12px;
        height: 36px;
        line-height: 36px;
        justify-content: center;
    }
}


.app-sticky-bar {
    position: fixed;
    bottom: 62px;
    left: 8px;
    right: 8px;
    z-index: 1000;
}
.app-sticky-inner {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.app-sticky-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-sticky-icon { font-size: 24px; }
.app-sticky-text { display: flex; flex-direction: column; gap: 1px; }
.app-sticky-text strong { font-size: 13px; color: #fff; font-weight: 600; }
.app-sticky-text span { font-size: 11px; color: rgba(255,255,255,0.55); }
.app-sticky-right { display: flex; align-items: center; gap: 8px; }
.app-sticky-btn {
    background: #fff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.app-sticky-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.app-sticky-badge {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 6px;
}


/* Кнопка подсказки VIN */
.vin-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 4px;
    background: none;
    border: none;
    cursor: pointer;
    vertical-align: middle;
}

.vin-help-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.vin-help-btn:hover img {
    opacity: 1;
}

/* Бейдж VIN на кнопке авто */
.vin-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #3182ce;
    background: #ebf8ff;
    border-radius: 3px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Тело модалки подсказки */
.vin-help-body {
    padding: 10px 5px;
    font-size: 14px;
    line-height: 1.6;
}



.home-my-car {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;    
}

.home-my-car-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 35px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #2d3748;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.home-my-car-btn:hover {
    border-color: #629dd1;
    background: #ebf8ff;
}

.home-my-car-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .home-my-car {
        margin: 8px 0 -20px 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 0 8px 0 8px;
        gap:4px;
    }
    .home-my-car::-webkit-scrollbar {
        display: none;
    }
    .home-my-car-btn {
        border-radius: 4px;
    }
}

@media (min-width: 768px) {
    #share-seller-btn { display: none !important; }
}



/* ===== Разыскиваемые запчасти — карточки-бирки ===== */

.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 4px 16px 40px;
}

.pr-ticket {
    position: relative;
    display: block;
    background: #FFFFFF;
    border: 1px solid #E2DFD6;
    border-radius: 10px;
    padding: 16px 16px 18px;
    text-decoration: none;
    color: #1F2421;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.pr-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 36, 33, 0.08);
    border-color: #C0611A;
}

.pr-ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.pr-ticket-category {
    font-family: 'Roboto Condensed', 'Roboto', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B7280;
    background: #F3F1EA;
    border: 1px solid #E2DFD6;
    border-radius: 4px;
    padding: 3px 8px;
    line-height: 1.4;
}

.pr-ticket-date {
    font-family: 'Roboto Condensed', 'Roboto', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6B7280;
    border: 1px solid #E2DFD6;
    border-radius: 4px;
    padding: 3px 7px;
    transform: rotate(-2deg);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.pr-ticket-title {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #1F2421;
}

.pr-ticket-car {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
}

.pr-ticket-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #4B4F4C;
    margin: 0;
}

.pr-stamp {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: 'Roboto Condensed', 'Roboto', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #C0611A;
    border: 1.5px solid #C0611A;
    border-radius: 4px;
    padding: 2px 8px;
    transform: rotate(-4deg);
    opacity: 0.9;
}

.pr-empty {
    text-align: center;
    padding: 60px 20px 40px;
}

.pr-empty-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border: 1.5px dashed #C4C1B6;
    border-radius: 50%;
    font-family: 'Roboto Condensed', 'Roboto', Helvetica, sans-serif;
    font-weight: 700;
    color: #A9A69B;
}

.pr-empty-title {
    font-size: 17px;
    font-weight: 500;
    color: #1F2421;
    margin: 0 0 6px;
}

.pr-empty-text {
    font-size: 14px;
    color: #6B7280;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pr-grid {
        grid-template-columns: 1fr;
        padding: 4px 15px 40px;
    }
}

@media (max-width: 420px) {
    .sp_filters-row .sp_dropdown,
    .sp_filters-row .sp_condition {
        width: 100%;
    }
}