/* =====================================================
   Toko Aksesoris — Identitas Visual
   Palet: krem hangat, berry gelap, rose-gold
   Font: Fraunces (display) + Manrope (body/UI)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg: #FAF7F4;
    --surface: #FFFFFF;
    --ink: #2C1E24;
    --ink-soft: #6B5A61;
    --accent: #9C2B45;
    --accent-dark: #7A2038;
    --gold: #B8935A;
    --gold-soft: #E9DCC3;
    --border: #E7D9D3;
    --success: #4B7A51;
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    line-height: 1.55;
}

h1, h2, h3, .display {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.4em;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.brand {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--accent-dark);
}
.brand span { color: var(--gold); font-style: normal; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--ink);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.cart-link:hover { background: var(--ink); color: var(--bg); }
.cart-badge {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero / eyebrow ---------- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
    display: block;
}

/* ---------- Category chips (charm tags) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px 7px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--ink-soft);
    position: relative;
}
.chip::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 8px;
}
.chip.active, .chip:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: #FBEFF1;
}

/* ---------- Search ---------- */
.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-form input[type=text] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.92rem;
    background: var(--surface);
}
.search-form input[type=text]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: var(--radius);
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #a17f4a; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn.block { width: 100%; text-align: center; }

/* ---------- Product grid — "display case" cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 24px rgba(44,30,36,0.08); transform: translateY(-2px); }
.card::after {
    /* signature: rose-gold corner tick, like a jewelry display tag */
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-style: solid;
    border-width: 0 22px 22px 0;
    border-color: transparent var(--gold-soft) transparent transparent;
}
.card .thumb {
    aspect-ratio: 1/1;
    background: #F1E9E4 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft);
    font-size: 0.8rem;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .info { padding: 14px 16px 16px; }
.card .kategori-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    font-weight: 700;
}
.card h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.card .harga { font-weight: 700; color: var(--accent-dark); font-size: 1rem; }
.card .harga-coret {
    text-decoration: line-through;
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 0.82rem;
    margin-left: 6px;
}
.stok-tag { font-size: 0.75rem; margin-top: 6px; color: var(--ink-soft); }
.stok-habis { color: var(--accent); font-weight: 700; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 28px 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .site-header .bar { padding: 12px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card, .btn, .cart-link { transition: none; }
}
