/* ===== Sistem warna: hijau sage + arang (charcoal) + pasir + kuning amber ===== */
:root {
    --ink-950: #1c2420;
    --ink-800: #2b3a33;
    --sage-700: #4b6b5a;
    --sage-500: #7a9c88;
    --sage-200: #d4e2d9;
    --sage-100: #ebf2ed;
    --sand: #f6f2ea;
    --amber-500: #f2a900;
    --amber-600: #d18f00;
    --amber-100: #fdf0cc;
    --text: #232b27;
    --muted: #68736d;
    --line: #e3e7e2;
    --star: #ffa41c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--sand);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
}

.site-title, .product-title, .about-title, .reviews-title, .footer-title, .cta-button {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

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

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

/* ===== Kartu produk ===== */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(28, 36, 32, .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(var(--sage-100) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, var(--sage-100) 1px, transparent 1px) 0 0 / 28px 100%,
        #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s 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: 8px;
    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(--sage-500); }

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

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

/* ===== Info produk ===== */
.product-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink-950);
    margin-bottom: 18px;
}
.about-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-700);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--amber-500);
    display: inline-block;
    margin-bottom: 16px;
}
.features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features li {
    position: relative;
    font-size: .97rem;
    padding: 0 0 14px 32px;
    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: .3em;
    width: 18px;
    height: 18px;
    border: 3px solid var(--sage-500);
    border-top-color: transparent;
    border-radius: 50%;
    transform: rotate(-20deg);
}
.features strong { display: block; color: var(--ink-800); font-weight: 700; }

.keywords-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--sage-100);
    border-left: 4px solid var(--sage-500);
    border-radius: 0 10px 10px 0;
    font-size: .94rem;
    color: var(--ink-950);
}

/* ===== CTA ===== */
.cta-section { padding: 44px 0 36px; }
.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 460px;
    padding: 22px 32px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink-950);
    background: var(--amber-500);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--ink-950);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cta-button:hover,
.cta-button:focus {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--ink-950);
}

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

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

.review-text { font-size: .98rem; 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: 8px;
    border: 1px solid var(--line);
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 48px;
    background: var(--ink-950);
    color: #c3cdc7;
    border-top: 4px solid var(--amber-500);
}
.footer-title { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.footer-links a { color: #f7cf6b; text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: .84rem; 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.75rem; }
    .site-title { font-size: 1.5rem; }
    .reviews { padding: 32px; }
    .review-head, .review-attrs, .review-text, .review-photos { max-width: 820px; }
}