/* ========================================================
   product.css — styles for ЛесМаркет43 product category pages
   Used together with city.css
   ======================================================== */

/* ===== PRODUCT HERO ACCENT ===== */
.product-hero .city-hero-tag {
  background: rgba(232,160,32,0.15);
  color: var(--accent);
  border-color: rgba(232,160,32,0.3);
}

/* ===== GALLERY ===== */
.product-gallery {
  background: #F8F4EC;
  padding: 0 5% 50px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 10px;
}
.gallery-main {
  grid-row: 1 / 3;
  border-radius: 16px;
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumb {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.gallery-thumb:hover img { transform: scale(1.05); }

/* ===== CHARACTERISTICS TABLE ===== */
.chars-section { background: var(--white); }
.chars-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.chars-table {
  width: 100%; border-collapse: collapse;
  box-shadow: 0 2px 14px rgba(45,80,22,0.06); border-radius: 14px; overflow: hidden;
}
.chars-table tr:nth-child(even) { background: var(--cream); }
.chars-table tr:hover { background: rgba(122,182,72,0.06); }
.chars-table td {
  padding: 13px 20px; border-bottom: 1px solid var(--light-gray);
  font-size: 0.92rem; line-height: 1.5; vertical-align: middle;
}
.chars-table tr:last-child td { border-bottom: none; }
.chars-table td:first-child {
  color: var(--gray); font-weight: 600; width: 48%; background: rgba(245,236,215,0.4);
}
.chars-table td:last-child { color: var(--charcoal); font-weight: 700; }
.chars-aside h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 700; color: var(--forest); margin-bottom: 16px;
}
.chars-aside p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.price-box {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  border-radius: 14px; padding: 24px; color: var(--white); margin-bottom: 20px;
}
.price-box .label { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.price-box .amount { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; }
.price-box .per { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ===== SIZES ===== */
.sizes-section { background: var(--sand); }
.sizes-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.size-badge {
  background: var(--white); border: 2px solid var(--leaf); color: var(--forest);
  padding: 9px 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  font-family: 'Nunito', sans-serif; transition: all 0.2s; cursor: default;
  box-shadow: 0 1px 6px rgba(45,80,22,0.07);
}
.size-badge:hover { background: var(--leaf); color: var(--white); transform: translateY(-1px); }
.sizes-note { font-size: 0.85rem; color: var(--gray); margin-top: 14px; }

/* ===== USAGE ===== */
.usage-section { background: var(--white); }
.usage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px;
}
.usage-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 16px; background: var(--cream); border-radius: 12px;
  border-left: 3px solid var(--leaf);
}
.usage-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(122,182,72,0.15); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.usage-item strong { font-size: 0.9rem; font-weight: 700; color: var(--charcoal); display: block; line-height: 1.4; }
.usage-item span { font-size: 0.82rem; color: var(--gray); line-height: 1.45; }

/* ===== ADVANTAGES ===== */
.advantages-section { background: #F8F4EC; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: var(--white); border-radius: 16px; padding: 26px;
  box-shadow: 0 2px 12px rgba(45,80,22,0.07); border-top: 3px solid var(--leaf);
  transition: transform 0.25s, box-shadow 0.25s;
}
.adv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(45,80,22,0.13); }
.adv-card-icon { width: 44px; height: 44px; background: rgba(122,182,72,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.adv-card h4 { font-size: 0.97rem; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.adv-card p { font-size: 0.86rem; color: var(--gray); line-height: 1.6; }

/* ===== SEO TEXT ===== */
.product-seo { background: var(--white); }
.seo-wrap { max-width: 860px; margin: 0 auto; }
.product-seo h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700;
  color: var(--forest); margin: 48px 0 18px; line-height: 1.3;
}
.product-seo h2:first-child { margin-top: 0; }
.product-seo p { color: #444; font-size: 0.97rem; line-height: 1.78; margin-bottom: 14px; }
.product-seo ul { margin: 10px 0 16px 22px; }
.product-seo ul li { color: #444; font-size: 0.97rem; line-height: 1.65; margin-bottom: 7px; }

/* ===== RELATED CATEGORIES ===== */
.related-cats {
  background: var(--white); padding: 32px 5%;
  border-top: 1px solid var(--light-gray);
}
.related-cats h3 {
  font-size: 0.8rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}
.related-cats-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-cats-links a {
  background: var(--cream); border: 1.5px solid var(--light-gray); color: var(--forest);
  padding: 8px 18px; border-radius: 20px; text-decoration: none;
  font-size: 0.86rem; font-weight: 600; transition: all 0.2s;
}
.related-cats-links a:hover { border-color: var(--leaf); background: rgba(122,182,72,0.08); color: var(--moss); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .chars-wrap { grid-template-columns: 1fr; gap: 32px; }
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery-main { grid-row: 1 / 2; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 250px 160px 160px; }
  .gallery-main { grid-row: auto; }
}
@media (max-width: 600px) {
  .usage-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-rows: 220px 150px; }
}
