/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
    --black: #080808;
    --off-black: #111111;
    --charcoal: #1c1c1c;
    --surface: #242424;
    --border: #222222;
    --border-light: #2e2e2e;
    --text: #f0ede8;
    --text-dim: #8a8580;
    --text-muted: #4a4742;
    --gold: #c9a96e;
    --gold-light: #e2c896;
    --gold-dim: #7a6340;
    --gold-glow: rgba(201, 169, 110, 0.12);
    --cream: #f5f0e8;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e76f51;
    --radius: 4px;
    --radius-sm: 3px;
    --shadow: 0 2px 12px rgba(0,0,0,0.5);
    --font-display: 'Syne', sans-serif;
    --font: 'DM Sans', -apple-system, sans-serif;
    /* legacy compat aliases */
    --bg: var(--black);
    --bg-secondary: var(--off-black);
    --bg-tertiary: var(--charcoal);
    --accent: var(--gold);
    --accent-light: var(--gold-light);
    --accent-glow: var(--gold-glow);
    --sidebar-w: 280px;
    --header-h: 56px;
}

/* Light theme — keep dark, only minor adjustments */
[data-theme="light"] {
    --black: #faf8f5;
    --off-black: #f2ede6;
    --charcoal: #e8e2d8;
    --surface: #ddd8cf;
    --border: #d0c9be;
    --border-light: #c0b9ae;
    --text: #1a1714;
    --text-dim: #5a5550;
    --text-muted: #9a9590;
    --gold: #8a6828;
    --gold-light: #6b5022;
    --gold-dim: #b89448;
    --gold-glow: rgba(138, 104, 40, 0.1);
    --bg: var(--black);
    --bg-secondary: var(--off-black);
    --bg-tertiary: var(--charcoal);
    --accent: var(--gold);
    --accent-light: var(--gold-light);
    --accent-glow: var(--gold-glow);
}

html, body { height: 100%; }
body {
    font-family: var(--font);
    background: var(--black);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    overflow: auto;
}

::selection { background: var(--gold); color: var(--black); }

button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
a { color: var(--gold-dim); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); text-decoration: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* ── Theme toggle ─────────────────────────────────────────────── */
.theme-toggle {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 400;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--off-black);
    border: 1px solid var(--border-light);
    color: var(--text-dim);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--gold-dim); color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(8,8,8,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.04em;
}
.site-brand-mark {
    width: 22px; height: 22px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
}
.site-dot { display: none; }
.site-nav a {
    margin-left: 12px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }

/* ── App Layout ───────────────────────────────────────────────── */
#app {
    display: flex;
    height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-w);
    background: var(--off-black);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: margin-left 0.25s ease;
}
#sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-w));
}
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
}
#sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--text);
}
.logo-icon {
    width: 22px; height: 22px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: block;
    flex-shrink: 0;
}
.sidebar-header button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--text-dim);
    transition: all 0.15s;
}
.sidebar-header button:hover { background: var(--surface); color: var(--text); }
.sidebar-header-actions { display: flex; align-items: center; gap: 6px; }
#btn-close-sidebar { display: none; }

#conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.conv-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-dim);
    transition: all 0.15s;
    margin-bottom: 1px;
    letter-spacing: 0.01em;
}
.conv-item:hover, .conv-item.active {
    background: var(--surface);
    color: var(--text);
}
.sidebar-empty { padding: 20px 12px; color: var(--text-muted); font-size: 12px; }

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}
.powered-by {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Main Chat ────────────────────────────────────────────────── */
#chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#chat-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--off-black);
}
#chat-header h1 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
}
#btn-toggle-sidebar {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: var(--radius);
    color: var(--text-dim);
    transition: all 0.15s;
}
#btn-toggle-sidebar:hover { background: var(--surface); color: var(--text); }
.toggle-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Messages ─────────────────────────────────────────────────── */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 14px;
}
.message.user { flex-direction: row-reverse; }

.msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.message.assistant .msg-avatar {
    background: var(--gold);
    color: var(--black);
}
.message.user .msg-avatar {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.msg-bubble {
    padding: 14px 18px;
    border-radius: var(--radius);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    font-weight: 300;
}
.message.assistant .msg-bubble {
    background: var(--off-black);
    border: 1px solid var(--border);
    color: var(--text);
}
.message.user .msg-bubble {
    background: var(--gold);
    color: var(--black);
    font-weight: 400;
    border: none;
}

/* ── Welcome screen ───────────────────────────────────────────── */
.welcome-message {
    max-width: 560px;
    margin: auto;
    text-align: center;
    padding: 60px 20px;
}
.welcome-icon {
    width: 52px; height: 52px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    margin: 0 auto 24px;
}
.welcome-message h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.welcome-message p {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.suggestion {
    padding: 8px 18px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    font-family: var(--font-display);
}
.suggestion:hover {
    border-color: var(--gold-dim);
    color: var(--gold-light);
    background: var(--gold-glow);
}

/* ── Product Cards ────────────────────────────────────────────── */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.product-card {
    background: var(--off-black);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.product-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}
.card-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
    filter: grayscale(10%);
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.card-stock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}
.card-stock.in-stock { background: rgba(42, 157, 143, 0.9); color: #fff; }
.card-stock.out-stock { background: rgba(231, 111, 81, 0.9); color: #fff; }

.product-card .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-top { flex: 1; }

.product-card .card-brand {
    display: block;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 5px;
}

.product-card .card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-desc {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-bottom { margin-top: auto; }

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}
.product-card .card-price {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--gold);
}

.card-store-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.card-store-logo {
    width: 14px; height: 14px;
    border-radius: 2px;
    object-fit: cover;
}
.card-store-name {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card .card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 9px 12px;
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
}
.product-card .card-btn:hover {
    background: var(--gold-light);
    color: var(--black);
    text-decoration: none;
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
}
.modal-overlay.active { display: flex; }
.modal-panel {
    width: 96%;
    max-width: 920px;
    max-height: 88vh;
    background: var(--off-black);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--charcoal);
}
.modal-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.modal-close {
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: var(--radius);
    color: var(--text-dim);
}
.modal-close:hover { background: var(--surface); color: var(--text); }
.modal-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    padding: 16px;
    overflow: auto;
}
@media (max-width: 900px) { .modal-body { grid-template-columns: 1fr; } }
.modal-gallery {
    position: relative;
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.modal-gallery img {
    width: 100%; height: 100%;
    max-height: 540px;
    object-fit: contain;
    background: var(--charcoal);
}
.modal-nav {
    position: absolute; top: 50%; left: 0; right: 0;
    display: flex; justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
.modal-nav button {
    pointer-events: auto;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
}
.modal-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px; margin-top: 8px;
}
.modal-thumbs img {
    width: 100%; height: 52px; object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border); cursor: pointer;
}
.modal-thumbs img.thumb-active { outline: 2px solid var(--gold); }
.modal-info { display: flex; flex-direction: column; gap: 10px; }
.modal-meta { font-size: 12px; color: var(--text-dim); }
.modal-actions { display: flex; gap: 8px; margin-top: 6px; }
.modal-footer {
    padding: 12px 16px; border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 8px;
    background: var(--charcoal);
}
.modal-chips .chip {
    display: inline-block;
    font-size: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    color: var(--text-dim);
    background: var(--charcoal);
    margin: 2px;
}
.modal-head-right {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--gold);
}

/* ── Input Area ───────────────────────────────────────────────── */
#chat-form {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--off-black);
}
.input-wrapper {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--charcoal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: border-color 0.2s;
}
.input-wrapper:focus-within { border-color: var(--gold-dim); }
#btn-attach-image {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.15s;
}
#btn-attach-image:hover { background: var(--surface); color: var(--gold); }

#chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    resize: none;
    max-height: 150px;
    outline: none;
}
#chat-input::placeholder { color: var(--text-muted); }

#btn-send {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    transition: all 0.2s;
    flex-shrink: 0;
}
#btn-send:disabled { opacity: 0.25; cursor: default; }
#btn-send:not(:disabled):hover { background: var(--gold-light); }

.disclaimer {
    max-width: 720px;
    margin: 6px auto 0;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
}

