:root{--orange:#ff7900;--orange2:#ff9a00;--ink:#252525;--muted:#777;--bg:#f6f6f6;--card:#fff;--line:#e8e8e8;--green:#16a05d}*{box-sizing:border-box}body{margin:0;font-family:Cairo,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.container{width:min(1180px,calc(100% - 28px));margin:auto}.topbar{background:#252525;color:#fff;font-size:12px}.topbar-inner{height:34px;display:flex;align-items:center;gap:24px}.topbar a{margin-right:auto;color:#ffb35c}.header{background:#fff;box-shadow:0 1px 8px #00000010;position:sticky;top:0;z-index:20}.header-main{height:78px;display:flex;align-items:center;gap:24px}.logo{font-size:32px;font-weight:800;color:var(--orange);white-space:nowrap}.logo span{display:inline-grid;place-items:center;background:var(--orange);color:#fff;border-radius:8px;width:36px;height:36px;font-size:25px;margin-left:4px}.search{display:flex;flex:1;max-width:650px;background:#f5f5f5;border:1px solid #ddd;border-radius:7px;overflow:hidden}.search input{flex:1;border:0;background:transparent;padding:13px 16px;font-family:inherit;outline:0}.search button,.hero button,.deal-banner button,.sell button{border:0;background:var(--orange);color:#fff;padding:0 24px;font-family:inherit;font-weight:700;cursor:pointer}.header-actions{display:flex;gap:8px;margin-right:auto}.header-actions button{background:none;border:0;position:relative;font-family:inherit;cursor:pointer;min-width:54px}.header-actions small{display:block;font-size:11px}.cart b{position:absolute;top:-4px;right:7px;background:var(--orange);color:#fff;border-radius:50%;font-size:10px;padding:2px 6px}.nav{height:45px;display:flex;align-items:center;gap:28px;font-size:14px}.nav button{height:100%;border:0;background:transparent;font-family:inherit;font-weight:700;cursor:pointer}.nav a:hover{color:var(--orange)}.mobile-menu{display:none}.hero{margin-top:18px;min-height:330px;border-radius:10px;overflow:hidden;background:linear-gradient(115deg,#fff4e9,#ffe0bb);display:flex;align-items:center;padding:36px 60px}.hero-copy{flex:1}.eyebrow{color:var(--orange);font-weight:800;margin:0 0 8px}.hero h1{font-size:42px;line-height:1.35;margin:0 0 12px}.hero h1 strong{color:var(--orange)}.hero p:not(.eyebrow){color:#666}.hero button{height:48px;border-radius:6px;margin-top:12px}.hero-art{width:40%;height:250px;position:relative;display:grid;place-items:center}.orb{width:190px;height:190px;border-radius:50%;background:linear-gradient(145deg,var(--orange),#ffb23e);display:grid;place-items:center;text-align:center;color:#fff;font-size:42px;font-weight:800;box-shadow:0 20px 45px #e97a0044}.orb small{font-size:12px;font-weight:500}.floating{position:absolute;background:#fff;border-radius:8px;padding:9px 13px;box-shadow:0 8px 25px #0001;font-size:12px;font-weight:700}.f1{top:20px;right:0}.f2{bottom:20px;left:10px}.section{margin-top:30px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-head h2{font-size:22px;margin:0}.section-head a{font-size:13px;color:var(--orange);font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.category{background:#fff;border-radius:8px;padding:16px 8px;text-align:center;border:1px solid var(--line);cursor:pointer;transition:.2s}.category:hover{transform:translateY(-3px);box-shadow:0 8px 18px #0000000d}.category .cat-icon{font-size:32px;margin-bottom:6px}.category span{font-size:12px;font-weight:600}.deal-banner{margin-top:30px;background:#252525;color:#fff;border-radius:9px;padding:22px 28px;display:flex;align-items:center;gap:25px}.deal-banner span{color:#ff9d32;font-weight:800}.deal-banner h2{margin:4px 0;font-size:24px}.deal-banner p{margin:0;color:#ccc;font-size:13px}.timer{font-size:27px;font-weight:800;margin-right:auto;direction:ltr}.deal-banner button{height:44px;border-radius:5px}.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}.product{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;cursor:pointer;position:relative;transition:.2s}.product:hover{transform:translateY(-3px);box-shadow:0 10px 22px #00000012}.product-img{height:185px;background:#f7f7f7;display:grid;place-items:center;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-body{padding:11px}.product-brand{font-size:11px;color:#888}.product-name{font-size:13px;line-height:1.55;height:42px;overflow:hidden;margin:3px 0}.rating{font-size:11px;color:#e99b00}.price{font-size:17px;font-weight:800}.old{text-decoration:line-through;color:#999;font-size:11px;margin-right:5px}.discount{position:absolute;top:9px;right:9px;background:#fff0e4;color:var(--orange);padding:3px 7px;border-radius:4px;font-size:11px;font-weight:800}.brand-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.brand{background:#fff;border:1px solid var(--line);height:90px;border-radius:8px;display:grid;place-items:center;font-weight:800;font-size:18px}.chips{display:flex;gap:10px;flex-wrap:wrap}.chip{background:#fff;border:1px solid #ddd;border-radius:30px;padding:9px 17px;font-size:13px;cursor:pointer}.sell{margin-top:38px;background:linear-gradient(120deg,#252525,#3c3c3c);color:#fff;border-radius:10px;padding:35px 50px;display:flex;align-items:center}.sell h2{font-size:28px;margin:5px 0}.sell p{color:#ddd}.sell button{height:45px;border-radius:5px;margin-top:8px}.sell-icon{font-size:100px;margin-right:auto}footer{background:#1e1e1e;color:#fff;margin-top:45px;padding-top:40px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:30px}.footer-grid h3{font-size:15px}.footer-grid a{display:block;color:#ccc;font-size:12px;margin:10px 0}.footer-grid p{color:#aaa;font-size:12px}.social{font-size:25px}.copyright{text-align:center;border-top:1px solid #333;padding:18px;color:#999;font-size:11px}.drawer,.modal{display:none;position:fixed;inset:0;background:#0008;z-index:100}.drawer.active,.modal.active{display:block}.drawer-panel{width:min(380px,90%);height:100%;background:#fff;padding:25px;overflow:auto;animation:slide .2s}.drawer-panel div{padding:14px;border-bottom:1px solid #eee;cursor:pointer}.close{border:0;background:none;font-size:30px;cursor:pointer}.modal{place-items:center}.modal-box{width:min(760px,92%);background:#fff;border-radius:10px;padding:25px;position:relative}.modal-box .close{position:absolute;left:15px;top:5px}.modal-product{display:grid;grid-template-columns:1fr 1fr;gap:25px}.modal-product img{width:100%;border-radius:8px}.modal-product h2{margin-top:30px}.buy{background:var(--orange);color:#fff;border:0;padding:13px 22px;border-radius:5px;font-family:inherit;font-weight:700;cursor:pointer}.qty{display:flex;gap:10px;align-items:center;margin:18px 0}.qty button{border:1px solid #ddd;background:#fff;width:32px;height:32px}@keyframes slide{from{transform:translateX(100%)}to{transform:none}}@media(max-width:900px){.header-main{gap:10px}.header-actions{gap:0}.header-actions button{font-size:18px;min-width:40px}.header-actions small{display:none}.category-grid{grid-template-columns:repeat(4,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.brand-grid{grid-template-columns:repeat(3,1fr)}.hero{padding:28px}.hero-art{width:35%}.hero h1{font-size:34px}}@media(max-width:650px){.topbar-inner span:nth-child(2){display:none}.header-main{height:66px}.mobile-menu{display:block;border:0;background:none;font-size:20px}.nav{display:none}.logo{font-size:25px}.logo span{width:30px;height:30px;font-size:20px}.search{order:5;position:absolute;top:66px;right:14px;left:14px;max-width:none}.header{height:120px}.header-actions{margin-right:auto}.hero{margin-top:18px;min-height:370px;padding:25px;display:block}.hero-art{width:100%;height:150px}.orb{width:120px;height:120px;font-size:27px}.floating{font-size:10px}.f1{top:0}.f2{bottom:0}.hero h1{font-size:29px}.deal-banner{display:block}.timer{margin:10px 0}.product-grid{grid-template-columns:repeat(2,1fr)}.product-img{height:160px}.brand-grid{grid-template-columns:repeat(2,1fr)}.category-grid{gap:7px}.category{padding:11px 4px}.sell{padding:25px;display:block}.sell-icon{display:none}.footer-grid{grid-template-columns:1fr 1fr}.modal-product{grid-template-columns:1fr}.modal-product h2{margin-top:0}}
/* Marketplace v2 additions */
button{font-family:inherit;cursor:pointer;border:0}.page{padding-top:28px;padding-bottom:40px}.product{position:relative;overflow:hidden}.fav{position:absolute;top:10px;left:10px;z-index:3;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 2px 10px #0001;font-size:20px}.fav.active{color:#f36f21}.product-body{cursor:pointer}.rating span{color:#777;font-size:12px}.stock{font-size:12px;color:#27864a;margin-top:6px}.brand-grid .brand{background:#fff;border:1px solid #eee;padding:16px;border-radius:10px}.catalog-head,.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.catalog-head h1,.page-title h1{margin:0}.catalog-head span{color:#777}.filters{display:flex;gap:8px}.filters select,.secondary,.primary{border-radius:8px;padding:11px 15px;font-family:inherit}.filters select,.secondary{background:#fff;border:1px solid #ddd}.primary{background:#f36f21;color:#fff}.full{width:100%}.empty{background:#fff;border-radius:14px;padding:50px 20px;text-align:center}.empty.wide{grid-column:1/-1}.empty .primary{margin-top:15px}.cart-layout,.checkout-layout{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}.cart-item,.order,.checkout-row{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px;display:flex;gap:15px;align-items:center}.cart-item img{width:100px;height:100px;object-fit:cover;border-radius:8px}.cart-info{flex:1;display:flex;flex-direction:column;gap:7px}.cart-info span{font-size:13px;color:#777}.qty{display:flex;align-items:center;gap:15px;margin-top:10px}.qty button{width:32px;height:32px;border-radius:6px;background:#f3f3f3}.remove{background:none;color:#d33}.summary,.panel{background:#fff;border-radius:14px;padding:22px}.summary p{display:flex;justify-content:space-between}.checkout-row{justify-content:space-between;padding:10px 0;border-radius:0;border-bottom:1px solid #eee;margin:0}.form{display:flex;flex-direction:column;gap:14px}.form label{display:flex;flex-direction:column;gap:7px;font-weight:600}.form input,.form textarea,.form select{padding:12px;border:1px solid #ddd;border-radius:8px;font:inherit}.account-head{display:flex;align-items:center;gap:15px}.avatar{width:60px;height:60px;border-radius:50%;background:#f36f21;color:#fff;display:grid;place-items:center;font-size:25px}.account-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:25px}.account-actions button{padding:15px;background:#f7f7f7;border-radius:9px}.auth-form{max-width:520px;margin:20px auto}.auth-form[hidden]{display:none}.auth-switch{display:flex;justify-content:space-between;gap:10px}.link-btn{background:none;color:#f36f21}.order{flex-wrap:wrap}.order>div:first-child{display:flex;flex-direction:column;gap:4px;flex:1}.order em{font-style:normal;background:#fff3e9;color:#d65c14;padding:5px 10px;border-radius:20px}.order-products{width:100%;display:flex;flex-direction:column;gap:4px;color:#555;font-size:13px}.success{text-align:center;background:#fff;padding:50px;border-radius:15px}.success>div{font-size:55px;color:#2e9d57}.toast{position:fixed;bottom:25px;right:25px;z-index:10000;background:#222;color:#fff;padding:13px 20px;border-radius:9px;box-shadow:0 10px 30px #0003}@media(max-width:800px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.catalog-head,.page-title{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters select,.filters button{flex:1}.account-actions{grid-template-columns:1fr}.cart-item{align-items:flex-start}.cart-item img{width:75px;height:75px}.summary{position:static}}

/* Mobile drawer enhancements — additive only */
.drawer-panel{position:relative}
.drawer-account{margin:2px 0 14px}
.drawer-profile,.drawer-login{width:100%;display:flex;align-items:center;gap:12px;text-align:right;background:linear-gradient(135deg,#fff7f0,#fff);border:1px solid #f0e2d7;border-radius:12px;padding:13px;cursor:pointer;font-family:inherit}
.drawer-login{background:linear-gradient(135deg,#fff1e4,#fff8f3);border-color:#ffd5b5}
.drawer-avatar{width:46px;height:46px;min-width:46px;border-radius:50%;background:#f36f21;color:#fff;display:grid;place-items:center;font-size:19px;font-weight:800}
.drawer-profile-text,.drawer-login>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.drawer-profile-text b,.drawer-login b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-profile-text small,.drawer-login small{font-size:10px;color:#777;font-weight:500}
.drawer-arrow{font-size:25px;color:#999;line-height:1;transform:translateY(-1px)}
.drawer-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:14px}
.drawer-quick button{position:relative;background:#f8f8f8;border:1px solid #eee;border-radius:9px;padding:11px 5px 9px;font-family:inherit;font-size:17px;color:#333;cursor:pointer}
.drawer-quick button span{display:block;font-size:10px;font-weight:700;margin-top:4px}
.drawer-quick button b{position:absolute;top:5px;left:8px;background:#f36f21;color:#fff;border-radius:20px;min-width:17px;height:17px;padding:0 4px;font-size:9px;display:grid;place-items:center}
.drawer-divider{height:1px;background:#eee;margin:8px 0 18px}
.drawer-panel h2{font-size:18px;margin:0 0 8px}
.drawer-panel #drawerCats{display:flex;flex-direction:column}
.drawer-panel #drawerCats button,.drawer-links button{width:100%;text-align:right;background:#fff;border:0;border-bottom:1px solid #f0f0f0;padding:13px 4px;font-family:inherit;font-size:13px;color:#333;cursor:pointer}
.drawer-panel #drawerCats button:hover,.drawer-links button:hover{background:#fafafa;color:#f36f21}
.drawer-links{margin-top:8px;padding-top:8px;border-top:1px solid #eee}
@media(max-width:650px){
  .drawer-panel{width:min(350px,88vw);padding:18px 16px}
  .drawer-panel .close{position:absolute;top:9px;left:10px;z-index:2;width:38px;height:38px;border-radius:50%;background:#f7f7f7;display:grid;place-items:center;font-size:25px}
  .drawer-account{padding-top:4px;padding-left:42px}
  .drawer-profile,.drawer-login{min-height:70px}
}
.profile-details{margin-top:24px;border-top:1px solid #eee;padding-top:20px;display:flex;flex-direction:column;gap:12px}.profile-details-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.profile-details-head h3{margin:0}.profile-details-head span{font-size:11px;color:#888}.profile-details label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.profile-details input,.profile-details textarea{font:inherit;border:1px solid #ddd;border-radius:8px;padding:11px;outline:none}.profile-details input:focus,.profile-details textarea:focus{border-color:#f36f21}

/* V4 enhancements - additive only */
.count-badge{position:absolute;top:-3px;right:8px;background:#f36f21;color:#fff;border-radius:50%;font-size:9px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center}
.seller-link{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer}.seller-link:hover{color:var(--orange);text-decoration:underline}.page-subtitle,.muted{color:#777;font-size:13px}.advanced-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:15px}.advanced-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}.advanced-filters input,.advanced-filters select{border:1px solid #ddd;border-radius:7px;padding:9px;font:inherit}.filter-toggle{border:1px solid #ddd;background:#fff;border-radius:7px;padding:9px 12px;font-family:inherit;cursor:pointer}
.account-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.account-actions button{background:#fafafa;border:1px solid #eee;border-radius:9px;padding:12px;font-family:inherit;cursor:pointer}.address-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.address-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.address-card.default{border-color:#ffb16d;box-shadow:0 0 0 2px #fff1e4}.address-card>div:first-child{display:flex;align-items:center;justify-content:space-between}.address-card label,.return-panel label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;margin:9px 0}.address-card input,.address-card textarea,.return-panel input,.return-panel textarea,.return-panel select{font:inherit;border:1px solid #ddd;border-radius:8px;padding:10px}.add-address{grid-column:span 1}.danger{color:#c33!important}.notification{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px;display:flex;gap:12px;margin-bottom:10px}.notification.read{opacity:.7}.notification>span{font-size:24px}.notification div{display:flex;flex-direction:column;gap:4px}.notification small{color:#999}.seller-hero{display:flex;align-items:center;gap:20px;margin-bottom:25px}.seller-avatar{width:85px;height:85px;border-radius:50%;background:linear-gradient(135deg,#f36f21,#ffad55);color:#fff;display:grid;place-items:center;font-size:38px;font-weight:800}.verified{background:#e8f8ef;color:#16834b;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:800}.seller-products-head{margin-top:15px}.chat-layout{display:grid;grid-template-columns:240px 1fr;min-height:520px;padding:0;overflow:hidden}.chat-list{border-left:1px solid #eee;background:#fafafa;padding:10px}.chat-list button{display:block;width:100%;border:0;background:none;text-align:right;padding:13px;border-radius:8px;font-family:inherit;cursor:pointer}.chat-list button.active{background:#fff0e5;color:#e46715;font-weight:800}.chat-box{display:flex;flex-direction:column}.chat-box header{padding:17px;border-bottom:1px solid #eee}.messages{flex:1;padding:18px;background:#fcfcfc;display:flex;flex-direction:column;gap:10px}.message{align-self:flex-start;max-width:75%;background:#eee;border-radius:14px 14px 14px 3px;padding:10px 13px}.message.mine{align-self:flex-end;background:#fff0e5;border-radius:14px 14px 3px 14px}.message small{display:block;color:#999;font-size:9px;margin-top:4px}.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid #eee}.chat-input input{flex:1;border:1px solid #ddd;border-radius:8px;padding:11px;font:inherit}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:30px 0}.track-step{position:relative;text-align:center;color:#aaa}.track-step:not(:last-child)::after{content:'';position:absolute;top:17px;right:50%;width:100%;height:3px;background:#ddd;z-index:0}.track-step.done{color:#f36f21}.track-step.done:not(:last-child)::after{background:#f36f21}.track-step span{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;margin:auto;background:#fff;border:3px solid currentColor;border-radius:50%;font-size:13px}.track-step b{display:block;font-size:11px;margin-top:8px}.tracking-head{display:flex;justify-content:space-between;align-items:center}.tracking-head h2{margin:0}.panel-mini{background:#fafafa;padding:14px;border-radius:8px;margin-top:20px}.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.return-row{display:flex;gap:15px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.return-row em{margin-right:auto;background:#fff0e5;color:#d65c14;border-radius:20px;padding:4px 8px;font-size:11px}.review-box{margin-top:18px;border-top:1px solid #eee;padding-top:12px}.review{display:flex;gap:10px;border-bottom:1px solid #eee;padding:8px 0;font-size:12px}.review-form{border:1px solid #eee;border-radius:9px;padding:12px;margin:10px 0}.review-form select,.review-form textarea{width:100%;margin-top:7px;border:1px solid #ddd;border-radius:7px;padding:9px;font:inherit}.mobile-bottom{display:none}
@media(max-width:800px){.account-actions{grid-template-columns:repeat(2,1fr)}.address-grid{grid-template-columns:1fr 1fr}.chat-layout{grid-template-columns:1fr}.chat-list{border-left:0;border-bottom:1px solid #eee;display:flex;overflow:auto}.chat-list button{min-width:130px}.timeline{grid-template-columns:repeat(4,1fr)}.mobile-bottom{display:flex;position:fixed;bottom:0;right:0;left:0;height:62px;background:#fff;border-top:1px solid #ddd;z-index:45;justify-content:space-around;box-shadow:0 -4px 18px #0001}.mobile-bottom button{position:relative;flex:1;border:0;background:none;font-family:inherit;font-size:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#555}.mobile-bottom button span{font-size:9px}.mobile-bottom button b{position:absolute;top:4px;right:calc(50% - 20px);background:#f36f21;color:#fff;border-radius:20px;font-size:8px;padding:2px 5px}.modal-box{margin-bottom:65px}.toast{bottom:75px!important}}
@media(max-width:600px){.address-grid{grid-template-columns:1fr}.advanced-filters{display:grid;grid-template-columns:1fr 1fr}.advanced-filters .primary{grid-column:1/-1}.seller-hero{align-items:flex-start}.seller-avatar{width:64px;height:64px;font-size:28px}.timeline{gap:2px}.track-step b{font-size:9px}.tracking-card{padding:14px}.product-grid{grid-template-columns:repeat(2,1fr)}.product-img{height:155px}}

/* V5 authentication dialog — additive only */
.auth-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px}
.auth-modal.active{display:flex}
.auth-modal-backdrop{position:absolute;inset:0;background:rgba(20,15,12,.58);backdrop-filter:blur(5px)}
.auth-modal-box{position:relative;z-index:1;width:min(440px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #f0e1d5;border-radius:22px;padding:30px 28px 22px;box-shadow:0 25px 80px rgba(0,0,0,.22);font-family:inherit}
.auth-modal-close{position:absolute;top:13px;left:13px;width:36px;height:36px;border:0;border-radius:50%;background:#f7f7f7;color:#555;font-size:25px;line-height:1;cursor:pointer}
.auth-brand{text-align:center;font-size:29px;font-weight:900;color:#222;margin:2px 0 15px}.auth-brand span{color:var(--orange,#f36f21)}
.auth-dialog-head{text-align:center;margin-bottom:20px}.auth-dialog-head h2{margin:0 0 7px;font-size:23px}.auth-dialog-head p{margin:0;color:#777;font-size:12px;line-height:1.8}
.auth-field{margin-bottom:13px}.auth-field label{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:#333}.auth-field input{box-sizing:border-box;width:100%;height:46px;border:1px solid #ddd;border-radius:10px;background:#fff;padding:0 13px;font:inherit;font-size:13px;outline:none;transition:.2s}.auth-field input:focus{border-color:#f36f21;box-shadow:0 0 0 3px rgba(243,111,33,.10)}.auth-field input.invalid{border-color:#d93025;box-shadow:0 0 0 3px rgba(217,48,37,.08)}
.auth-error{min-height:19px;margin:2px 0 7px;color:#d93025;font-size:11px;font-weight:700}.auth-submit{width:100%;height:47px;border:0;border-radius:10px;background:linear-gradient(135deg,#f36f21,#ff8b42);color:#fff;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(243,111,33,.20)}.auth-submit:hover{filter:brightness(.98)}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0 13px;color:#999;font-size:11px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#eee;flex:1}.auth-divider span{padding:0 3px}
.google-auth{width:100%;height:46px;border:1px solid #dadce0;border-radius:10px;background:#fff;color:#3c4043;display:flex;align-items:center;justify-content:center;gap:10px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:.2s}.google-auth:hover{background:#f8f9fa;box-shadow:0 1px 3px rgba(60,64,67,.15)}.google-icon{width:20px;height:20px;flex:0 0 20px}
.auth-switch-dialog{text-align:center;font-size:12px;color:#777;margin:17px 0 8px}.auth-switch-dialog button{border:0;background:none;color:#e76618;font-family:inherit;font-weight:800;cursor:pointer;padding:0}.auth-terms{text-align:center;color:#aaa;font-size:9px;line-height:1.7;margin:12px 10px 0}
@media(max-width:480px){.auth-modal{padding:10px}.auth-modal-box{border-radius:18px;padding:25px 19px 18px;max-height:calc(100vh - 20px)}.auth-brand{font-size:25px}.auth-dialog-head h2{font-size:21px}}

/* V5.1 Product dialog responsive polish — additive only; existing structure/rules preserved */
.modal.active{display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.modal-box{width:min(980px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:22px;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.22)}
.modal-product{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:30px;align-items:start}
.modal-product>img{display:block;width:100%;height:auto;aspect-ratio:1/1;max-height:560px;object-fit:contain;background:#f7f7f7;border-radius:12px}
.modal-product>div{min-width:0}
.modal-product h2{font-size:clamp(22px,2.5vw,32px);line-height:1.45;margin:8px 0 10px;overflow-wrap:anywhere}
.modal-product p{line-height:1.8;overflow-wrap:anywhere}
.modal-product .buy,.modal-product .secondary{min-height:46px;margin:6px 4px 0 0}
.modal-product .buy{min-width:180px}
.modal-product .secondary{background:#fff;border:1px solid #ddd;color:#2684ff;padding:13px 18px;border-radius:8px;font-family:inherit;font-weight:700;cursor:pointer}
.modal-product .review-box{margin-top:22px}
.modal-box>.close{z-index:3;background:#fff;border-radius:50%;width:38px;height:38px;line-height:32px;box-shadow:0 2px 10px #0001}
@media(max-width:700px){
  .modal.active{align-items:flex-start;padding:10px 8px 78px}
  .modal-box{width:100%;max-height:calc(100vh - 20px);padding:14px;border-radius:16px;margin:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .modal-product{grid-template-columns:1fr;gap:18px}
  .modal-product>img{width:100%;aspect-ratio:4/3;max-height:42vh;min-height:210px;object-fit:contain;border-radius:11px}
  .modal-product h2{font-size:clamp(21px,6vw,27px);line-height:1.5;margin:0 0 8px}
  .modal-product .rating{margin-bottom:8px}
  .modal-product .buy,.modal-product .secondary{display:block;width:100%;margin:8px 0 0;min-height:48px}
  .modal-product .qty{justify-content:center;margin:14px 0}
  .modal-product .review-box{margin-top:18px}
}
@media(min-width:701px) and (max-width:1050px){
  .modal-box{width:min(900px,96%)}
  .modal-product{gap:22px}
  .modal-product>img{max-height:500px}
}

/* V7 mobile drawer polish — additive only; V6 structure and rules preserved */
@media(max-width:800px){
  .drawer{
    inset:0;
    background:rgba(0,0,0,.46);
    padding:120px 12px 70px;
    overflow:hidden;
  }
  .drawer-panel{
    width:100%;
    max-width:520px;
    height:auto;
    max-height:calc(100vh - 190px);
    margin:0 auto;
    padding:16px;
    border-radius:18px;
    box-shadow:0 18px 55px rgba(0,0,0,.24);
    overflow-y:auto;
    overscroll-behavior:contain;
    animation:drawerFloatIn .22s ease-out;
  }
  .drawer-panel .close{
    position:sticky;
    top:0;
    z-index:4;
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    margin-right:auto;
    margin-bottom:4px;
    border-radius:50%;
    background:#f7f7f7;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
  }
  .drawer-account{padding-top:0;padding-left:0}
}
@keyframes drawerFloatIn{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:none}}

/* V8 drawer direction refinement — preserve V7 behavior, anchor to the menu button side */
@media(max-width:800px){
  .drawer{
    display:none;
    align-items:stretch;
    justify-content:flex-start;
    padding:120px 0 62px;
  }
  .drawer.active{display:flex;}
  .drawer-panel{
    width:min(380px,88vw);
    max-width:380px;
    height:100%;
    max-height:none;
    margin:0 auto 0 0;
    padding:16px;
    border-radius:0 18px 18px 0;
    box-shadow:12px 0 40px rgba(0,0,0,.22);
    overflow-y:auto;
    animation:drawerSlideFromMenuSide .22s ease-out;
  }
}
@keyframes drawerSlideFromMenuSide{from{opacity:.7;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}

/* V9 drawer quick-actions refinement — four compact items in one row; all existing functions preserved */
.drawer-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.drawer-quick button{padding:9px 3px 8px;min-width:0;font-size:16px;border-radius:9px;line-height:1.1}
.drawer-quick button span{font-size:9px;margin-top:4px;white-space:nowrap}
.drawer-quick button b{top:4px;left:5px;min-width:16px;height:16px;font-size:8px;padding:0 3px}
@media(max-width:380px){
  .drawer-quick{gap:5px}
  .drawer-quick button{padding:8px 2px 7px;font-size:15px}
  .drawer-quick button span{font-size:8px}
}


/* V10 drawer alignment polish — anchored to the right-side menu button for RTL; no behavior changes */
@media(max-width:800px){
  .drawer{
    align-items:stretch;
    justify-content:flex-end;
    padding:120px 0 62px;
  }
  .drawer-panel{
    width:min(380px,88vw);
    max-width:380px;
    height:100%;
    max-height:none;
    margin:0 0 0 auto;
    border-radius:18px 0 0 18px;
    box-shadow:-12px 0 40px rgba(0,0,0,.22);
    animation:drawerSlideFromMenuSideRTL .22s ease-out;
  }
  .drawer-panel .close{
    margin-left:auto;
    margin-right:0;
  }
}
@keyframes drawerSlideFromMenuSideRTL{
  from{opacity:.7;transform:translateX(22px)}
  to{opacity:1;transform:translateX(0)}
}
/* V12 checkout enhancements — additive only */
.checkout-modern{align-items:start}.checkout-block{border:1px solid #eee;border-radius:16px;padding:20px;background:#fff;margin-bottom:16px}.checkout-block-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.checkout-block-head>div{display:flex;align-items:center;gap:12px}.checkout-block-head h2{margin:0;font-size:20px}.checkout-block-head p{margin:4px 0 0;color:#888;font-size:12px}.step-number{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f36f21;color:#fff;font-weight:800}.saved-addresses{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}.saved-address-card{position:relative;text-align:right;display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #ddd;background:#fff;border-radius:12px;font-family:inherit}.saved-address-card.selected{border-color:#f36f21;box-shadow:0 0 0 2px #fff0e5}.saved-address-card>span{font-size:20px}.saved-address-card div{display:flex;flex-direction:column;gap:3px}.saved-address-card strong,.saved-address-card small{display:block}.saved-address-card small{color:#777;font-size:11px}.saved-address-card em{position:absolute;left:8px;top:8px;font-size:9px;color:#f36f21;background:#fff0e5;padding:3px 6px;border-radius:12px;font-style:normal}.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.checkout-fields label.wide{grid-column:1/-1}.checkout-fields input,.checkout-fields textarea{width:100%;box-sizing:border-box}.seller-shipping{border:1px solid #eee;border-radius:12px;padding:13px;margin-top:10px}.seller-shipping-head{display:flex;justify-content:space-between;margin-bottom:10px}.shipping-options,.payment-options{display:grid;gap:9px}.choice-card{display:flex;align-items:center;gap:12px;border:1px solid #ddd;border-radius:12px;padding:12px;background:#fff;cursor:pointer}.choice-card input{accent-color:#f36f21}.choice-card.selected{border-color:#f36f21;background:#fff8f2}.choice-card>span{display:flex;flex-direction:column;gap:3px;flex:1}.choice-card small{color:#888;font-size:11px}.choice-card strong{font-size:12px;color:#16834b}.choice-card.disabled{opacity:.55;cursor:not-allowed}.choice-card em{font-size:10px;color:#d65c14;font-style:normal}.payment-note{background:#fff8f2;border:1px solid #ffd4b1;border-radius:12px;padding:14px;margin-top:12px}.payment-note>p{font-size:12px;color:#666}.payment-account{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #eee;border-radius:10px;padding:10px;margin-top:8px}.payment-account span{display:flex;flex-direction:column;gap:3px;flex:1}.payment-account small{color:#888}.payment-account strong{direction:ltr}.payment-account button{background:#fff;border:1px solid #f36f21;color:#f36f21;border-radius:7px;padding:7px 9px;font-family:inherit}.payment-proof{margin-top:14px;border:1px dashed #f36f21;border-radius:12px;padding:14px;background:#fffaf6}.payment-proof-head{display:flex;justify-content:space-between;gap:10px}.payment-proof-head div{display:flex;flex-direction:column;gap:4px}.payment-proof-head span{font-size:11px;color:#777}.payment-proof-head>span{background:#fff0e5;color:#d65c14;height:max-content;padding:4px 8px;border-radius:12px;font-size:10px}.proof-actions{display:flex;gap:9px;margin-top:12px}.upload-btn{display:inline-flex!important;align-items:center;justify-content:center;padding:10px 12px;background:#fff;border:1px solid #ddd;border-radius:9px;color:#444;cursor:pointer}.upload-btn input{display:none}.proof-preview{margin-top:12px;display:flex;align-items:center;gap:10px}.proof-preview img{width:90px;height:90px;object-fit:cover;border-radius:9px;border:1px solid #ddd}.proof-preview button{background:#fff;border:1px solid #d33;color:#c33;border-radius:8px;padding:8px;font-family:inherit}.checkout-confirm{padding:4px 0 8px}.terms-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;font-weight:500!important;font-size:12px;color:#666;margin-bottom:12px}.terms-check input{accent-color:#f36f21}.checkout-summary{position:sticky;top:15px}.summary-line{display:flex;justify-content:space-between;padding:8px 0}.discount-line{color:#16834b}.summary-total{display:flex;justify-content:space-between;align-items:center;font-size:18px}.summary-total b{color:#f36f21}.tracking-number-main{background:#fff8f2;border:1px solid #ffd4b1;border-radius:10px;padding:11px;margin-top:14px}.shipment-list{margin-top:18px}.shipment-card{display:flex;align-items:center;gap:10px;border:1px solid #eee;border-radius:10px;padding:12px;margin:8px 0}.shipment-card div{display:flex;flex-direction:column;gap:3px;flex:1}.shipment-card span,.shipment-card small{color:#777;font-size:11px}.shipment-card strong{direction:ltr}.empty.inline{padding:20px;font-size:13px}
@media(max-width:800px){.checkout-fields,.saved-addresses{grid-template-columns:1fr}.checkout-fields label.wide{grid-column:auto}.checkout-block{padding:14px}.checkout-block-head{align-items:flex-start}.checkout-block-head h2{font-size:17px}.checkout-summary{position:static}.payment-account{flex-wrap:wrap}.payment-account div{width:100%}.proof-actions{flex-direction:column}.upload-btn{width:100%;box-sizing:border-box}.shipment-card{align-items:flex-start;flex-wrap:wrap}.shipment-card strong{width:100%}}

/* V13 — premium checkout wizard, additive over V12 */
.checkout-wizard{max-width:980px;margin:0 auto;position:relative}.checkout-progress{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto;align-items:center;gap:10px;margin:6px auto 24px;padding:12px 14px;background:rgba(255,255,255,.9);border:1px solid #eee;border-radius:18px;box-shadow:0 10px 35px #0000000a;backdrop-filter:blur(10px)}.wizard-step-indicator{display:flex;align-items:center;gap:8px;color:#999;white-space:nowrap;font-size:12px;transition:.3s ease}.wizard-step-indicator span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f4f4f4;color:#888;font-weight:800;border:1px solid #e5e5e5;transition:.3s ease}.wizard-step-indicator.active,.wizard-step-indicator.done{color:#f36f21}.wizard-step-indicator.active span{background:#f36f21;color:#fff;border-color:#f36f21;box-shadow:0 8px 20px #f36f2130;transform:scale(1.06)}.wizard-step-indicator.done span{background:#fff0e5;color:#f36f21;border-color:#ffd1b0}.checkout-progress>i{height:2px;background:#e8e8e8;border-radius:10px;transition:.35s ease}.checkout-progress[data-current="2"]>i:nth-of-type(1),.checkout-progress[data-current="3"]>i:nth-of-type(-n+2),.checkout-progress[data-current="4"]>i{background:#f36f21}.checkout-step-shell{min-height:420px}.checkout-wizard-step{display:none;animation:wizardIn .42s cubic-bezier(.2,.8,.2,1)}.checkout-wizard-step.active{display:block}@keyframes wizardIn{from{opacity:0;transform:translateX(18px) scale(.99)}to{opacity:1;transform:translateX(0) scale(1)}}.wizard-card{padding:24px;box-shadow:0 15px 45px #0000000a}.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid #eee}.wizard-actions .primary,.wizard-actions .secondary{min-width:150px}.wizard-summary-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.wizard-summary-grid h3{margin-top:0}.wizard-total-card{background:#fffaf6;border:1px solid #ffe0c8;border-radius:14px;padding:16px;height:max-content}.wizard-address-mini{display:flex;align-items:center;gap:12px;margin-top:18px;padding:13px 15px;border:1px solid #eee;border-radius:13px;background:#fafafa}.wizard-address-mini>span{font-size:22px}.wizard-address-mini div{display:flex;flex-direction:column;gap:3px;flex:1}.wizard-address-mini strong{font-size:13px}.wizard-address-mini small{color:#777}.payment-final-total{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding:15px 17px;border-radius:13px;background:#fff8f2;border:1px solid #ffd8bd;font-size:16px}.payment-final-total b{font-size:21px;color:#f36f21}.order-success-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px}.order-success-modal[hidden]{display:none}.success-modal-backdrop{position:absolute;inset:0;background:#15151580;backdrop-filter:blur(7px);animation:fadeIn .25s ease}.success-modal-box{position:relative;width:min(520px,100%);background:#fff;border-radius:24px;padding:34px 28px;text-align:center;box-shadow:0 30px 90px #0005;animation:successPop .45s cubic-bezier(.2,.8,.2,1)}.success-check{width:72px;height:72px;margin:0 auto 15px;border-radius:50%;display:grid;place-items:center;background:#eaf8ef;color:#239957;font-size:42px;font-weight:800;box-shadow:0 10px 30px #23995722}.success-modal-box h2{margin:5px 0 9px}.success-modal-box p{margin:5px 0;color:#777}.success-tracking{margin:20px 0;padding:13px;border:1px dashed #f36f21;background:#fff8f2;border-radius:12px;display:flex;flex-direction:column;gap:5px}.success-tracking span{font-size:11px;color:#777}.success-tracking b{direction:ltr}.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.success-actions button{min-height:46px}@keyframes successPop{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media(max-width:800px){.checkout-page-title{padding-top:6px}.checkout-progress{grid-template-columns:repeat(4,1fr);gap:5px;padding:10px 7px;border-radius:15px}.checkout-progress>i{display:none}.wizard-step-indicator{justify-content:center;flex-direction:column;gap:4px;font-size:9px;text-align:center}.wizard-step-indicator span{width:29px;height:29px}.wizard-card{padding:15px;border-radius:15px}.wizard-summary-grid{grid-template-columns:1fr;gap:12px}.wizard-actions{position:sticky;bottom:70px;z-index:20;margin:18px -2px 0;padding:10px 0;background:#fff;box-shadow:0 -8px 22px #00000008}.wizard-actions .primary,.wizard-actions .secondary{min-width:0;flex:1}.wizard-address-mini{align-items:flex-start}.wizard-address-mini button{font-size:11px}.success-modal-box{padding:28px 18px;border-radius:20px}.success-actions{grid-template-columns:1fr}.order-success-modal{padding:14px}.payment-final-total{font-size:14px}.payment-final-total b{font-size:19px}}
@media(max-width:390px){.checkout-progress{padding:8px 3px}.wizard-step-indicator{font-size:8px}.wizard-step-indicator span{width:27px;height:27px}.checkout-block-head{gap:8px}.checkout-block-head h2{font-size:16px}.checkout-block-head p{font-size:10px}.wizard-actions{bottom:64px}.wizard-actions button{font-size:12px;padding:10px 9px}}

/* V14 marketplace seller/review enhancements */
.seller-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.seller-metrics>div{background:#fff;border:1px solid #eee;border-radius:14px;padding:16px;text-align:center}.seller-metrics b{display:block;font-size:22px}.seller-metrics span{color:#777;font-size:13px}.seller-store-hero{background-size:cover;background-position:center;overflow:hidden;color:#fff}.seller-store-hero .seller-avatar{background:#fff;color:#f36f21}.seller-store-hero h1,.seller-store-hero p{color:#fff}.review{position:relative;display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #eee}.review small{width:100%;color:#777}.verified-review{font-size:11px;color:#17823b;background:#e9f8ee;border-radius:20px;padding:3px 7px}.review-photo{width:64px;height:64px;object-fit:cover;border-radius:8px}.review-upload input{display:none}@media(max-width:700px){.seller-metrics{grid-template-columns:repeat(2,1fr)}.seller-store-hero{padding:18px}.seller-store-hero .seller-avatar{width:64px;height:64px}}
/* V15 promotions & loyalty */
.points-pill{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:7px 11px;border-radius:999px;background:#fff3e8;color:#d95f14;font-size:13px}.points-hero{display:flex;align-items:center;gap:16px;padding:20px;border-radius:18px;background:linear-gradient(135deg,#fff4e9,#fff);margin-bottom:18px}.points-hero>span{font-size:38px}.points-hero strong{font-size:34px;display:block;color:#f36f21}.points-hero em{font-style:normal;color:#777}.points-event{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #eee}.points-event>span{min-width:65px;font-weight:800;color:#1f8b4c}.points-event>div{display:flex;flex-direction:column;gap:3px}.points-event small{color:#888}.offer-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#fff3e8;color:#d95f14;font-size:11px;font-weight:700}

/* V16 enhancements: customer points visibility, tappable notifications, and no mobile input zoom */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,textarea,select{font-size:16px;}
.points-badge{display:inline-flex;align-items:center;gap:4px;margin-top:7px;padding:5px 8px;border-radius:8px;background:#fff6e8;color:#d96a00;font-size:11px;line-height:1.2}
.product-points-callout{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7ec;border:1px solid #ffd8ae;color:#c96000;font-size:12px}
.cart-points{color:#d96a00!important;font-size:11px!important;background:#fff7ec;padding:4px 7px;border-radius:7px;display:inline-block}
.points-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0;padding:11px 12px;background:#fff7ec;border:1px solid #ffd8ae;border-radius:10px;color:#c96000;font-size:12px}
.points-summary b,.checkout-points-total strong{white-space:nowrap}
.checkout-points-line{display:inline-block;margin-right:7px;color:#d96a00;background:#fff7ec;border-radius:6px;padding:2px 6px;font-style:normal;font-size:10px}
.checkout-points-total{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding:11px 12px;background:#fff7ec;border:1px solid #ffd8ae;border-radius:10px;color:#c96000;font-size:12px}
.notification{cursor:pointer;transition:.2s ease}
.notification:hover{transform:translateY(-1px);box-shadow:0 8px 24px #0000000a;border-color:#ffd2aa}
.notification:focus-visible{outline:2px solid #f36f21;outline-offset:2px}
.notification div{flex:1}
.notification em{font-style:normal;color:#f36f21;font-size:10px;margin-top:2px}
.notification-detail{text-align:center;max-width:620px;margin:20px auto;padding:34px}
.notification-detail-icon{font-size:48px;margin-bottom:8px}
.notification-detail p{color:#888}
@media(max-width:520px){.points-summary,.checkout-points-total{align-items:flex-start;flex-direction:column}.points-badge{font-size:10px}.notification{padding:12px}.notification>span{font-size:21px}}
.notification-static{cursor:default!important;}
.notification:not(.notification-static){cursor:pointer;}
/* V18 marketplace polish: seller follow + shipment details, preserving existing design */
.seller-store-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.seller-store-actions .primary,.seller-store-actions .secondary{min-width:150px}.shipment-detailed{align-items:flex-start}.shipment-mini-timeline{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.shipment-mini-timeline span{font-size:9px;padding:4px 7px;border-radius:12px;background:#f2f2f2;color:#999}.shipment-mini-timeline span.done{background:#fff0e5;color:#d65c14}.return-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.return-row small{grid-column:1/-1;color:#16834b}@media(max-width:700px){.seller-store-actions{display:grid;grid-template-columns:1fr}.seller-store-actions button{width:100%}.return-row{grid-template-columns:1fr auto}.return-row small{grid-column:1/-1}.shipment-detailed{flex-direction:column}.shipment-detailed>strong{align-self:flex-start}}

/* V19 additive marketplace enhancements — existing visual system preserved */
.rewards-grid,.vip-grid,.wallet-grid,.analytics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}
.feature-card,.analytics-card{background:#fff;border:1px solid #eee;border-radius:16px;padding:20px;box-shadow:0 5px 22px rgba(0,0,0,.04)}
.feature-card b,.analytics-card b{display:block;font-size:24px;margin-top:7px}.tier-progress{height:9px;background:#eee;border-radius:20px;overflow:hidden;margin:12px 0}.tier-progress span{display:block;height:100%;background:#ff7900;border-radius:20px}
.search-suggestions{position:absolute;top:calc(100% + 8px);right:0;left:0;background:#fff;border:1px solid #eee;border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.12);z-index:120;overflow:hidden}.search-suggestions button{display:flex;width:100%;gap:10px;align-items:center;padding:12px 14px;border:0;background:#fff;text-align:right;font:inherit;cursor:pointer}.search-suggestions button:hover{background:#fff7ef}.search-suggestions small{display:block;color:#888;margin-top:2px}
.notification-tabs{display:flex;gap:8px;overflow:auto;margin-bottom:14px}.notification-tabs button{white-space:nowrap}.smart-alert{display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:6px 10px;border-radius:10px;background:#fff7ef;color:#d66b00;font-size:12px}
.reward-redeem{margin-top:14px;padding:14px;border:1px solid #eee;border-radius:14px;background:#fafafa}.reward-redeem-row{display:flex;gap:8px;align-items:center}.reward-redeem input{max-width:150px}
@media(max-width:800px){.rewards-grid,.vip-grid,.wallet-grid,.analytics-grid{grid-template-columns:1fr 1fr}.feature-card,.analytics-card{padding:15px}}
@media(max-width:520px){.rewards-grid,.vip-grid,.wallet-grid,.analytics-grid{grid-template-columns:1fr}.search-suggestions{position:fixed;top:145px;right:16px;left:16px}}

/* V20 header polish + Firebase seller onboarding */
.wallet-header{min-width:72px!important}.wallet-header b{display:block;color:#f36f21;font-size:10px;font-weight:800;margin-top:1px}.wallet-header small{font-size:10px}.seller-onboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}.seller-onboard-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.seller-onboard-grid input,.seller-onboard-grid textarea{font:inherit;border:1px solid #ddd;border-radius:9px;padding:10px}.seller-onboard-grid .wide{grid-column:1/-1}.seller-onboard-grid .primary{min-height:44px}@media(max-width:800px){.header-main{height:auto;min-height:68px;gap:8px;flex-wrap:wrap;padding:9px 0}.logo{font-size:25px}.logo span{width:30px;height:30px;font-size:20px}.search{order:3;flex-basis:100%;max-width:none;height:43px}.search input{min-width:0;padding:9px 11px;font-size:12px}.search button{padding:0 15px}.header-actions{margin-right:auto;gap:2px}.header-actions button{min-width:45px}.header-actions small{font-size:9px}.wallet-header b{font-size:8px}.nav{display:none}.mobile-menu{display:grid!important;place-items:center}.seller-onboard-grid{grid-template-columns:1fr}.seller-onboard-grid .wide{grid-column:auto}}
@media(max-width:380px){.header-actions button{min-width:40px}.header-actions button:nth-child(2){min-width:45px}.wallet-header small{display:none}.wallet-header b{font-size:9px}.search button{padding:0 12px}}

/* V21 header/search refinement — preserves V20 functionality and visual language */
.header-main{gap:18px}
.header-actions{display:flex;align-items:center;gap:6px;margin-right:auto;flex:0 0 auto}
.header-actions .search{display:flex;flex:0 0 0;width:0;max-width:0;opacity:0;overflow:hidden;pointer-events:none;margin:0;padding:0;border:0;transition:width .28s ease,max-width .28s ease,opacity .18s ease,padding .28s ease}
.header-actions .search.is-open{width:min(380px,38vw);max-width:min(380px,38vw);opacity:1;pointer-events:auto;padding:0;border:1px solid #ddd}
.header-search-toggle{width:44px;height:44px;border:0;background:transparent;border-radius:10px;font-size:23px;cursor:pointer;display:grid;place-items:center;position:relative;flex:0 0 44px;transition:background .2s,transform .2s}
.header-search-toggle:hover{background:#fff4e9;transform:translateY(-1px)}
.header-search-toggle:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.header-search-toggle[aria-expanded="true"]{background:#fff4e9;color:var(--orange)}
.header-actions .search input{font-size:13px;min-width:0}
.header-actions .search button{min-width:66px}
@media(max-width:800px){
  .header-main{height:68px;min-height:68px;gap:7px;flex-wrap:nowrap;padding:8px 0}
  .logo{font-size:25px}
  .logo span{width:30px;height:30px;font-size:20px}
  .header-actions{gap:1px;min-width:0}
  .header-actions button{min-width:43px}
  .header-actions .search.is-open{position:absolute;top:72px;right:14px;left:14px;width:auto;max-width:none;height:44px;z-index:80;box-shadow:0 8px 25px #0001;border-radius:9px;background:#f5f5f5}
  .header-actions .search.is-open input{font-size:13px;padding:9px 11px}
  .header-actions .search.is-open button{padding:0 14px}
  .header-search-toggle{width:42px;height:42px;flex-basis:42px;font-size:21px}
  .header-actions small{display:none}
  .wallet-header b{font-size:8px}
  .nav{display:none}
  .header{height:68px}
}
@media(max-width:430px){
  .header-main{gap:4px}
  .logo{font-size:22px}
  .logo span{width:28px;height:28px;font-size:19px}
  .header-actions .search.is-open{right:10px;left:10px}
  .header-actions button{min-width:39px}
  .header-search-toggle{width:39px;height:39px;flex-basis:39px;font-size:20px}
  .wallet-header{min-width:39px!important}
  .wallet-header small{display:none}
  .wallet-header b{font-size:8px}
}
@media(max-width:800px){.header-actions .search{order:0;flex-basis:0}.header-actions .search.is-open{flex-basis:auto}}
.category-grid .category-card{width:100%;height:132px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#1683ff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.45;cursor:pointer;box-shadow:0 1px 3px #00000008;transition:.2s;overflow:hidden}.category-grid .category-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #00000010}.category-grid .category-card:first-line{font-size:38px}.category-grid .category-card span:first-child{font-size:40px;line-height:1}.category-grid .category-card span:last-child{display:block;max-width:100%;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.category-grid .category-card{font-size:0}.category-grid .category-card span{font-size:14px}.category-grid .category-card{isolation:isolate}@media(max-width:900px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-grid .category-card{height:132px}}@media(max-width:650px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.category-grid .category-card{height:126px;padding:10px 4px;border-radius:10px}.category-grid .category-card span:first-child{font-size:34px}.category-grid .category-card span{font-size:12px}}@media(max-width:430px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.category-grid .category-card{height:120px}.category-grid .category-card span:first-child{font-size:31px}.category-grid .category-card span{font-size:11px}}
/* V38: category cards always render icon and label consistently */
.category-grid .category-card{font-size:0!important}.category-grid .category-card .category-card-icon{display:block!important;font-size:40px!important;line-height:1!important}.category-grid .category-card .category-card-name{display:-webkit-box!important;font-size:14px!important;line-height:1.45!important;max-width:100%;white-space:normal;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media(max-width:650px){.category-grid .category-card .category-card-icon{font-size:34px!important}.category-grid .category-card .category-card-name{font-size:12px!important}}@media(max-width:430px){.category-grid .category-card .category-card-icon{font-size:31px!important}.category-grid .category-card .category-card-name{font-size:11px!important}}

.product-brand .seller-link{color:inherit;text-decoration:none}.product-brand .seller-link:hover{color:var(--orange);text-decoration:underline}
