@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fuentes/BricolageGrotesque-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ananda-lila: #C98BDB;
  --ananda-lila-strong: #B068C5;
  --ananda-lila-soft: #F5E5F8;
  --ananda-verde: #C5E86C;
  --ananda-negro: #000000;
  --ananda-blanco: #FFFFFF;
  --ananda-azul-soft: #EAF2FB;
  --ananda-azul-text: #2B4A73;
  --ananda-gris-soft: #F4F5F7;
  --ananda-gris: #E6E9EE;
  --ananda-gris-strong: #C4CAD3;
  --fuente-titulos: 'Bricolage Grotesque', system-ui, sans-serif;
  --fuente-cuerpo: 'Poppins', system-ui, sans-serif;
  font-family: var(--fuente-cuerpo);
  color: var(--ananda-negro);
  background: var(--ananda-gris-soft);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--ananda-gris-soft); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--ananda-verde); color: var(--ananda-negro); font-family: var(--fuente-titulos); font-weight: 600; }
.skip-link:focus { top: 12px; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 8px; min-height: 42px; padding: 0 18px; background: var(--ananda-lila); color: var(--ananda-negro); font-family: var(--fuente-titulos); font-weight: 600; cursor: pointer; transition: filter .15s, transform .15s; }
button:hover { filter: brightness(.96); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--ananda-gris-strong); border-radius: 8px; padding: 12px 13px; font-size: 15px; background: var(--ananda-blanco); color: var(--ananda-negro); }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(176, 104, 197, .35); outline-offset: 2px; }

