@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600;700&display=swap');



/* === Базовые стили === */
body {
  margin: 0;
  font-family: 'Montserrat Alternates', sans-serif;
  background: #fff;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Навбар === */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
  padding: 0 20px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* === КНОПКА МЕНЮ — овальная, видимая на мобилках === */
.menu-btn {
  position: relative;
  z-index: 300; /* поверх меню и фона */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 2px solid #3E2622;
  border-radius: 9999px; /* таблетка */
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* три точки внутри */
.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #3E2622;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.menu-btn::before {
  margin-right: 3px;
}

.menu-btn::after {
  margin-left: 3px;
}

/* эффект наведения / открытия */
.menu-btn:hover,
.menu-btn.open {
  background: #3E2622;
  border-color: #3E2622;
}

.menu-btn:hover span,
.menu-btn:hover::before,
.menu-btn:hover::after,
.menu-btn.open span,
.menu-btn.open::before,
.menu-btn.open::after {
  background: #fff;
}

/* === адаптив: на мобильных кнопка всегда видима и не обрезается === */
@media (max-width: 768px) {
  .menu-btn {
    position: absolute;
    left: 20px;     /* прижата к левому краю */
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}

/* === Подменю === */
.submenu-wrap {
  margin: 8px 0;
}

.submenu-title {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

/* === Плавающая кнопка корзины === */
.cart-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3e2723;
  color: #fff;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
}

.cart-floating:hover {
  background: #f4c9d6;
  color: #3e2723;
}

.cart-floating span {
  background: #fff;
  color: #3e2723;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 14px;
}

/* === Окно корзины === */
.cart-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 320px;
  max-height: 60%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 20px;
  z-index: 999;
  display: none;
  flex-direction: column;
}

.cart-panel.open {
  display: flex;
}

#cartItems {
  flex: 1;
  overflow-y: auto;
  margin: 10px 0;
}

.cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item .info {
  flex: 1;
  font-size: 14px;
}

.cart-item .title {
  font-weight: bold;
}

.cart-item .qty {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.cart-item button {
  border: none;
  background: #f4c9d6;
  color: #3e2723;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #3e2723;
  color: #fff;
}

.cart-footer {
  margin-top: auto;
}

.cart-footer button {
  width: 100%;
  padding: 12px;
  background: #3e2723;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
}

.cart-footer button:hover {
  background: #f4c9d6;
  color: #3e2723;
}

/* === Слайдер (hero) === */
/* === Универсальный HERO слайдер для всех устройств === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 80vh;         /* единая высота для всех экранов */
  min-height: 360px;
  max-height: 700px;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* сохраняет пропорции, не обрезает */
  display: block;
  border-radius: 16px;
}
/* === фикc: на ноутбуках и десктопах картинка растягивается === */
@media (min-width: 769px) {
  .slide img {
    object-fit: cover !important;   /* фото заполняет весь hero */
  }
}
/* Точки */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(62, 38, 34, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: #3e2723;
  transform: scale(1.3);
}
.hero .carousel {
  border-radius: 24px;      /* радиус скругления */
  overflow: hidden;         /* обрезает содержимое по радиусу */
}

.hero .slide img {
  border-radius: 24px;      /* саму картинку тоже скругляем */
  display: block;
}


.discounts {
  padding: 60px 20px;
  background: #fff;
}
.discounts .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.discounts .left {
  flex: 1;
  text-align: center;
}
.discounts .left svg {
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
}
.discounts .caption {
  font-size: 16px;
  color: #3e2723;
  line-height: 1.5;
}
.discounts .right {
  flex: 1;
}
.discount-card {
  display: block;
  text-align: center;
  background: #fafafa;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s;
}
.discount-card:hover {
  transform: translateY(-4px);
}
.discount-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.discount-card h3 {
  font-size: 15px;
  margin: 8px 0 4px;
  color: #3e2723;
}
.discount-card .price {
  font-size: 14px;
}
.discount-card .old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}
.discount-card .new-price {
  color: #d32f2f;
  font-weight: bold;
}

/* адаптив */
@media (max-width: 768px) {
  .discounts .container {
    flex-direction: column;
  }
  .carousel {
    height: 50vh;
    min-height: 220px;
  }
}

/* === новая овальная кнопка корзины === */
.cart-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #3b2314;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 100;
  transition: transform .2s ease;
}
.cart-floating:hover { transform: translateY(-2px); }

.cart-floating .cart-icon {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.cart-floating .cart-badge {
  font-size: 18px;
  font-weight: 700;
  color: #3b2314;
  line-height: 1;
  margin-left: 4px;
}

/* === Главное меню === */
#mainMenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px; /* чуть ниже хедера */
  left: 20px; /* появляется из-под кнопки меню */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 14px 22px;
  width: 220px;
  z-index: 300;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.25s ease;
}
#mainMenu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* пункты */
#mainMenu > a,
#mainMenu > .submenu-wrap > .submenu-title {
  padding: 10px 0;
  text-decoration: none;
  color: #2b1d14;
  font-weight: 600;
  cursor: pointer;
}

/* минибар второго уровня */
.submenu {
  display: none;
  flex-direction: column;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 2px solid #eee;
}
.submenu a {
  display: block;
  padding: 6px 0;
  color: #2b1d14;
  text-decoration: none;
  font-weight: 400;
}
.submenu a:hover { color: #000; }
.submenu-wrap.open > .submenu { display: flex; }




/* === Checkout (оформление заказа) === */
.checkout-title {
  text-align: center;
  color: #3E2622;
  font-size: 20px;
  margin-bottom: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-form input {
  border: 2px solid #3E2622;
  border-radius: 9999px;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  color: #3E2622;
  transition: all 0.25s ease;
  background: #fff;
}

.checkout-form input::placeholder {
  color: #9c8b83;
}

.checkout-form input:focus {
  border-color: #3E2622;
  box-shadow: 0 0 0 3px rgba(62, 38, 34, 0.1);
}

.checkout-btn {
  background: #3E2622;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.checkout-btn:hover {
  background: #f4c9d6;
  color: #3E2622;
}

.checkout-done {
  text-align: center;
  color: #3E2622;
  margin-top: 30px;
}

.checkout-msg {
  text-align: center;
  color: #5c4036;
  font-size: 15px;
}


.about {
  padding: 60px 20px;
  text-align: center;
  background-color: #fffaf5;
}

.about-title {
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #3e2723;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 20px;
  color: #3e2723;
}

.about-swiper {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
}

.about-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #3e2723;
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 0.7;
}

.swiper-pagination-bullet {
  background: #3e2723;
}

/* === Исправления для страницы "О нас" === */

/* Отключаем синие элементы swiper-а */
.about-swiper .swiper-button-next,
.about-swiper .swiper-button-prev,
.about-swiper .swiper-pagination-bullet {
  color: #3e2723 !important;          /* коричневый */
  background: #3e2723 !important;     /* точки — тоже коричневые */
}

/* Активная точка */
.about-swiper .swiper-pagination-bullet-active {
  background: #6b4b3e !important;     /* чуть темнее */
}

/* Прячем стрелки на мобильных */
@media (max-width: 768px) {
  .about-swiper .swiper-button-next,
  .about-swiper .swiper-button-prev {
    display: none !important;
  }
}


* {
  font-family: 'Montserrat Alternates', sans-serif !important;
}
