:root{
  color-scheme:dark;
  --navy:#020617;
  --navy-2:#0f172a;
  --lime:#0ea5e9;
  --lime-dark:#0284c7;
  --paper:#020617;
  --white:#0f172a;
  --muted:#94a3b8;
  --line:#1e293b;
  --orange:#facc15;
  --shadow:0 18px 50px rgba(0,0,0,.35);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#e2e8f0;
  background:#020617;
}
html{background:#020617;scrollbar-color:#334155 #0f172a}
body{background:radial-gradient(ellipse at 50% -20%,rgba(2,132,199,.13),transparent 44%),#020617;color:#e2e8f0}
body::selection{background:rgba(14,165,233,.35);color:#fff}
.topbar{background:rgba(15,23,42,.94);border-bottom:1px solid #1e293b;box-shadow:0 12px 35px rgba(0,0,0,.24);backdrop-filter:blur(16px)}
.brand-mark{color:#020617;background:linear-gradient(135deg,#38bdf8,#0284c7);box-shadow:0 8px 24px rgba(2,132,199,.22)}
.brand-copy small,.account-name,.nav-link{color:#cbd5e1}
.nav-link:hover,.nav-link.is-active{background:rgba(14,165,233,.11);color:#7dd3fc}
.nav-link.is-active{box-shadow:inset 0 -2px #0ea5e9}
.button-lime,.add-cart{background:#0284c7;color:#f8fafc}
.button-lime:hover,.add-cart:hover{background:#0369a1}
.button-dark{background:#1e293b;color:#f8fafc;border:1px solid #334155}
.button-dark:hover{background:#334155}
.button-quiet{background:#1e293b;color:#cbd5e1;border:1px solid #334155}
.button-quiet:hover{background:#334155;color:#fff}
.cart-button{background:#1e293b;border-color:#334155}
.cart-button span{background:#eab308;color:#111827}
h1,h2,h3,.brand-copy strong,.product-title,.product-price{color:#f8fafc}
h1,h2,h3,.brand-copy strong{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.035em}
h1{font-weight:800;letter-spacing:-.045em}
h2{font-weight:750}
h3{font-weight:700}
.topbar{min-height:68px;padding-inline:clamp(16px,3vw,40px)}
main{max-width:1280px}
.hero{gap:clamp(24px,4vw,56px);padding-top:clamp(42px,6vw,76px)}
.hero-copy{padding:clamp(18px,3vw,30px);border:1px solid rgba(56,189,248,.18);border-radius:20px;background:rgba(15,23,42,.72);backdrop-filter:blur(12px);box-shadow:0 24px 64px rgba(0,0,0,.24)}
.product-card,.form-card,.orders-panel,.order-card,.step-card,.catalog-sidebar,.empty-state,.empty-list,.chat-messages,.chat-contact,.courier-address,.cart-line,.seller-details,.business-fields{border-radius:16px}
.product-card,.form-card,.orders-panel,.order-card,.step-card,.catalog-sidebar,.empty-state,.empty-list,.chat-contact,.courier-address,.cart-line,.seller-details,.business-fields{background:rgba(15,23,42,.88);backdrop-filter:blur(10px);border-color:rgba(148,163,184,.14)}
.product-card{box-shadow:0 18px 42px rgba(0,0,0,.2)}
.product-photo,.photo-placeholder{background:#0b1220}
.product-content{padding:16px}
.button,.add-cart,.category-chip,.cart-button,.view-cart-button{border-radius:10px;font-family:inherit}
.button-lime,.add-cart{background:#0284c7;color:#020617}
.button-lime:hover,.add-cart:hover{background:#0369a1}
.category-chip{border-color:rgba(148,163,184,.18);background:#1e293b;color:#cbd5e1}
.category-chip.is-selected{background:rgba(2,132,199,.22);border-color:rgba(56,189,248,.35);color:#7dd3fc}
.catalog-sidebar{box-shadow:inset 0 1px rgba(255,255,255,.035),0 18px 42px rgba(0,0,0,.2)}
.search-bar{border-radius:14px;background:rgba(15,23,42,.94);border-color:rgba(56,189,248,.28)}
.search-bar .button{border-radius:10px}
.dialog-card{border-radius:18px}
.seller-details{box-shadow:inset 0 1px rgba(255,255,255,.035)}
.verified-badge{border:1px solid rgba(56,189,248,.22);border-radius:8px;background:rgba(14,165,233,.14)}
.account-notice,.courier-pending-notice,.demo-label{border-radius:12px}
h1 em{color:#38bdf8}
.eyebrow{color:#7dd3fc}
.hero-description,.hero-footnote,.result-label,.privacy-note,.form-hint,.form-intro{color:#94a3b8}
.live-dot{background:#38bdf8;box-shadow:0 0 0 4px rgba(14,165,233,.15)}
.hero-card{background:radial-gradient(circle at 50% 45%,rgba(14,165,233,.14),transparent 45%),linear-gradient(145deg,#0f172a,#020617);border:1px solid #1e293b;box-shadow:0 30px 80px rgba(0,0,0,.38)}
.hero-card-center span{color:#38bdf8;text-shadow:0 0 55px rgba(14,165,233,.3)}
.orbit{border-color:rgba(14,165,233,.22)}
.orbit-two{border-color:rgba(255,255,255,.08)}
.hero-card-top,.hero-card-index,.hero-card-center small,.hero-card-bottom span{color:#94a3b8}
.catalog-section,.how-section{border-color:#1e293b}
.text-button{color:#38bdf8}
.text-button:hover{color:#7dd3fc}
.category-chip{background:#0f172a;border-color:#334155;color:#cbd5e1}
.category-chip:hover{background:#172554;border-color:#0284c7;color:#bae6fd}
.category-chip.is-selected{background:#0369a1;border-color:#0284c7;color:#fff}
.search-bar{background:#0f172a;border:1px solid #334155;box-shadow:0 15px 40px rgba(0,0,0,.28)}
.search-bar input{color:#f8fafc}
.search-bar input::placeholder{color:#64748b}
.product-card,.form-card,.orders-panel,.order-card,.step-card,.catalog-sidebar,.empty-state,.empty-list,.chat-messages,.chat-contact,.courier-address,.cart-line,.seller-details,.business-fields{
  color:#e2e8f0;
  background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(8,15,30,.98));
  border-color:#1e293b;
  box-shadow:0 12px 34px rgba(0,0,0,.2);
}
.product-card{border:1px solid #1e293b}
.product-card:hover{border-color:rgba(14,165,233,.5);box-shadow:0 18px 42px rgba(0,0,0,.35),0 0 0 1px rgba(14,165,233,.12)}
.product-photo,.photo-placeholder{background:#111c31}
.photo-placeholder{color:#7dd3fc}
.product-meta,.product-description,.product-merchant,.stock-label,.step-card p,.order-card p,.profile-role,.identity-details p span,.identity-details small{color:#94a3b8}
.product-category{color:#38bdf8}
.verified-badge{background:rgba(2,132,199,.18);color:#7dd3fc}
.verified-badge span{background:#0284c7}
.step-card{border:1px solid #1e293b}
.step-card span{color:#38bdf8}
.workspace{color:#e2e8f0}
.form-card label,.auth-fields label,.dialog-card>label,.checkout-fields label{color:#cbd5e1}
.form-card input,.form-card select,.form-card textarea,.dialog-card input,.dialog-card select,.dialog-card textarea,.chat-form textarea{
  color:#f8fafc;background:#020617;border:1px solid #334155;
}
input::placeholder,textarea::placeholder{color:#64748b}
select option{color:#f8fafc;background:#0f172a}
.order-status{background:rgba(234,179,8,.12);color:#fde047;border:1px solid rgba(234,179,8,.22)}
.order-section>h3,.order-section>h4{color:#cbd5e1}
.delivery-progress{color:#cbd5e1!important}
.courier-address a,.seller-details a:not(.text-button){color:#38bdf8}
.courier-address{border:1px solid #334155}
.chat-contact{color:#cbd5e1;border:1px solid #334155}
.chat-contact:hover,.chat-contact.is-selected{background:#172554;border-color:#0284c7;color:#f8fafc}
.chat-contact span,.chat-message-head span{color:#94a3b8}
.chat-message{background:#1e293b;color:#e2e8f0;border:1px solid #334155}
.chat-message.is-mine{background:#0c4a6e;border-color:#0369a1}
.chat-form textarea{border-radius:11px;padding:12px}
.dialog{color:#e2e8f0;box-shadow:0 32px 100px rgba(0,0,0,.6)}
.dialog-card{background:linear-gradient(145deg,#0f172a,#080f1e);color:#e2e8f0;border:1px solid #334155;box-shadow:0 20px 65px rgba(0,0,0,.35)}
.dialog-card h2{color:#f8fafc}
.dialog-close{background:#1e293b;color:#cbd5e1;border:1px solid #334155}
.dialog-close:hover{background:#334155;color:#fff}
.confirm-cancel{background:#1e293b;color:#cbd5e1}
.cart-line-price,.map-credit{color:#94a3b8}
.quantity-controls button{background:#1e293b;color:#e2e8f0;border:1px solid #334155}
.cart-total,.checkout-fields,.auth-fields,.identity-details{border-color:#334155}
.tracking-map{background:#0f172a}
.account-notice,.courier-pending-notice{background:rgba(234,179,8,.12);color:#fde68a;border-color:rgba(234,179,8,.35)}
.demo-label{background:rgba(234,179,8,.12);color:#fde68a;border:1px solid rgba(234,179,8,.25)}
.profile-photo{border-color:#334155}
.profile-photo-placeholder{background:#0284c7;color:#fff}
.identity-details{border-top-color:#334155}
.bt-footer{background:linear-gradient(115deg,#0f172a,#111c31 55%,#0b1424);border-top-color:#0284c7}
.footer-orbit{border-color:rgba(14,165,233,.12)}
.footer-contact-pill{border-color:rgba(14,165,233,.3);color:#e0f2fe!important}
.footer-contact-pill>span:last-child,.footer-contact-dot,.legal-footer strong,.legal-footer a span{color:#38bdf8}
.footer-contact-dot{background:#38bdf8;box-shadow:0 0 0 4px rgba(14,165,233,.14)}
.footer-contact-pill:hover{border-color:#38bdf8;background:rgba(14,165,233,.1)}
.legal-footer a:hover,.footer-bottom>a:hover{color:#7dd3fc}
.footer-bottom{border-color:rgba(148,163,184,.17)}
.verified-badge span{color:#fff}
.button-danger{background:#b42332;color:#fff}
.button-danger:hover{background:#941c29}
.toast{background:#0f172a;border:1px solid #334155;color:#f8fafc;box-shadow:0 15px 40px rgba(0,0,0,.48)}
.toast.is-success{position:fixed;z-index:200;right:20px;bottom:20px;max-width:min(440px,calc(100vw - 40px));padding:16px 20px 19px 58px;border:1px solid rgba(56,189,248,.48);border-radius:16px;background:linear-gradient(135deg,#0f172a,#10243a);color:#f8fafc;font-weight:700;box-shadow:0 20px 55px rgba(0,0,0,.5),0 0 30px rgba(14,165,233,.13);overflow:hidden}
.toast.is-success{display:flex;align-items:center;justify-content:space-between;gap:14px}
.toast-message{min-width:0;flex:1}
.product-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.view-cart-button{border:1px solid #334155;border-radius:9px;padding:12px 17px;background:#1e293b;color:#cbd5e1;font:inherit;font-size:1rem;font-weight:700;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}
.view-cart-button:hover{transform:translateY(-2px);border-color:#0ea5e9;background:#172554;color:#e0f2fe;box-shadow:0 8px 18px rgba(0,0,0,.24)}
.view-cart-button:active{transform:scale(.96)}
.product-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:10px}
.product-detail-actions>.button,.product-detail-actions>.view-cart-button{width:100%;min-height:48px;margin:0}
.toast.is-success.is-visible{animation:cart-toast-in .42s cubic-bezier(.16,1,.3,1) both}
.toast.is-success.is-hiding{animation:cart-toast-out .24s ease-in both}
.toast.is-success::before{content:"✓";position:absolute;left:17px;top:50%;display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#0ea5e9;color:#fff;font-size:1rem;font-weight:900;transform:translateY(-50%);box-shadow:0 0 20px rgba(14,165,233,.38)}
.toast.is-success::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#38bdf8;transform-origin:left;animation:cart-toast-progress 3s linear both}
@keyframes cart-toast-in{0%{opacity:0;transform:translate3d(24px,14px,0) scale(.92)}65%{opacity:1;transform:translate3d(-3px,-2px,0) scale(1.015)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes cart-toast-out{to{opacity:0;transform:translate3d(18px,8px,0) scale(.96)}}
@keyframes cart-toast-progress{to{transform:scaleX(0)}}
.cart-line.is-removing{pointer-events:none;transform-origin:right center;animation:cart-item-remove .25s cubic-bezier(.4,0,.2,1) both}
.cart-line.is-changing{animation:cart-item-change .21s cubic-bezier(.2,.75,.25,1) both}
.cart-line.is-removing .quantity-controls button,.cart-line.is-changing .quantity-controls button{opacity:.55}
.cart-count-pulse{animation:cart-count-pulse .38s cubic-bezier(.2,.8,.2,1)}
.empty-list{animation:cart-empty-in .32s cubic-bezier(.2,.75,.25,1) both}
@keyframes cart-item-remove{to{opacity:0;transform:translateX(22px) scale(.94);max-height:0;margin-block:-5px;padding-block:0}}
@keyframes cart-item-change{0%{transform:scale(1)}45%{transform:scale(.975);border-color:#0ea5e9;box-shadow:0 0 0 2px rgba(14,165,233,.18)}100%{transform:scale(1)}}
@keyframes cart-count-pulse{45%{transform:scale(1.28);box-shadow:0 0 0 5px rgba(56,189,248,.2)}100%{transform:scale(1)}}
@keyframes cart-empty-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Header based on the supplied marketplace reference, using the site's real routes. */
.topbar{min-height:76px;padding-inline:clamp(18px,3.5vw,52px);gap:18px}
.brand{appearance:none;border:0;background:transparent;padding:0;text-align:left;font:inherit;cursor:pointer}
.brand-copy strong{display:flex;align-items:center;gap:8px;white-space:nowrap}
.brand-badge{display:inline-flex;align-items:center;border:1px solid rgba(56,189,248,.28);border-radius:6px;background:rgba(14,165,233,.13);color:#7dd3fc;padding:3px 7px;font:600 .62rem/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:0}
.brand-copy small{font-size:.59rem;letter-spacing:.045em}
.main-nav{flex:1;justify-content:center;gap:4px;min-width:0}
.nav-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 11px;font-size:.86rem;font-weight:600;white-space:nowrap}
.nav-link svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.nav-link[data-view="marketplace"] svg{color:#38bdf8}
.nav-link[data-view="orders"] svg,.nav-link[data-view="delivery"] svg{color:#f87171}
.nav-link[data-view="merchant"] svg{color:#34d399}
.nav-link[data-view="admin"] svg{color:#c084fc}
.nav-link[data-view="account"] svg{color:#facc15}
.top-actions{flex:none;gap:8px}
.guest-actions{gap:6px}
.top-actions .button{white-space:nowrap}
.cart-button{display:inline-flex;align-items:center;gap:4px}
@media(max-width:1100px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding-block:10px}
  .main-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 5px}
  .top-actions{grid-column:2;grid-row:1}
}
@media(max-width:600px){
  .topbar{padding:8px 12px;gap:6px 8px}
  .brand{gap:8px}
  .brand-copy strong{gap:0;font-size:.74rem}
  .brand-badge{display:none}
  .brand-copy small{font-size:.44rem}
  .nav-link{gap:6px;padding:8px 10px;font-size:.78rem}
  .nav-link svg{width:15px;height:15px}
}
@media(max-width:400px){
  .topbar{grid-template-columns:minmax(0,1fr);}
  .brand{grid-column:1;grid-row:1}
  .brand-copy small{display:none}
  .top-actions{grid-column:1;grid-row:2;justify-content:space-between;width:100%}
  .main-nav{grid-column:1;grid-row:3}
}
.message-notice{background:#b42332;color:#fff}
.catalog-preview-note{color:#94a3b8}
.catalog-sidebar h3{color:#f8fafc}
.empty-state{border-color:#334155}
.empty-state strong{color:#f8fafc}
.account-layout .form-card{background:linear-gradient(145deg,#0f172a,#080f1e)}
.auth-role-label{color:#cbd5e1}
.auth-role-trigger{background:#020617;color:#f8fafc;border-color:#334155;box-shadow:inset 3px 3px 7px rgba(0,0,0,.35),inset -2px -2px 6px rgba(148,163,184,.04),0 8px 20px rgba(0,0,0,.2)}
.auth-role-trigger:hover{border-color:#0ea5e9}
.auth-role-trigger:focus-visible{outline-color:rgba(56,189,248,.5)}
.auth-role-arrow{border-color:#7dd3fc}
.auth-role-menu{background:#0f172a;border-color:#334155;box-shadow:0 16px 36px rgba(0,0,0,.48)}
.auth-role-menu [role="option"]{color:#cbd5e1}
.auth-role-menu [role="option"]:hover,.auth-role-menu [role="option"]:focus-visible{background:#172554;color:#e0f2fe}
.auth-role-menu [role="option"][aria-selected="true"]{background:#0c4a6e;color:#f0f9ff}
.auth-role-menu [role="option"][aria-selected="true"]:after{color:#7dd3fc}
.message-notice-count{background:#fff;color:#b42332}
.cart-button{position:static;z-index:auto;flex:none;min-height:42px;padding:9px 12px;white-space:nowrap;box-shadow:none;font-weight:700}
.cart-button:hover{box-shadow:0 8px 18px rgba(0,0,0,.24),0 0 0 2px rgba(56,189,248,.16)}
.cart-button span{width:25px;height:25px}
.page-view:not([hidden]){animation:page-view-enter .32s cubic-bezier(.2,.75,.25,1) both}
@keyframes page-view-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}
.workspace,.catalog-layout,.catalog-results,.form-card,.order-card,.product-card,.dialog-card{min-width:0}
.dialog{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.dialog-card{max-height:none}
input,select,textarea{max-width:100%}
@media(max-width:820px){
  .topbar{position:sticky;top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px 16px}
  .brand{min-width:0}.brand-copy{min-width:0}.brand-copy small{white-space:nowrap}
  .main-nav{grid-column:1/-1;grid-row:2;width:100%;min-width:0;margin:0;padding:2px 0 5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .top-actions{grid-column:2;grid-row:1;margin:0;min-width:0}
  .account-actions,.guest-actions{gap:5px}
  main{width:100%;padding-inline:clamp(14px,4vw,28px)}
  .hero{min-width:0}
  .catalog-layout{grid-template-columns:minmax(0,1fr)}
  .catalog-sidebar{position:static}
  .account-layout,.merchant-layout,.delivery-layout{grid-template-columns:minmax(0,1fr)}
  .form-card{padding:clamp(17px,4vw,26px)}
}
@media(max-width:600px){
  .topbar{background:rgba(15,23,42,.97);padding:8px 12px;gap:6px 8px}
  .brand{gap:8px}.brand-mark{width:36px;height:36px;border-radius:11px;font-size:.95rem}
  .brand-copy strong{font-size:.75rem}.brand-copy small{font-size:.43rem;letter-spacing:.07em}
  .main-nav{scrollbar-color:#334155 #0f172a;gap:3px}
  .nav-link{flex:0 0 auto;padding:8px 10px;font-size:.8rem}
  .top-actions{gap:4px}.guest-actions .button{padding:8px 9px;font-size:.72rem;white-space:nowrap}
  .cart-button{min-height:40px;padding:8px 10px;font-size:.78rem}
  main{padding-inline:14px}
  .hero{padding:38px 0 44px;gap:26px}
  .hero h1{font-size:clamp(2.25rem,11vw,3.4rem);overflow-wrap:anywhere}
  .hero-description{font-size:1rem;line-height:1.55}
  .search-bar{width:100%;min-width:0}.search-bar input{padding:10px 8px;font-size:.9rem}.search-bar .button{padding:10px 12px}
  .hero-card{min-height:280px}.hero-card-center span{font-size:4.5rem}
  .product-grid,#productsGrid{grid-template-columns:minmax(0,1fr);width:100%;max-width:none}
  .product-card{grid-template-columns:minmax(92px,32%) minmax(0,1fr)}
  .product-bottom{flex-wrap:wrap}
  .catalog-sidebar .category-list{max-width:100%;overflow-x:auto}
  .courier-addresses,.field-row,.chat-form{grid-template-columns:minmax(0,1fr)}
  .chat-contacts{display:flex;max-width:100%;overflow-x:auto}
  .chat-contact{flex:0 0 min(78vw,250px)}
  .chat-messages{min-height:180px;height:42dvh}
  .product-detail-layout{grid-template-columns:minmax(0,1fr)}
  .product-detail-photo{width:100%;height:clamp(190px,55vw,300px);min-height:0}
  .tracking-map{width:100%;min-height:240px}
  .footer-main{grid-template-columns:minmax(0,1fr)}
  .legal-footer{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);padding:0}
  .dialog-card{width:100%;padding:22px 16px;border-radius:18px}
  .dialog-close{position:sticky;top:0;float:right;z-index:2}
  .cart-card{padding-top:48px}
  .cart-line{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .quantity-controls{grid-row:1/3;grid-column:2}
  .message-notice{right:10px;bottom:12px;width:calc(100vw - 20px)}
  .toast.is-success{right:12px;bottom:12px;max-width:calc(100vw - 24px);padding:15px 16px 18px 52px;font-size:.9rem}
  .toast.is-success::before{left:14px;width:26px;height:26px}
}
@media(max-width:380px){
  .brand-copy small{display:none}
  .guest-actions .button{padding:8px 7px;font-size:.68rem}
  .product-card{grid-template-columns:88px minmax(0,1fr)}
  .product-content{padding:10px}
  .product-bottom .add-cart{width:100%}
  .legal-footer{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto}
  .page-view:not([hidden]){animation:none}
  .toast.is-success.is-visible,.toast.is-success.is-hiding{animation:none}
  .toast.is-success::after{animation:none;transform:scaleX(0)}
}
@media(max-width:400px){
  .topbar{grid-template-columns:minmax(0,1fr)}
  .brand{grid-column:1;grid-row:1}
  .top-actions{grid-column:1;grid-row:2;justify-content:space-between;width:100%}
  .main-nav{grid-column:1;grid-row:3}
}
.topbar{display:grid;grid-template-columns:minmax(210px,auto) minmax(200px,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:10px 20px}
.brand{grid-column:1;grid-row:1}
.header-search{grid-column:2;grid-row:1;width:min(100%,620px);max-width:none;justify-self:center;margin:0;padding:5px}
.header-search input{padding:10px 12px}
.header-search .button{padding:10px 14px}
.top-actions{grid-column:3;grid-row:1}
.main-nav{grid-column:1/-1;grid-row:2;justify-content:center}
.nav-link[data-view="wallet"] svg{color:#facc15}
.wallet-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px}
.wallet-balance-card,.wallet-movements-card{padding:clamp(20px,3vw,32px)}
.wallet-balance-card{border-color:rgba(250,204,21,.22);background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(66,38,9,.34))}
.wallet-balance-card .eyebrow{margin-bottom:14px;color:#facc15}
.wallet-balance{display:block;margin:0 0 14px;color:#f8fafc;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em}
.wallet-balance-card>p:not(.eyebrow),.wallet-movements-card .empty-list p{max-width:54ch;color:#94a3b8;line-height:1.65}
.wallet-balance-card .button{margin-top:10px}
@media(max-width:1100px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:8px 14px;padding-block:10px}
  .brand{grid-column:1;grid-row:1}
  .top-actions{grid-column:2;grid-row:1}
  .header-search{grid-column:1/-1;grid-row:2;width:100%;max-width:680px}
  .main-nav{grid-column:1/-1;grid-row:3;justify-content:flex-start;width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 5px}
  .wallet-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:400px){
  .topbar{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
  .brand{grid-column:1;grid-row:1}
  .top-actions{grid-column:1;grid-row:2;justify-content:space-between;width:100%}
  .header-search{grid-column:1;grid-row:3}
  .main-nav{grid-column:1;grid-row:4}
}
.topbar{display:flex;min-height:76px;grid-template-columns:none;grid-template-rows:none;justify-content:space-between;gap:18px;padding-inline:clamp(18px,4vw,64px)}
.brand{flex:none;grid-column:auto;grid-row:auto}
.main-nav{flex:1;grid-column:auto;grid-row:auto;justify-content:center;overflow:visible;padding:0}
.top-actions{flex:none;grid-column:auto;grid-row:auto}
.auth-entry-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.marketplace-search-panel{margin:32px 0 28px;padding:28px clamp(18px,4vw,48px) 24px;border:1px solid rgba(14,165,233,.25);border-radius:18px;background:rgba(15,23,42,.84);box-shadow:0 20px 56px rgba(0,0,0,.22)}
.marketplace-search-copy{text-align:center;margin:0 auto 22px}
.marketplace-search-copy h1{margin:0 0 9px;font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.2;letter-spacing:-.035em}
.marketplace-search-copy p{margin:0;color:#94a3b8;font-size:.88rem;line-height:1.55}
.marketplace-search-form{position:relative;width:min(100%,675px);max-width:675px;margin:0 auto 22px;padding:5px 6px 5px 13px;gap:11px;border:2px solid rgba(2,132,199,.55);border-radius:12px;background:#020617;box-shadow:inset 0 2px 8px rgba(0,0,0,.26)}
.marketplace-search-form>svg{width:20px;height:20px;flex:none;fill:none;stroke:#94a3b8;stroke-width:2;stroke-linecap:round}
.marketplace-search-form input{padding:10px 2px;color:#f8fafc;font-size:.9rem}
.marketplace-search-form input::placeholder{color:#64748b}
.marketplace-search-form .button{flex:none;padding:10px 16px}
.marketplace-categories{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.marketplace-categories .category-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;border-color:rgba(148,163,184,.12);background:#1e293b;color:#cbd5e1;font-size:.73rem;white-space:nowrap}
.marketplace-categories .category-chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.marketplace-categories .category-chip.is-selected{background:#0284c7;border-color:#0284c7;color:#020617}
.catalog-section{padding:8px 0 70px}
.catalog-section>.section-heading{margin-bottom:10px}
.results-title .eyebrow{display:none}
.results-title h2{display:flex;align-items:center;gap:10px;font-size:1.22rem;line-height:1.3}
.results-count{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;background:#1e293b;color:#94a3b8;font:700 .7rem/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:0}
.catalog-toolbar{margin-bottom:12px}
.catalog-preview-note{display:none}
.availability-note{display:inline-flex;align-items:center;gap:8px;color:#94a3b8;font-size:.72rem}
.availability-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.1)}
#productsGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#productsGrid .product-photo,#productsGrid .photo-placeholder{height:176px}
@media(max-width:1100px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 14px;padding-block:10px}
  .brand{grid-column:1;grid-row:1}
  .top-actions{grid-column:2;grid-row:1}
  .main-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 5px}
  #productsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .marketplace-search-panel{margin:18px 0 22px;padding:22px 14px 18px}
  .marketplace-search-copy{margin-bottom:17px}
  .marketplace-search-copy h1{font-size:1.42rem}
  .marketplace-search-copy p{font-size:.78rem}
  .marketplace-search-form{gap:7px;margin-bottom:17px;padding-left:10px}
  .marketplace-search-form input{font-size:.8rem}
  .marketplace-search-form .button{padding:9px 11px;font-size:.8rem}
  .marketplace-categories{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:thin}
  .marketplace-categories .category-chip{flex:0 0 auto;padding:8px 11px}
  .catalog-section>.section-heading{align-items:center;flex-direction:row}
  .results-title h2{font-size:1rem}
  .availability-note{font-size:.66rem}
  #productsGrid{grid-template-columns:minmax(0,1fr)}
  #productsGrid .product-photo,#productsGrid .photo-placeholder{height:220px}
}
