body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Georgia', serif;
    background-color: #f5ebdc; /* Цвет фона страницы */
}


a {
  text-decoration: none; /* прибирає підкреслення */
  color: inherit;        /* успадковує колір тексту батьківського елемента */
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #e8d9c4; 
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #333;
    align-items: center;    /* Вирівнювання по вертикалі */
    gap: 10px;              /* Відступ між текстом і картинкою */
}

.navbar img {
    height: 50px;           /* Підганяє висоту під текст */
    width: auto;
  }

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.category-products {
  text-align: center;
  background-color: #f5ebdc;
  padding: 50px 20px 80px 20px;
  margin: 0;
}
  

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin-left: 300px; /* Дать небольшое расстояние между логотипом и ссылками */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.cart {
    justify-content: flex-end;
    font-size: 18px;
    color: #333;
    margin-left: 600px;
} 

.hero-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e8d9c4;
    text-align: center;
    padding: 40px 20px;
}

.hero-logo {
    width: 120px; /* або 120px - як хочеш */
    height: auto; /* автоматичне збереження пропорцій */
    margin: 20px 0;
}


/* Наші переваги*/

.advantages {
  background-color: #e9d4b7;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #333;
  border-top: 2px solid #333;
}

.advantages h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.advantage-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.advantage {
  max-width: 150px;
  text-align: center;
}

.advantage img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.advantage p {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}





.featured-products h2 {
    text-align: center;
    margin-top: 10px;
    font-size: 2rem;
    position: relative; /* Важливо для позиціонування підкреслення */
}

/*створення підкреслення */
.featured-products h2::after {
    content: ""; 
    display: block;
    width: 100px; 
    height: 4px; 
    background-color: #333; 
    margin: 10px auto 0 auto; 
    border-radius: 2px; /* закруглені краї */
}

.custom-line {
    height: 2px;
    width: 300px; 
    height: 4px; 
    background-color: #333; 
    margin: 10px auto 0 auto; 
    border-radius: 2px; /* закруглені краї */
  }


.featured-products {
    text-align: center;
    background-color: rgb(232, 217, 196);
    padding: 50px 20px;
    
}

.featured-products h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-top: 1px;
}






.shop-button {
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.shop-button:hover {
    background-color: #333;
}




.nav-links li a, .dropbtn {
    text-decoration: none; /* Прибрати підкреслення */
    color: black; /* Колір тексту */
    padding: 14px 16px;
    display: block;
    background-color: transparent; /* Прозорий фон */
    border: none; /* Без рамок */
    outline: none; /* Прибрати обведення при кліку */
    font-size: 16px;
  }
  



  /* Скритий текст */

  .nav-links li a:hover, .dropbtn:hover {
    background-color: rgb(221, 221, 221); /* Легке підсвічування при наведенні */
    color: black;
  }
  
  
  /* Випадаючий контент */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(232, 217, 196);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Посилання у випадаючому меню */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* При наведенні на пункт списку */
  .dropdown-content a:hover {
    background-color: rgb(232, 217, 196);
  }
  
  /* Показувати меню при наведенні */
  .dropdown:hover .dropdown-content {
    display: block;
  }




.Kategorsss{
    background-color: rgb(232, 217, 196);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

  .three-images {
   
    display: flex;
    justify-content: center;
    gap: 70px;
    margin: 50px auto;
    flex-wrap: wrap; /* Адаптивне перенесення на новий рядок */
  }
  
  .image-block {
    text-align: center;
  }
  
  .image-block img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
  }
  
  .image-block img:hover {
    transform: scale(1.1);
  }
  
  .image-block p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  

  .reveal-block {
    width: 350px;
    height: 80px;
    margin: 30px auto 1px ;
    background-color: #e8d9c4;
    border: 2px dashed #aaa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .reveal-block:hover {
    background-color: #f5ebdc; /* Плавна зміна фону при наведенні */
  }
  
  .hidden-text {
    color: transparent;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.4s ease-in-out;
  }
  
  .reveal-block:hover .hidden-text {
    color: #333;
  }





/*Footer*/
.site-footer {
  background-color: #e8d9c4;
  padding: 40px 20px;
  border-top: 2px solid #333;
  color: #333;
  font-family: 'Georgia', serif;
  margin-bottom: 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3,
.footer-column h4 {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color 0.3s ease-in-out;
}

.footer-column a:hover {
  color: #000;
  text-decoration: underline;
}







/*Сторінки товарів*/
.product-detail {
  background-color: #f5ebdc;
  padding: 50px 20px;
  text-align: center;
}

.product-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 200px;
  max-width: 1500px;
  margin: 0 auto;
}

.product-image {
  width: 200px;          /* або % */
  height: 200px;
  object-fit: cover;     /* обрізає зайве, зберігає пропорції */
  border-radius: 10px;   /* округлення за бажанням */
  display: block;
  margin: 0 auto;
}



.product-info {
  max-width: 500px;
  text-align: left;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.product-info p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #444;
}

.price {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  color: #000;
}

.buy-button {
  background-color: black;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #333;
}


    .buttone {
      display: inline-block;
      margin-top: 10px;
      padding: 8px 16px;
      background-color: black;
      color: white;
      text-decoration: none;
      border-radius: 20px;
      transition: 0.3s;
    }

    .buttone:hover {
      background-color: #333;
    }

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gallery-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  background-color: #f5ebdc; /* м'який фон — щоб не було білих пустот */
  padding: 10px;
}

.gallery-image {
  display: none;
  max-width: 100%;
  max-height: 400px; /* обмежує висоту */
  width: auto;
  height: auto;
  object-fit: contain; /* або 'cover' якщо потрібне заповнення */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-image.active {
  display: block;
}

.gallery-buttons button {
  padding: 8px 16px;
  font-size: 18px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s;
}





/*Характеристики товарів*/
.product-specs {
  max-width: 800px;
  margin: 40px auto;
  background-color: #e8d9c4;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-specs h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.product-specs ul {
  list-style-type: none;
  padding: 0;
}

.product-specs li {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  color: #333;
}

.product-specs li:last-child {
  border-bottom: none;
}






/*about page*/
.about-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffffcc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-title {
    font-size: 2.2em;
    color: #4a3c2a;
    margin-bottom: 20px;
    text-align: center;
}

.about-section {
    margin-bottom: 30px;
}

.about-heading {
    font-size: 1.5em;
    color: #4a3c2a;
    margin-bottom: 10px;
}

.about-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.about-footer {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 0.9em;
    margin-top: 40px;
}


@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
  }

  .cart {
    margin-left: 0;
    margin-top: 10px;
  }

  .three-images {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .image-block img {
    width: 100%;
    max-width: 400px;
  }

  .product-container {
    flex-direction: column;
    gap: 40px;
  }

  .product-info {
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .Kategorsss {
    flex-direction: column;
    align-items: flex-start;
  }

  .reveal-block {
    width: 90%;
  }
}
