/* ===== Toko Bahan Bangunan — style "Minimalis Showroom" ===== */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #23231f;
  --text-muted: #7a776d;
  --border: #e7e3d9;
  --accent: #6b7a5e;
  --accent-dark: #52604a;
  --radius: 2px;
  --shadow: 0 20px 40px rgba(35, 35, 31, 0.08);
  --transition: 320ms cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg: #17170f;
  --surface: #1f1f16;
  --text: #ece9df;
  --text-muted: #a3a08f;
  --border: #333326;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", sans-serif; font-weight: 300; background: var(--bg); color: var(--text); transition: background var(--transition), color var(--transition); }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.demo-banner { background: var(--accent); color: #fff; text-align: center; font-size: 0.78rem; padding: 6px 12px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 30px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); transition: all var(--transition); border: none; }
.btn-line { background: transparent; border: 1px solid var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--accent-dark); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

.icon-btn { position: relative; background: none; border: none; color: var(--text); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.05rem; }
.badge { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-size: 0.58rem; min-width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== Navbar ===== */
.navbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.brand { font-size: 1.3rem; letter-spacing: 0.12em; font-family: "Cormorant Garamond", serif; font-weight: 600; }
.brand span { font-weight: 400; opacity: 0.55; margin-left: 4px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.nav-links a:hover { border-color: var(--accent); }
.navbar-actions { display: flex; gap: 4px; }
.hamburger { display: none; }

@media (max-width: 860px) {
  .hamburger { display: inline-flex; order: -1; }
  .nav-links { position: fixed; top: 0; left: 0; height: 100vh; width: 260px; background: var(--surface); flex-direction: column; padding: 100px 32px; gap: 26px; transform: translateX(-100%); transition: transform var(--transition); box-shadow: var(--shadow); z-index: 45; }
  .nav-links.open { transform: translateX(0); }
}

/* ===== Hero: full-bleed lapang, bukan split diagonal ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 600ms ease; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.05), rgba(15,15,10,0.55)); }
.hero-content { position: relative; z-index: 2; max-width: 620px; text-align: center; padding: 0 24px; color: #fdfcf8; }
.eyebrow { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; opacity: 0.9; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.12; margin-bottom: 22px; }
.hero p { font-weight: 300; line-height: 1.7; margin-bottom: 32px; opacity: 0.9; }
.hero .btn-line { border-color: #fdfcf8; color: #fdfcf8; }
.hero .btn-line:hover { background: #fdfcf8; color: var(--text); }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fdfcf8; animation: bob 2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Sections ===== */
.section { max-width: 1180px; margin: 0 auto; padding: 110px 28px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-kicker { display: block; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 900ms ease, transform 900ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Tab bar horizontal — pengganti sidebar/grid kategori (ciri khas style ini) */
.tab-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.tab-bar button { background: none; border: 1px solid var(--border); padding: 10px 22px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; color: var(--text-muted); transition: all var(--transition); }
.tab-bar button:hover { border-color: var(--accent); color: var(--text); }
.tab-bar button.active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Showroom grid — lapang, sedikit kolom, progressive disclosure (info minimal di kartu) */
.showroom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 36px; }
.showroom-card { cursor: pointer; text-align: center; }
.showroom-thumb { aspect-ratio: 1/1; background: var(--surface); border: 1px solid var(--border); overflow: hidden; margin-bottom: 18px; position: relative; }
.showroom-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.showroom-card:hover .showroom-thumb img { transform: scale(1.06); }
.showroom-overlay { position: absolute; inset: 0; background: rgba(20,20,15,0.35); opacity: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: opacity var(--transition); }
.showroom-card:hover .showroom-overlay { opacity: 1; }
.showroom-wish { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.85); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.showroom-wish.active { color: #b5533e; }
.showroom-name { font-size: 1rem; font-family: "Cormorant Garamond", serif; margin-bottom: 4px; }
.showroom-price { font-size: 0.85rem; color: var(--text-muted); }
.out-of-stock .showroom-thumb { opacity: 0.45; }
.out-of-stock .showroom-price::after { content: " · Stok habis"; color: #b5533e; }

@media (max-width: 900px) { .showroom-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; } }
@media (max-width: 560px) { .showroom-grid { grid-template-columns: 1fr 1fr; } }

/* Estimator — accordion inline di bawah katalog, bukan widget sidebar */
.estimator { margin-top: 70px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.estimator-toggle { width: 100%; background: none; border: none; padding: 22px 4px; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; color: var(--text); }
.estimator-toggle .toggle-icon { margin-left: auto; transition: transform var(--transition); }
.estimator-toggle.open .toggle-icon { transform: rotate(180deg); }
.estimator-body { padding: 0 4px 26px; }
.estimator-body p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 14px; }
.estimator-row { display: flex; gap: 10px; }
.estimator-row input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: var(--radius); font-family: inherit; }
.calc-result { margin-top: 16px; font-size: 0.85rem; line-height: 1.8; color: var(--text-muted); }
.calc-result strong { color: var(--text); }

/* Stats — baris angka tipis, bukan kartu ikon */
.stats-strip { padding: 60px 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-row { display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; text-align: center; }
.stat-num { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; font-weight: 600; color: var(--accent); }
.stat-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

/* About — pull quote tunggal */
.about-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.about-quote { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; line-height: 1.6; font-weight: 500; margin: 0 0 40px; }
.about-list { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.about-list i { color: var(--accent); margin-right: 8px; }

/* Testimoni — satu per satu, fade */
.testi-carousel { max-width: 640px; margin: 0 auto; text-align: center; }
.testi-slide { min-height: 140px; }
.testi-text { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-style: italic; line-height: 1.6; margin-bottom: 20px; }
.testi-name { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.testi-role { font-size: 0.78rem; color: var(--text-muted); }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.testi-dots button.active { background: var(--accent); }

/* Kontak — form underline minimal */
.kontak-wrap { max-width: 480px; margin: 0 auto; text-align: center; }
.kontak-lead { color: var(--text-muted); margin-bottom: 22px; font-size: 0.9rem; }
.kontak-line { margin-bottom: 12px; font-size: 0.9rem; }
.kontak-line i { margin-right: 8px; color: var(--accent); }
.kontak-form { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.kontak-form input, .kontak-form textarea { border: none; border-bottom: 1px solid var(--border); background: transparent; padding: 10px 2px; font-family: inherit; color: var(--text); resize: vertical; }
.kontak-form input:focus, .kontak-form textarea:focus { outline: none; border-color: var(--accent); }
.sheet-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* ===== Footer ===== */
.footer { text-align: center; padding: 70px 28px 40px; border-top: 1px solid var(--border); }
.footer p { color: var(--text-muted); font-size: 0.85rem; max-width: 420px; margin: 14px auto 24px; }
.footer-links { display: flex; gap: 20px; justify-content: center; font-size: 0.8rem; margin-bottom: 26px; }
.footer-bottom { font-size: 0.72rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent); }

/* ===== Overlay / Modal (center, whitespace lapang) ===== */
.overlay-backdrop { position: fixed; inset: 0; background: rgba(20,20,15,0.5); z-index: 49; opacity: 0; transition: opacity var(--transition); }
.overlay-backdrop.show { opacity: 1; }
.modal { position: fixed; top: 50%; left: 50%; z-index: 60; background: var(--surface); color: var(--text); width: min(560px, 90vw); max-height: 85vh; overflow: auto; border-radius: var(--radius); box-shadow: var(--shadow); padding: 50px 44px; transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none; transition: transform var(--transition), opacity var(--transition); }
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.promo-modal { text-align: center; }
.promo-eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.promo-modal h3 { font-size: 1.5rem; margin-bottom: 14px; }
.promo-modal p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 28px; }

.quickview-modal { width: min(680px, 92vw); }
.quickview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.quickview-body img { aspect-ratio: 1/1; object-fit: cover; }
.qv-name { font-size: 1.4rem; margin: 10px 0 14px; }
.qv-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 22px; }
.qv-price { font-size: 1.2rem; color: var(--accent); font-family: "Cormorant Garamond", serif; font-weight: 600; }
@media (max-width: 600px) { .quickview-body { grid-template-columns: 1fr; } }

/* ===== Bottom sheet cart — beda dari off-canvas kanan (ciri khas style ini) ===== */
.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); max-height: 82vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform var(--transition); max-width: 560px; margin: 0 auto; }
.bottom-sheet.show { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 4px; margin: 14px auto 0; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; }
.sheet-header h3 { font-size: 1.1rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 28px; }
.sheet-footer { padding: 22px 28px 30px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 0.88rem; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 56px; height: 56px; object-fit: cover; }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 0.85rem; margin-bottom: 4px; }
.cart-line-price { font-size: 0.78rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button { width: 22px; height: 22px; border: 1px solid var(--border); background: none; cursor: pointer; border-radius: 2px; }
.remove-line { background: none; border: none; color: #b5533e; cursor: pointer; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: var(--radius); font-size: 0.82rem; box-shadow: var(--shadow); animation: toast-in 260ms ease; max-width: 280px; }
.toast.leaving { animation: toast-out 220ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px);} }

/* Skeleton */
.skeleton-card .showroom-thumb { background: linear-gradient(90deg, var(--surface) 25%, var(--border) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
