/* ======================================================
   Bresta Group Theme v4 — main.css (Bright + Dark Hybrid)
   Автор: Bresta Group (brestagroup.com.ua)
   Версія: 1.3
   ====================================================== */

/* === Змінні кольорів === */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --dark: #0f172a;
  --light: #f9fafb;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

/* === Базові стилі === */
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text);
}
.text-center { text-align: center; }
.text-light { color: #f1f5f9; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.py-48 { padding-block: 48px; }

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
}
.btn-white:hover {
  background: var(--primary-light);
  color: #fff;
}

/* === HERO секція (головна і магазин) === */
.hero, .shop-hero {
background: linear-gradient(rgba(15,23,42,0.8), rgba(15,23,42,0.8)),
              url('/wp-content/uploads/ventilation-bg.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  padding: 120px 20px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero h1, .shop-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 12px;
}
.hero p, .shop-hero p {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 28px;
}
.hero .hero-actions, .shop-hero .hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Блок "Про компанію" === */
.about-company {
  padding: 64px 0;
  background: #fff;
}
.about-company h2 {
  color: var(--primary);
  margin-bottom: 12px;
}
.about-company p {
  color: var(--text);
  margin-bottom: 12px;
}
.about-company img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* === Переваги === */
.shop-advantages, .advantages {
  background: var(--light);
  padding: 64px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.adv-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.adv-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.adv-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.adv-item p {
  color: var(--muted);
}



/* === WooCommerce: сітка товарів === */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.woocommerce ul.products li.product .price {
  color: var(--primary);
  font-weight: bold;
}

/* === CTA секція (оновлена у темному стилі) === */
.cta-strip {
  background: #162033; /* темний фон, плавний перехід між блоками */
  color: #f1f5f9;
  text-align: center;
  padding: 64px 20px;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.cta-strip h3 {
  color: #60a5fa; /* блакитний акцентний заголовок */
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-strip p {
  color: #cbd5e1;
  margin-bottom: 24px;
  font-size: 16px;
}

.cta-strip .btn-white {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cta-strip .btn-white:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}


/* === Контакти === */
.contacts, .shop-contacts {
  background: #0f172a;
  color: #f1f5f9;
  padding: 64px 0;
}
.contacts h2, .shop-contacts h2 {
  color: #60a5fa;
}
.contacts a, .shop-contacts a {
  color: #93c5fd;
  text-decoration: none;
}
.contacts a:hover, .shop-contacts a:hover {
  color: #fff;
}
.contact-form input, .contact-form textarea,
.shop-contacts form input, .shop-contacts form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  margin-bottom: 10px;
}
.contact-form button, .shop-contacts form button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .2s ease;
}
.contact-form button:hover, .shop-contacts form button:hover {
  filter: brightness(.9);
}

/* === Footer (Bresta Group Dark Edition) === */
.site-footer {
  background: #0f172a;
  color: #f1f5f9;
  border-top: 1px solid #1e293b;
  padding: 32px 0;
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: #60a5fa;
}

/* Меню у футері */
.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 0;
  padding: 0;
}
.footer-menu a {
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
}
.footer-menu a:hover {
  color: #93c5fd;
}
.site-footer p {
  margin: 8px 0 0;
  color: #94a3b8;
}
/* === Hero text styling (білий текст + тінь) === */
.hero h1,
.bresta-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.hero p,
.bresta-hero p {
  color: #e2e8f0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}


/* === WooCommerce — оптимізація для ПК (Shop + Single Product) === */

/* === Сторінка магазину === */
@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px;
  }

  .woocommerce ul.products li.product {
    padding: 20px;
    border-radius: 14px;
    max-width: 320px;
    margin: 0 auto;
  }

  .woocommerce ul.products li.product img {
    max-height: 240px;
    object-fit: contain;
    margin-bottom: 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 16px;
    margin-top: 4px;
  }

  .woocommerce ul.products li.product .button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* === Сторінка одного товару === */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.single-product div.product .woocommerce-product-gallery {
  max-width: 500px;
}

.single-product div.product .woocommerce-product-gallery img {
  border-radius: 10px;
  max-height: 400px;
  object-fit: contain;
}

.single-product div.product .summary {
  max-width: 480px;
}

.single-product div.product .summary h1.product_title {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.single-product div.product .summary .price {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

.single-product div.product .summary .cart button.single_add_to_cart_button {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.3s ease;
}
.single-product div.product .summary .cart button.single_add_to_cart_button:hover {
  background: var(--primary-light);
}

/* ======================================================
   FIX: Компактна сторінка товару (Single Product)
   Bresta Group — 2025
   ====================================================== */

/* === ПК та ноутбуки === */
@media (min-width: 1024px) {
  .single-product div.product {
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: start;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
  }

  .single-product div.product .woocommerce-product-gallery {
    max-width: 380px;
  }

  .single-product div.product .woocommerce-product-gallery img {
    max-height: 320px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
  }

  .single-product div.product .summary {
    max-width: 460px;
    padding-top: 10px;
  }

  .single-product div.product .summary h1.product_title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1e293b;
  }

  .single-product div.product .summary .price {
    font-size: 20px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .single-product div.product .summary .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
  }

  .single-product div.product .summary .cart {
    margin-top: 6px;
  }

  .single-product div.product .summary .cart button.single_add_to_cart_button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .single-product div.product .summary .cart button.single_add_to_cart_button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
  }
}

/* === Телефони === */
@media (max-width: 767px) {
  .single-product div.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    margin: 20px auto;
    max-width: 100%;
    text-align: center;
  }

  .single-product div.product .woocommerce-product-gallery {
    width: 100%;
    max-width: 260px;
    margin-bottom: 10px;
  }

  .single-product div.product .woocommerce-product-gallery img {
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
  }

  .single-product div.product .summary h1.product_title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .single-product div.product .summary .price {
    font-size: 16px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .single-product div.product .summary .woocommerce-product-details__short-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
  }

  .single-product div.product .summary .cart {
    margin-top: 10px;
    width: 100%;
  }

  .single-product div.product .summary .cart button.single_add_to_cart_button {
    width: 100%;
    background: #2563eb;
    color: #fff;
    padding: 10px 0;
    font-size: 15px;
    border: none;
    border-radius: 8px;
  }

  .single-product div.product .summary .cart button.single_add_to_cart_button:hover {
    background: #3b82f6;
  }
}

