/* ===== Sistem warna: merah anggur (burgundy) + krem rajutan + mawar pucat ===== */
:root {
    --wine-950: #3a0f1c;
    --wine-800: #5c1a2e;
    --wine-600: #8a2b44;
    --rose-300: #e8b4bf;
    --rose-100: #f8e6ea;
    --cream: #fbf6ef;
    --cream-200: #f1e7d8;
    --gold: #c99a3b;
    --text: #2e2023;
    --muted: #7a6a6c;
    --line: #ebddd8;
    --star: #ffa41c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

.site-title, .product-title, .reviews-title, .footer-title {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

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

/* ===== Header ===== */
.site-header {
    background-color: var(--wine-800);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 4px, transparent 4px 8px),
                      repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 4px, transparent 4px 8px);
    border-bottom: 3px double var(--gold);
}
.site-title {
    font-size: 1.5rem;
    color: var(--cream);
    letter-spacing: .02em;
}

/* ===== Kartu produk ===== */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(92, 26, 46, .08);
}

/* ===== Galeri (tanpa JavaScript) ===== */
.gallery input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 40%, #fff 0 30%, var(--rose-100) 100%);
    border-radius: 14px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}
.slide img { width: 100%; height: 100%; object-fit: contain; }

#g1:checked ~ .gallery-main .slide-1,
#g2:checked ~ .gallery-main .slide-2,
#g3:checked ~ .gallery-main .slide-3,
#g4:checked ~ .gallery-main .slide-4 { opacity: 1; z-index: 1; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.thumb {
    cursor: pointer;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--line);
    transition: border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--rose-300); }

#g1:checked ~ .gallery-thumbs .thumb-1,
#g2:checked ~ .gallery-thumbs .thumb-2,
#g3:checked ~ .gallery-thumbs .thumb-3,
#g4:checked ~ .gallery-thumbs .thumb-4 { border-color: var(--wine-600); box-shadow: 0 0 0 3px var(--rose-100); }

.gallery input:focus-visible ~ .gallery-thumbs { outline: 2px dashed var(--wine-600); outline-offset: 4px; }

/* ===== Info produk ===== */
.product-title {
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--wine-950);
    margin-bottom: 18px;
}
.about-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--gold);
    margin-bottom: 12px;
}
.features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features li {
    position: relative;
    font-size: .95rem;
    padding: 0 0 14px 30px;
    margin-bottom: 14px;
    border-bottom: 1px dotted var(--rose-300);
}
.features li:last-child { border-bottom: 0; margin-bottom: 0; }
.features li::before {
    content: "❤";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wine-600);
    font-size: .95rem;
}
.features strong { display: block; color: var(--wine-800); font-weight: 700; }

.keywords-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--rose-100);
    border-radius: 12px;
    font-size: .92rem;
    color: var(--wine-950);
}

/* ===== CTA ===== */
.cta-section { padding: 44px 0 36px; }
.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 460px;
    padding: 22px 32px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--wine-600), var(--wine-800));
    border: 2px solid var(--gold);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(92, 26, 46, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(92, 26, 46, .38);
}

/* ===== Ulasan (gaya Amazon) ===== */
.reviews {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 20px;
}
.reviews-title {
    font-size: 1.7rem;
    color: var(--wine-950);
    margin-bottom: 6px;
}
.review {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; padding-bottom: 4px; }

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
    background: var(--rose-100);
}
.review-name { font-size: .93rem; font-weight: 600; margin: 0; }
.review-stars { color: var(--star); font-size: 1rem; letter-spacing: 1px; margin: 0; line-height: 1.3; }
.review-heading { font-weight: 700; font-size: 1rem; color: var(--wine-950); margin: 2px 0 0; }

.review-attrs { font-size: .82rem; color: var(--muted); margin: 8px 0 6px; }
.verified { color: var(--wine-600); font-weight: 700; }

.review-text { font-size: .95rem; margin: 0; }

.review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.review-photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 48px;
    background: var(--wine-950);
    color: #dbc7cb;
    border-top: 3px double var(--gold);
}
.footer-title { font-size: 1.3rem; color: var(--cream); margin-bottom: 14px; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.footer-links a { color: var(--rose-300); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: .82rem; opacity: .7; }

/* ===== Responsif (mobile-first) ===== */
@media (min-width: 640px) {
    .footer-links { flex-direction: row; justify-content: center; gap: 28px; }
    .review-photos img { width: 120px; height: 120px; }
}

@media (min-width: 768px) {
    .product-card { padding: 34px; }
    .product-title { font-size: 1.7rem; }
    .site-title { font-size: 1.8rem; }
    .reviews { padding: 32px; }
    .review-head, .review-attrs, .review-text, .review-photos { max-width: 820px; }
}