/*
Theme Name: FrostPine
Theme URI: https://frostpine.by
Author: FrostPine
Description: Минималистичная тема питомника FrostPine — каталог растений с CPT "Растения".
Version: 1.0
Text Domain: frostpine
*/
:root{
  --bg: #ffffff;
  --panel: #f7f3ed;
  --green: #2E8B57;
  --accent: #B22222;
  --muted: #6b6b6b;
  --card: #ffffff;
}
html,body{margin:0;padding:0;font-family:Montserrat,Arial,Helvetica,sans-serif;background:var(--bg);color:#0b4027;-webkit-font-smoothing:antialiased}
a{color:var(--green);text-decoration:none}
.site-header {
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-logo {
  max-height: 120px;
  margin-bottom: 15px;
}

.site-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.site-description {
  font-size: 1.2em;
  color: #f0f0f0;
}



/* Если шапка содержит overlay, убедись, что overlay полупрозрачный */
/* .site-header .header-overlay {
  background: rgba(0,0,0,0.35); /* затемнение, чтобы текст белый был читабелен */}
.header-inner{max-width:1200px;margin:0 auto;padding:18px;display:flex;align-items:center;gap:18px;width:100%}
.site-branding img{height:72px;display:block;margin-right:12px}
.site-title{font-weight:800;font-size:28px;margin:0;color:#fff}
.site-tagline{color:rgba(255,255,255,0.9);margin:0;font-size:14px}
.main-nav{margin-left:auto}
.container{max-width:1200px;margin:24px auto;padding:0 18px}
.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.plant-card{background:var(--card);padding:12px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,0.06);display:flex;flex-direction:column;}
.plant-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
}

.plant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Адаптивная высота миниатюр --- */
@media (max-width: 768px) {
  .plant-thumb {
    height: 200px; /* увеличить миниатюры на телефонах */
  }
}

.plant-title{font-size:18px;margin:6px 0;color:#0b4027}
.plant-meta{font-size:13px;color:var(--muted);}
.price{font-weight:700;color:var(--accent);margin-top:8px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.gallery-grid img{width:100%;height:260px;object-fit:cover;border-radius:8px;cursor:zoom-in}
footer.site-footer{background:#fff;padding:18px;border-top:1px solid #eee;color:var(--muted);display:flex;justify-content:space-between;align-items:center}
@media(max-width:800px){.header-inner{padding:12px}.site-title{font-size:20px}.plant-thumb{height:140px}.gallery-grid img{height:160px}}
.custom-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 10px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 15px; /* расстояние между логотипом и текстом */
}

.custom-logo {
  max-height: 80px;
  width: auto;
}

.site-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  margin: 0;
  font-size: 1.6em;
  font-weight: 700;
}

.site-description {
  margin: 0;
  font-size: 1em;
  color: #555;
}



.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-logo {
  max-height: 140px;
  width: auto;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .site-header {
    height: 400px;
  }
  .custom-logo {
    max-height: 90px;
  }
  .site-title {
    font-size: 2em;
  }
}

@media (max-width: 600px) {
.site-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 350px; /* фиксированная высота, чтобы не растягивалась */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

  .custom-logo {
    max-height: 70px;
  }
  .site-title {
    font-size: 1.6em;
  }
  .site-description {
    font-size: 1em;
  }
}

/* --- Исправление логотипа для iPhone и iPad --- */
@supports (-webkit-touch-callout: none) {
  .custom-logo {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
  }
  @media (min-width: 768px) {
    .custom-logo {
      max-height: 90px !important;
    }
  }
}

/* Фикс для Telegram WebView на iPhone */
img.site-logo {
  max-height: 80px !important;
  height: auto !important;
  width: auto !important;
}

@supports (-webkit-touch-callout: none) {
  img.site-logo {
    max-height: 70px !important;
  }
}
