

/* مساحة العميل والسلة: هوية هادئة وأزرار واضحة مناسبة للهاتف. */
.customer-page{padding:30px 0 90px;min-height:62vh}.customer-page .shell{max-width:1120px}.customer-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:5px 0 22px}.customer-page-head h1,.customer-auth-intro h1,.customer-guest-card h1{font-size:clamp(26px,4vw,36px);line-height:1.25;margin:7px 0;color:var(--ink)}.customer-page-head p,.customer-auth-intro p,.customer-guest-card>p{color:var(--muted);font-size:14px;line-height:1.8;margin:5px 0}.customer-auth-card,.customer-guest-card{width:min(100%,650px);margin:26px auto;background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:var(--soft-shadow);padding:clamp(20px,4vw,34px)}.customer-auth-intro{text-align:center;margin-bottom:18px}.customer-auth-intro .auth-mark,.customer-guest-card>.auth-mark{margin:0 auto 11px}.auth-mark{width:50px;height:50px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--teal) 16%,var(--paper)),color-mix(in srgb,var(--pink) 12%,var(--paper)));color:var(--teal-dark);border:1px solid color-mix(in srgb,var(--teal) 23%,var(--line))}.auth-mark .ui-icon{width:25px;height:25px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:var(--canvas);border:1px solid var(--line);border-radius:14px;margin:17px 0 19px}.auth-tabs a{text-align:center;text-decoration:none;border-radius:10px;padding:10px 8px;font-size:13px;font-weight:800;color:var(--muted)}.auth-tabs a.active{background:var(--paper);color:var(--ink);box-shadow:0 2px 10px rgba(20,36,54,.07)}.customer-form{display:grid;gap:12px}.customer-form .field{margin:0}.customer-form input{min-height:47px}.field-hint{font-size:11px;line-height:1.7;color:var(--muted)}.customer-auth-foot{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.customer-auth-foot a{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;text-decoration:none}.demo-login-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding:13px;border:1px solid color-mix(in srgb,var(--gold) 38%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--gold) 8%,var(--paper))}.demo-login-card>div{display:grid;gap:3px;min-width:0}.demo-login-card b{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ink)}.demo-login-card small,.demo-login-card code{font-size:10px;color:var(--muted);line-height:1.6}.demo-login-card code{direction:ltr;text-align:left;overflow-wrap:anywhere}.customer-guest-card{text-align:center}.customer-guest-card .customer-actions{justify-content:center}.customer-guest-card .demo-login-card{text-align:right}.customer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}.customer-account-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr);gap:15px}.customer-profile-card h2{font-size:21px;margin:12px 0 16px;color:var(--ink)}.customer-profile-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.customer-profile-line>span{color:var(--muted)}.customer-profile-line>b{max-width:70%;text-align:left;overflow-wrap:anywhere;color:var(--ink)}.verification-pill{display:inline-block;margin-inline-start:4px;padding:3px 7px;border-radius:14px;background:#fff3dd;color:#96651f;font-size:9px;white-space:nowrap}.customer-recent-orders{min-width:0}.customer-order-list{display:grid;gap:11px}.customer-order-card{min-width:0;border:1px solid var(--line);border-radius:15px;padding:13px;background:var(--paper)}.customer-order-head,.customer-order-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-order-head h3{font-size:14px;margin:4px 0;color:var(--ink)}.customer-order-status{border-radius:20px;padding:5px 9px;background:#edf7f3;color:#247d64;font-size:10px;font-weight:900;white-space:nowrap}.customer-order-status.new{background:#edf5ff;color:#396f9b}.customer-order-status.preparing{background:#fff3df;color:#96651f}.customer-order-status.cancelled{background:#ffedf0;color:#ad5364}.customer-order-items{display:grid;gap:4px;padding-inline-start:20px;margin:10px 0;color:var(--ink-2);font-size:12px}.customer-order-items li span{color:var(--muted);margin-inline-start:5px}.customer-order-foot{padding-top:8px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.customer-order-foot b{font-size:13px;color:var(--ink)}.customer-order-meta{margin-top:8px;font-size:11px;color:var(--muted);line-height:1.65}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;align-items:start;gap:14px}.cart-groups{display:grid;gap:14px}.cart-store-card,.cart-note{min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:15px;box-shadow:var(--soft-shadow)}.cart-store-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid var(--line)}.cart-store-head h2{font-size:17px;margin:3px 0;color:var(--ink)}.cart-store-head>a,.cart-note a{display:inline-flex;align-items:center;gap:5px;color:var(--teal-dark);font-size:11px;font-weight:800;text-decoration:none}.cart-items{display:grid}.cart-item{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-item>img{width:66px;height:66px;border-radius:12px;object-fit:cover;background:var(--canvas)}.cart-item-info{display:grid;gap:3px;min-width:0}.cart-item-info>b{font-size:13px;line-height:1.5;color:var(--ink)}.cart-item-info>span{font-size:11px;color:var(--muted)}.cart-item>strong{font-size:12px;white-space:nowrap;color:var(--ink)}.cart-controls{display:flex;align-items:center;gap:6px;margin-top:4px}.cart-controls button{min-width:28px;height:27px;border:1px solid var(--line);border-radius:8px;background:var(--canvas);color:var(--ink);font-weight:900}.cart-controls b{font-size:12px;min-width:16px;text-align:center}.cart-controls .cart-remove{width:auto;padding:0 8px;color:#b2516c;font-size:10px}.cart-summary-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:var(--muted);font-size:12px}.cart-summary-row b{font-size:15px;color:var(--ink)}.customer-checkout{display:grid;gap:11px;border-top:1px solid var(--line);padding-top:12px}.customer-checkout .field{margin:0}.customer-checkout input,.customer-checkout select{min-height:43px}.payment-demo-note,.payment-safety-note{display:flex;align-items:flex-start;gap:7px;padding:10px;border:1px solid color-mix(in srgb,var(--gold) 36%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--gold) 8%,var(--paper));color:var(--muted);font-size:10px;line-height:1.7}.payment-demo-note .ui-icon,.payment-safety-note .ui-icon{color:var(--gold);margin-top:1px}.login-to-checkout{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:11px}.login-to-checkout p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.cart-note{position:sticky;top:92px}.cart-note h3{font-size:15px;margin:10px 0 6px;color:var(--ink)}.cart-note p,.public-payment-box>p{margin:0 0 11px;color:var(--muted);font-size:11px;line-height:1.8}.header-customer,.header-cart{position:relative;min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-size:11px;font-weight:850;white-space:nowrap}.header-customer:hover,.header-cart:hover{border-color:var(--teal-dark);color:var(--teal-dark)}.header-cart [data-cart-count]{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:12px;background:var(--pink);color:white;font-size:9px}.header-cart [hidden]{display:none}.mobile-cart-count{position:absolute;inset-block-start:-3px;inset-inline-end:-6px;display:grid;place-items:center;min-width:15px;height:15px;border-radius:10px;background:var(--pink);color:white;font-size:8px}.mobile-cart-count[hidden]{display:none}.product-title-button{width:100%;border:0;background:transparent;padding:0;text-align:right;font:inherit;cursor:pointer}.product-title-button:hover{color:var(--teal-dark)}.public-payment-box h3{display:flex;align-items:center;gap:7px}.public-payment-list,.payment-method-list{display:grid;gap:9px}.public-payment-row,.payment-method-card{display:grid;gap:5px;border:1px solid var(--line);border-radius:13px;padding:11px;background:var(--paper)}.public-payment-row>b{font-size:12px;color:var(--ink)}.public-payment-row>small,.public-payment-row>span{font-size:10px;color:var(--muted);line-height:1.65}.public-payment-row code{padding:7px 9px;background:var(--canvas);border-radius:8px;color:var(--ink);direction:ltr;text-align:left;overflow-wrap:anywhere}.demo-warning{font-size:9px;color:#95651b;font-weight:800}.payment-method-top{display:flex;align-items:center;gap:9px}.payment-method-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--teal) 10%,var(--paper));color:var(--teal-dark)}.payment-method-top>div{min-width:0;flex:1}.payment-method-top h4{font-size:13px;margin:0;color:var(--ink)}.payment-method-top small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.payment-state{border-radius:18px;padding:4px 7px;font-size:9px;font-weight:900;background:#edf7f3;color:#27815f;white-space:nowrap}.payment-state.off{background:var(--canvas);color:var(--muted)}.payment-account-row{display:flex;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid var(--line);font-size:11px}.payment-account-row span{color:var(--muted)}.payment-account-row b{color:var(--ink);text-align:left;overflow-wrap:anywhere}.payment-instructions{font-size:11px;line-height:1.7;color:var(--muted);margin:3px 0}.payment-actions{display:flex;gap:6px;flex-wrap:wrap}.payment-actions .btn{min-height:33px}.payment-visible-toggle{display:flex!important;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--canvas);color:var(--ink-2)}.payment-visible-toggle input{width:18px;height:18px;accent-color:var(--teal)}
html[data-theme="dark"] .customer-auth-card,html[data-theme="dark"] .customer-guest-card,html[data-theme="dark"] .cart-store-card,html[data-theme="dark"] .cart-note,html[data-theme="dark"] .customer-order-card,html[data-theme="dark"] .public-payment-row,html[data-theme="dark"] .payment-method-card{background:var(--paper);border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .auth-tabs,html[data-theme="dark"] .cart-controls button,html[data-theme="dark"] .public-payment-row code{background:#101d2a;border-color:#304456;color:var(--ink)}html[data-theme="dark"] .auth-tabs a.active{background:#213142;color:var(--ink)}html[data-theme="dark"] .header-customer,html[data-theme="dark"] .header-cart{background:#142433;border-color:#304456;color:var(--ink)}html[data-theme="dark"] .customer-profile-line,html[data-theme="dark"] .customer-order-foot{border-color:var(--line)}html[data-theme="dark"] .verification-pill,html[data-theme="dark"] .payment-demo-note,html[data-theme="dark"] .payment-safety-note,html[data-theme="dark"] .demo-login-card{background:#342f24;border-color:#5a4a2e;color:#e6d4aa}html[data-theme="dark"] .customer-order-status{background:#19372f;color:#9de1bd}html[data-theme="dark"] .customer-order-status.new{background:#192f42;color:#a5caea}html[data-theme="dark"] .customer-order-status.preparing{background:#3b3020;color:#efca7b}html[data-theme="dark"] .customer-order-status.cancelled{background:#3b242b;color:#ee9ba5}
@media(max-width:850px){.cart-layout{grid-template-columns:1fr}.cart-note{position:static}.customer-account-grid{grid-template-columns:1fr 1.4fr}}
@media(max-width:650px){.customer-page{padding:20px 0 104px}.customer-page .shell{width:min(100% - 28px,1120px)}.customer-page-head{align-items:flex-start;flex-direction:column;gap:9px}.customer-page-head h1,.customer-auth-intro h1,.customer-guest-card h1{font-size:27px}.customer-page-head p,.customer-auth-intro p{font-size:13px}.customer-auth-card,.customer-guest-card{margin:12px auto;border-radius:19px;padding:20px 16px}.customer-account-grid{grid-template-columns:1fr}.demo-login-card{align-items:flex-start}.customer-auth-foot{flex-wrap:wrap}.cart-store-card,.cart-note{padding:12px;border-radius:15px}.cart-item{grid-template-columns:54px minmax(0,1fr);gap:9px}.cart-item>img{width:54px;height:54px}.cart-item>strong{grid-column:2;justify-self:end;font-size:11px}.cart-controls{flex-wrap:wrap}.cart-store-head h2{font-size:15px}.customer-order-card{padding:11px}.customer-order-head h3{font-size:13px}.customer-checkout .btn{width:100%}.header-customer,.header-cart{min-width:34px;padding:0 7px;min-height:36px;font-size:10px}.header-actions{gap:5px}.customer-guest-card .customer-actions{justify-content:center}.customer-profile-line{font-size:11px}}
@media(max-width:380px){.header-cart>span,.header-customer>span{display:none}.header-cart,.header-customer{width:34px;padding:0}.customer-auth-card,.customer-guest-card{padding:18px 13px}.cart-controls{gap:4px}.cart-controls button{min-width:26px}}

.mobile-nav a{flex:1;min-width:0}.mobile-nav .mobile-icon{position:relative;display:inline-grid;place-items:center}.mobile-nav .mobile-cart-count{inset-block-start:-2px;inset-inline-end:-7px}

@media(max-width:650px){.site-header .topbar{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:8px}.site-header .brand{flex:0 0 40px;width:40px;min-width:40px;gap:0}.site-header .brand-logo{width:40px;height:40px;object-fit:cover}.site-header .brand-copy{display:none!important}.site-header .header-actions{flex:1 1 auto;min-width:0;width:auto;justify-content:flex-start;gap:5px}.site-header .header-actions>.demo-pill,.site-header .header-actions>.header-join{display:none!important}.site-header .header-actions .theme-toggle,.site-header .header-actions .header-customer,.site-header .header-actions .header-cart{flex:0 0 36px;min-width:36px;width:36px;height:36px;padding:0;gap:0}.site-header .theme-label,.site-header .header-customer>span,.site-header .header-cart>span{display:none!important}.site-header .header-cart [data-cart-count]{position:absolute;top:-4px;inset-inline-end:-4px}}
