:root {
    --p:        #6D28D9;
    --p-dark:   #5B21B6;
    --p-deep:   #4C1D95;
    --p-light:  #EDE9FE;
    --p-mid:    #DDD6FE;
    --gold:     #FBBF24;
    --gold-dk:  #D97706;
    --bg:       #FAFAFA;
    --surface:  #FFFFFF;
    --border:   #E5E7EB;
    --text:     #111827;
    --muted:    #6B7280;
    --success:  #22c55e;
    --danger:   #ef4444;
    --r:        12px;
    --r-sm:     8px;
    --shadow:   0 2px 12px rgba(0,0,0,.07);
    --shadow-lg:0 8px 32px rgba(109,40,217,.12);
    --t:        .2s ease;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--p); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--p-dark); }
img { max-width: 100%; height: auto; }
.text-purple { color: var(--p) !important; }

/* ── Buttons ── */
.btn-zyn-gold {
    background: var(--gold); color: #111; border: none;
    border-radius: var(--r-sm); font-weight: 700; padding: .6rem 1.4rem;
    transition: background var(--t), transform var(--t); cursor: pointer; font-family: inherit;
}
.btn-zyn-gold:hover { background: var(--gold-dk); color: #fff; transform: translateY(-1px); }

.btn-zyn-purple {
    background: var(--p); color: #fff; border: none;
    border-radius: var(--r-sm); font-weight: 700; padding: .6rem 1.4rem;
    transition: background var(--t), transform var(--t); cursor: pointer; font-family: inherit;
}
.btn-zyn-purple:hover { background: var(--p-dark); color: #fff; transform: translateY(-1px); }

.btn-zyn-outline {
    background: transparent; color: var(--p); border: 1.5px solid var(--p);
    border-radius: var(--r-sm); font-weight: 600; padding: .55rem 1.3rem;
    transition: all var(--t); cursor: pointer; font-family: inherit;
}
.btn-zyn-outline:hover { background: var(--p); color: #fff; }

/* ── Navbar ── */
.zyn-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .65rem 0;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 1030;
}
.zyn-navbar .navbar-brand {
    font-size: 1.3rem; font-weight: 900; color: var(--p);
    letter-spacing: -.5px; text-decoration: none;
}
.zyn-navbar .navbar-brand span { color: var(--gold); }

.zyn-search-form { width: 100%; max-width: 400px; }
.zyn-search-input {
    border: 1.5px solid var(--border); border-right: none;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    background: var(--bg); font-size: .88rem; padding: .5rem .9rem;
}
.zyn-search-input:focus { border-color: var(--p); box-shadow: none; outline: none; }
.zyn-search-btn {
    background: var(--p); color: #fff;
    border: 1.5px solid var(--p);
    border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .5rem .95rem;
}
.zyn-search-btn:hover { background: var(--p-dark); color: #fff; }

.zyn-navbar .nav-link {
    color: var(--muted); font-weight: 500; font-size: .88rem;
    padding: .4rem .7rem; border-radius: 6px;
    transition: color var(--t), background var(--t);
}
.zyn-navbar .nav-link:hover, .zyn-navbar .nav-link.active {
    color: var(--p); background: var(--p-light);
}
.nav-avatar-img {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--p-light);
}
.nav-avatar-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--p-light); color: var(--p);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.zyn-toggler {
    border: none; background: transparent; padding: 4px 6px;
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
}
.toggler-bar {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px; transition: all .25s;
}
.zyn-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zyn-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.zyn-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.zyn-dropdown {
    border: 1px solid var(--border); border-radius: var(--r);
    box-shadow: var(--shadow-lg); padding: .4rem; min-width: 200px;
}
.zyn-dropdown .dropdown-item {
    border-radius: 6px; font-size: .87rem; padding: .45rem .75rem;
    transition: background var(--t);
}
.zyn-dropdown .dropdown-item:hover { background: var(--p-light); color: var(--p); }

@media (max-width: 991px) {
    #zynNav {
        background: var(--surface); border-top: 1px solid var(--border);
        padding: 1rem 0 .5rem; margin-top: .5rem;
    }
    .zyn-search-form { max-width: 100%; }
}

