:root {
    --bg-main: #f9fafb;
    --surface: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --primary: #f59e0b; /* Yellow */
    --primary-hover: #d97706;
    --border-color: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-main); color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--surface); padding: 20px 0; text-align: center; border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.site-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }

/* Product Block */
.product-block { display: flex; gap: 40px; margin-top: 40px; background: var(--surface); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.gallery { width: 50%; }
.product-info { width: 50%; }

/* Gallery CSS Logic */
.gallery input { display: none; }
.gallery-main { position: relative; width: 100%; aspect-ratio: 1/1; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #fff; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.slide img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* FIX: Sibling selector targets .gallery-main and .gallery-thumbs directly */
#img1:checked ~ .gallery-main #slide1,
#img2:checked ~ .gallery-main #slide2,
#img3:checked ~ .gallery-main #slide3,
#img4:checked ~ .gallery-main #slide4 { opacity: 1; pointer-events: auto; z-index: 5; }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; }
.gallery-thumbs label { flex-shrink: 0; width: 80px; height: 80px; border: 2px solid transparent; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: 0.2s; background: #fff; display: flex; align-items: center; justify-content: center; }
.gallery-thumbs label img { max-width: 80%; max-height: 80%; object-fit: contain; }
.gallery-thumbs label:hover { opacity: 1; border-color: #d1d5db; }

#img1:checked ~ .gallery-thumbs label[for="img1"],
#img2:checked ~ .gallery-thumbs label[for="img2"],
#img3:checked ~ .gallery-thumbs label[for="img3"],
#img4:checked ~ .gallery-thumbs label[for="img4"] { border-color: var(--primary); opacity: 1; }

/* Nav Buttons */
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(255,255,255,0.9); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: 0.2s; color: var(--text-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.gallery-main:hover .nav { opacity: 1; }
.nav:hover { background: var(--bg-main); color: var(--primary); }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* Product Info */
.product-title { font-size: 1.8rem; margin-bottom: 20px; line-height: 1.2; }
.product-desc h3 { margin-bottom: 10px; font-size: 1.2rem; }
.product-desc ul { padding-left: 20px; margin-bottom: 20px; }
.product-desc li { margin-bottom: 10px; color: var(--text-muted); }
.seo-text { font-size: 0.9rem; font-style: italic; color: #6b7280; background: #f3f4f6; padding: 15px; border-radius: 8px; }

/* CTA */
.cta-wrapper { text-align: center; margin: 40px 0; }
.btn-cta { display: inline-block; padding: 18px 50px; font-size: 1.25rem; font-weight: bold; color: #fff; background: var(--primary); border-radius: 50px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
.btn-cta:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* Reviews */
.reviews { background: var(--surface); padding: 40px; border-radius: 12px; margin-bottom: 40px; border: 1px solid var(--border-color); }
.reviews-title { font-size: 1.5rem; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--bg-main); }
.review-card { display: flex; gap: 20px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.review-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #eee; }
.review-content h4 { font-size: 1.1rem; margin-bottom: 5px; }
.stars { color: var(--primary); margin-bottom: 5px; font-size: 1rem; }
.stars strong { color: var(--text-dark); margin-left: 10px; font-size: 1.1rem; }
.meta { font-size: 0.85rem; color: #9ca3af; margin-bottom: 15px; }
.review-photos { display: flex; gap: 10px; margin-top: 15px; }
.review-photos img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }

/* Footer */
footer { background: #111827; color: #9ca3af; padding: 40px 0; text-align: center; }
footer h3 { color: #fff; margin-bottom: 20px; }
.footer-links a { color: #9ca3af; text-decoration: none; margin: 0 15px; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media(max-width: 768px) {
    .product-block { flex-direction: column; padding: 20px; }
    .gallery, .product-info { width: 100%; }
    .nav { opacity: 0.8; width: 32px; height: 32px; font-size: 0.9rem; }
    .review-card { flex-direction: column; }
}