.shell { max-width: 1160px; margin: 0 auto; padding: 24px 24px 56px; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 3px solid var(--ananda-lila); background: var(--ananda-blanco); }
.brand-bar-inner { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: block; width: auto; height: 30px; }
.brand-name { font-family: var(--fuente-titulos); font-weight: 600; font-size: 17px; }
.eyebrow, .kicker { margin: 0; color: var(--ananda-lila-strong); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 700; letter-spacing: -.025em; }
h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; }
h2 { margin: 0 0 8px; font-size: 25px; }
.intro { max-width: 560px; margin: 0; color: #5f636b; font-size: 17px; line-height: 1.6; }
.muted, small { color: #68707b; }
.card { margin-top: 24px; padding: 24px; border: 1px solid var(--ananda-gris); border-radius: 14px; background: var(--ananda-blanco); box-shadow: 0 16px 36px rgba(43, 42, 55, .08); }
.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; max-width: 1040px; min-height: calc(100vh - 150px); margin: 0 auto; }
.login-pitch { padding: 24px 0; }
.login-pitch .brand-logo { height: 44px; margin-bottom: 32px; }
.login-pitch h1 { max-width: 510px; }
.login-benefits { display: grid; gap: 16px; margin-top: 30px; }
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--ananda-lila-soft); color: var(--ananda-lila-strong); font-size: 20px; font-weight: 700; }
.benefit strong, .benefit small { display: block; }
.benefit strong { font-size: 14px; }
.benefit small { margin-top: 2px; font-size: 12px; }
.login-card { width: 100%; max-width: 480px; margin: 0; border-top: 3px solid var(--ananda-lila); box-shadow: 0 18px 40px -18px rgba(96, 46, 116, .25); }
.login-card > p { margin-top: 0; line-height: 1.55; }
.login-card form + form { margin-top: 10px; }
label { display: grid; gap: 7px; margin: 16px 0; font-size: 14px; font-weight: 600; }
.login-card button:not(.secondary) { width: 100%; margin-top: 4px; }
.status { min-height: 22px; margin-bottom: 0; color: #5f636b; font-size: 13px; }
.topline, .welcome, .toolbar, .cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topline { margin: 34px 0 18px; }
.topline h1 { margin-bottom: 4px; }
.welcome { margin: 24px 0 10px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr); gap: 20px; margin-top: 20px; align-items: start; }
.workspace > *, .sidebar-stack, .sidebar-stack > * { min-width: 0; }
.catalog-card, .sidebar-stack .card { margin-top: 0; }
.sidebar-stack { display: grid; gap: 20px; }
.order-panel { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; border-top: 3px solid var(--ananda-lila); }
.order-panel #cart { max-height: clamp(150px, 38vh, 360px); overflow-y: auto; padding-right: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { margin-bottom: 0; }
.template-link { color: var(--ananda-lila-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
.excel-panel > .muted { line-height: 1.55; }
.upload-dropzone { display: flex; align-items: center; gap: 12px; min-height: 82px; margin: 16px 0 10px; padding: 14px; border: 1.5px dashed var(--ananda-lila-strong); border-radius: 12px; background: var(--ananda-lila-soft); color: var(--ananda-negro); cursor: pointer; transition: background .15s, border-color .15s; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: var(--ananda-negro); background: #F1DDF5; }
.upload-dropzone:focus-visible { outline: 3px solid rgba(176, 104, 197, .35); outline-offset: 2px; }
.upload-dropzone strong, .upload-dropzone small { display: block; }
.upload-dropzone small { margin-top: 4px; color: #68707b; font-size: 12px; font-weight: 400; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--ananda-blanco); color: var(--ananda-lila-strong); font-family: var(--fuente-titulos); font-size: 22px; font-weight: 700; }
.file-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-bottom: 8px; }
.file-meta .secondary { min-height: 32px; padding: 0 10px; font-size: 12px; }
.excel-panel > #upload { width: 100%; margin-top: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.portal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.portal-nav-link, .back-link { color: var(--ananda-lila-strong); font-family: var(--fuente-titulos); font-size: 13px; font-weight: 700; text-decoration: none; }
.portal-nav-link:hover, .back-link:hover { color: var(--ananda-negro); text-decoration: underline; text-underline-offset: 3px; }
.portal-nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-family: var(--fuente-titulos); font-size: 13px; font-weight: 700; text-decoration: none; transition: filter .15s, transform .15s; }
.portal-nav-button:hover { filter: brightness(.96); }
.portal-nav-button:active { transform: translateY(1px); }
.portal-nav-button.primary { background: var(--ananda-lila); color: var(--ananda-negro); }
.portal-nav-button.secondary { border-color: var(--ananda-gris-strong); background: var(--ananda-blanco); color: var(--ananda-negro); }
.portal-nav-button:focus-visible { outline: 3px solid rgba(176, 104, 197, .35); outline-offset: 2px; }
.excel-header-actions { display: flex; align-items: center; gap: 16px; }
.bulk-hero { margin: 58px 0 28px; }
.bulk-hero h1 { max-width: 670px; }
.bulk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 840px; margin-top: 28px; }
.bulk-steps > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 14px; border: 1px solid var(--ananda-gris); border-radius: 12px; background: var(--ananda-blanco); }
.bulk-steps span { grid-row: span 2; color: var(--ananda-lila-strong); font-family: var(--fuente-titulos); font-size: 12px; font-weight: 700; }
.bulk-steps strong, .bulk-steps small { display: block; }
.bulk-steps strong { font-size: 13px; }
.bulk-steps small { margin-top: 3px; font-size: 11px; line-height: 1.45; }
.bulk-workspace { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.bulk-workspace > * { min-width: 0; margin-top: 0; }
.bulk-upload-card { border-top: 3px solid var(--ananda-lila); }
.bulk-preview-card { min-height: 420px; }
.upload-dropzone-large { min-height: 124px; margin-top: 20px; }
.wide-action { width: 100%; margin-top: 6px; }
.bulk-note { display: flex; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--ananda-gris-soft); color: #68707b; font-size: 12px; line-height: 1.5; }
.bulk-note strong { color: var(--ananda-lila-strong); }
.error-list { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FFF1F0; color: #8F302D; font-size: 12px; line-height: 1.5; }
.error-list strong { display: block; margin-bottom: 4px; }
.error-list ul { margin: 0; padding-left: 18px; }
.error-list small { display: block; margin-top: 5px; color: #8F302D; }
.preview-empty { display: grid; justify-items: center; gap: 7px; min-height: 260px; padding: 72px 20px 30px; color: #68707b; text-align: center; }
.preview-empty strong { color: var(--ananda-negro); font-family: var(--fuente-titulos); font-size: 17px; }
.preview-empty small { font-size: 12px; }
.preview-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ananda-lila-soft); color: var(--ananda-lila-strong); font-size: 24px; }
.preview-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--ananda-gris); border-radius: 10px; }
.preview-table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 12px; }
.preview-table-wrap th { padding: 10px 12px; background: var(--ananda-gris-soft); color: #68707b; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
.preview-table-wrap td { padding: 10px 12px; border-top: 1px solid var(--ananda-gris); vertical-align: middle; }
.preview-table-wrap td strong, .preview-table-wrap td small { display: block; }
.preview-table-wrap td strong { max-width: 220px; font-size: 12px; line-height: 1.35; }
.preview-table-wrap td small { margin-top: 3px; font-size: 11px; }
.preview-qty { width: 82px; padding: 8px; font-size: 13px; }
.preview-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--ananda-gris); color: #68707b; font-size: 12px; }
.preview-summary > strong { color: var(--ananda-negro); font-family: var(--fuente-titulos); font-size: 16px; }
.preview-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.preview-actions button { min-height: 38px; }
.orders-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 58px 0 28px; }
.orders-hero h1 { max-width: 680px; }
.orders-hero .secondary { flex: 0 0 auto; }
.tracking-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tracking-summary > div { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--ananda-gris); border-radius: 12px; background: var(--ananda-blanco); }
.tracking-summary span { color: #68707b; font-size: 12px; }
.tracking-summary strong { font-family: var(--fuente-titulos); font-size: 25px; }
.tracking-list { display: grid; gap: 16px; margin-top: 18px; }
.tracking-card { margin-top: 0; padding: 22px; }
.tracking-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tracking-card-header h2 { max-width: 600px; margin-bottom: 0; overflow-wrap: anywhere; font-size: 19px; }
.tracking-pill { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--ananda-lila-soft); color: var(--ananda-lila-strong); font-size: 12px; font-weight: 700; }
.tracking-pill.error { background: #FFF1F0; color: #8F302D; }
.tracking-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; color: #68707b; font-size: 12px; }
.tracking-meta strong { color: var(--ananda-negro); font-family: var(--fuente-titulos); font-size: 17px; }
.tracking-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 12px; padding: 0; list-style: none; }
.timeline-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; min-width: 0; padding-right: 12px; }
.timeline-step:not(:last-child)::after { position: absolute; top: 13px; left: 28px; right: 5px; height: 2px; background: var(--ananda-gris); content: ''; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ananda-gris-strong); border-radius: 50%; background: var(--ananda-blanco); color: #68707b; font-family: var(--fuente-titulos); font-size: 11px; font-weight: 700; }
.timeline-step.done .timeline-dot { border-color: var(--ananda-lila-strong); background: var(--ananda-lila-strong); color: var(--ananda-blanco); }
.timeline-step.done:not(:last-child)::after { background: var(--ananda-lila-strong); }
.timeline-step.current .timeline-dot { border-color: var(--ananda-lila-strong); color: var(--ananda-lila-strong); box-shadow: 0 0 0 4px var(--ananda-lila-soft); }
.timeline-step.error .timeline-dot { border-color: #C55450; color: #C55450; }
.timeline-step.unknown .timeline-dot { border-style: dashed; }
.timeline-step strong, .timeline-step small { display: block; }
.timeline-step strong { position: relative; z-index: 1; padding-top: 5px; font-size: 12px; }
.timeline-step small { margin-top: 4px; color: #68707b; font-size: 11px; line-height: 1.4; }
.invoice-list { margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--ananda-gris-soft); font-size: 12px; }
.invoice-list > strong { display: block; margin-bottom: 8px; font-family: var(--fuente-titulos); }
.invoice-list > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--ananda-gris); }
.invoice-list small { text-align: right; }
.tracking-lines { margin-top: 14px; color: #68707b; font-size: 12px; }
.tracking-lines summary { cursor: pointer; color: var(--ananda-lila-strong); font-weight: 700; }
.tracking-lines > div { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--ananda-gris-soft); }
.empty-orders { display: grid; justify-items: center; gap: 8px; padding: 54px 24px; text-align: center; }
.empty-orders h2 { margin: 6px 0 0; }
.empty-orders p { margin: 0 0 8px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.toolbar input { flex: 1; }
.secondary { background: var(--ananda-blanco); color: var(--ananda-negro); border: 1px solid var(--ananda-gris-strong); min-height: 42px; }
.hidden { display: none !important; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 166px; padding: 14px; border: 1px solid var(--ananda-gris); border-radius: 14px; background: var(--ananda-blanco); }
.product-thumb { display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border-radius: 12px; background: var(--ananda-lila-soft); color: var(--ananda-lila-strong); font-family: var(--fuente-titulos); font-size: 28px; font-weight: 700; }
.product-image { width: 100%; height: 100%; object-fit: contain; background: var(--ananda-blanco); }
.product-info { min-width: 0; }
.product-info strong { display: block; font-size: 15px; line-height: 1.25; }
.product small { display: block; margin-top: 4px; font-size: 12px; }
.product-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding-top: 11px; border-top: 1px solid var(--ananda-gris); }
.product-action span { white-space: normal; }
.product-action span, .product span { color: var(--ananda-lila-strong); font-size: 12px; font-weight: 600; }
.product-action button { min-height: 36px; padding: 0 12px; }
.cart-line, .order, .admin-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--ananda-gris); padding: 13px 0; }
.quantity-field { margin: 0; gap: 4px; color: #68707b; font-size: 11px; white-space: nowrap; }
.cart-line input { flex: 0 0 70px; width: 70px; padding: 9px; }
.cart-line div, .order strong, .order small, .admin-order small { display: block; }
.cart-footer { margin-top: 12px; flex-wrap: wrap; }
.icon { min-height: 30px; padding: 0 5px; background: transparent; color: var(--ananda-lila-strong); font-size: 22px; }
hr { border: 0; border-top: 1px solid var(--ananda-gris); margin: 25px 0; }
.badge { padding: 5px 9px; border-radius: 999px; background: var(--ananda-lila-soft); color: var(--ananda-lila-strong); font-size: 12px; font-weight: 700; }
.admin-order { align-items: flex-start; flex-wrap: wrap; }
.admin-order > div:last-of-type { margin-left: auto; }
.admin-order button { min-height: 32px; margin-left: 8px; padding: 0 10px; }
.admin-create { border-top: 3px solid var(--ananda-lila); }
.admin-help { max-width: 800px; margin: 0 0 20px; line-height: 1.5; }
.admin-create-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-step { min-width: 0; padding: 18px; border: 1px solid var(--ananda-gris); border-radius: 12px; background: #fcfcfd; }
.admin-step h3 { margin: 4px 0 14px; font-size: 18px; }
.admin-step-number { color: var(--ananda-lila-strong); font-family: var(--fuente-titulos); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-form button { min-height: 44px; padding: 0 13px; }
.admin-results { display: grid; gap: 8px; max-height: 260px; margin-top: 12px; overflow-y: auto; }
.admin-result, .admin-product-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid var(--ananda-gris); border-radius: 9px; background: var(--ananda-blanco); text-align: left; }
.admin-result { width: 100%; min-height: 0; }
.admin-result:hover, .admin-product-result:hover { border-color: var(--ananda-lila-strong); }
.admin-result strong, .admin-result small, .admin-product-result strong, .admin-product-result small { display: block; }
.admin-result small, .admin-product-result small { margin-top: 3px; color: #68707b; font-size: 11px; line-height: 1.4; }
.admin-result .badge { flex: 0 0 auto; }
.badge.danger { background: #FFF1F0; color: #9d302d; }
.selected-customer { display: grid; gap: 3px; margin-top: 12px; padding: 12px; border-radius: 9px; background: var(--ananda-lila-soft); }
.selected-customer small { color: #68707b; font-size: 11px; }
.admin-step label { margin-top: 14px; }
.admin-product-result button { min-height: 34px; padding: 0 10px; white-space: nowrap; }
.admin-cart { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.admin-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--ananda-gris); }
.admin-cart-line strong, .admin-cart-line small { display: block; }
.admin-cart-line strong { font-size: 12px; line-height: 1.3; }
.admin-cart-line small { margin-top: 3px; color: #68707b; font-size: 11px; }
.admin-cart-line label { width: 76px; margin: 0; color: #68707b; font-size: 10px; }
.admin-cart-line input { padding: 8px; font-size: 13px; }
.admin-cart-line .icon { margin: 0; }
.admin-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ananda-gris); color: #68707b; font-size: 12px; }
.admin-total strong { color: var(--ananda-negro); font-family: var(--fuente-titulos); font-size: 17px; }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.admin-actions button { min-height: 38px; padding: 0 12px; }
.admin-management .toolbar { align-items: center; }
.admin-management .toolbar h2 { margin: 0 0 4px; }
.admin-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-toolbar-actions button { min-height: 38px; }
.success { color: #39734a; font-size: 12px; }
.error { flex-basis: 100%; color: #9d302d; }
code { padding: 2px 5px; border-radius: 4px; background: var(--ananda-lila-soft); }

@media (max-width: 860px) {
  .login-layout { grid-template-columns: 1fr; gap: 12px; min-height: auto; padding: 48px 0 20px; }
  .login-pitch { padding: 0; }
  .login-pitch .brand-logo { height: 44px; margin-bottom: 18px; }
  .login-pitch h1 { font-size: clamp(30px, 8vw, 44px); }
  .login-benefits, .login-pitch .kicker { display: none; }
  .login-card { max-width: none; }
}
@media (max-width: 780px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar-stack, .order-panel { position: static; }
  .order-panel { max-height: none; overflow: visible; }
  .order-panel #cart { max-height: none; overflow: visible; }
  .topline, .welcome { align-items: flex-start; }
  .bulk-workspace { grid-template-columns: 1fr; }
  .bulk-preview-card { order: 2; }
  .orders-hero { align-items: flex-start; flex-direction: column; }
  .orders-hero .secondary { width: 100%; }
  .tracking-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-create-grid { grid-template-columns: 1fr; }
  .admin-step { padding: 15px; }
  .admin-management .toolbar { align-items: stretch; }
  .admin-toolbar-actions { justify-content: stretch; }
  .admin-toolbar-actions button { flex: 1; }
}
@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { padding: 16px 16px 40px; }
  .brand-name { font-size: 15px; }
  .topline { align-items: stretch; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .topline { margin-top: 28px; }
  .card { padding: 18px; }
  .product { align-items: flex-start; }
  .product-action { margin-left: 0; }
  .excel-header-actions { gap: 10px; }
  .bulk-hero { margin-top: 38px; }
  .bulk-steps { grid-template-columns: 1fr; }
  .bulk-steps > div { grid-template-columns: 38px minmax(0, 1fr); }
  .section-heading { align-items: flex-start; }
  .preview-actions { flex-direction: column-reverse; }
  .preview-actions button { width: 100%; }
  .excel-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .orders-hero { margin-top: 38px; }
  .tracking-card { padding: 18px; }
  .tracking-card-header { flex-direction: column; gap: 10px; }
  .tracking-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tracking-timeline { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .timeline-step { grid-template-columns: 28px minmax(0, 1fr); padding-right: 0; }
  .timeline-step:not(:last-child)::after { top: 28px; bottom: -14px; left: 13px; right: auto; width: 2px; height: auto; }
  .timeline-step.done:not(:last-child)::after { background: var(--ananda-lila-strong); }
  .invoice-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .invoice-list small { text-align: left; }
  button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
