/* ===== Sistem warna: biru slate malam + terakota/persik hangat + putih tulang ===== */
:root {
    --slate-950: #14202b;
    --slate-800: #243545;
    --slate-600: #3f5a73;
    --slate-100: #e3eaf0;
    --terra-600: #c4532d;
    --terra-500: #e2693f;
    --terra-100: #fde7dc;
    --bone: #faf8f4;
    --text: #1f2933;
    --muted: #66727e;
    --line: #e7e3da;
    --star: #ffa41c;
}

* { box-sizing: border-box; }

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

.site-title, .product-title, .reviews-title, .footer-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

/* ===== Header ===== */
.site-header {
    background: var(--slate-950);
    border-bottom: 4px solid var(--terra-500);
}
.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}

/* ===== Kartu produk ===== */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(20, 32, 43, .07);
}

/* ===== Galeri (tanpa JavaScript) ===== */
.gallery input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, var(--slate-100), #fff 60%, var(--terra-100));
    border-radius: 18px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s 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: 14px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--line);
    transition: border-color .2s ease, transform .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }

#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(--terra-500); box-shadow: 0 0 0 3px var(--terra-100); }

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

/* ===== Info produk ===== */
.product-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--slate-950);
    margin-bottom: 18px;
}
.about-title {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--terra-600);
    margin-bottom: 12px;
}
.features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features li {
    position: relative;
    font-size: .94rem;
    padding: 0 0 14px 30px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.features li:last-child { border-bottom: 0; margin-bottom: 0; }
.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: var(--terra-500);
    transform: rotate(45deg) scale(.7);
}
.features strong { display: block; color: var(--slate-800); font-weight: 800; }

.keywords-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--slate-100);
    border-radius: 14px;
    font-size: .9rem;
    color: var(--slate-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: 800;
    color: #fff;
    background: var(--terra-500);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 7px 0 var(--terra-600), 0 18px 34px rgba(196, 83, 45, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cta-button:hover,
.cta-button:focus {
    transform: translateY(4px);
    box-shadow: 0 3px 0 var(--terra-600), 0 10px 22px rgba(196, 83, 45, .28);
}

/* ===== Ulasan (gaya Amazon) ===== */
.reviews {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px 20px;
}
.reviews-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-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(--slate-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: 800; font-size: 1rem; color: var(--slate-950); margin: 2px 0 0; }

.review-attrs { font-size: .82rem; color: var(--muted); margin: 8px 0 6px; }
.verified { color: var(--terra-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(--slate-950);
    color: #c5d0da;
    border-top: 4px solid var(--terra-500);
}
.footer-title { font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.footer-links a { color: #f6b79c; 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.9rem; }
    .site-title { font-size: 1.5rem; }
    .reviews { padding: 32px; }
    .review-head, .review-attrs, .review-text, .review-photos { max-width: 820px; }
}