@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #e8620a; --orange-bg: #fff4ec; --orange-hover: #c4500a;
    --red: #dc2626; --bg: #efefef; --card: #ffffff; --border: #e2e2de;
    --text: #1a1a1a; --text-2: #555550; --text-3: #888882;
    --green: #16a34a; --blue: #2563eb;
    --sidebar-w: 240px; --right-w: 210px;
    --font: 'IBM Plex Sans', sans-serif; --mono: 'IBM Plex Mono', monospace;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* DESKTOP HEADER */
#header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; height: 48px; display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.logo { font-size: 15px; font-weight: 700; color: var(--red); white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.logo-box { width: 22px; height: 22px; background: var(--red); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }
.header-search { display: flex; align-items: center; flex: 1; max-width: 380px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.header-search input { flex: 1; border: none; background: transparent; padding: 5px 10px; font-size: 12px; font-family: var(--font); outline: none; color: var(--text); min-width: 0; }
.header-search button { background: var(--orange); border: none; color: #fff; padding: 5px 12px; cursor: pointer; font-size: 11px; font-weight: 600; }
.header-search button:hover { background: var(--orange-hover); }
.header-nav { display: flex; gap: 2px; margin: 0 2px; }
.header-nav a { padding: 5px 8px; border-radius: 4px; color: var(--text-2); text-decoration: none; font-size: 11px; font-weight: 500; white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { background: var(--bg); color: var(--text); }
.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 5px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--text-2); font-size: 14px; flex-shrink: 0; }
.icon-btn:hover { background: var(--bg); }
.badge { position: absolute; top: -4px; right: -4px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; border-radius: 8px; padding: 1px 4px; font-family: var(--mono); }
.btn-signin { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-2); font-family: var(--font); white-space: nowrap; }
.btn-signin:hover { background: var(--bg); }
.btn-signup { background: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; color: #fff; font-family: var(--font); white-space: nowrap; }
.btn-signup:hover { background: #b91c1c; }
.buyer-controls { display: flex; align-items: center; gap: 5px; min-width: 0; }
.fav-wrap { display: flex; align-items: center; gap: 3px; border: 1px solid var(--border); border-radius: 4px; padding: 3px 7px; cursor: pointer; font-size: 11px; color: var(--text-2); background: none; font-family: var(--font); }
.fav-wrap:hover { background: var(--bg); }
.balance-chip { background: var(--orange-bg); border: 1px solid #fcd5b0; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; color: var(--orange); font-family: var(--mono); white-space: nowrap; }
.create-store-btn { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 9px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-2); font-family: var(--font); white-space: nowrap; }
.create-store-btn:hover { background: var(--bg); }
.avatar-sm { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.buyer-profile-btn { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-2); font-family: var(--font); white-space: nowrap; }
.buyer-profile-btn:hover { background: var(--bg); }
.profile-wrap { position: relative; }
.dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 6px; min-width: 155px; box-shadow: 0 4px 16px rgba(0,0,0,.1); display: none; z-index: 200; }
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 7px 12px; font-size: 11px; color: var(--text-2); text-decoration: none; }
.dropdown a:hover { background: var(--bg); color: var(--text); }
.dropdown-sep { border-top: 1px solid var(--border); }

/* MOBILE HEADER */
#header-mobile { display: none; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 0 12px; height: 50px; align-items: center; justify-content: space-between; }
.mob-hamburger { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-2); padding: 4px; }
.mob-logo { font-size: 15px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 5px; text-decoration: none; }
.mob-icons { display: flex; gap: 6px; align-items: center; }
.mob-icon-btn { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-2); padding: 4px; position: relative; }

/* MOBILE SEARCH BAR */
#mob-search-bar { display: none; background: var(--card); border-bottom: 1px solid var(--border); padding: 8px 12px; position: sticky; top: 50px; z-index: 99; }
#mob-search-bar.open { display: flex; gap: 6px; align-items: center; }
#mob-search-bar input { flex: 1; border: 1px solid var(--border); border-radius: 5px; padding: 7px 10px; font-size: 13px; font-family: var(--font); outline: none; color: var(--text); background: var(--bg); min-width: 0; }
#mob-search-bar input:focus { border-color: var(--orange); }
#mob-search-bar .mob-search-btn { background: var(--orange); border: none; color: #fff; padding: 7px 14px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font); white-space: nowrap; }
#mob-search-bar .mob-search-btn:hover { background: var(--orange-hover); }
#mob-search-bar .mob-search-clear { background: none; border: 1px solid var(--border); color: var(--text-3); padding: 7px 10px; border-radius: 5px; font-size: 12px; cursor: pointer; font-family: var(--font); }

