/* Основные стили для всего тела страницы */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Lora:wght@700&display=swap');

html {
  font-size: 16px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 auto;
}

/*
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: #f9f9f9;
  padding: 10%;
}
*/
body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  /* 16px */
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: #E2DED0;
}

/* Шапка и навигация */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(90deg, #ffffff, #ffffff); /* тёплый коралловый градиент */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  
margin: 0px 0px 40px 0px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1rem;
  /*font-weight: bold;*/
}

.nav {
  display: flex;
  gap: 15px;
}
.nav a {
  text-decoration: none;
}
.logo, .nav a {
  color: #141414;
}
.nav a:hover {
  text-decoration: underline;
}

/* Заголовок страницы */
/*
h1 {
  margin: 20px;
  font-size: 1.2rem;
  color: #222;
}
  */
h1,
h2,
h3,
.title-ua {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.2rem;
  /* 24px */
  line-height: 1.3;
  margin-top: 0px;
  margin-bottom: 10px;
}
h1{
  color:  #6F1D1B;
}
h4{
  margin-top: 0px;
  font-weight: 100;
  font-style: italic;
}

/* Вступительный блок бренда */

.brand-intro-box{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
  }

/* 6. Фон брендингового блока */
.brand-intro {
  background: #fff;
  border-left: 4px solid  #D3A6A1;
  padding: 20px;
  margin: 20px 20px 60px 20px;
  border-radius: 8px;
}
.brand-intro-right {
  border-right: 4px solid  #D3A6A1;
  border-left: none;
}

.brand-intro p {
  margin-top: 10px;
  color:#141414;
}

/* Навигация по категориям */
.category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0 20px 20px;
}

.category-nav::-webkit-scrollbar {
  height: 6px;
}

.category-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.category-nav button {
  background: #fff;
  border: 1px solid #B5838D;
  border-radius: 999px;
  color: #333;
  transition: background 0.3s, color 0.3s;
  padding: 4px;
}
.category-nav button.active {
  background: #B5838D;
  color: #fff;
}
button.buy {
  background-color: #B5838D; /* основной цвет */
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}
button.buy:hover {
  background-color: #6F1D1B; /* чуть темнее на ховере */
  transform: translateY(-2px);
}
button.buy:active {
  transform: translateY(0);
}
/*
.category-nav button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}

.category-nav button.active {
  background: #000;
  color: #fff;
}
*/

/* Сетка карточек */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px 20px;
}

/* Карточка продукта */
.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

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

.product-card img {
  width: 60%;
  height: auto;
  display: block;
  cursor: zoom-in;
  margin: 0 auto;
  margin-top: 20px;
}

.product-card .info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/*
.product-card .info h3,
.product-card .info h4 {
  margin: 0 0 10px;
  line-height: 1.2;
}
  

.info h4 {
  font-size: 1rem;
}
  */

.product-card .info p {
  color: #555;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card .price {
  font-weight: bold;
  margin-top: auto;
  padding: 10px 0px 20px 0px;
  /* font-size: 1.1rem;*/
}

.product-card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 10px;
  text-align: right;
}

.modal-header .close {
  /*font-size: 1.5rem;*/
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.modal-body img.modal-img {
  width: 80%;
  display: block;
  margin: 0 auto 15px;
  height: auto;
}

.modal-body h3,
.modal-body h4 {
  margin: 0 0 10px;
}

.modal-body #modalDesc {
  margin-bottom: 15px;
}

.modal-body .price {
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-body button.buy {
  margin-top: 10px;
}

/*---------------------*/
/* Стиль формы заказа */
.order-form input,
.order-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.order-form label {
  font-weight: 600;
  color: #333;
}
.order-form .buy {
  background-color: #FF6F61;
  color: #fff;
  border-radius: 30px;
  padding: 12px;
  margin-top: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.order-form .buy:hover {
  background-color: #E0534D;
}

/* Модальное окно заказа */
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2px;
}

.order-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.order-modal h2 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.order-modal .form-group {
  margin-bottom: 16px;
}

.order-modal label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.order-modal input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.order-modal input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.order-modal .form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.order-modal .btn-cancel {
  padding: 8px 16px;
  background-color: #9ca3af;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.order-modal .btn-cancel:hover {
  background-color: #6b7280;
}

.order-modal .btn-submit {
  padding: 8px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.order-modal .btn-submit:hover {
  background-color: #2563eb;
}



@media (max-width: 768px) {
  body {
    padding: 0px;
  }

  .container{
    padding: 0;
    margin: 8px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .nav {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
  }

  html {
    font-size: 14px;
  }

  /* чуть меньше базовый размер */
  h1{
    font-size: 1.2rem;
  }
  h2,
  h3,
  .title-ua {
    font-size: 1rem;
  }

  /* 20px на узких экранах */

  /*.brand-intro {*/
  /*font-size: 1rem;*/
  /*padding: 0 5px;*/
  /*}*/

  .modal {
    width: 100%;
  }

  .brand-intro-box{
    grid-template-columns: repeat(1, 1fr);
    gap: 1px;
  }

  .brand-intro {
    margin: 10px 0px 4px 0px;
  }
  .brand-intro-right{
    margin: 4px 0px 20px 0px;
  }


  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0;
    padding: 0;
  }

  .product-card {
    border-radius: 0;
  }

  .product-card .info {
    padding: 7px;
  }

  .product-card .info p{
    margin-top: 0;
  }

  .product-card .buy {
    padding: 5px;
  }

  .title-en {
    display: none;
  }
}
.product-card {
  border-radius: 0px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.07);
}

/* 5. Плавное появление модалки */
.modal {
  transition: transform 0.3s;
  transform: scale(0.95);
}
.modal-overlay[style*="display: flex"] .modal {
  transform: scale(1);
}





