/*
Theme Name: Final Fish
Theme URI: https://myfish.local
Author: Zoo38
Description: Final working theme for Water Lettuce store with correct pages
Version: 1.0
*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('images/grnd.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-align: center;
}

.nav {
  position: relative;
  z-index: 1100; /* выше, чем бар */
}
.nav img {
  margin: 0 10px;
  width: 48px;
  vertical-align: middle;
}

.title {
  margin-top: 20px;
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-shadow:
    -1.2px -1.2px 0 green,
    1.2px -1.2px 0 green,
    -1.2px 1.2px 0 green,
    1.2px 1.2px 0 green;
}

.subtitle {
  font-size: 18px;
  margin: 10px auto 30px auto;
  width: 80%;
  max-width: 600px;
  line-height: 1.6;
  color: white;
  text-align: center;
  text-shadow:
    0 0 5px #000,
    0 0 10px #000,
    0 0 15px #000;
}

.center-img {
  margin: 0 auto;
}
.center-img img {
  width: 590px;
  max-width: 90%;
}

.buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  width: 180px;
  height: 130px;
  /* убрали старый фон, чтобы работал HTML background-image */
  background-size: cover;
  background-position: center;
  text-align: center;
  cursor: pointer;
  padding-top: 10px;
  box-sizing: border-box;
}
.btn .line1 {
  color: yellow;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}
.btn .line2 {
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}
.btn .line3 {
  color: white;
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 4px;
}
.btn .line4 {
  color: white;
  font-size: 21px;
  font-weight: bold;
}

.policies-grid {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.policy-block {
  width: 120px;
  text-align: center;
}

.policy-block img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.policy-block div {
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.5;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 30px 10px;
}

.review {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 18px 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.review-info {
  position: absolute;
  top: 12px;
  left: 12px;
  text-align: left;
}
.review-info strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.review-info .stars {
  color: gold;
  font-size: 15px;
}

.review-footer {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.75;
}

.review-content {
  margin-top: 48px;
  text-align: left;
}

.review-text {
  overflow: hidden;
  max-height: 3.2em;
  line-height: 1.6em;
  transition: max-height 0.3s ease;
}
.review-text.expanded {
  max-height: none;
}

.read-more {
  color: #aaffff;
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
  display: inline-block;
}

.review-photos {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.review-photo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
}

.modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-bg img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px white;
  cursor: zoom-out;
}

/* Всплывающее меню */
.hover-options {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.hover-block {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 160px;
  text-align: center;
  line-height: 1.4em;
}

.hover-block .buy-label {
  font-weight: bold;
  color: #ffcc00;
}

.hover-block .site {
  font-size: 14px;
  margin-top: 2px;
}

.hover-block .price {
  font-size: 14px;
  margin-top: 2px;
}

.hover-block.ebay {
  background: rgba(0, 0, 0, 0.85);
}

.hover-block.zoo {
  background: rgba(0, 100, 0, 0.85);
  border: 1px solid #00ff99;
}
.hover-block.zoo .price::before {
  content: "💰 ";
}

.btn:hover .hover-options {
  opacity: 1;
}

.btn:hover .line1,
.btn:hover .line2,
.btn:hover .line3,
.btn:hover .line4 {
  opacity: 0;
}

/* === Слайдер Water Lettuce === */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 450px; /* ширина как у старой center-img */
  margin: 20px auto;
  overflow: hidden;

  /* фиксируем высоту */
  aspect-ratio: 4 / 3;
}

.slider-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* 🟢 было 1s → стало 2s */
  border-radius: 12px;
}

.slider-container .slide.active {
  opacity: 1;
}

.slider-container {
  position: relative;
  /* остальное не трогаем */
}

.slider-desc-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 2;
  transition: background 0.3s ease;
  font-weight: 500;
}

.slider-desc-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  gap: 30px;
  background: rgba(0, 0, 0, 0.6); /* тёмная подложка */
  color: #fff; /* белый текст */
  margin: 30px auto;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section.alt {
  flex-direction: row-reverse;
}

.section .text {
  flex: 1;
}

.section .image {
  flex: 1;
  text-align: center;
}

.section .image img {
  max-width: 100%;
  border-radius: 8px;
}

.section .caption {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ddd; /* светлая подпись */
}

@media (max-width: 768px) {
  .section {
    flex-direction: column;
  }
  .section.alt {
    flex-direction: column;
  }
}
