/* ==========================================================================
   Gramin e-Bazaar — black & champagne-gold storefront (builds on gj-services / gj-pages)
   ========================================================================== */
#view-bazar > *:not(.gjb) { display: none !important; }
#view-bazar { --pa: #F6D58E; --pb: #E8A87C; --gold: #F6D58E; }

/* hero */
.gjb-hero::after { content: ""; position: absolute; inset: auto auto -30% -10%; width: 55%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(232,168,124,.14), transparent 70%); filter: blur(30px); pointer-events: none; }
.gjb-pop { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.gjb-pop span { font-size: .8rem; font-weight: 800; color: #A5B4CC !important; }
.gjb-pop button { padding: .3rem .8rem; border-radius: 999px; cursor: pointer; font-size: .8rem; font-weight: 700; color: #F0E3C2 !important; background: rgba(246,213,142,.08); border: 1px solid rgba(246,213,142,.25); transition: background .3s, transform .3s; }
.gjb-pop button:hover { background: rgba(246,213,142,.2); transform: translateY(-2px); }

.gjb-stage { position: relative; min-height: 340px; display: none; }
@media (min-width: 980px) { .gjb-stage { display: block; min-height: 420px; } }
.gjb-orb { position: absolute; inset: 12% 10%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(246,213,142,.35), rgba(232,168,124,.12) 45%, transparent 70%); filter: blur(10px); animation: gjbSpin 14s linear infinite; }
@keyframes gjbSpin { to { transform: rotate(360deg); } }
.gjb-float { position: absolute; width: 56%; padding: 10px; border-radius: 26px; cursor: pointer; text-align: left; background: linear-gradient(170deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 60px color-mix(in srgb, var(--a) 18%, transparent); transition: transform .5s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.gjb-float img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; background: #E9EEF4; }
.gjb-float span { display: block; padding: .6rem .3rem .2rem; }
.gjb-float b { display: block; font-family: var(--gj-font); font-size: .95rem; line-height: 1.3; color: #fff !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.gjb-float em { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--a) !important; }
.gjb-f0 { left: 0; top: 4%; transform: rotate(-6deg); animation: gjbFloat 7s ease-in-out infinite; }
.gjb-f1 { right: 0; top: 24%; transform: rotate(5deg); animation: gjbFloat 8s ease-in-out -2s infinite; z-index: 2; }
.gjb-f2 { left: 18%; bottom: 0; transform: rotate(-2deg); animation: gjbFloat 9s ease-in-out -4s infinite; z-index: 3; }
.gjb-float:hover { animation-play-state: paused; transform: scale(1.05) rotate(0); z-index: 5; }
@keyframes gjbFloat { 50% { translate: 0 -12px; } }

/* perks */
.gjb-perks { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gjb-perks { grid-template-columns: repeat(4, 1fr); } }
.gjb-perk { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 22px; background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); }
.gjb-perk i { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.05rem; color: #2A1D05 !important; background: linear-gradient(135deg, var(--pa), var(--pb)); }
.gjb-perk b { display: block; font-size: .92rem; color: #fff !important; font-family: var(--gj-font); }
.gjb-perk span { display: block; font-size: .76rem; line-height: 1.4; color: #A5B4CC !important; }

/* categories */
.gjb-cats { display: flex; gap: .7rem; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gjb-cat-tile { flex: 0 0 auto; scroll-snap-align: start; width: 158px; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .95rem; border-radius: 22px; cursor: pointer; text-align: left; background: linear-gradient(170deg, rgba(255,255,255,.065), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s; }
.gjb-cat-tile i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.1rem; color: #14100A !important; background: var(--a); box-shadow: 0 0 26px color-mix(in srgb, var(--a) 40%, transparent); }
.gjb-cat-tile b { font-family: var(--gj-font); font-size: .95rem; line-height: 1.3; color: #fff !important; }
.gjb-cat-tile em { font-style: normal; font-size: .74rem; font-weight: 700; color: #8FA3C0 !important; }
.gjb-cat-tile:hover, .gjb-cat-tile.on { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a) 60%, transparent); box-shadow: 0 0 50px color-mix(in srgb, var(--a) 16%, transparent); }
.gjb-cat-tile.on { background: linear-gradient(170deg, color-mix(in srgb, var(--a) 16%, transparent), rgba(255,255,255,.02)); }

.gjb-cats, .gjb-rail { scrollbar-color: rgba(246,213,142,.5) transparent; }
.gjb-cats::-webkit-scrollbar, .gjb-rail::-webkit-scrollbar { height: 8px; }
.gjb-cats::-webkit-scrollbar-thumb, .gjb-rail::-webkit-scrollbar-thumb { background: rgba(246,213,142,.4); border-radius: 8px; }
.gjb-cats::-webkit-scrollbar-track, .gjb-rail::-webkit-scrollbar-track { background: transparent; }

/* toolbar */
.gjb-bar { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; margin-bottom: 1rem; }
.gjb-bar .gjp-chiprow { margin: 0; }
.gjb-bar-r { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-left: auto; }
.gjb-sort select { min-height: 40px; padding: 0 .9rem; border-radius: 999px; font-weight: 800; font-size: .84rem; color: #EAF2FF !important; background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.16) !important; color-scheme: dark; }
.gjb-sort select option { background: #060E1F; color: #fff; }
.gjb-res { margin-bottom: 1rem; align-items: center; }
.gjb-res p { margin: 0; font-size: .92rem; color: #A5B4CC !important; } .gjb-res b { color: var(--pa) !important; font-family: var(--gj-font); font-size: 1.2rem; }
#gjb-wish-btn i { color: #FB7185 !important; }
#gjb-wish-btn.on i, #gjb-des-btn.on i { color: #2A1D05 !important; }

/* grid + card */
.gjb-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gjb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gjb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .gjb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gjb-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: linear-gradient(170deg, rgba(255,255,255,.065), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .4s; animation: gjvFade .4s; }
.gjb-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a) 50%, transparent); box-shadow: 0 0 70px color-mix(in srgb, var(--a) 14%, transparent), 0 24px 50px -28px rgba(0,0,0,.85); }
.gjb-media { position: relative; margin: 8px; border-radius: 20px; overflow: hidden; background: #E9EEF4; aspect-ratio: 4/3.4; }
.gjb-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gjb-card:hover .gjb-media img { transform: scale(1.07); }
.gjb-cat { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; max-width: calc(100% - 64px); padding: .22rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #fff !important; background: rgba(3,7,18,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gjb-cat i { color: var(--a) !important; }
.gjb-qv-info .gjb-cat { position: static; max-width: none; align-self: flex-start; }
.gjb-ft { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #2A1D05 !important; background: linear-gradient(135deg, #FFE29A, #F6B94D); }
.gjb-ft-d { color: #fff !important; background: rgba(3,7,18,.72); border: 1px solid rgba(246,213,142,.5); backdrop-filter: blur(10px); }
.gjb-ft-d i { color: #F6D58E !important; }
.gjb-heart { position: absolute; right: 8px; top: 8px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: rgba(3,7,18,.72); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); transition: transform .3s, background .3s; }
.gjb-heart i { color: rgba(255,255,255,.7) !important; font-size: .9rem; transition: color .3s; }
.gjb-heart:hover { transform: scale(1.12); }
.gjb-heart.on { background: #FB7185; border-color: #FB7185; } .gjb-heart.on i { color: #fff !important; }
.gjb-qvbtn { position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translate(-50%, 14px); opacity: 0; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 800; white-space: nowrap; color: #2A1D05 !important; background: rgba(255,255,255,.92); border: 0; transition: opacity .35s, transform .35s; }
.gjb-qvbtn i { color: inherit !important; }
.gjb-card:hover .gjb-qvbtn, .gjb-qvbtn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .gjb-qvbtn { opacity: 1; transform: translate(-50%, 0); bottom: 8px; padding: .3rem .8rem; } .gjb-ft { bottom: 46px; } }
.gjb-body { display: flex; flex-direction: column; gap: .35rem; padding: .35rem 1rem 1rem; flex: 1; }
.gjb-name { margin: 0 !important; font-family: var(--gj-font); font-weight: 800; font-size: 1rem; line-height: 1.35; color: #fff !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.gjb-maker { margin: 0; font-size: .74rem; font-weight: 600; color: #7F90AB !important; }
.gjb-sws { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .2rem; }
.gjb-sw { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; background: var(--sw); border: 2px solid rgba(255,255,255,.25); box-shadow: 0 0 0 0 transparent; transition: transform .25s, box-shadow .25s; padding: 0; }
.gjb-sw:hover { transform: scale(1.18); }
.gjb-sw.on { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pa) 70%, transparent); }
.gjb-more-sw { font-size: .72rem; font-weight: 800; color: #A5B4CC !important; }
.gjb-colname { margin: 0; font-size: .74rem; font-weight: 700; color: #A5B4CC !important; }
.gjb-sizes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.gjb-size { min-width: 36px; padding: .2rem .55rem; border-radius: 10px; cursor: pointer; font-size: .74rem; font-weight: 800; color: #D5E2F5 !important; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: background .25s; }
.gjb-size:hover { background: rgba(255,255,255,.14); }
.gjb-size.on { color: #2A1D05 !important; background: linear-gradient(135deg, var(--pa), var(--pb)); border-color: transparent; }
.gjb-buy { margin-top: auto; padding-top: .6rem; display: grid; gap: .6rem; }
.gjb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.gjb-price b { font-family: var(--gj-font); font-size: 1.35rem; color: var(--pa) !important; }
.gjb-price del { font-size: .8rem; color: #6F819D !important; } .gjb-price em { font-style: normal; font-size: .72rem; font-weight: 800; color: #6EE7B7 !important; }
.gjb-price small { flex-basis: 100%; font-size: .72rem; color: #7F90AB !important; }
.gjb-act { display: flex; flex-wrap: wrap; gap: .45rem; }
.gjb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; cursor: pointer; font-family: var(--gj-font); font-weight: 800; font-size: .88rem; border: 0; transition: transform .3s, box-shadow .3s, background .3s; }
.gjb-btn i, .gjb-btn span { color: inherit !important; }
.gjb-btn-main { flex: 1 1 100%; color: #2A1D05 !important; background: linear-gradient(135deg, var(--pa), var(--pb)); box-shadow: 0 0 26px rgba(246,213,142,.22); }
.gjb-btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(246,213,142,.4); }
.gjb-btn-ghost { flex: 1 1 auto; color: #EAF2FF !important; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.gjb-btn-ghost:hover { background: rgba(255,255,255,.14); }
.gjb-skel .gjb-media { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%); background-size: 200% 100%; animation: gjbShim 1.4s infinite; }
.gjb-skel i { display: block; height: 14px; border-radius: 8px; background: rgba(255,255,255,.08); } .gjb-skel i:nth-child(2) { width: 60%; } .gjb-skel i:nth-child(3) { width: 40%; }
@keyframes gjbShim { to { background-position: -200% 0; } }

/* recent rail */
.gjb-rail { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.gjb-mini { flex: 0 0 150px; padding: 8px; border-radius: 20px; cursor: pointer; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .35s; }
.gjb-mini:hover { transform: translateY(-4px); }
.gjb-mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: #E9EEF4; }
.gjb-mini b { display: block; margin-top: .5rem; font-size: .8rem; line-height: 1.3; color: #fff !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gjb-mini em { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--pa) !important; }

/* sell band */
.gjb-sell { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; padding: clamp(20px, 3.5vw, 40px); border-radius: 30px; background: linear-gradient(135deg, rgba(246,213,142,.12), rgba(232,168,124,.04)); border: 1px solid rgba(246,213,142,.3); }
.gjb-sell .gjv-lead { max-width: 34rem; }

/* quick view */
.gjb-qv { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 14px; }
.gjb-qv[hidden] { display: none; }
.gjb-qv-bg { position: absolute; inset: 0; background: rgba(2,6,16,.78); backdrop-filter: blur(6px); animation: gjvFade .3s; }
.gjb-qv-panel { position: relative; width: min(960px, 100%); max-height: calc(100vh - 28px); overflow-y: auto; border-radius: 30px; background: #070D1C; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 120px rgba(246,213,142,.1); animation: gjvFade .35s; }
.gjb-qv-body { display: grid; gap: 0; }
@media (min-width: 780px) { .gjb-qv-body { grid-template-columns: 1.05fr 1fr; } }
.gjb-qv-media { display: grid; place-items: center; padding: 22px; background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 22%, transparent), transparent 75%); }
.gjb-qv-media img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 22px; background: #E9EEF4; }
.gjb-qv-info { display: flex; flex-direction: column; gap: .7rem; padding: 26px 24px 26px 8px; }
@media (max-width: 779px) { .gjb-qv-info { padding: 4px 20px 22px; } }
.gjb-qv-title { margin: 0 !important; font-family: var(--gj-font); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: #fff !important; }
.gjb-qv-desc { margin: 0; font-size: .92rem; line-height: 1.7; color: #B4C3DA !important; }
.gjb-facts { margin: .2rem 0; padding: .8rem 0 0; list-style: none; display: grid; gap: .45rem; border-top: 1px solid rgba(255,255,255,.08); }
.gjb-facts li { display: flex; gap: .6rem; font-size: .82rem; line-height: 1.5; color: #C9D8EE !important; }
.gjb-facts li i { width: 1rem; margin-top: .2rem; text-align: center; color: var(--pa) !important; flex: 0 0 auto; }
.gjb-facts li span { color: inherit !important; }
.gjb-act-qv .gjb-btn-main { flex: 1 1 100%; }
.gjb-x { position: absolute; right: 12px; top: 12px; z-index: 5; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.gjb-x i { color: #fff !important; }

/* cart drawer (holds the legacy #bazar-cart) */
.gjb-drawer, .gjb-fab, .gjb-qv { margin: 0 !important; }
.gjb-drawer { position: fixed; inset: 0; z-index: 84; visibility: hidden; }
.gjb-drawer.open { visibility: visible; }
.gjb-drawer-bg { position: absolute; inset: 0; background: rgba(2,6,16,.7); backdrop-filter: blur(5px); opacity: 0; transition: opacity .35s; }
.gjb-drawer.open .gjb-drawer-bg { opacity: 1; }
.gjb-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto; padding: 24px 22px 28px; background: #070D1C; border-left: 1px solid rgba(255,255,255,.14); box-shadow: -30px 0 80px rgba(0,0,0,.6); transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.gjb-drawer.open .gjb-drawer-panel { transform: none; }
.gjb-drawer .gjb-x { right: 14px; top: 14px; }
#gjb-cart-mount #bazar-cart { position: static !important; border: 0 !important; padding: 0 !important; background: transparent !important; margin-top: 1.2rem; }
#gjb-cart-mount #bazar-cart h3 { font-family: var(--gj-font); font-size: 1.5rem !important; color: #fff !important; }
#gjb-cart-mount #bazar-cart p, #gjb-cart-mount #bazar-cart span { color: #A5B4CC !important; }
#gjb-cart-mount #bazar-cart .text-slate-100, #gjb-cart-mount #bazar-cart .font-semibold { color: #fff !important; }
#gjb-cart-mount #bazar-cart strong { color: var(--pa) !important; font-size: 1.15rem; }
#gjb-cart-mount #bazar-cart .divide-y > * { border-color: rgba(255,255,255,.1) !important; }
#gjb-cart-mount #bazar-cart button { color: #D5E2F5 !important; }
#gjb-cart-mount #bazar-cart .inline-flex.border { border-color: rgba(255,255,255,.2) !important; border-radius: 999px !important; }
#gjb-cart-mount #bazar-cart .inline-flex.border button:hover { background: rgba(255,255,255,.1) !important; }
#gjb-cart-mount #bazar-cart #bazar-share-order { background: linear-gradient(135deg, var(--pa), var(--pb)) !important; color: #2A1D05 !important; min-height: 52px; border-radius: 999px !important; font-family: var(--gj-font); font-size: 1rem; box-shadow: 0 0 36px rgba(246,213,142,.3); }
#gjb-cart-mount #bazar-cart #bazar-share-order span, #gjb-cart-mount #bazar-cart #bazar-share-order i { color: #2A1D05 !important; }
#gjb-cart-mount #bazar-cart img { border-radius: 14px; }
.gjb-fab { position: fixed; z-index: 80; left: 14px; bottom: 88px; display: inline-flex; align-items: center; gap: .6rem; min-height: 54px; padding: 0 1.3rem; border-radius: 999px; cursor: pointer; border: 0; font-family: var(--gj-font); font-weight: 800; color: #2A1D05 !important; background: linear-gradient(135deg, var(--pa), var(--pb)); box-shadow: 0 0 50px rgba(246,213,142,.4), 0 20px 40px -12px rgba(0,0,0,.7); }
.gjb-recent[hidden] { display: none !important; }
.gjb-fab[hidden], .gjb-qv[hidden] { display: none !important; }
.gjb-fab i, .gjb-fab span, .gjb-fab b { color: inherit !important; }
.gjb-fab span { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #2A1D05; color: #F6D58E !important; font-size: .82rem; }
.gjb-fab.bump { animation: gjbBump .5s; }
@keyframes gjbBump { 40% { scale: 1.14; } }
@media (min-width: 1024px) { .gjb-fab { left: auto; right: 110px; bottom: 28px; } }

/* checkout + design modals on the void */
#bazar-checkout-modal > div, #featured-listing-modal > div { background: #070D1C !important; color: #EAF2FF; border: 1px solid rgba(255,255,255,.14) !important; }
#bazar-checkout-modal input, #bazar-checkout-modal select, #bazar-checkout-modal textarea, #featured-listing-modal input, #featured-listing-modal select, #featured-listing-modal textarea { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; color-scheme: dark; }
#bazar-checkout-modal select option, #featured-listing-modal select option { background: #060E1F; color: #fff; }

@media (max-width: 767px) {
  .gjb-body { padding: .3rem .75rem .8rem; }
  .gjb-name { font-size: .9rem; }
  .gjb-price b { font-size: 1.15rem; }
  .gjb-btn { font-size: .8rem; padding: 0 .7rem; min-height: 42px; }
  .gjb-bar-r { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .gjb-f0, .gjb-f1, .gjb-f2, .gjb-orb, .gjb-card, .gjb-skel .gjb-media { animation: none; } .gjb-card, .gjb-media img { transition: none; } }
