/* ====== ОБЩИЕ СТИЛИ КАТЕГОРИИ ====== */




.restaurant-archive-wrapper {
  padding: 2rem;
}

.filter-form {
  margin-bottom: 2rem;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.restaurant-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.restaurant-card:hover {
  transform: translateY(-5px);
}

.restaurant-card img.logo 
{
     max-width: 100%;
    height: 180px;
    max-width: 180px;
    min-width: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 0px 4px #eee;
    border-radius: 100%;
    overflow: hidden;
}

.restaurant-card h2 {
  margin: 12px 0 4px;
  font-size: 1.2rem;
}

.restaurant-card .category {
  font-size: 0.9rem;
  color: #888;
}

.restaurant-card .address {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.view-button {
  background-color: #377dff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  padding-right: 25px;
    padding-left: 25px;
}

.view-button:hover {
  background-color: #265fcc;
}






/* ====== ОБЩИЕ СТИЛИ СТРАНИЦЫ РЕСТОРАНА ====== */



body.single-restaurant .restaurant-page-wrapper {
    font-family: 'Hellix', sans-serif;
    /* background-color: #f8f9fa; */
    color: #1e1e1e;
    margin: 0 auto;
    padding: 0;
    margin-top: 30px;
    box-shadow: none;
}

/* Контейнер */
.restaurant-page-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

/* Обложка */
.restaurant-cover {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-bottom: 30px;
}

/* Название ресторана */
.restaurant-page-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

/* Мета-информация */
.restaurant-meta {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

/* Раздел меню */
.menu-section {
    margin-top: 40px;
    margin-bottom: 70px;
}

.menu-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2d2d2d;
}

/* Сетка блюд */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Карточка блюда */
.menu-grid .menu-item {
  background: #fafafa;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.menu-grid .menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.menu-grid .menu-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Название блюда */
.menu-grid .menu-item h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: #1f1f1f;
}

/* Описание */
.menu-grid .menu-item .description {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 10px;
}

/* Цена */
.menu-grid .menu-item .price {
  font-weight: 600;
  color: #222;
  font-size: 1rem;
}

/* Кнопка (если будет) */
.button-order {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #009de0;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button-order:hover {
  background-color: #007bb5;
}

/* === Заголовок с логотипом и названием ресторана === */
.restaurant-header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 60px;
  font-family: 'Hellix', sans-serif;
}

.restaurant-title-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.restaurant-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
}

.restaurant-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
}

/* === Мета-информация: Email, Phone, Address, About === */
.restaurant-meta-data {
  padding-left: 4px;
}

.restaurant-meta-data .meta-line {
  font-size: 1rem;
  color: #444;
  margin: 4px 0;
}


/* === Рабочие часы (2 ровные колонки, аккуратное выравнивание) === */
.working-hours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.working-hours li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
  font-weight: 500;
}

.working-hours li strong {
  width: 60px;
  display: inline-block;
  color: #111;
  font-weight: 600;
}

.menu-section h2 {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2d2d2d;
  gap: 10px;
}

.section-icon {
  width: 22px;
  height: 22px;
  stroke: #007aff;
  color: #007aff;
  fill: none;
  flex-shrink: 0;
}


.swiper-button-next,
.swiper-button-prev {
  color: #fff !important; 
  stroke: #fff;
  fill: #fff;
}





/* ====== СКИДКА ====== */


.wings-discount-banner {
     display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 10px;
    margin: 30px 0;
    text-align: center;
    border: 1px #f0b614 dashed;
}

.wings-discount-banner .emoji {
  font-size: 1.4rem;
}

.wings-discount-banner .highlight {
  color: #000;
}

/* === Как это работает === */


.how-it-works-btn {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  float: right;
  margin-top: 10px;
  transition: background 0.2s ease;
}
.how-it-works-btn:hover {
  background-color: #005fcc;
}

.how-it-works-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  margin: auto;
  color: #333;
}
.close-btn {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
}

.restaurant-title-logo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 60px;
}

.restaurant-title-logo-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.how-it-works-wrapper {
  margin-top: 10px;
}

.how-it-works-btn {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.how-it-works-btn:hover {
  background-color: #005fcc;
}


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

.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  max-width: 440px;
  width: 90%;
  font-family: 'Hellix', sans-serif;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #1e1e1e;
}

.how-it-works-list {
  padding-left: 0;
  list-style: none;
  color: #333;
}

.how-it-works-list li {
  margin-bottom: 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.step-number {
  background: #00c57a;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #000;
}

.how-it-works-btn {
  background-color: white;
  border: 1px solid #007aff;
  color: #007aff;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.how-it-works-btn:hover {
  background-color: #f0f8ff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
  color: #007aff;
}

/* === Курьеры === */




/* === Запрос Курьеру таймер === */


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

.modal-inner {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.timer-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid #007aff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #007aff;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.2rem;
  color: #333;
}

.courier-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.courier-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
}

.countdown-ring {
  margin-bottom: 16px;
}

.countdown-text {
  position: absolute;
  left: 50%;
 top: 73px;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: bold;
  color: #007aff;
}


/* === Не найдены рестораны сообщение === */




.no-results-message {
  max-width: 500px;
  margin: 100px auto 60px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  padding: 0 20px;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.no-results-message h2 {
  font-size: 26px;
  font-weight: 600;
  color: #005FD1;
  margin-bottom: 10px;
}

.no-results-message .message {
  font-size: 17px;
  color: #444;
  margin-bottom: 8px;
}

.no-results-message .subtext {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

.home-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  background-color: #005FD1;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.home-button:hover {
  color: #fff !important;
}



/* === Табы под категорий === */


.subcategory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: left;
  margin-bottom: 50px !important;
}

.subcategory-tab {
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.subcategory-tab.active {
  background-color: #eaf4ff;
}

.subcategory-tab img {
  display: block;
  margin: 0 auto;
}

.subcategory-tab span {
  display: block;
  font-size: 14px;
  color: #004589;
  margin-top: 4px;
}



/* === END Не найдены рестораны сообщение === */



.no-courier
{
        max-width: 300px;
    margin-bottom: 30px;
}


.description 
{
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* Количество строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.2em;             /* примерно 2 строки по 1.6em */
  line-height: 1.6em;
}

.courier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 70px;
}

.courier-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 20px;
  font-family: 'Hellix', sans-serif;
}

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

.avatar-circle {
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-circle img {
  width: 60px;
  height: 60px;
    max-width: 60px;
}

.courier-name-wrap {
  flex-grow: 1;
  margin-left: 12px;
}

.courier-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.verified-badge {
  display: block;
  font-size: 0.85rem;
  color: #007aff;
  font-weight: 500;
}

.courier-distance {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2a2a;
}

.courier-rating {
  margin: 12px 0;
  font-size: 1rem;
  color: #007aff;
}

.courier-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.like {
  color: green;
}
.dislike {
  color: red;
}

.courier-meta {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #444;
}

.courier-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 24px;
  background-color: #007aff;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.courier-btn:hover {
  background-color: #005fd1;
}





/* === Респонсивная === */


@media (max-width: 1024px) {
  .restaurant-page-wrapper {
    padding: 16px;
    border-radius: 12px;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .restaurant-title {
    font-size: 2rem;
  }

  .restaurant-logo {
    width: 64px;
    height: 64px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .menu-grid .menu-item img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .restaurant-title-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .working-hours {
    grid-template-columns: 1fr; /* Один столбик на мобилке */
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-page-wrapper h1 {
    font-size: 1.8rem;
  }

  .menu-grid .menu-item img {
    height: 220px;
  }
}








