/* theme.css — base + tipografi + utilities */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--c-text); background: var(--c-bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { color: var(--c-dark); margin: 0 0 .6em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.main { min-height: 60vh; padding: 24px 0 60px; }
.page-title { margin: 16px 0 24px; }
.section-title { font-size: 1.5rem; margin: 24px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); display: inline-block; }
.empty { padding: 60px 20px; text-align: center; color: var(--c-muted); background: var(--c-bg-soft); border-radius: var(--radius); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius); background: #f3f4f6; color: var(--c-text); font-weight: 600; font-size: 14px; transition: all .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Forms */
input, select, textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,90,0,.12); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.chk input { width: auto; }
label.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Flash */
.flash { padding: 12px 0; font-weight: 600; }
.flash-success { background: #ecfdf5; color: #047857; }
.flash-error { background: #fef2f2; color: #b91c1c; }
.flash-info { background: #eff6ff; color: #1d4ed8; }
.flash-warning { background: #fffbeb; color: #b45309; }

/* Announcement */
.announcement { background: var(--c-dark); color: #fff; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 500; }

/* Stars */
.stars { position: relative; display: inline-block; color: #e5e7eb; font-size: 14px; letter-spacing: 1px; }
.stars::before { content: '★★★★★'; position: absolute; top: 0; left: 0; width: var(--r, 0%); overflow: hidden; color: #f5b400; }

/* Price */
.price-old { color: var(--c-muted); text-decoration: line-through; font-size: .9em; margin-right: 6px; }
.price-now { color: var(--c-primary); font-weight: 800; font-size: 1.2em; }

/* Badge */
.badge { position: absolute; top: 8px; left: 8px; background: var(--c-primary); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; z-index: 2; }
.badge-sale { background: #ef4444; }

/* Icon */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }
svg.icon { fill: currentColor; }

/* Lazy */
img.lazy { background: #f3f4f6; min-height: 60px; transition: opacity .3s; opacity: 0; }
img.lazy.loaded { opacity: 1; }
