/* ═══════════════════════════════════════════════
   Sehar Bazaar — Main Stylesheet  v2.0
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand:        #E8500A;
    --brand-mid:    #F06030;
    --brand-light:  #FEF0EA;
    --brand-dark:   #C03800;
    --accent:       #FFB800;
    --accent-light: #FFF8E6;
    --green:        #16A34A;
    --green-light:  #F0FDF4;
    --red:          #DC2626;
    --red-light:    #FEF2F2;
    --blue:         #2563EB;
    --blue-light:   #EFF6FF;
    --bg:           #FAF9F7;
    --surface:      #FFFFFF;
    --surface2:     #F5F4F1;
    --surface3:     #EDECE8;
    --border:       #E4E2DC;
    --border2:      #D4D2CC;
    --text:         #1C1B18;
    --text2:        #5C5A54;
    --text3:        #9C9A94;
    --font:         'Plus Jakarta Sans', sans-serif;
    --body:         'Plus Jakarta Sans', sans-serif;
    --nav:          64px;
    --sidebar:      232px;
    --r:            12px;
    --r-sm:         8px;
    --r-lg:         18px;
    --r-xl:         24px;
    --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
    --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.06);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--body); outline: none; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--nav); background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 24px; gap: 14px;
}
.nav-logo { font-family: var(--font); font-weight: 900; font-size: 20px; color: var(--brand); display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.nav-logo-icon { background: var(--brand); color: #fff; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; letter-spacing: -.5px; }
.nav-city { display: flex; align-items: center; gap: 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; white-space: nowrap; transition: all .15s; flex-shrink: 0; }
.nav-city:hover { border-color: var(--brand); color: var(--brand); }
.nav-search:focus-within { border-color: var(--brand); background: var(--surface); }
.nav-search input::placeholder { color: var(--text3); }
.nav-search-btn:hover { background: var(--brand-dark); }

.nav-search {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 380px;
    display: flex;
    align-items: stretch;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border .15s;
}

.nav-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text);
}

.nav-search-btn {
    flex: 0 0 auto;
    min-width: 74px;
    background: var(--brand);
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
    border: none;
    cursor: pointer;
}

.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 7px 13px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none; display: inline-block; }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); }
.nav-btn { padding: 8px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; transition: all .15s; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
.nav-btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.nav-btn-outline:hover { background: var(--brand-light); }
.nav-btn-fill { background: var(--brand); color: #fff; border: 1.5px solid var(--brand); }
.nav-btn-fill:hover { background: var(--brand-dark); }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-family: var(--font); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--border); flex-shrink: 0; position: relative; text-decoration: none; }
.nav-avatar-dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: var(--green); border-radius: 50%; border: 2px solid #fff; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all .2s; }
.nav-drawer { display: none; position: fixed; top: var(--nav); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; z-index: 199; flex-direction: column; gap: 4px; }
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { padding: 11px 12px; font-size: 15px; border-radius: var(--r-sm); }

/* ── LAYOUT ── */
.page-wrap { padding-top: var(--nav); min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.with-sidebar { display: flex; min-height: calc(100vh - var(--nav)); }
.sidebar { width: var(--sidebar); min-width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow-y: auto; flex-shrink: 0; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 6px; padding: 0 8px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all .12s; margin-bottom: 2px; text-decoration: none; }
.sidebar-item:hover { background: var(--surface2); color: var(--text); }
.sidebar-item.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.sidebar-item .s-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-badge { margin-left: auto; background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; }
.sidebar-badge-warn { background: var(--red); }
.sidebar-badge-gray { background: var(--surface3); color: var(--text2); }
.main { flex: 1; padding: 28px 32px; overflow-x: hidden; min-width: 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; transition: all .15s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary   { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline   { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost     { background: transparent; color: var(--text2); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); }
.btn-danger    { background: var(--red-light); color: var(--red); border: 1.5px solid #fca5a5; }
.btn-danger:hover { background: #fee2e2; }
.btn-success   { background: var(--green-light); color: var(--green); border: 1.5px solid #86efac; }
.btn-success:hover { background: #dcfce7; }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; letter-spacing: .01em; }
.form-input { width: 100%; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border); font-size: 14px; color: var(--text); background: var(--surface); transition: border .15s; }
.form-input:focus { border-color: var(--brand); background: var(--surface); }
.form-input::placeholder { color: var(--text3); }
.form-hint  { font-size: 12px; color: var(--text3); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }
.form-row   { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin-bottom: 8px; }
.check-row input { accent-color: var(--brand); width: 15px; height: 15px; }
.toggle-wrap { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: absolute; inset: 0; background: var(--border2); border-radius: 11px; cursor: pointer; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-wrap input:checked + .toggle-slider { background: var(--brand); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-orange { background: var(--accent-light);  color: #92400E; }
.badge-red    { background: var(--red-light);     color: var(--red); }
.badge-blue   { background: var(--blue-light);    color: var(--blue); }
.badge-gray   { background: var(--surface2);      color: var(--text2); }
.badge-brand  { background: var(--brand-light);   color: var(--brand); }

/* ── CARDS ── */
.card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; }
.card-pad { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: var(--font); font-size: 15px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; }
.stat-card.sc-green::before  { background: var(--green); }
.stat-card.sc-orange::before { background: var(--brand); }
.stat-card.sc-blue::before   { background: var(--blue); }
.stat-card.sc-yellow::before { background: var(--accent); }
.stat-num { font-family: var(--font); font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text2); }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.stat-up      { color: var(--green); }
.stat-down    { color: var(--red); }
.stat-neutral { color: var(--text3); }

/* ── PRODUCT CARD ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: all .2s; position: relative; text-decoration: none; display: block; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-mid); }
.product-card-img { height: 168px; background: var(--surface2); display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.img-placeholder svg { opacity: .3; }
.img-placeholder span { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; }
.product-card-discount { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.product-card-save { position: absolute; top: 10px; right: 10px; background: var(--surface); border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.product-card-save:hover { background: var(--brand-light); border-color: var(--brand); }
.product-card-body  { padding: 13px; }
.product-card-name  { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-shop  { font-size: 12px; color: var(--text2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--brand); }
.product-card-old   { font-size: 12px; color: var(--text3); text-decoration: line-through; margin-left: 4px; }

/* ── SHOP CARD ── */
.shop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; transition: all .15s; text-decoration: none; }
.shop-card:hover { box-shadow: var(--shadow); border-color: var(--brand-mid); }
.shop-logo { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 800; font-size: 17px; flex-shrink: 0; }
.shop-name { font-family: var(--font); font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.shop-meta { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.tag { display: inline-block; background: var(--surface2); color: var(--text2); border-radius: 20px; font-size: 11px; font-weight: 600; padding: 2px 9px; margin: 2px 2px 0 0; }
.rating { color: var(--accent); font-weight: 700; font-size: 13px; }

/* ── CHIPS ── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex-wrap: nowrap; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; background: var(--surface); transition: all .12s; white-space: nowrap; flex-shrink: 0; }
.chip:hover, .chip.active { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: var(--surface2); }

/* ── PAGE HEADER / SECTION ── */
.page-header { margin-bottom: 24px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--text2); }
.section { padding: 32px 0; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-family: var(--font); font-size: 18px; font-weight: 800; color: var(--text); }
.section-more { font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; }
.section-more:hover { text-decoration: underline; }

/* ── HERO — focused, centred, search-first ── */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 56px 0px 48px; }
.hero-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: var(--brand); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.hero-title { font-family: var(--font); font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; color: var(--text); }
.hero-title .hl { color: var(--brand); }
.hero-desc { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.hero-search-big { display: flex; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: border .2s; margin-bottom: 14px; }
.hero-search-big:focus-within { border-color: var(--brand); }
.hero-search-big input { flex: 1; border: none; padding: 15px 20px; font-size: 15px; color: var(--text); background: transparent; min-width: 0; }
.hero-search-big input::placeholder { color: var(--text3); }
.hero-search-big button { background: var(--brand); color: #fff; padding: 0 28px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.hero-search-big button:hover { background: var(--brand-dark); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 28px; }
.hero-tag { font-size: 12px; color: var(--text2); background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; transition: all .15s; text-decoration: none; display: inline-block; }
.hero-tag:hover { border-color: var(--brand); color: var(--brand); }
.hero-stats { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-stat-divider { width: 1px; height: 32px; background: var(--border); }
.hero-stat-num { font-family: var(--font); font-size: 20px; font-weight: 800; color: var(--text); }
.hero-stat-lbl { font-size: 12px; color: var(--text2); margin-top: 1px; }

/* ── CAT STRIP ── */
.cat-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.cat-strip-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-pill { display: flex; align-items: center; gap: 7px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; white-space: nowrap; transition: all .12s; flex-shrink: 0; text-decoration: none; }
.cat-pill .cat-icon { font-size: 15px; }
.cat-pill:hover, .cat-pill.active { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }

/* ── AUTH ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav) + 24px) 20px 48px; background: var(--bg); }
.auth-card { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-text { font-family: var(--font); font-size: 26px; font-weight: 900; color: var(--brand); }
.auth-title { font-family: var(--font); font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text2); text-align: center; margin-bottom: 28px; line-height: 1.6; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text2); }
.auth-footer a { color: var(--brand); font-weight: 600; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text3); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btn { width: 100%; padding: 11px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .12s; margin-bottom: 10px; }
.social-btn:hover { background: var(--surface2); }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: var(--green-light); color: var(--green); border-color: #86efac; }
.alert-error   { background: var(--red-light); color: var(--red); border-color: #fca5a5; }
.alert-info    { background: var(--blue-light); color: var(--blue); border-color: #93c5fd; }
.alert-warning { background: var(--accent-light); color: #92400E; border-color: #fcd34d; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { cursor: pointer; color: var(--text2); transition: color .12s; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--text3); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; background: var(--surface2); padding: 4px; border-radius: var(--r-sm); width: fit-content; }
.tab-btn { padding: 7px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; transition: all .12s; white-space: nowrap; }
.tab-btn.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

/* ── UPLOAD ── */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--r); padding: 28px; text-align: center; cursor: pointer; transition: all .15s; background: var(--surface2); }
.upload-zone:hover { border-color: var(--brand); background: var(--brand-light); }
.upload-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.upload-text { font-size: 14px; font-weight: 600; color: var(--text2); }
.upload-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 52px 20px; }
.empty-icon  { font-size: 52px; margin-bottom: 14px; opacity: .6; }
.empty-title { font-family: var(--font); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-sub   { font-size: 14px; color: var(--text2); margin-bottom: 20px; }

/* ── ONBOARDING EMPTY (dashboard first-time) ── */
.onboarding-empty { background: var(--surface); border: 1.5px dashed var(--border2); border-radius: var(--r-lg); padding: 48px 32px; text-align: center; }
.onboarding-empty .oe-icon { font-size: 44px; margin-bottom: 16px; }
.onboarding-empty .oe-title { font-family: var(--font); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.onboarding-empty .oe-sub { font-size: 14px; color: var(--text2); margin-bottom: 24px; line-height: 1.7; max-width: 360px; margin-left: auto; margin-right: auto; }
.onboarding-steps { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.onboarding-step { display: flex; align-items: center; gap: 8px; background: var(--surface2); border-radius: var(--r); padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text2); }
.onboarding-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 11px 22px; border-radius: var(--r); font-size: 14px; font-weight: 500; opacity: 0; transition: all .3s; z-index: 999; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── SEARCH LAYOUT ── */
.search-layout { display: flex; min-height: calc(100vh - var(--nav)); }
.filter-sidebar { width: 230px; min-width: 230px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px; position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow-y: auto; }
.filter-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 10px; }
.filter-section { margin-bottom: 20px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text2); }
.filter-option input { accent-color: var(--brand); }
.filter-option:hover { color: var(--text); }
.search-results { flex: 1; padding: 20px 24px; min-width: 0; }
.filter-toggle-btn { display: none; align-items: center; gap: 7px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; }
.filter-drawer { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.4); align-items: flex-end; }
.filter-drawer.open { display: flex; }
.filter-drawer-inner { background: var(--surface); width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px; max-height: 80vh; overflow-y: auto; }
.filter-drawer-handle { width: 36px; height: 4px; background: var(--border2); border-radius: 2px; margin: 0 auto 20px; }

/* ── FOOTER ── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 24px; margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font); font-size: 18px; font-weight: 900; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--text2); transition: color .15s; text-decoration: none; }
.footer-link:hover { color: var(--brand); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── PRODUCT DETAIL ── */
.detail-layout { max-width: 1000px; margin: 0 auto; padding: 28px 24px; }
.detail-gallery { flex: 1; min-width: 280px; }
.detail-grid { display: flex; gap: 36px; flex-wrap: wrap; }
.detail-main-img { height: 320px; background: var(--surface2); border-radius: var(--r-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumb { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--surface2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border .15s; overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--brand); }
.detail-info { flex: 1.2; min-width: 280px; }
.detail-price { font-family: var(--font); font-size: 30px; font-weight: 800; color: var(--brand); }
.detail-old { font-size: 16px; color: var(--text3); text-decoration: line-through; }
.detail-shop-box { background: var(--surface2); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-top: 18px; cursor: pointer; border: 1px solid var(--border); transition: all .15s; text-decoration: none; }
.detail-shop-box:hover { border-color: var(--brand); background: var(--brand-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .3s ease forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .sidebar { display: none; }
    .filter-sidebar { display: none; }
    .filter-toggle-btn { display: flex; }
    .main { padding: 20px 16px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-search { display: none; }
    .nav-hamburger { display: flex; }
    .hero { padding: 40px 16px 36px; }
    .hero-stats { gap: 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .form-row { flex-direction: column; gap: 0; }
    .auth-card { padding: 28px 20px; }
    .detail-grid { flex-direction: column; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-links { gap: 12px; }
    .section { padding: 24px 0; }
    .container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .nav { padding: 0 14px; gap: 10px; }
    .nav-logo span { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-img { height: 130px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 28px; }
    .hero-search-big button { padding: 0 16px; font-size: 14px; }
    .shop-card { padding: 12px; gap: 10px; }
    .shop-logo { width: 42px; height: 42px; font-size: 14px; }
    .hero-stat-divider { display: none; }
}
@media (max-width: 900px) {
    .nav-search {
        max-width: none;
        min-width: 180px;
    }

    .nav-search-btn {
        min-width: 44px;
        font-size: 0;
        padding: 9px 13px;
    }

    .nav-search-btn::before {
        content: "🔍";
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════
   ADDITIONAL — v2 updates
   All new classes added in the restructure
══════════════════════════════════════════════ */

/* ── Business dashboard shell ── */
.dash-shell         { display:flex; min-height:100vh; padding-top:var(--nav); }
.dash-main          { flex:1; margin-left:var(--sidebar); padding:28px 32px; min-width:0; min-height:calc(100vh - var(--nav)); }
.dash-page-header   { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.dash-page-title    { font-size:22px; font-weight:800; color:var(--text); margin-bottom:4px; }
.dash-page-sub      { font-size:14px; color:var(--text2); }

/* ── Sidebar business card ── */
.sidebar-biz-card   { background:var(--brand-light); border:1px solid rgba(232,80,10,.15); border-radius:var(--r); padding:12px; margin-bottom:18px; }
.sidebar-biz-name   { font-size:13px; font-weight:800; color:var(--brand); margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-biz-status { font-size:11px; font-weight:600; display:flex; align-items:center; gap:5px; }
.status-dot         { width:7px; height:7px; border-radius:50%; }
.status-dot.active    { background:var(--green); }
.status-dot.pending   { background:var(--accent); }
.status-dot.suspended { background:var(--red); }

/* ── Admin nav (dark) ── */
.admin-shell        { display:flex; min-height:100vh; padding-top:var(--nav); }
.admin-nav          { position:fixed; top:0; left:0; right:0; z-index:200; height:var(--nav); background:#1C1B18; display:flex; align-items:center; padding:0 20px; gap:12px; }
.admin-main         { flex:1; margin-left:220px; padding:28px 32px; min-width:0; min-height:calc(100vh - var(--nav)); }
.admin-sidebar      { width:220px; min-width:220px; background:var(--surface); border-right:1px solid var(--border); padding:16px 10px; position:fixed; top:var(--nav); left:0; height:calc(100vh - var(--nav)); overflow-y:auto; z-index:100; }

/* ── Mobile sidebar toggle ── */
.sidebar-toggle     { display:none; background:none; border:none; font-size:22px; cursor:pointer; color:var(--text2); padding:4px 8px; border-radius:var(--r-sm); }
.sidebar-overlay    { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:99; }
.sidebar-overlay.show { display:block; }

/* ── Onboarding empty (new businesses with 0 products) ── */
.onboarding-empty           { background:var(--surface); border:1.5px dashed var(--border2); border-radius:var(--r-lg); padding:48px 32px; text-align:center; }
.onboarding-empty .oe-icon  { font-size:44px; margin-bottom:16px; }
.onboarding-empty .oe-title { font-size:20px; font-weight:800; margin-bottom:8px; }
.onboarding-empty .oe-sub   { font-size:14px; color:var(--text2); line-height:1.7; margin-bottom:24px; max-width:360px; margin-left:auto; margin-right:auto; }
.onboarding-steps           { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:28px; }
.onboarding-step            { display:flex; align-items:center; gap:8px; background:var(--surface2); border-radius:var(--r); padding:10px 16px; font-size:13px; font-weight:600; color:var(--text2); }
.onboarding-step-num        { width:22px; height:22px; border-radius:50%; background:var(--brand-light); color:var(--brand); font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ── Image placeholder (no-photo product card) ── */
.img-placeholder            { display:flex; flex-direction:column; align-items:center; gap:8px; }
.img-placeholder svg        { opacity:.3; }
.img-placeholder span       { font-size:10px; font-weight:700; color:var(--text3); letter-spacing:.06em; text-transform:uppercase; }

/* ── Admin badge pill ── */
.admin-badge        { background:var(--brand); color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:4px; letter-spacing:.04em; text-transform:uppercase; }

/* ── Responsive additions ── */
@media (max-width:1024px) {
    .admin-sidebar { display:none; }
    .admin-main    { margin-left:0; padding:20px 16px; }
    .dash-main     { margin-left:0; padding:20px 16px; }
    .sidebar-toggle { display:flex; align-items:center; }
}
@media (max-width:600px) {
    .dash-main  { padding:16px 12px; }
    .admin-main { padding:16px 12px; }
}


/* ══════════════════════════════════════════
   SUBSCRIPTION & PLANS
══════════════════════════════════════════ */

/* Duration tab switcher */
.plan-tabs          { display:flex; gap:4px; margin-bottom:28px; background:var(--surface2); padding:4px; border-radius:10px; width:fit-content; }
.plan-tab           { padding:8px 18px; border-radius:8px; font-size:13px; font-weight:700; border:none; cursor:pointer; transition:all .2s; position:relative; background:transparent; color:var(--text2); }
.plan-tab.active    { background:#fff; color:var(--brand); box-shadow:0 1px 4px rgba(0,0,0,.08); }
.plan-tab-badge     { position:absolute; top:-8px; right:-4px; background:#16a34a; color:#fff; font-size:9px; font-weight:800; padding:2px 5px; border-radius:4px; letter-spacing:.03em; }

/* Plan comparison grid */
.plan-grid          { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:32px; }

/* Individual plan card */
.plan-card          { border:2px solid var(--border); border-radius:14px; padding:28px; position:relative; background:#fff; transition:box-shadow .2s; }
.plan-card:hover    { box-shadow:var(--shadow-md); }
.plan-card.plan-pro { border-color:var(--border); }
.plan-card.plan-premium { border-color:var(--brand); }

/* Popular badge */
.plan-popular-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff; font-size:11px; font-weight:800; padding:4px 14px; border-radius:20px; letter-spacing:.05em; white-space:nowrap; }

/* Current plan badge */
.plan-current-badge { position:absolute; top:16px; right:16px; background:#f0fdf4; color:#16a34a; font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; border:1px solid #86efac; }

/* Tier label */
.plan-tier-label    { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.plan-tier-label.free    { color:var(--text2); }
.plan-tier-label.pro     { color:#2563eb; }
.plan-tier-label.premium { color:var(--brand); }

/* Price */
.plan-price         { font-size:36px; font-weight:900; color:var(--brand); line-height:1; }
.plan-price.free    { color:var(--text2); }
.plan-price-period  { font-size:13px; font-weight:400; color:var(--text2); }
.plan-price-sub     { font-size:12px; color:var(--text3); margin-bottom:16px; margin-top:4px; }
.plan-savings       { font-size:12px; color:#16a34a; font-weight:600; margin-bottom:16px; }

/* Feature list */
.plan-features      { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.plan-feature-item  { display:flex; align-items:center; gap:10px; font-size:13px; }
.plan-feature-icon  { width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; flex-shrink:0; }
.plan-feature-icon.yes  { background:#dcfce7; color:#16a34a; }
.plan-feature-icon.no   { background:#f3f4f6; color:#9ca3af; }
.plan-feature-text.yes  { color:var(--text); }
.plan-feature-text.no   { color:var(--text3); }

/* CTA buttons */
.plan-cta-current   { width:100%; padding:12px; background:#f0fdf4; border:1.5px solid #86efac; border-radius:8px; text-align:center; font-size:14px; font-weight:700; color:#16a34a; }
.plan-cta-downgrade { width:100%; padding:12px; background:var(--surface2); border-radius:8px; text-align:center; font-size:13px; color:var(--text3); font-weight:600; }
.plan-cta-btn       { width:100%; padding:12px; border-radius:8px; font-size:14px; font-weight:700; cursor:pointer; transition:opacity .2s; border:2px solid var(--brand); }
.plan-cta-btn.pro   { background:#fff; color:var(--brand); }
.plan-cta-btn.premium { background:var(--brand); color:#fff; }
.plan-cta-btn:hover { opacity:.85; }

/* Current subscription banner */
.plan-active-banner { background:#f0fdf4; border:1.5px solid #86efac; border-radius:var(--r); padding:18px 20px; margin-bottom:28px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.plan-active-icon   { width:40px; height:40px; background:#16a34a; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; color:#fff; }
.plan-active-name   { font-size:15px; font-weight:700; color:#16a34a; }
.plan-active-meta   { font-size:13px; color:var(--text2); }
.plan-free-banner   { background:#fffbeb; border:1.5px solid #fcd34d; border-radius:var(--r); padding:14px 18px; margin-bottom:28px; font-size:14px; color:#92400e; }

/* Demo note */
.plan-demo-note     { background:var(--surface2); border-radius:var(--r); padding:14px 18px; font-size:13px; color:var(--text2); display:flex; align-items:flex-start; gap:10px; }

/* Admin plan cards */
.admin-plan-grid    { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.admin-plan-card    { border:1.5px solid var(--border); border-radius:12px; padding:20px; background:#fff; transition:box-shadow .2s; }
.admin-plan-card:hover { box-shadow:var(--shadow-md); }
.admin-plan-card.inactive { opacity:.6; }
.admin-plan-limits  { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px; background:var(--surface2); border-radius:8px; margin-bottom:12px; font-size:12px; color:var(--text2); }
.admin-plan-limits strong { color:var(--text); }
.admin-plan-flags   { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.plan-flag          { font-size:11px; padding:2px 8px; border-radius:4px; font-weight:600; }
.plan-flag.analytics     { background:#dbeafe; color:#1d4ed8; }
.plan-flag.adv-analytics { background:#ede9fe; color:#6d28d9; }
.plan-flag.priority      { background:#dcfce7; color:#16a34a; }
.plan-flag.duration      { background:#f3f4f6; color:#6b7280; }
.plan-tier-section  { margin-bottom:28px; }
.plan-tier-header   { display:flex; align-items:center; gap:10px; margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--border); }
.plan-tier-title    { font-size:16px; font-weight:800; }
.plan-tier-title.free    { color:var(--text2); }
.plan-tier-title.pro     { color:#2563eb; }
.plan-tier-title.premium { color:var(--brand); }
.plan-tier-count    { font-size:13px; color:var(--text3); }