:root{
  --plum: #522B5B;
  --plum-dark: #331A3A;
  --lime: #8FBF3F;
  --lime-dark: #6E9A2C;
  --pale: #F3EEF5;
  --ink: #241C27;
  --line: #E1D6E4;
  --bg: #FAF8FB;
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:'Inter', Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
}

/* Header */
.site-header{
  background:var(--plum-dark);
  padding:18px 16px;
  text-align:center;
}
.site-title{
  color:#F3EEF5;
  font-size:1.15rem;
  font-weight:700;
  margin:0;
  letter-spacing:0.02em;
}

/* Product section */
.product-section{
  max-width:1120px;
  margin:0 auto;
  padding:24px 16px 8px;
}
.product-wrap{
  display:flex;
  flex-direction:column;
  gap:28px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 4px 16px rgba(82,43,91,0.06);
}
@media (min-width:900px){
  .product-wrap{
    flex-direction:row;
    padding:32px;
  }
}

/* Gallery */
.gallery-wrap{
  flex:0 0 auto;
  width:100%;
  position:relative;
}
@media (min-width:900px){
  .gallery-wrap{width:42%;}
}
.gallery-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.gallery-main{
  width:100%;
  aspect-ratio:1/1;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--pale);
}
.slide{
  display:none;
  width:100%;
  height:100%;
  object-fit:contain;
}
#g1:checked ~ .gallery-main .s1,
#g2:checked ~ .gallery-main .s2,
#g3:checked ~ .gallery-main .s3,
#g4:checked ~ .gallery-main .s4{
  display:block;
}
.gallery-thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
  padding-bottom:4px;
}
.thumb{
  flex:0 0 68px;
  width:68px;
  height:68px;
  border:2px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  display:block;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#g1:checked ~ .gallery-thumbs .t1,
#g2:checked ~ .gallery-thumbs .t2,
#g3:checked ~ .gallery-thumbs .t3,
#g4:checked ~ .gallery-thumbs .t4{
  border-color:var(--lime);
}

/* Product info */
.product-info{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.product-name{
  font-size:1.25rem;
  font-weight:700;
  margin:0 0 16px;
  color:var(--plum-dark);
  line-height:1.4;
}
.description-heading{
  font-size:1rem;
  font-weight:700;
  margin:0 0 10px;
  color:var(--lime-dark);
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.description-list{
  margin:0 0 20px;
  padding-left:0;
  list-style:none;
}
.description-list li{
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:0.95rem;
}
.description-list li:last-child{
  border-bottom:none;
}

/* CTA */
.cta-button{
  display:block;
  text-align:center;
  background:var(--plum);
  color:#fff;
  font-weight:700;
  font-size:1.05rem;
  padding:16px 24px;
  border-radius:10px;
  text-decoration:none;
  margin-top:auto;
  transition:background 0.2s ease;
}
.cta-button:hover{
  background:var(--plum-dark);
}
.cta-button-secondary{
  max-width:340px;
  margin:32px auto 0;
}

/* Reviews */
.reviews-section{
  max-width:900px;
  margin:0 auto;
  padding:40px 16px 60px;
}
.reviews-heading{
  font-size:1.3rem;
  font-weight:700;
  margin:0 0 24px;
  color:var(--plum-dark);
  border-bottom:2px solid var(--line);
  padding-bottom:12px;
}
.review{
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.review:first-of-type{
  padding-top:0;
}
.review-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.review-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
  border:1px solid var(--line);
}
.review-head-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.review-author{
  font-weight:700;
  margin:0;
  font-size:0.95rem;
}
.review-author a{
  color:var(--plum-dark);
  text-decoration:none;
}
.review-author a:hover{
  text-decoration:underline;
}
.review-stars{
  color:var(--lime-dark);
  margin:0;
  font-size:0.95rem;
  letter-spacing:0.05em;
}
.review-title{
  font-size:1rem;
  font-weight:700;
  margin:2px 0 0;
  color:var(--ink);
}
.review-meta{
  font-size:0.8rem;
  color:#8A7C8F;
  margin:10px 0 12px;
}
.review-text{
  font-size:0.93rem;
  margin:0 0 12px;
  color:var(--ink);
}
.review-photos{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.review-photo{
  width:130px;
  height:130px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid var(--line);
}

/* Footer */
.site-footer{
  background:var(--plum-dark);
  color:#F3EEF5;
  text-align:center;
  padding:28px 16px;
}
.footer-title{
  font-weight:700;
  margin:0 0 12px;
}
.footer-links{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
  margin:0;
  padding:0;
}
.footer-links a{
  color:#F3EEF5;
  font-size:0.85rem;
  text-decoration:underline;
}
.footer-links a:hover{
  color:#fff;
}