/* ====== Глобальні змінні ====== */
:root {
  --primary-color: #332927;
  --secondary-color: #5C4A42;
  --text-color: #F4F1EB;
  --accent-color: #f53708;
  --accent-hover-color: #d12f06;
}

/* ====== Базові стилі ====== */
body { 
  font-family: Verdana, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-image: url('../img/background-image.jpg');
  background-position: center;
  background-size: cover; /* Размер изображений */
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
}


/* ====== Шапка сайту (з index.html) ====== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

nav {
  flex-grow: 1;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
}

nav ul li a.active {
  background-color: var(--accent-color);
  color: #fff;
}

/* ====== Основний контент ====== */

main {
  background: rgba(0, 0, 0, 0.85);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 60%;
  margin: auto;
}

h1, h2 {
  color: var(--text-color);
  border-top: 2px solid var(--accent-color);
  padding-bottom: 10px;
  padding-top: 10px;
  margin-bottom: 20px;
  margin-top: 20px;

}

p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}

ol {
  list-style: none;
  padding-left: 0;
}

ol li::before {
  content: '';
}


/* ====== Footer (з index.html) ====== */
footer {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  padding: 40px 20px;
  text-align: center;
  font-size: 1.2rem;
  border-top: 3px solid var(--accent-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer p {
  margin: 0;
  font-weight: bold;
}

footer .social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .social-icons a {
  color: var(--text-color);
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
  transform: scale(1.3);
  color: var(--accent-hover-color);
}
/* === Іконки соцмереж у футері === */
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

footer .social-icons a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
  transform: scale(1.3);
  color: var(--accent-hover-color);
}

/* ====== Адаптивність ====== */
@media (max-width: 1200px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
  main {
    max-width: 90%;
  }
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none; /* Приховуємо кнопку на великих екранах */
  }

  nav ul {
    display: flex; /* Меню відображається по замовчуванню */
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
  }
}
@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 10px 15px; /* Виправлено для забезпечення розтягування */
  }

  footer {
    padding: 20px 15px; /* Виправлено для забезпечення розтягування */
  }

  .logo img {
    margin-bottom: 10px;
  }
  
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 280px;
    height: 100vh;
    padding: 20px;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
  }

  nav ul.open {
    display: block;
    transform: translateX(0);
  }

  .menu-toggle {
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 18px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px; /* Відстань від правого краю */
    top: 50%;
    transform: translateY(-50%); /* Центрує по вертикалі */
  }

  nav ul.open li a {
    display: block;
    font-size: 1.2rem;
    padding: 14px 20px;
    text-align: left;
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--primary-color);
  }

  nav ul.open li a.active {
    background-color: var(--accent-color);
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
 
  main {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    max-width: 100%;
    font-size: 0.9em;
  }
}