/* ── Hero ── */
.zyn-hero {
    background: linear-gradient(135deg, var(--p-deep) 0%, var(--p) 60%, #8b5cf6 100%);
    position: relative; overflow: hidden;
}
.zyn-hero::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,.06); border-radius: 50%;
}
.zyn-hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); color: #fff;
    font-size: .78rem; font-weight: 600; padding: 6px 14px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 18px;
}

/* ── Product Card ── */
.product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
    transition: transform var(--t), box-shadow var(--t); height: 100%; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(109,40,217,.15); }
.product-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.product-card-body { padding: 1rem; }
.product-card-cat {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--p); background: var(--p-light);
    padding: 3px 9px; border-radius: 20px; display: inline-block; margin-bottom: .5rem;
}
.product-card-title {
    font-size: .93rem; font-weight: 700; color: var(--text); margin-bottom: .3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-seller { font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.badge-resale {
    font-size: .68rem; font-weight: 700; background: var(--gold); color: #111;
    padding: 2px 8px; border-radius: 20px; display: inline-block;
}
.product-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1rem; border-top: 1px solid var(--border);
}
.product-card-price { font-size: 1rem; font-weight: 800; color: var(--p); }
.product-card-rating { font-size: .75rem; color: var(--muted); }
.product-card-rating .bi-star-fill { color: var(--gold); }

/* ── Section ── */
.section-eyebrow {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--p); margin-bottom: 6px;
}
.section-h { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.section-divider { width: 40px; height: 4px; background: var(--gold); border-radius: 2px; margin: 10px 0 28px; }

/* ── Forms ── */
.form-control, .form-select {
    border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: .9rem; padding: .6rem .9rem; background: var(--bg);
    transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus, .form-select:focus {
    border-color: var(--p); box-shadow: 0 0 0 3px rgba(109,40,217,.1); outline: none;
}
.form-label { font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }

/* ── Alert ── */
.alert { border-radius: var(--r-sm); font-size: .88rem; }

/* ── Card ── */
.zyn-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow);
}

/* ── Tabs ── */
.zyn-tabs {
    display: flex; gap: 2px; background: var(--p-light);
    border-radius: 10px; padding: 4px; width: fit-content;
}
.zyn-tab {
    padding: 7px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600;
    cursor: pointer; color: var(--p); border: none; background: transparent; font-family: inherit;
    transition: background var(--t), box-shadow var(--t);
}
.zyn-tab.active { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); }

/* ── Footer ── */
.zyn-footer { background: #0e0617; color: #d1d5db; padding-top: 3rem; margin-top: auto; }
.footer-logo { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: .83rem; color: #9ca3af; }
.footer-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #9ca3af; font-size: .83rem; transition: color var(--t); }
.footer-links a:hover { color: var(--gold); }
.footer-social { color: #9ca3af; font-size: 1.1rem; transition: color var(--t); }
.footer-social:hover { color: var(--gold); }
.footer-divider { border-color: #1f0b3a; margin: 2rem 0 1rem; }
.footer-copy { font-size: .78rem; color: #6b7280; }

/* ── Utility ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--p); }

/* ── Navbar extras ── */
.zyn-navbar .navbar-brand span { color: var(--gold); }
.nav-mobile-icon {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--text); display: flex; align-items: center;
    justify-content: center; font-size: 15px; text-decoration: none;
    transition: border-color var(--t), background var(--t);
}
.nav-mobile-icon:hover { border-color: var(--p); background: var(--p-light); color: var(--p); }
@media (max-width: 991px) {
    #zynNav { background: var(--surface); border-top: 1px solid var(--border); padding: 1rem 0 .5rem; margin-top: .5rem; }
    .zyn-search-form { max-width: 100%; }
    .btn-zyn-gold.btn, .btn-zyn-outline.btn { width: 100%; margin-top: .4rem; text-align: center; }
}
