/* ==========================================================================
   Double love Blood Pressure Monitor — landing page styles
   Green, minimalist, light background, mobile-first.
   ========================================================================== */

:root {
  --color-bg: #f3f9f4;
  --color-surface: #ffffff;
  --color-green-900: #1b4332;
  --color-green-700: #2d6a4f;
  --color-green-600: #36805d;
  --color-green-500: #40916c;
  --color-green-100: #d8f0e2;
  --color-text: #1f2a24;
  --color-muted: #5b6b62;
  --color-border: #dbe9e0;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-green-700);
}

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

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 16px;
}

.site-name {
  margin: 0 auto;
  max-width: var(--max-width);
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-green-900);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------- */
/* Layout shell                                                           */
/* ---------------------------------------------------------------------- */

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .product-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 32px;
    gap: 40px;
  }
}

/* ---------------------------------------------------------------------- */
/* Gallery (radio + CSS, no JavaScript)                                   */
/* ---------------------------------------------------------------------- */

.product-gallery {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 860px) {
  .product-gallery {
    width: 44%;
    max-width: 420px;
  }
}

.gallery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-green-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#gallery-1:checked ~ .gallery-main .slide-1,
#gallery-2:checked ~ .gallery-main .slide-2,
#gallery-3:checked ~ .gallery-main .slide-3,
#gallery-4:checked ~ .gallery-main .slide-4 {
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
}

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

#gallery-1:checked ~ .gallery-thumbs .thumb-1,
#gallery-2:checked ~ .gallery-thumbs .thumb-2,
#gallery-3:checked ~ .gallery-thumbs .thumb-3,
#gallery-4:checked ~ .gallery-thumbs .thumb-4 {
  border-color: var(--color-green-600);
}

.thumb:focus-within,
.gallery-radio:focus-visible ~ .gallery-thumbs label {
  outline: 2px solid var(--color-green-600);
}

/* ---------------------------------------------------------------------- */
/* Product info                                                           */
/* ---------------------------------------------------------------------- */

.product-info {
  flex: 1 1 auto;
  min-width: 0;
}

.product-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--color-green-900);
  font-weight: 700;
}

.section-subtitle {
  margin: 18px 0 10px;
  font-size: 1.05rem;
  color: var(--color-green-700);
  font-weight: 700;
}

.product-description {
  margin: 0;
  padding-left: 1.1rem;
}

.product-description li {
  margin-bottom: 14px;
  color: var(--color-text);
}

.product-description li strong {
  color: var(--color-green-700);
}

/* ---------------------------------------------------------------------- */
/* CTA                                                                    */
/* ---------------------------------------------------------------------- */

.cta-section {
  display: flex;
  justify-content: center;
  padding: 36px 16px;
}

.cta-button {
  display: inline-block;
  background: var(--color-green-600);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 18px 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(45, 106, 79, 0.28);
  text-align: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta-button:hover {
  background: var(--color-green-700);
}

.cta-button:focus-visible {
  outline: 3px solid var(--color-green-900);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------- */
/* Reviews                                                                */
/* ---------------------------------------------------------------------- */

.reviews-section {
  padding: 8px 16px 48px;
}

.section-title {
  max-width: calc(var(--max-width) - 32px);
  margin: 0 auto 18px;
  font-size: 1.3rem;
  color: var(--color-green-900);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.review {
  max-width: calc(var(--max-width) - 32px);
  margin: 0 auto 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.review:last-child {
  border-bottom: none;
}

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.review-headline {
  min-width: 0;
}

.review-name {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.review-stars {
  margin: 4px 0 0;
  color: var(--color-green-600);
  letter-spacing: 2px;
}

.review-title {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--color-green-900);
}

.review-badge {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.review-body {
  margin: 10px 0 0;
  color: var(--color-text);
}

.review-photo {
  margin-top: 14px;
  width: 140px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--color-green-900);
  color: #eef6f1;
  padding: 28px 16px;
  text-align: center;
}

.footer-site-name {
  margin: 0 0 12px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: #eef6f1;
  text-decoration: underline;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-green-100);
}