/* =========================================================
   OLDWEAR.SCND — Design System
   ========================================================= */
:root {
    --bg: #F6F1EA;
    --surface: #FFFDF9;
    --surface-2: #EFE7DB;
    --ink: #221D19;
    --ink-2: #3A322C;
    --muted: #776D63;
    --line: #E4DACB;
    --accent: #A8552F;
    --accent-dark: #86411F;
    --accent-soft: #F3E1D5;
    --olive: #5E6B3C;
    --olive-soft: #E6E9D8;
    --wa: #1E9E53;
    --wa-dark: #178343;
    --danger: #B23A3A;
    --danger-soft: #F7E0DE;
    --star: #D99A2B;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(34, 29, 25, .05), 0 6px 20px rgba(34, 29, 25, .06);
    --shadow-lg: 0 10px 40px rgba(34, 29, 25, .12);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 520px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 8px 20px rgba(168, 85, 47, .25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 8px 20px rgba(30, 158, 83, .3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #962f2f; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; border-color: var(--line); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-olive { background: var(--olive-soft); color: var(--olive); }
.badge-success { background: #DFF2E6; color: #17703C; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-dark { background: var(--ink); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 241, 234, .85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.navbar.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(34, 29, 25, .05); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; border-radius: 8px; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a.is-active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed; inset: 72px 0 auto 0; background: var(--surface);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        padding: 16px 20px 24px; display: none; flex-direction: column; gap: 12px;
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav-menu.is-open { display: flex; animation: slideDown .25s var(--ease); }
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-links a { padding: 12px 14px; font-size: 15px; }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-actions .btn, .nav-actions form, .nav-actions form .btn { width: 100%; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 20px; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; aspect-ratio: 4/4.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.hero-chip {
    position: absolute; left: -24px; bottom: 32px; background: var(--surface); border-radius: 16px;
    padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
    animation: float 5s ease-in-out infinite;
}
.hero-chip .chip-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; }
.hero-chip strong { display: block; font-size: 14px; }
.hero-chip span { font-size: 12px; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-media { order: -1; }
    .hero-media img { aspect-ratio: 4/3; }
    .hero-chip { left: 12px; bottom: 12px; }
    .hero-stats { gap: 24px; }
}

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 560px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 3/4; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .badge { position: absolute; top: 12px; left: 12px; }
.product-card.is-sold .product-media img { filter: grayscale(.85) opacity(.7); }
.sold-ribbon {
    position: absolute; inset: 0; display: grid; place-items: center;
}
.sold-ribbon span { background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 13px; padding: 8px 16px; border-radius: 6px; transform: rotate(-6deg); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.product-title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 17px; font-weight: 800; color: var(--ink); }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.product-body .btn { margin-top: auto; }
.product-body .spacer { flex: 1; min-height: 8px; }
@media (max-width: 560px) {
    .product-body { padding: 12px; }
    .product-title { font-size: 13.5px; }
    .product-price { font-size: 15px; }
    .product-body .btn { padding: 10px 12px; font-size: 12.5px; }
}

/* ---------- Category cards ---------- */
.grid-categories { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.category-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; display: flex; flex-direction: column; gap: 12px;
    transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.category-card:hover { background: var(--ink); color: #fff; transform: translateY(-3px); border-color: var(--ink); }
.category-card:hover .cat-count { color: rgba(255, 255, 255, .65); }
.category-card:hover .cat-icon { background: var(--accent); color: #fff; }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: all .25s; overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon svg { width: 22px; height: 22px; }
.cat-name { font-weight: 700; font-size: 16px; }
.cat-count { font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-card { background: var(--ink); color: #F4ECE1; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 47, .55), transparent 70%); }
.about-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.about-card .tagline { color: #D9B89F; font-style: italic; margin-bottom: 24px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.about-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #B9A995; }
.about-facts dd { margin: 4px 0 0; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--olive); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-card { padding: 30px; } }

/* ---------- Testimonials ---------- */
.grid-testimonials { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
@media (max-width: 560px) { .grid-testimonials { grid-template-columns: 1fr; gap: 16px; } }

.testimonial-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative;
    transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial-card:not(.has-photo)::before {
    content: "\201C"; position: absolute; top: 4px; right: 22px; font-family: var(--font-display);
    font-size: 80px; line-height: 1; color: var(--accent-soft); pointer-events: none;
}

/* Testimonial Photo Proof - Product Size */
.testimonial-media {
    position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px;
    overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
    cursor: pointer; flex-shrink: 0;
}
.testimonial-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s var(--ease);
}
.testimonial-media:hover img { transform: scale(1.03); }
.testimonial-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(23, 112, 60, 0.92); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 4px;
    backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.testimonial-badge svg { width: 13px; height: 13px; }
.testimonial-zoom-hint {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    background: rgba(26, 22, 19, 0.75); color: #fff; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(4px); opacity: 0.9; transition: opacity .2s, background .2s;
}
.testimonial-media:hover .testimonial-zoom-hint { opacity: 1; background: rgba(26, 22, 19, 0.92); }

.testimonial-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.testimonial-date { font-size: 12px; color: var(--muted); }
.testimonial-msg { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 0; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: var(--line); }

/* Testimonial Lightbox Modal */
.testimonial-lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn .2s ease;
}
.testimonial-lightbox-content {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.testimonial-lightbox-content img {
    max-width: 100%; max-height: 82vh; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); object-fit: contain;
}
.testimonial-lightbox-close {
    position: absolute; top: -44px; right: 0; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff;
    border: none; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.testimonial-lightbox-close:hover { background: rgba(255, 255, 255, 0.4); }
.testimonial-lightbox-caption {
    color: rgba(255, 255, 255, 0.9); font-size: 14px; margin-top: 10px; text-align: center;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--ink) 0%, #3B2A20 60%, var(--accent-dark) 140%);
    color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 4.5vw, 44px); max-width: 640px; margin: 0 auto 16px; }
.cta p { color: rgba(255, 255, 255, .72); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Page header ---------- */
.page-header { padding: 48px 0 32px; }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.filter-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.filter-group + .filter-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-cats a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.filter-cats a:hover { background: var(--surface-2); }
.filter-cats a.is-active { background: var(--ink); color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .result-count { color: var(--muted); font-size: 14px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
    .catalog { grid-template-columns: 1fr; }
    .filter-panel { position: static; display: none; }
    .filter-panel.is-open { display: block; }
    .filter-toggle { display: inline-flex; }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); font: 400 14.5px/1.4 var(--font); color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 47, .12); }
.form-control.is-invalid { border-color: var(--danger); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23776D63'%3E%3Cpath d='M5.3 7.3a1 1 0 011.4 0L10 10.6l3.3-3.3a1 1 0 111.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 010-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.form-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; } }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-prefix { display: flex; align-items: center; }
.input-prefix span { padding: 11px 12px; background: var(--surface-2); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 14px; color: var(--muted); }
.input-prefix .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 32px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }
@media (max-width: 480px) { .auth-card { padding: 28px 22px; } }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery-main { border-radius: 20px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3/4; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.gallery-thumbs button, .thumbnail-btn { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: var(--surface-2); opacity: .75; transition: all .2s ease; display: block; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover, .thumbnail-btn.is-active, .thumbnail-btn:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumbs button.is-active, .thumbnail-btn.is-active { box-shadow: 0 0 0 2px rgba(184, 80, 42, 0.25); }
.gallery-thumbs img, .thumbnail-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) {
    .gallery-thumbs { gap: 8px; margin-top: 10px; }
    .gallery-thumbs button, .thumbnail-btn { border-radius: 8px; }
}
.detail-info { position: sticky; top: 96px; }
.detail-info h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 12px; }
.detail-price { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.detail-desc { color: var(--ink-2); white-space: pre-line; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.buy-box .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.buy-box .note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .detail-info { position: static; }
}
.mobile-buy-bar { display: none; }
@media (max-width: 860px) {
    .mobile-buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
    .mobile-buy-bar .btn { flex: 1; }
    .mobile-buy-bar .price { font-weight: 800; font-size: 16px; }
    body.has-buy-bar { padding-bottom: 80px; }
    body.has-buy-bar .wa-float { display: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: all .25s; }
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card strong { font-size: 16px; }
.contact-card span { color: var(--muted); font-size: 14px; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #CFC4B6; padding: 64px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #D9B89F; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9C9086; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WA ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(30, 158, 83, .4);
    transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.alert-success { background: #E6F4EC; border-color: #BFE3CD; color: #175E35; }
.alert-error { background: var(--danger-soft); border-color: #EDC3BF; color: #8A2B2B; }
.alert ul { margin: 0; padding-left: 18px; }
.toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 100; display: grid; gap: 10px; max-width: calc(100% - 40px); width: 360px; }
.toast-wrap .alert { box-shadow: var(--shadow-lg); margin: 0; animation: toastIn .35s var(--ease); }
.toast-wrap .alert.is-hiding { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled span { color: var(--line); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--line); }
.empty h3 { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Cards & Panels ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(34, 29, 25, .04), 0 4px 16px rgba(34, 29, 25, .04);
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
}
.card-body {
    padding: 24px;
}
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

/* ---------- Tables ---------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table thead tr {
    background: var(--surface-2);
}
.table th {
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.table td {
    padding: 16px 24px;
    font-size: 14.5px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background: rgba(239, 231, 219, .4);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--surface);
    border-radius: var(--radius);
}
.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    display: grid;
    place-items: center;
}
.empty-icon svg { width: 28px; height: 28px; }

/* ---------- Admin Layout & Components ---------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--surface-2);
    position: relative;
}
.admin-sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1), visibility .28s;
    z-index: 100;
}
.admin-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-sidebar-close {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all .2s var(--ease);
}
.admin-sidebar-close:hover {
    color: var(--ink);
    background: var(--surface);
}
.admin-sidebar-close svg {
    width: 18px;
    height: 18px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s var(--ease);
}
.admin-nav-item:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.admin-nav-item.is-active {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
}
.admin-nav-item.is-active svg {
    color: #fff !important;
}
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}
.admin-header {
    background: var(--surface);
    height: 72px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 32px;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.admin-header-title {
    font-size: 20px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.admin-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: #1e1b18;
    color: #f6f1ea;
    border: none;
    border-radius: 9px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform .15s ease, background .2s ease;
    flex-shrink: 0;
}
.admin-menu-toggle:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.03);
}
.admin-menu-toggle:active {
    transform: scale(0.96);
}
.admin-menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}
.admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 18, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease);
}
.admin-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.admin-content-wrap {
    padding: 32px;
    flex: 1;
}

@media (max-width: 960px) {
    .admin-menu-toggle {
        display: inline-flex;
    }
    .admin-sidebar-close {
        display: inline-flex;
    }
    .admin-backdrop {
        display: block;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        transform: translateX(-100%);
        visibility: hidden;
        overflow-y: auto;
    }
    .admin-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    .admin-header {
        padding: 0 16px;
        height: 60px;
    }
    .admin-header-title {
        font-size: 17px !important;
    }
    .admin-content-wrap {
        padding: 16px;
    }
    .admin-action-text {
        display: none;
    }
    .admin-user-name {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- Admin Forms & Responsive Rows ---------- */
.admin-form-card {
    padding: 32px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.spinner-sm {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 640px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }
    .admin-form-card {
        padding: 20px 16px !important;
    }
    .admin-form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .admin-form-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================================
   PAGE PRELOADER (Loading Screen dengan Logo)
   ========================================================= */
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #23201D 0%, #131211 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .42s cubic-bezier(.2, .7, .2, 1), visibility .42s cubic-bezier(.2, .7, .2, 1);
    user-select: none;
    -webkit-user-select: none;
    cursor: wait;
}

.page-preloader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    position: relative;
    z-index: 2;
    animation: preloaderContentFadeIn .4s ease-out;
}

.preloader-badge-container {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-orbital-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 47, 0.4) 0%, rgba(217, 154, 43, 0.15) 50%, transparent 70%);
    filter: blur(12px);
    animation: preloaderGlowPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.preloader-orbital-ring {
    position: absolute;
    inset: -5px;
    border-radius: 24px;
    border: 2px solid transparent;
    border-top-color: var(--accent, #A8552F);
    border-right-color: var(--star, #D99A2B);
    animation: preloaderSpin 2s linear infinite;
    pointer-events: none;
}

.preloader-badge {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: #1C1E1F;
    border: 1px solid rgba(228, 218, 203, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 35px rgba(168, 85, 47, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderBadgePulse 2.4s ease-in-out infinite;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preloader-brand {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-status-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FFFDF9;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 1px;
    text-align: center;
}

.preloader-dots {
    display: inline-flex;
    letter-spacing: 1px;
}

.preloader-dots span {
    animation: preloaderDot 1.4s ease-in-out infinite;
    display: inline-block;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.preloader-track {
    width: 140px;
    height: 3px;
    background: rgba(228, 218, 203, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 18px;
    position: relative;
}

.preloader-bar {
    width: 45%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #A8552F 0%, #D99A2B 50%, #A8552F 100%);
    animation: preloaderProgress 1.6s ease-in-out infinite;
}

/* Spinner helper */
.spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes preloaderContentFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes preloaderGlowPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes preloaderBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

@keyframes preloaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes preloaderProgress {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(50%); }
    100% { transform: translateX(240%); }
}

@keyframes preloaderDot {
    0%, 20% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
    80%, 100% { opacity: 0.2; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-orbital-ring,
    .preloader-orbital-glow,
    .preloader-badge,
    .preloader-bar,
    .preloader-dots span {
        animation: none !important;
    }
}