/* ======================================================
   FIX: Вирівнювання карточок товарів у магазині
   Bresta Group — 2025
   ====================================================== */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 24px !important;
  justify-content: center;
  padding: 0 20px;
}

/* Кожна карточка товару */
.woocommerce ul.products li.product {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 340px;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

/* Фото */
.woocommerce ul.products li.product img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Назва */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  min-height: 40px; /* вирівнює назви */
}

/* Ціна */
.woocommerce ul.products li.product .price {
  color: #2563eb;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

/* Кнопка */
.woocommerce ul.products li.product .button {
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: auto; /* щоб завжди внизу */
}

.woocommerce ul.products li.product .button:hover {
  background: #3b82f6;
}

/* --- Адаптація для мобільних --- */
@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px;
  }

  .woocommerce ul.products li.product {
    min-height: 300px;
    padding: 10px;
  }

  .woocommerce ul.products li.product img {
    max-height: 120px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 13px;
  }

  .woocommerce ul.products li.product .button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ======================================================
   FIX: Вирівнювання та масштабування карточок у магазині
   Bresta Group — 2025
   ====================================================== */

/* --- Сітка для Shop --- */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 22px !important;
  justify-items: center;
  padding: 0 20px;
  margin: 40px auto;
}

/* --- Картка товару --- */
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-align: center;
  padding: 14px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 330px;
  max-width: 280px;
  width: 100%;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* --- Зображення --- */
.woocommerce ul.products li.product img {
  width: auto;
  height: 150px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* --- Назва товару --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 38px;
  margin-bottom: 6px;
  color: #1e293b;
}

/* --- Ціна --- */
.woocommerce ul.products li.product .price {
  color: #2563eb;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

/* --- Кнопка --- */
.woocommerce ul.products li.product .button {
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 180px;
}
.woocommerce ul.products li.product .button:hover {
  background: #3b82f6;
}

/* --- Висота та центр контенту --- */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  flex-shrink: 0;
}
.woocommerce ul.products li.product > * {
  margin-top: auto;
}

/* --- Мобільна адаптація --- */
@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px;
  }

  .woocommerce ul.products li.product {
    max-width: 180px;
    min-height: 280px;
    padding: 10px;
  }

  .woocommerce ul.products li.product img {
    height: 120px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    min-height: 34px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 13px;
  }

  .woocommerce ul.products li.product .button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* === Bresta Group — Категорії магазину (візуальне оформлення) === */
.shop-categories {
  background: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.shop-categories h2 {
  text-align: center;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37,99,235,0.15);
}

.cat-icon svg {
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon svg {
  transform: scale(1.08);
}

.cat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.cat-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* === Mobile адаптив === */
@media (max-width: 640px) {
  .shop-categories {
    padding: 60px 16px;
  }
  .cat-card {
    padding: 28px 16px;
  }
  .cat-card h3 {
    font-size: 16px;
  }
}

