/* Mobile defaults; desktop layouts are introduced at wider breakpoints. */
:root { --muted:#bbcedc; }
body { font-size:16px; line-height:1.85; }
[hidden] { display:none !important; }
.wrap { width:min(var(--wrap),calc(100% - 28px)); }
button,input,select,textarea { font-size:16px; }
.button { min-height:48px; font-size:15px; padding:11px 17px; }
input,select,textarea { min-height:48px; }
textarea { resize:vertical; line-height:1.8; }
:where(a,button,input,select,textarea):focus-visible { outline:3px solid #e4fd97; outline-offset:4px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.customer-space { padding-block:24px 56px; }
.page-intro { margin-bottom:26px; }
.page-intro h1 { font-size:clamp(26px,5vw,38px);line-height:1.5;margin:6px 0;overflow-wrap:anywhere; }
.page-intro p { color:var(--muted);margin:0;max-width:650px; }
.customer-space .panel { padding:20px;border:1px solid #42627a;border-radius:24px;background:linear-gradient(140deg,#193447,#102532);box-shadow:0 12px 35px #0002; }
.customer-space h2 { font-size:21px;line-height:1.6;margin:0 0 12px; }
.profile-dashboard,.profile-main { display:grid;gap:20px;min-width:0; }
.identity-heading { display:flex;gap:14px;align-items:center; }
.identity-heading > div { min-width:0; }
.identity-heading h2 { margin-bottom:6px;overflow-wrap:anywhere; }
.profile-identity .profile-avatar { display:grid;place-items:center;flex:none;width:64px;height:64px;font-size:29px;font-weight:850;border-radius:22px;background:linear-gradient(140deg,#d5eeff,#a0bddb);color:#163d51;box-shadow:0 7px 20px #a0bddb15; }
.account-badge { display:inline-flex;padding:4px 10px;font-size:13px;color:#ffdc9a;background:#72522335;border:1px solid #9a774b;border-radius:30px; }
.account-badge.approved { color:#e4fd97;background:#5b742327;border-color:#8d9e53; }
.identity-details { display:grid;gap:16px;margin:24px 0; }
.identity-details > div { padding:14px 16px;background:#a0bddb0c;border:1px solid #a0bddb20;border-radius:16px; }
.identity-details dt { color:var(--muted);font-size:13px;margin-bottom:5px; }
.identity-details dd { margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere;text-align:start; }
.identity-details dd[dir=ltr] { text-align:right; }
.identity-password { width:100%;justify-content:space-between; }
.profile-metrics { display:grid;grid-template-columns:minmax(0,1fr);gap:14px; }
.balance-card,.orders-metric { display:flex;flex-direction:column;gap:10px;padding:22px;border-radius:24px;border:1px solid #95bfdd;min-width:0; }
.balance-card { background:linear-gradient(125deg,#d5edff,#a0bddb);color:#133749; }
.balance-card > span,.orders-metric > span { font-weight:650; }
.balance-card > strong { font-size:clamp(24px,6vw,36px);line-height:1.4;overflow-wrap:anywhere; }
.balance-card strong small { font-size:15px;font-weight:650; }
.balance-card > small { color:#31566b;font-size:13px; }
.balance-card .balance-unset { font-size:24px; }
.orders-metric { background:#e4fd97;color:#263b1b;border-color:#edfbc3; }
.orders-metric > strong { font-size:38px;line-height:1.4; }
.orders-metric > a { font-size:14px;text-decoration:underline;text-underline-offset:5px; }
.profile-quick-actions { display:flex;flex-wrap:wrap;gap:12px; }
.profile-quick-actions .button { flex:1; }
.list-heading { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:20px; }
.list-heading h2 { margin-bottom:2px; }
.view-switch { display:flex;gap:4px;padding:4px;background:#0b1d29;border:1px solid #59798f;border-radius:15px; }
.view-switch button { min-height:44px;min-width:76px;border:0;background:transparent;color:#c7dce9;padding:7px 13px;border-radius:11px;font-size:14px;font-weight:650;cursor:pointer; }
.view-switch button[aria-pressed=true] { color:#10384c;background:#cce9ff;box-shadow:0 3px 12px #0002; }
.customer-order-card { border:1px solid #5a778e;border-radius:20px;padding:18px;background:#0c23308a;margin-bottom:14px; }
.customer-order-card:last-child { margin-bottom:0; }
.order-card-top { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px; }
.order-card-top time { color:var(--muted); }
.order-status { padding:5px 10px;border-radius:10px;background:#a0bddb20;color:#d0e9ff;font-size:12px; }
.status-confirmed,.status-shipped { background:#e4fd9718;color:#e4fd97; }
.status-cancelled { background:#e9949420;color:#ffd0d0; }
.order-card-body { display:grid;gap:14px;margin:18px 0; }
.order-card-body > div { display:grid;gap:4px;min-width:0; }
.invoice-code { display:block;font-size:13px;overflow-wrap:anywhere;font-weight:700;text-align:start; }
.order-card-body .invoice-code[dir=ltr] { text-align:right; }
.order-card-body small { color:var(--muted);font-size:13px; }
.order-amount { font-size:22px;color:#e4fd97; }
.order-amount small { font-size:13px; }
.order-card-actions { display:flex;gap:10px;flex-wrap:wrap; }
.order-card-actions .button { flex:1;font-size:14px;white-space:nowrap; }
.friendly-empty { display:grid;justify-items:center;text-align:center;padding:32px 12px;gap:12px; }
.friendly-empty > span { display:grid;place-items:center;width:76px;height:76px;border-radius:24px;color:#d3edff;background:#a0bddb19;font-size:36px; }
.friendly-empty h3 { font-size:20px;line-height:1.7;margin:0; }
.friendly-empty p { color:var(--muted);margin:0 0 8px; }
.responsive-table { overflow:auto;max-width:100%;border:1px solid #496d86;border-radius:18px;overscroll-behavior-inline:contain;scrollbar-color:#a0bddb #17374b; }
.customer-table { width:100%;min-width:660px;border-collapse:collapse;text-align:right;font-size:15px; }
.customer-table th { padding:16px;background:#24485e;color:#dbf1ff;font-weight:700;white-space:nowrap; }
.customer-table td { padding:16px;border-top:1px solid #37586e;vertical-align:middle; }
.customer-table tbody tr:nth-child(even) { background:#a0bddb08; }
.customer-table tbody tr:hover { background:#a0bddb12; }
.customer-table small { display:block;color:var(--muted);font-size:13px; }
.table-price { white-space:nowrap;font-weight:750;color:#e4fd97; }
.table-product { display:flex;align-items:center;gap:14px;min-width:265px;max-width:420px; }
.table-product > span:last-child { min-width:0; }
.table-product strong { display:block;line-height:1.7; }
.table-product-image { display:grid;place-items:center;width:68px;height:68px;flex:none;border-radius:15px;background:#e6f2fa;overflow:hidden;color:#375b72; }
.table-product-image img { width:100%;height:100%;object-fit:contain;padding:5px; }
.table-code { overflow-wrap:anywhere; }
.table-hint { font-size:13px;color:var(--muted);margin:0 0 12px; }
.catalog-view-toolbar { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0 20px; }
.catalog-tools { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px; }
.catalog-tools .search-box { grid-column:1/-1;min-width:0; }
.catalog-tools .search-box input { width:100%;min-width:0;font-size:16px; }
.catalog-tools select { min-width:0;width:100%;font-size:15px; }
.catalog-results,.catalog-layout,.profile-orders { min-width:0; }
.product-info h2 { font-size:18px;line-height:1.8; }
.product-meta,.product-code { font-size:13px; }
.product-bottom .price { font-size:21px; }
.catalog-stepper button { width:44px;min-width:44px;height:44px;font-size:24px;touch-action:manipulation; }
.catalog-stepper span { min-width:35px;font-size:17px; }
.checkout-layout { display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start; }
.checkout-cart-items { display:grid;gap:14px; }
.cart-refresh-state { font-size:13px;color:#c8e6fd;padding:10px 13px;border-radius:12px;background:#a0bddb15;margin:0 0 18px; }
.cart-refresh-state.is-ready { color:#e4fd97;background:#e4fd970b; }
.cart-refresh-state.is-warning { color:#ffdc9a; }
.checkout-line.cart-product { display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:14px;padding:16px;border:1px solid #55758c;border-radius:20px;background:#0d2230; }
.cart-product-photo { display:grid;place-items:center;width:76px;height:86px;border-radius:15px;background:#e0effa;color:#4c738a;overflow:hidden;font-size:30px; }
.cart-product-photo img { width:100%;height:100%;object-fit:contain;padding:7px;grid-area:1/1; }
.cart-product-photo > span { grid-area:1/1; }
.cart-product-info h3 { margin:0 0 6px;font-size:16px;line-height:1.8;overflow-wrap:anywhere;color:#f0f8ff; }
.cart-product-code { margin:0 0 5px;font-size:12px;color:var(--muted);overflow-wrap:anywhere; }
.cart-unit-price { margin:0;font-size:13px;color:#d0e7f6; }
.cart-product-controls { display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;grid-column:1/-1; }
.cart-product .quantity-tools { display:flex;width:auto;flex:none;gap:0;padding:4px;border:1px solid #607e94;background:#1b394d;border-radius:14px; }
.cart-product .quantity-tools button { display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:#cee8fa;color:#13374c;font-size:24px;cursor:pointer;touch-action:manipulation; }
.cart-product .quantity-tools button:disabled { opacity:.45;cursor:not-allowed; }
.cart-product .quantity-tools span { display:grid;place-items:center;min-width:44px;font-size:18px;font-weight:750; }
.cart-remove { white-space:nowrap;min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:#efadad0e;color:#ffc6c6;font-size:13px;cursor:pointer; }
.cart-remove:hover { background:#efadad20; }
.cart-line-total { display:flex;align-items:center;justify-content:space-between;gap:10px;grid-column:1/-1;padding-top:12px;border-top:1px solid #37556b; }
.cart-line-total small { font-size:12px;color:var(--muted); }
.cart-line-total strong { font-size:17px;color:#e4fd97; }
.cart-unavailable { opacity:.8; }
.cart-unavailable-note { color:#ffd0a0;font-size:13px; }
.checkout-summary { grid-row:auto;display:flex;flex-direction:column;gap:16px; }
.checkout-summary h2 { margin-bottom:0; }
.summary-detail { display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#c5dbe8; }
.checkout-summary .cart-total { display:flex;flex-direction:column;align-items:start;gap:6px;margin:0;padding:20px;background:#a0bddb15;border:1px solid #6a8da6;border-radius:18px; }
.checkout-total { font-size:clamp(23px,5vw,30px);line-height:1.6;color:#e4fd97;overflow-wrap:anywhere; }
.checkout-summary textarea { width:100%;min-height:112px;padding:14px;background:#0c202e;border:1px solid #5d7e96;border-radius:15px;color:#eef8ff; }
.checkout-summary .form-field { margin:0; }
.checkout-summary .submit-order { width:100%;min-height:54px;font-size:16px;justify-content:space-between; }
.summary-note { font-size:13px;line-height:1.9;color:var(--muted);margin:0; }
body:has(.checkout-page) .floating-cart { display:none; }
@media (max-width:760px) {
  .main-nav .nav-secondary { display:none; }
  .main-nav .nav-item { min-height:62px;min-width:0;font-size:11px; }
  .main-nav .nav-glyph { width:30px;height:30px; }
  .header-inner.wrap { padding:12px;gap:12px; }
  .header-actions { gap:8px; }
  .header-actions .button { min-height:44px;font-size:12px;padding:8px 11px; }
  .header-actions .profile-pill { max-width:180px; }
  .brand strong { font-size:15px; }
  .brand small { font-size:11px; }
  .catalog-page-heading { flex-wrap:wrap;gap:12px; }
  .sync-badge { font-size:12px;white-space:normal; }
  .catalog-layout { grid-template-columns:minmax(0,1fr);gap:18px; }
  .catalog-sidebar { padding:16px; }
  .catalog-sidebar nav { display:flex;gap:8px;overflow-x:auto;max-width:100%;padding-bottom:6px; }
  .catalog-sidebar .category-side-link { flex:none;white-space:nowrap;width:auto;min-height:44px;padding:8px 12px;margin:0; }
  .catalog-sidebar .category-arrow,.catalog-sidebar .sidebar-access { display:none; }
  .product-grid { grid-template-columns:minmax(0,1fr);gap:18px; }
  .product-photo { aspect-ratio:1.5; }
  .price-access-banner { padding:18px; }
  .pagination { gap:10px;flex-wrap:wrap;font-size:14px; }
  .profile-orders { scroll-margin-top:20px; }
}
@media (min-width:480px) {
  .profile-metrics { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .order-card-body { grid-template-columns:minmax(0,1fr) auto;align-items:center; }
}
@media (min-width:761px) {
  body { font-size:17px; }
  .wrap { width:min(var(--wrap),calc(100% - 48px)); }
  .profile-dashboard { grid-template-columns:300px minmax(0,1fr);align-items:start; }
  .profile-identity { position:sticky;top:180px; }
  .customer-space .panel { padding:26px; }
  .checkout-line.cart-product { grid-template-columns:90px minmax(0,1fr);padding:20px; }
  .cart-product-photo { width:90px;height:98px; }
  .cart-product-info h3 { font-size:18px; }
  .cart-unit-price { font-size:14px; }
  .catalog-tools { display:flex; }
  .catalog-tools .search-box { flex:1; }
  .catalog-tools select { width:170px; }
  .catalog-view-toolbar { margin-block:18px 24px; }
  .table-hint { display:none; }
  .main-nav .nav-item { font-size:13px; }
}
@media (min-width:1024px) {
  .checkout-layout { grid-template-columns:minmax(0,1fr) 340px;gap:24px; }
  .checkout-summary { position:sticky;top:180px; }
  .checkout-line.cart-product { grid-template-columns:90px minmax(0,1fr) auto; }
  .cart-product-controls { grid-column:3;grid-row:1;flex-direction:column;gap:8px; }
  .cart-line-total { grid-column:2/-1; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .customer-space *, .view-switch * { transition:none !important; } }

.checkout-summary .cart-total .checkout-total { font-size:clamp(23px,5vw,30px);color:#e4fd97; }
.form-field > span { font-size:15px; }
.site-footer p,.site-footer a { font-size:14px; }

.order-detail-intro { margin-top:24px; }
.order-detail-intro .invoice-code { font-size:15px;text-align:right; }
.order-detail-items { display:grid;gap:12px; }
.order-detail-line { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:18px;background:#0b2130;border:1px solid #4e6f87;border-radius:18px; }
.order-detail-line > div { grid-column:1/-1; }
.order-detail-line h3 { margin:0 0 8px;font-size:17px;overflow-wrap:anywhere; }
.order-detail-line p { margin:0;color:var(--muted);font-size:13px; }
.order-item-quantity { background:#a0bddb15;padding:5px 12px;border-radius:10px;font-size:14px; }
.order-detail-line > strong { color:#e4fd97;font-size:19px;align-self:center; }
.order-detail-line small,.order-detail-total small { font-size:13px; }
.order-detail-total { display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:20px;margin-top:20px;background:#a0bddb15;border:1px solid #698ba4;border-radius:18px; }
.order-detail-total > strong { font-size:24px;color:#e4fd97; }
.order-detail-note { padding:18px 0 0;overflow-wrap:anywhere; }
.order-detail-note p { white-space:pre-line;color:var(--muted);margin-bottom:0; }

.detail-photo{position:relative}