.image-chip {
    width: 58px; height: 58px;
    margin: 0; display: flex;
    align-items: center; justify-content: center;
    padding: 0; border: none; background: transparent; flex-shrink: 0;
}
.image-chip-thumb {
    position: relative; width: 56px; height: 56px;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-light); background: var(--charcoal);
}
#image-chip-preview { width: 56px; height: 56px; object-fit: cover; }
#btn-remove-image {
    position: absolute; top: 3px; right: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,0.8); color: #fff;
    font-size: 14px; line-height: 1; display: grid; place-items: center; padding: 0;
}

/* ── Cart Icon ────────────────────────────────────────────────── */
.cart-icon-btn {
    margin-left: auto;
    position: relative;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    color: var(--text-dim);
    transition: all 0.15s;
}
.cart-icon-btn:hover { background: var(--surface); color: var(--gold); }
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 17px; height: 17px; border-radius: 9px;
    background: var(--gold); color: var(--black);
    font-family: var(--font-display);
    font-size: 9px; font-weight: 700;
    display: grid; place-items: center;
    padding: 0 4px; line-height: 1;
}

/* ── Cart Drawer ──────────────────────────────────────────────── */
.cart-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease; z-index: 200;
}
.cart-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed; top: 0; right: 0;
    width: 380px; max-width: 100vw; height: 100vh;
    background: var(--off-black);
    border-left: 1px solid var(--border); z-index: 210;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border);
    background: var(--charcoal);
}
.cart-drawer-header h2 {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.cart-drawer-header h2 span { color: var(--text-muted); font-weight: 400; }
.cart-drawer-header button {
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: var(--radius); color: var(--text-dim);
}
.cart-drawer-header button:hover { background: var(--surface); color: var(--text); }
.cart-drawer-items {
    flex: 1; overflow-y: auto; padding: 12px 20px;
}
.cart-drawer-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 13px; }
.cart-drawer-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border); align-items: center;
}
.cart-drawer-item-img {
    width: 50px; height: 50px; border-radius: var(--radius);
    object-fit: cover; background: var(--charcoal); flex-shrink: 0;
}
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name { font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-drawer-item-meta { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.cart-drawer-item-price {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap;
}
.cart-drawer-item-remove { color: var(--text-muted); padding: 4px; transition: color 0.15s; }
.cart-drawer-item-remove:hover { color: var(--danger); }
.cart-drawer-footer {
    padding: 16px 20px; border-top: 1px solid var(--border);
    background: var(--charcoal);
}
.cart-drawer-total {
    display: flex; justify-content: space-between;
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-dim);
}
.cart-drawer-total span:last-child { color: var(--gold); font-size: 18px; }

/* ── Shared Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px; padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; border: none; transition: all 0.2s;
    text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-full { width: 100%; justify-content: center; }
.btn.btn-primary { background: var(--gold); color: var(--black); }
.btn.btn-primary:hover { background: var(--gold-light); color: var(--black); }
.btn.btn-secondary {
    background: var(--surface);
    color: var(--text-dim);
    border: 1px solid var(--border-light);
}
.btn.btn-secondary:hover { color: var(--text); border-color: var(--gold-dim); }

/* ── Add to Cart ──────────────────────────────────────────────── */
.card-add-cart {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dim);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: all 0.2s; cursor: pointer; margin-top: 6px;
}
.card-add-cart:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-glow); }
.card-add-cart.added { background: var(--gold-glow); color: var(--gold); border-color: var(--gold-dim); }

/* ── Typing indicator ─────────────────────────────────────────── */
.typing-indicator { display: flex; gap: 5px; padding: 8px 0; }
.typing-indicator span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-dim);
    animation: blink 1.4s infinite both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed; z-index: 100; height: 100%;
        top: 0; left: 0; margin-left: 0;
        transition: transform 0.25s ease;
    }
    #sidebar.collapsed { margin-left: 0; transform: translateX(calc(-1 * var(--sidebar-w))); }
    #btn-close-sidebar { display: grid; place-items: center; }
    .product-cards { grid-template-columns: 1fr; }
}
.filter-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    padding: 10px;
    border: 1px solid var(--border);
}
.filter-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-bar select {
    padding: 5px 10px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    color: var(--text);
    border: 1px solid var(--border);
}
.filter-bar a {
    padding: 5px 10px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
}
.filter-bar a:hover {
    background-color: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}