/*
Theme Name: TETRA-Vi Eco
Theme URI: https://tetra-vi.com
Author: TETRA-Vi
Description: Еко-тема WordPress для каталогу готельної продукції TETRA-Vi
Version: 1.0
Text Domain: tetra-vi-eco
*/

/* ======= ЗАГАЛЬНІ СТИЛІ ======= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: #4CAF50;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: #4CAF50;
  font-weight: 600;
  margin-top: 0;
}

/* ======= ШАПКА САЙТУ ======= */
header {
  background: #f4f4f4;
  border-bottom: 3px solid #4CAF50;
  padding: 10px 0;
}

header .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

header img.logo {
  height: 60px;
  margin-right: 10px;
}

header .brand {
  color: #4CAF50;
  font-size: 1.6em;
  font-weight: bold;
  text-decoration: none;
}

/* ======= МЕНЮ ======= */
nav ul.main-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  color: #333;
  font-weight: 600;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.main-menu li a:hover {
  color: #4CAF50;
  border-bottom: 2px solid #4CAF50;
}

.main-menu li.current-menu-item a,
.main-menu li.current_page_item a {
  color: #4CAF50;
  border-bottom: 2px solid #4CAF50;
}

/* ======= КОНТЕНТ ======= */
main {
  max-width: 1000px;
  margin: auto;
  padding: 40px 15px;
}

main p {
  margin-bottom: 1em;
}

button,
.btn,
input[type="submit"],
a.button {
  background: #4CAF50;
  color: #fff !important;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
a.button:hover {
  background: #3d8b40;
}

/* ======= КАРТОЧКИ ТОВАРІВ (для каталогу) ======= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.catalog-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.catalog-item h3 {
  margin-bottom: 10px;
}

.catalog-item p.price {
  color: #4CAF50;
  font-weight: bold;
  margin-top: 10px;
}

/* ======= ФУТЕР ======= */
footer {
  background: #f4f4f4;
  border-top: 3px solid #4CAF50;
  padding: 30px 15px;
}

footer .footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}

footer h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}

footer p, footer a {
  color: #333;
  text-decoration: none;
}

footer a:hover {
  color: #4CAF50;
  text-decoration: underline;
}

footer img {
  height: 60px;
  margin-bottom: 10px;
}

/* ======= АДАПТИВНІСТЬ ======= */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  nav ul.main-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  main {
    padding: 30px 10px;
  }
  footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* === Головна сторінка: блоки каталогу === */
.home-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px auto;
  max-width: 1100px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.catalog-section {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.catalog-section h2 {
  color: #4CAF50;
  margin-bottom: 10px;
}

.catalog-section p {
  color: #444;
  font-size: 15px;
  margin-bottom: 20px;
}

.catalog-section .btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.catalog-section .btn:hover {
  background: #388E3C;
}

.home {
  text-align: center;
  padding: 40px 15px;
  font-family: Arial, sans-serif;
  
}

html {
  scroll-behavior: smooth;
}
/* --- багаторядна галерея для мила --- */
.multi-row-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.multi-row-gallery .row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.multi-row-gallery img {
  height: 150px;           /* уніфікована висота */
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.multi-row-gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* --- вирівняти інші фото мила під цей розмір --- */
.catalog-item img {
  max-height: 150px;
  object-fit: contain;
}
/* === уточнення для дворядної галереї у мила 15 г === */
.multi-row-gallery .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;      /* дозволяє перенос рядка */
  gap: 10px;
  width: 100%;
}

.multi-row-gallery img {
  height: 140px;        /* трохи нижче, щоб помістились дві */
  width: auto;
  max-width: 48%;       /* не дає двом фото виходити за межі */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
header .container {
    display: flex !important;
    align-items: center !important;
}
header .brand img {
    display: block !important;
    max-height: 60px !important;
    height: auto !important;
}