.mob-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; }
.mob-drawer-overlay.open { display: block; }
.mob-drawer { position: fixed; left: -270px; top: 0; bottom: 0; width: 270px; background: var(--card); z-index: 301; transition: left .25s; overflow-y: auto; }
.mob-drawer.open { left: 0; }
.mob-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); }
.mob-drawer-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-3); }
.mob-drawer-sec { padding: 8px 0; border-bottom: 1px solid var(--border); }
.mob-drawer-sec .sec-label { padding: 4px 14px; font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.mob-drawer-sec a { display: flex; align-items: center; gap: 9px; padding: 9px 14px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.mob-drawer-sec a:hover { background: var(--bg); }

/* APP */
#app { max-width: 1360px; margin: 0 auto; padding: 14px 16px; width: 100%; }

/* HOME GRID */
.home-grid { display: grid; grid-template-columns: minmax(220px, var(--sidebar-w)) minmax(0, 1fr) minmax(190px, var(--right-w)); gap: 16px; align-items: start; width: 100%; }
.col-left, .col-center, .col-right { min-width: 0; width: 100%; }
.col-center { display: flex; flex-direction: column; gap: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; width: 100%; overflow: hidden; }
.card-head { padding: 9px 12px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; }
.cat-list { list-style: none; padding: 4px 0; }
.cat-list li a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; color: var(--text-2); text-decoration: none; font-size: 12px; min-width: 0; }
.cat-list li a:hover { background: var(--bg); color: var(--text); }
.cat-list li a.active { background: var(--orange-bg); color: var(--orange); font-weight: 600; }
.cat-icon { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }

/* mobile strip */
.mob-user-strip { display: none; background: linear-gradient(135deg, #c0392b 0%, #e8620a 100%); padding: 14px 12px; margin: -14px -16px 14px; }
.mob-user-strip-inner { display: flex; gap: 16px; align-items: center; }
.mob-user-chip, .mob-store-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.mob-avatar-circle, .mob-store-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.mob-user-name { font-size: 11px; color: #fff; font-weight: 600; }

/* welcome */
.welcome-card { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: #fff; border-radius: 7px; padding: 18px 20px; margin-bottom: 10px; position: relative; overflow: hidden; width: 100%; }
.welcome-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 100px; height: 100px; border-radius: 50%; background: rgba(232,98,10,.2); }
.welcome-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.welcome-card p { font-size: 12px; color: rgba(255,255,255,.65); max-width: 360px; line-height: 1.6; }
.welcome-btns { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-orange { background: var(--orange); color: #fff; border: none; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-red { background: var(--red); color: #fff; border: none; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-red:hover { background: #b91c1c; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* top stores */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; width: 100%; }
.section-head h3 { font-size: 12px; font-weight: 700; min-width: 0; }
.section-head a { font-size: 11px; color: var(--orange); text-decoration: none; white-space: nowrap; }
.top-week { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; width: 100%; }
.top-week::-webkit-scrollbar { height: 3px; }
.top-week::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.store-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; cursor: pointer; flex-shrink: 0; }
.store-chip .sc-icon { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--card); }
.store-chip .sc-name { font-size: 9px; color: var(--text-2); text-align: center; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* PRODUCT GRID */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 8px; 
    margin-top: 8px; 
    width: 100%; 
    align-items: start;
}

.product-grid > * {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0;
}
.prod-card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 10px 8px; cursor: pointer; transition: box-shadow .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.prod-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); border-color: #ccc; }
.prod-card .pc-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 7px; background: var(--bg); flex-shrink: 0; }
.prod-card .pc-title { font-size: 11px; font-weight: 600; margin-bottom: 3px; line-height: 1.35; text-align: center; width: 100%; word-break: break-word; }
.prod-card .pc-qty { font-size: 10px; color: var(--text-3); margin-bottom: 3px; text-align: center; width: 100%; }
.prod-card .pc-price { font-size: 13px; font-weight: 700; color: var(--orange); font-family: var(--mono); margin-bottom: 7px; text-align: center; width: 100%; }
.pc-tags { display: flex; gap: 3px; margin-bottom: 4px; flex-wrap: wrap; justify-content: center; width: 100%; }
.tag { font-size: 9px; padding: 2px 5px; border-radius: 10px; font-weight: 600; }
.tag-hot { background: #fee2e2; color: #dc2626; }
.tag-new { background: #dcfce7; color: #16a34a; }
.tag-top { background: var(--orange-bg); color: var(--orange); }
.btn-view { background: var(--red); color: #fff; border: none; width: 100%; padding: 5px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: var(--font); margin-top: auto; }
.btn-view:hover { background: #b91c1c; }
.no-results { text-align: center; padding: 28px; color: var(--text-3); font-size: 12px; }

/* right sidebar */
.profile-card { padding: 14px; text-align: center; width: 100%; }
.avatar-lg { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; }
.profile-card .uname { font-weight: 700; font-size: 12px; margin-bottom: 2px; word-break: break-word; }
.profile-card .ulevel { font-size: 10px; color: var(--text-3); margin-bottom: 8px; }
.profile-card a { display: block; font-size: 11px; color: var(--orange); text-decoration: none; margin-bottom: 3px; word-break: break-word; }
.profile-card .logout-link { color: var(--text-3); }
.promo-card { padding: 10px; width: 100%; }
.promo-item { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.promo-item:last-child { border-bottom: none; }
.promo-item .pi-icon { font-size: 14px; flex-shrink: 0; }
.promo-item .pi-info { flex: 1; min-width: 0; }
.promo-item .pi-name { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-item .pi-disc { font-size: 9px; color: var(--red); font-weight: 700; }

/* STORE DASHBOARD */
.store-balance-grid { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.store-menu-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.store-menu-title { padding: 9px 12px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 12px; color: var(--text); }
.store-menu { list-style: none; padding: 4px 0; }
.store-menu li a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.store-menu li a:hover { background: var(--bg); color: var(--text); }
.store-menu li a.active { color: var(--red); font-weight: 600; }
.store-menu li a .sm-icon { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }
.store-info-card { padding: 10px 12px; border-top: 1px solid var(--border); }
.store-info-card .si-icon { font-size: 22px; margin-bottom: 4px; }
.store-info-card .si-name { font-weight: 700; font-size: 12px; }
.store-info-card .si-email { font-size: 10px; color: var(--text-3); margin-bottom: 5px; }
.store-info-card .si-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 2px; gap: 8px; }
.store-info-card .si-row span:last-child { font-weight: 600; font-family: var(--mono); }
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.products-header h2 { font-size: 14px; font-weight: 700; }
.prod-list { display: flex; flex-direction: column; gap: 7px; }
.prod-row { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.prod-row .pr-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.prod-row .pr-info { flex: 1; min-width: 0; }
.prod-row .pr-title { font-size: 11px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-row .pr-stats { font-size: 10px; color: var(--text-3); }
.prod-row .pr-price { font-size: 13px; font-weight: 700; color: var(--orange); font-family: var(--mono); min-width: 60px; text-align: right; }
.prod-row .pr-qty { font-size: 10px; color: var(--text-2); min-width: 50px; text-align: right; }
.prod-row .pr-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; cursor: pointer; font-family: var(--font); border: none; }
.btn-sm-orange { background: var(--orange); color: #fff; }
.btn-sm-orange:hover { background: var(--orange-hover); }
.btn-sm-outline { background: none; border: 1px solid var(--border); color: var(--text-2); }
.btn-sm-red { background: #fee2e2; color: var(--red); border: 1px solid #fecaca; }
.btn-sm-red:hover { background: #fecaca; }
.btn-sm-top { background: var(--orange-bg); color: var(--orange); border: 1px solid #fcd5b0; }
.btn-sm-top:hover { background: #fcd5b0; }

/* BALANCE */
.balance-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bal-stat { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; min-width: 0; }
.bal-stat .bs-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.bal-stat .bs-amount { font-size: 20px; font-weight: 700; font-family: var(--mono); color: var(--text); word-break: break-word; }
.bal-stat .bs-amount.green { color: var(--green); }
.bal-stat .bs-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.bal-mini-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.bal-mini { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; min-width: 0; }
.bal-mini .bm-label { font-size: 10px; color: var(--text-3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .3px; }
.bal-mini .bm-val { font-size: 14px; font-weight: 700; font-family: var(--mono); word-break: break-word; }
.bal-info-box { background: var(--orange-bg); border: 1px solid #fcd5b0; border-radius: 6px; padding: 9px 12px; font-size: 11px; color: var(--orange-hover); margin-bottom: 10px; line-height: 1.6; }

/* TABLE */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; width: 100%; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { background: var(--bg); padding: 8px 12px; text-align: left; font-size: 10px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid var(--border); }
.table-wrap td { padding: 8px 12px; font-size: 11px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--bg); }
.tx-id { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.tx-plus { color: var(--green); font-weight: 600; font-family: var(--mono); }
.tx-minus { color: var(--red); font-weight: 600; font-family: var(--mono); }
.tx-badge { padding: 2px 6px; border-radius: 10px; font-size: 9px; font-weight: 600; }
.txb-sale { background: #dcfce7; color: #16a34a; }
.txb-withdraw { background: #fee2e2; color: #dc2626; }
.txb-deposit { background: #dbeafe; color: #2563eb; }
.txb-refund { background: #fef9c3; color: #ca8a04; }
.txb-frozen { background: #ede9fe; color: #7c3aed; }

/* BUYER PROFILE */
.buyer-grid { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.buyer-menu-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.buyer-menu-title { padding: 9px 12px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 12px; color: var(--text); }
.buyer-menu { list-style: none; padding: 4px 0; }
.buyer-menu li a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.buyer-menu li a:hover { background: var(--bg); color: var(--text); }
.buyer-menu li a.active { color: var(--red); font-weight: 600; }
.buyer-menu li a .sm-icon { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }

/* ORDER CARD */
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; }
.order-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.order-card-icon { font-size: 18px; flex-shrink: 0; }
.order-card-title { font-size: 11px; font-weight: 700; flex: 1; min-width: 0; }
.order-card-id { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.order-card-meta { font-size: 10px; color: var(--text-2); margin-bottom: 8px; }
.order-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-download { background: var(--orange); color: #fff; border: none; padding: 5px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-download:hover { background: var(--orange-hover); }
.btn-dispute { background: none; border: 1px solid var(--border); color: var(--text-3); padding: 5px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-dispute:hover { border-color: var(--red); color: var(--red); }

/* CREATE STORE */
.create-store-wrap { max-width: 700px; }
.cs-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 20px 24px; }
.cs-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cs-info { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; padding: 10px 14px; background: var(--bg); border-radius: 5px; border-left: 3px solid var(--orange); }
.form-row { margin-bottom: 11px; }
.form-row label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.form-row label .req { color: var(--red); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; font-family: var(--font); outline: none; color: var(--text); background: var(--card); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--orange); }
.form-row textarea { resize: vertical; min-height: 76px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-row { display: flex; gap: 7px; align-items: center; margin-bottom: 7px; }
.contact-row input { flex: 1; min-width: 0; }
.contact-row select { width: 140px; }
.contact-del { background: #fee2e2; border: 1px solid #fecaca; color: var(--red); border-radius: 4px; padding: 5px 9px; font-size: 11px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn-add-contact { background: var(--orange); color: #fff; border: none; border-radius: 50%; width: 26px; height: 26px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 4px; }

/* MODERATION PENDING */
.moderation-wrap { max-width: 580px; margin: 40px auto; }
.moderation-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 40px 30px; text-align: center; }
.mod-clock { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%); display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(232,98,10,0.3); }
.mod-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.mod-text { font-size: 13px; color: var(--text-2); line-height: 1.8; max-width: 400px; margin: 0 auto 20px; }
.mod-steps { text-align: left; background: var(--bg); border-radius: 6px; padding: 14px 18px; margin-bottom: 20px; }
.mod-step { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--text-2); margin-bottom: 7px; line-height: 1.6; }
.mod-step:last-child { margin-bottom: 0; }
.mod-step-num { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.mod-demo-btn { background: var(--green); color: #fff; border: none; padding: 8px 18px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.mod-demo-btn:hover { background: #14864a; }

/* PRODUCT DETAIL */
.breadcrumbs { font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.breadcrumbs a { color: var(--orange); text-decoration: none; }
.breadcrumbs span { margin: 0 4px; }
.detail-grid { display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.detail-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail-icon-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.detail-icon-wrap .di-icon { font-size: 54px; }
.detail-icon-wrap .di-seller { font-size: 10px; color: var(--text-3); text-align: center; }
.detail-icon-wrap .di-seller a { color: var(--orange); text-decoration: none; }
.detail-buy-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 14px; }
.detail-price { font-size: 24px; font-weight: 700; color: var(--orange); font-family: var(--mono); margin-bottom: 4px; word-break: break-word; }
.detail-old-price { font-size: 14px; color: var(--text-3); text-decoration: line-through; font-family: var(--mono); margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--bg); border-radius: 4px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-display { font-size: 14px; font-weight: 700; min-width: 30px; text-align: center; font-family: var(--mono); }
.btn-buy { background: var(--red); color: #fff; border: none; width: 100%; padding: 9px; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font); margin-bottom: 6px; }
.btn-buy:hover { background: #b91c1c; }
.btn-add-cart { background: var(--orange-bg); border: 1px solid #fcd5b0; color: var(--orange); width: 100%; padding: 7px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); margin-bottom: 6px; }
.btn-add-cart:hover { background: #fcd5b0; }
.detail-main { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 16px 18px; min-width: 0; }
.detail-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; word-break: break-word; }
.detail-desc { font-size: 12px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.feature-list li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.detail-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 12px; margin-top: 14px; overflow-x: auto; }
.detail-tab { padding: 7px 14px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.detail-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* PUBLIC STORE PAGE */
.store-banner { width: 100%; height: 160px; background: linear-gradient(135deg,#1a1a1a,#2d2d2d); border-radius: 7px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; position: relative; overflow: hidden; }
.store-profile-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 16px; margin-bottom: 12px; }
.store-avatar-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.store-avatar-big { width: 70px; height: 70px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; border: 3px solid var(--border); }
.store-verified-badge { display: inline-flex; align-items: center; gap: 4px; background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; margin-left: 6px; }
.store-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.store-tab { padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.store-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.store-tab-content { display: none; }
.store-tab-content.active { display: block; }

/* VERIFICATION */
.verif-benefit-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 13px 15px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 12px; }
.verif-icon-circle { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--orange)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.verif-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.verif-info p { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.verif-status-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 15px; text-align: center; margin-bottom: 10px; }
.status-badge-big { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.status-not-verified { background: #fee2e2; color: #dc2626; }
.status-pending { background: #fef9c3; color: #ca8a04; }
.status-verified { background: #dcfce7; color: #16a34a; }

/* ADD PRODUCT */
.add-product-grid { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.app-icons-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.app-icon-opt { width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: border-color .15s; }
.app-icon-opt.selected { border-color: var(--orange); background: var(--orange-bg); }
.app-icon-opt:hover { border-color: #bbb; }

/* DISPUTE */
.dispute-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 15px 17px; }
.dispute-order-info { background: var(--bg); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-size: 11px; }

/* BLOG + FOOTER */
.blog-section { margin-top: 24px; width: 100%; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; width: 100%; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; cursor: pointer; min-width: 0; }
.blog-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.blog-card-img { height: 90px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.blog-card-body { padding: 10px 12px; }
.blog-card-date { font-size: 9px; color: var(--text-3); margin-bottom: 4px; }
.blog-card-title { font-size: 11px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.blog-card-text { font-size: 10px; color: var(--text-2); line-height: 1.5; margin-bottom: 7px; }
.blog-card-link { font-size: 10px; color: var(--orange); text-decoration: none; font-weight: 600; }

/* FOOTER */
.site-footer { background: #1e1e1e; color: #ccc; margin-top: 32px; padding: 30px 0 12px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.footer-brand .fb-logo { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.footer-brand .fb-logo .logo-box { background: var(--red); }
.footer-brand p { font-size: 11px; line-height: 1.7; color: #999; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 11px; color: #999; text-decoration: none; margin-bottom: 5px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding: 12px 20px 0; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #666; gap: 12px; }

/* TERMS */
.terms-page { max-width: 800px; }
.terms-card { background: var(--card); border: 1px solid var(--border); border-radius: 7px; padding: 24px 28px; margin-bottom: 12px; }
.terms-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; border-bottom: 2px solid var(--orange); padding-bottom: 8px; }
.terms-card h3 { font-size: 13px; font-weight: 700; margin: 14px 0 6px; color: var(--text); }
.terms-card p, .terms-card li { font-size: 12px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.terms-card ul, .terms-card ol { padding-left: 18px; margin-bottom: 10px; }
.terms-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.terms-nav-btn { padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-family: var(--font); }
.terms-nav-btn:hover { background: var(--bg); }
.terms-nav-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: 8px; width: 460px; max-width: 95vw; box-shadow: 0 12px 48px rgba(0,0,0,.2); }
.modal-head { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h3 { font-size: 13px; font-weight: 700; min-width: 0; }
.modal-close { background: none; border: none; font-size: 17px; cursor: pointer; color: var(--text-3); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 15px; }
.modal-foot { padding: 11px 15px; border-top: 1px solid var(--border); display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.btn-cancel { background: none; border: 1px solid var(--border); padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-2); font-family: var(--font); }
.btn-cancel:hover { background: var(--bg); }
.promo-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; margin-bottom: 11px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.promo-preview .pp-icon { font-size: 18px; flex-shrink: 0; }
.promo-preview .pp-title { font-size: 11px; font-weight: 600; }
.promo-preview .pp-price { font-size: 11px; font-weight: 700; color: var(--orange); font-family: var(--mono); margin-top: 2px; }
.calc-price { font-size: 12px; color: var(--text-2); margin-bottom: 11px; }
.calc-price strong { color: var(--orange); font-family: var(--mono); font-size: 14px; }
.wallet-field { display: none; }
.wallet-field.visible { display: block; }
.method-info { background: var(--orange-bg); border: 1px solid #fcd5b0; border-radius: 5px; padding: 7px 11px; font-size: 11px; color: var(--orange-hover); margin-bottom: 11px; }
.radio-group { display: flex; gap: 7px; }
.radio-opt { flex: 1; border: 2px solid var(--border); border-radius: 6px; padding: 8px; cursor: pointer; text-align: center; min-width: 0; }
.radio-opt.selected { border-color: var(--orange); background: var(--orange-bg); }
.radio-opt input[type=radio] { display: none; }
.radio-opt .ro-label { font-size: 11px; font-weight: 600; color: var(--text); }
.radio-opt .ro-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; }

/* AUTH MODAL */
.auth-modal { width: 380px; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.auth-tab { flex: 1; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* TOAST */
#toast { position: fixed; bottom: 20px; right: 20px; background: #1a1a1a; color: #fff; padding: 9px 16px; border-radius: 6px; font-size: 11px; font-weight: 500; z-index: 999; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; max-width: 280px; }
#toast.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    #app { max-width: 1180px; }
    .home-grid { grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 14px; }
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 1050px) {
    .home-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .home-grid .col-right { display: none; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 820px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-grid .col-left { display: none; }
    .store-balance-grid, .buyer-grid, .add-product-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .balance-stats-row { grid-template-columns: 1fr 1fr; }
    .bal-mini-row { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 640px) {
    #header { display: none; }
    #header-mobile { display: flex; }
    #app { padding: 10px 12px; }
    .mob-user-strip { display: block; }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .prod-row .pr-qty, .prod-row .pr-stats { display: none; }
    .form-2col { grid-template-columns: 1fr; }
    .bal-mini-row { grid-template-columns: 1fr; }
    .table-wrap { overflow-x: auto; }
    .table-wrap table { min-width: 480px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── WITHDRAWAL STATUS BADGES (added) ─────────────────────────── */
.txb-promo    { background: #ede9fe; color: #6d28d9; }
.txb-refund   { background: #fef9c3; color: #854d0e; }
.txb-purchase { background: #fce7f3; color: #9d174d; }

/* Withdrawal status colours map to existing badges:
   pending    → txb-deposit  (blue)
   processing → txb-promo    (purple)
   successful → txb-sale     (green)
   rejected   → txb-withdraw (red)
*/

/* ── ADMIN NAV LINK BUTTONS ───────────────────────────────────── */
.btn-sm-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 600;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

/* ───────────────── HSTOCK STYLE STORE CARDS ───────────────── */

.top-stores-card{
    padding: 12px;
    background: #f6f6f6;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.hstock-store-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.hstock-store-card{
    position: relative;
    display: block;
    background: #ffffff;
    border: 1px solid #f0a15f;
    border-radius: 14px;
    padding: 12px 12px 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(233, 131, 42, 0.20);
    min-height: 250px;
    overflow: hidden;
}

.hstock-store-card:hover{
    box-shadow: 0 6px 18px rgba(233, 131, 42, 0.28);
    transform: translateY(-1px);
}

.hstock-store-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #64b8ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(100,184,255,.4);
}

.hstock-store-logo-top{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.hstock-store-logo{
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f4f4;
    border: 1px solid #ececec;
}

.hstock-store-fallback{
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #f4f4f4;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.hstock-store-name{
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: break-word;
    min-height: 34px;
}

.hstock-store-rating-row{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 6px;
}

.hstock-store-rating-label{
    font-size: 11px;
    color: #999999;
    line-height: 1;
}

.hstock-store-stars{
    display: flex;
    gap: 1px;
    line-height: 1;
}

.hstock-store-stars span{
    font-size: 18px;
    color: #dddddd;
}

.hstock-store-stars span.active{
    color: #ff4b1f;
}

.hstock-store-meta{
    font-size: 11px;
    color: #777777;
    line-height: 1.35;
    margin-bottom: 10px;
}

.hstock-store-stat-row{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.hstock-store-mini-icon{
    width: 16px;
    min-width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.hstock-store-sales-value{
    font-size: 14px;
    font-weight: 700;
    color: #d7a126;
}

.hstock-store-insurance-value{
    font-size: 14px;
    font-weight: 700;
    color: #1fbe63;
}

@media (max-width: 1200px){
    .hstock-store-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px){
    .hstock-store-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px){
    .hstock-store-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hstock-store-card{
        min-height: 235px;
    }

    .hstock-store-logo,
    .hstock-store-fallback{
        width: 74px;
        height: 74px;
    }

    .hstock-store-stars span{
        font-size: 16px;
    }
}

@media (max-width: 480px){
    .hstock-store-grid{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hstock-store-card{
        min-height: auto;
    }
}

.btn-sm-outline:hover { border-color: var(--orange); color: var(--orange); }


/* =========================
   HSTOCK BLOG + FOOTER
========================= */

.home-bottom-wrap {
    margin-top: 2px;
}

.hstock-blog-section {
    background: #f3f3f3;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.hstock-bottom-head {
    margin-bottom: 16px;
}

.hstock-bottom-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0;
}

.hstock-bottom-head a {
    font-size: 13px;
    color: #7a7a7a;
    text-decoration: none;
    font-weight: 500;
}

.hstock-bottom-head a:hover {
    color: #111;
}

.hstock-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hstock-blog-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.hstock-blog-thumb {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #e9e9e9;
}

.hstock-blog-thumb img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}

.hstock-blog-body {
    padding: 10px 2px 0;
}

.hstock-blog-date {
    font-size: 12px;
    color: #909090;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hstock-blog-body h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.hstock-blog-body h4 a {
    color: #2f2f2f;
    text-decoration: none;
}

.hstock-blog-body h4 a:hover {
    color: #111;
}

/* FOOTER */
.hstock-footer {
    margin-top: 18px;
    background: #f3f3f3;
    border-top: 1px solid #e4e4e4;
    padding: 0;
}

.hstock-footer-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 12px 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    border-bottom: 1px solid #e4e4e4;
}

.hstock-footer-col h4 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
}

.hstock-footer-col a {
    display: block;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
    transition: color .2s ease;
}

.hstock-footer-col a:hover {
    color: #111;
}

.hstock-footer-social {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 12px 18px;
    text-align: center;
    border-bottom: 1px solid #e4e4e4;
}

.hstock-footer-social p {
    margin: 0 0 14px;
    font-size: 15px;
    color: #444;
    font-weight: 600;
}

.hstock-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hstock-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dfdfdf;
    transition: all .2s ease;
}

.hstock-social-icons a:hover {
    transform: translateY(-2px);
    border-color: #cfcfcf;
    background: #fafafa;
}

.hstock-social-icons img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.hstock-footer-bottom {
    text-align: center;
    padding: 16px 12px 22px;
    font-size: 13px;
    color: #7c7c7c;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hstock-blog-grid {
        grid-template-columns: 1fr;
    }

    .hstock-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 576px) {
    .hstock-blog-section {
        padding: 14px;
    }

    .hstock-blog-thumb img {
        height: 180px;
    }

    .hstock-footer-top {
        grid-template-columns: 1fr;
        padding: 22px 14px 18px;
        gap: 20px;
    }

    .hstock-footer-social {
        padding: 18px 14px 16px;
    }

    .hstock-footer-col h4 {
        font-size: 16px;
    }

    .hstock-footer-col a {
        font-size: 13px;
    }
}



/* ===== HSTOCK EXACT FOOTER STYLE ===== */

.hstock-footer {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e9e9e9;
    margin-top: 18px;
}

.hstock-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.hstock-footer-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
    padding: 26px 0 22px;
    border-bottom: 1px solid #e8e8e8;
}

.hstock-footer-col h4 {
    margin: 0 0 12px;
    color: #6a6a6a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hstock-footer-col a {
    display: block;
    margin-bottom: 8px;
    color: #8b8b8b;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.hstock-footer-col a:hover {
    color: #444;
}

.hstock-footer-social {
    text-align: center;
    padding: 14px 0 14px;
    border-bottom: 1px solid #e8e8e8;
}

.hstock-footer-social p {
    margin: 0 0 12px;
    color: #6d6d6d;
    font-size: 14px;
    font-weight: 600;
}

.hstock-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hstock-social-icons a {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: transform .2s ease;
}

.hstock-social-icons a:hover {
    transform: translateY(-1px);
}

.hstock-social-icons .tg {
    background: #2ea5e5;
}

.hstock-social-icons .yt {
    background: #ff2d20;
    font-size: 10px;
}

.hstock-social-icons .vk {
    background: #2f7fd3;
    font-size: 9px;
    text-transform: lowercase;
}

.hstock-social-icons .dc {
    background: #5865f2;
    font-size: 10px;
}

.hstock-social-icons .tt {
    background: #111;
    font-size: 12px;
}

.hstock-footer-bottom {
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
    padding: 14px 0 18px;
}


/* Product Details Image */
.pd-image-box{
    width: 92px;
    height: 92px;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-product-img{
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}



/* responsive */
@media (max-width: 900px) {
    .hstock-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .hstock-footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hstock-footer-col h4 {
        font-size: 14px;
    }

    .hstock-footer-col a {
        font-size: 12px;
    }
}

/* HSTOCK LIGHT BOTTOM AREA */

body {
    background: #f7f7f7;
}

#app {
    background: #f7f7f7;
}

.home-shell {
    background: transparent;
}

.below-top-sections {
    background: transparent;
}

/* blog section ko white/light rakho */
.blog-section {
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
}

/* original footer ko light theme do */
.site-footer {
    width: 100%;
    background: #f7f7f7 !important;
    border-top: 1px solid #e7e7e7 !important;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 12px 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    border-bottom: 1px solid #e5e5e5;
    background: transparent !important;
}

.footer-brand p,
.footer-col a,
.footer-bottom span {
    color: #7b7b7b !important;
}

.footer-col h4,
.fb-logo {
    color: #444 !important;
}

.footer-col a {
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.footer-col a:hover {
    color: #222 !important;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 0;
}

.fb-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ef3b2d;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.footer-col h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8a8a8a;
    font-size: 12px;
    background: transparent !important;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}