/**
 * Style halaman katalog DLANAR (produk, detail)
 * Meniru bahasa desain landing: Cinzel + Manrope, charcoal & gold.
 */

:root {
    --dl-bg: #faf9f6;
    --dl-bg-2: #f1efe8;
    --dl-dark: #16181d;
    --dl-dark-2: #23262d;
    --dl-text: #1c1e23;
    --dl-muted: #6b7280;
    --dl-border: #e3e0d7;
    --dl-gold: #c9a227;
    --dl-gold-dark: #a4841d;
    --dl-green: #16a34a;
    --font-heading: "Cinzel", serif;
    --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--dl-bg);
    color: var(--dl-text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--dl-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand .logo {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--dl-gold);
    background: var(--dl-dark-2);
}
.brand strong {
    font-family: var(--font-heading);
    letter-spacing: .15em; display: block; font-size: 1.05rem;
}
.brand small {
    display: block; font-size: .6rem; letter-spacing: .25em;
    text-transform: uppercase; color: var(--dl-gold);
}
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { font-size: .9rem; color: #e7e5df; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--dl-gold); }
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.4rem; border-radius: .4rem;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all .2s;
}
.btn-wa { background: var(--dl-green); color: #fff; }
.btn-wa:hover { background: #12813b; }
.btn-gold { background: var(--dl-gold); color: #16181d; }
.btn-gold:hover { background: var(--dl-gold-dark); color: #fff; }
.btn-outline { border-color: var(--dl-border); background: transparent; color: var(--dl-text); }
.btn-outline:hover { border-color: var(--dl-gold); color: var(--dl-gold-dark); }
.btn-dark { background: var(--dl-dark); color: #fff; }
.btn-dark:hover { background: var(--dl-dark-2); }
.nav-toggle {
    display: none; background: none; border: 0; color: #fff;
    font-size: 1.5rem; cursor: pointer;
}

/* ---------- Breadcrumb & judul halaman ---------- */
.page-head {
    background: linear-gradient(135deg, var(--dl-dark), var(--dl-dark-2));
    color: #fff; padding: 2.5rem 0;
}
.page-head h1 {
    font-family: var(--font-heading); margin: .25rem 0 .35rem;
    font-size: 1.9rem; letter-spacing: .03em;
}
.page-head .crumb { font-size: .8rem; color: #b9b6ad; }
.page-head .crumb a:hover { color: var(--dl-gold); }

/* ---------- Layout katalog ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0 3rem; }
.filters {
    background: #fff; border: 1px solid var(--dl-border);
    border-radius: .5rem; padding: 1.25rem; align-self: start;
    position: sticky; top: 96px;
}
.filters h2 { font-size: .95rem; margin: 0 0 1rem; letter-spacing: .08em; text-transform: uppercase; }
.filters .group { margin-bottom: 1.25rem; }
.filters label.group-title {
    display: block; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--dl-muted); margin-bottom: .5rem;
}
.filters select, .filters input[type=search], .filters input[type=number] {
    width: 100%; padding: .55rem .7rem; border: 1px solid var(--dl-border);
    border-radius: .35rem; font: inherit; background: #fff;
}
.filters .check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .35rem; }
.filters .actions { display: flex; gap: .5rem; }
.filters .actions .btn { flex: 1; justify-content: center; padding: .55rem .5rem; }

/* ---------- Grid & kartu produk ---------- */
.result-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; font-size: .9rem; color: var(--dl-muted);
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card {
    background: #fff; border: 1px solid var(--dl-border);
    border-radius: .5rem; overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 10px 26px rgba(22, 24, 29, .12); transform: translateY(-3px); }
.product-card .thumb { position: relative; height: 230px; overflow: hidden; background: var(--dl-bg-2); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #b6b1a4; font-size: 2.5rem;
}
.badge-grade {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--dl-gold); color: #16181d;
    padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.badge-status {
    position: absolute; top: .75rem; right: .75rem;
    padding: .2rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
    text-transform: uppercase;
}
.badge-status.available { background: #dcfce7; color: #15803d; }
.badge-status.reserved { background: #fef9c3; color: #a16207; }
.badge-status.sold { background: #e5e7eb; color: #374151; }
.product-card .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .18em;
    color: var(--dl-gold-dark);
}
.product-card h3 { font-size: 1rem; margin: .3rem 0 .15rem; font-weight: 700; }
.product-card h3 a:hover { color: var(--dl-gold-dark); }
.product-card .specs { font-size: .78rem; color: var(--dl-muted); margin: 0; }
.product-card .price-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: .5rem; margin-top: auto; padding-top: .9rem;
}
.product-card .price-old { font-size: .75rem; color: #9ca3af; text-decoration: line-through; margin: 0; }
.product-card .price { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; }
.icon-btn {
    width: 40px; height: 40px; border-radius: .35rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dl-green); color: #fff; font-size: 1.1rem; transition: background .2s;
}
.icon-btn:hover { background: #12813b; }

/* ---------- Detail produk ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2rem 0; }
.gallery .main-img {
    width: 100%; height: 430px; object-fit: cover;
    border: 1px solid var(--dl-border); border-radius: .5rem; background: #fff;
}
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .6rem; }
.gallery .thumbs img {
    height: 74px; width: 100%; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; border-radius: .35rem;
}
.gallery .thumbs img.active, .gallery .thumbs img:hover { border-color: var(--dl-gold); }

.detail-info .cat { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dl-gold-dark); }
.detail-info h1 { font-family: var(--font-heading); font-size: 1.8rem; margin: .4rem 0; line-height: 1.25; }
.detail-info .detail-name { font-family: var(--font-heading); font-size: 1.8rem; margin: .4rem 0; line-height: 1.25; font-weight: 700; }
.detail-info .price-old { color: #9ca3af; text-decoration: line-through; margin: 0; }
.detail-info .price { font-family: var(--font-heading); font-size: 2rem; margin: 0; }
.pill {
    display: inline-block; padding: .3rem .9rem; border-radius: 999px;
    background: var(--dl-bg-2); border: 1px solid var(--dl-border);
    font-size: .82rem; margin: .35rem .3rem .35rem 0;
}
.pill.sold { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.pill.reserved { background: #fef9c3; border-color: #fde047; color: #a16207; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--dl-border); }
.spec-table td:first-child { width: 40%; color: var(--dl-muted); background: var(--dl-bg-2); }
.inclusions { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.inclusions li {
    background: #fff; border: 1px solid var(--dl-border); border-radius: .35rem;
    padding: .35rem .8rem; font-size: .85rem;
}
.inclusions li::before { content: "✓ "; color: var(--dl-green); font-weight: 700; }
.section-title {
    font-family: var(--font-heading); font-size: 1.35rem; margin: 2rem 0 .75rem;
    padding-bottom: .5rem; border-bottom: 2px solid var(--dl-gold);
}
.description { font-size: .95rem; white-space: pre-line; }
.sold-banner {
    background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c;
    padding: .8rem 1rem; border-radius: .4rem; font-size: .9rem; margin-bottom: 1rem;
}
.notfound { text-align: center; padding: 4rem 1rem; }
.notfound h1 { font-family: var(--font-heading); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dl-dark); color: #cfccc4; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .9rem; }
.site-footer a:hover { color: var(--dl-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .88rem; }
.footer-bottom {
    border-top: 1px solid #33363d; margin-top: 2rem; padding-top: 1.1rem;
    display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: #8d8a82;
}

/* ---------- Responsif ---------- */
@media (max-width: 992px) {
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .detail { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 76px; left: 0; right: 0;
        background: var(--dl-dark); padding: 1rem; gap: .9rem; border-top: 1px solid #33363d;
    }
    .nav-toggle { display: block; }
    .gallery .main-img { height: 300px; }
    .footer-bottom { flex-direction: column; }
}
