:root {
  --font-ui: "Space Grotesk", "Aptos", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
  --content-max: 1180px;
  --header-h: 78px;
  --fast: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--mint), transparent 84%), transparent 30%),
    linear-gradient(120deg, color-mix(in srgb, var(--info), transparent 91%), transparent 38%),
    linear-gradient(180deg, var(--bg-900), var(--bg-800));
  color: var(--text-hi);
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--text-mid);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--bg-800), transparent 5%);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
}

.brand,
.sidebar-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-mono);
  font-weight: 900;
}

.brand strong,
.sidebar-title strong {
  display: block;
  font-weight: 900;
}

.brand small,
.sidebar-title small {
  display: block;
  color: var(--text-mid);
  margin-top: 2px;
}

.top-search {
  position: relative;
  display: block;
}

.top-search span {
  position: absolute;
  inset-block: 0;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--text-low);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.top-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 74px;
  color: var(--text-hi);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}

.view-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.switch-button,
.theme-toggle,
.icon-button,
.sidebar-item,
.query-item,
.category-chip {
  color: var(--text-mid);
  background: transparent;
  border: 0;
}

.switch-button {
  min-width: 92px;
  padding: 9px 12px;
  border-radius: calc(var(--r-sm) - 3px);
  transition: background var(--fast), color var(--fast);
}

.switch-button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.theme-toggle,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--text-hi);
  background: var(--surface);
}

.theme-glyph,
.cart-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  color: var(--brand);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
}

.cart-count {
  background: var(--brand);
  color: var(--on-brand);
  border: 0;
}

.view-panel {
  display: none;
}

body[data-view="store"] [data-view-panel="store"],
body[data-view="admin"] [data-view-panel="admin"] {
  display: block;
}

body[data-view="login"] [data-view-panel="login"] {
  display: grid;
}

.view-panel-store {
  padding: clamp(24px, 5vw, 56px) clamp(16px, 5vw, 56px) 72px;
}

.hero {
  width: min(100%, var(--content-max));
  min-height: calc(100svh - var(--header-h) - 74px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-copy::before {
  content: "Nexline";
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  font-size: 18px;
}

.hero-actions,
.dashboard-top,
.dashboard-actions,
.panel-title,
.metric-line,
.cart-header,
.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-actions,
.dashboard-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-showcase {
  isolation: isolate;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 26px -18px -18px 40px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 62%);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 86%), transparent),
    var(--surface-2);
}

.carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  background: var(--surface-2);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 600ms ease, transform 900ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 25%, rgba(0,0,0,.72)),
    linear-gradient(90deg, rgba(0,0,0,.46), transparent 58%);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 74px;
  z-index: 2;
  display: grid;
  gap: 10px;
  color: #FFFFFF;
}

.slide-copy strong {
  max-width: 420px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.slide-copy p {
  max-width: 410px;
  color: rgba(255,255,255,.82);
}

.carousel-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: #FFFFFF;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}

.carousel-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}

.carousel-dots button.is-active {
  background: #FFFFFF;
}

.section-band {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 56px 0 0;
}

.category-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}

.premium-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--hairline);
  box-shadow: var(--shadow-card);
}

.premium-strip article {
  min-height: 180px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand), transparent 91%), transparent 62%),
    var(--surface);
}

.premium-strip span {
  color: var(--brand);
  font-weight: 900;
}

.premium-strip strong {
  font-size: 22px;
}

.category-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 800;
}

.category-chip.is-active {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
}

.notice-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .65fr);
  gap: 20px;
  align-items: center;
}

.notice-band h2,
.section-heading h2,
.checkout-copy h2,
.dashboard-top h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.section-heading,
.checkout-copy,
.login-heading {
  display: grid;
  gap: 10px;
}

.section-heading {
  margin-bottom: 20px;
}

.product-grid,
.kpi-grid,
.dashboard-grid,
.checkout-band {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand), transparent 50%);
  box-shadow: 0 28px 72px -38px rgba(14,143,90,.55);
}

.product-image {
  position: relative;
  min-height: 220px;
  background: var(--surface-2);
}

.product-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-image .status-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
}

.product-body {
  min-height: 280px;
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 18px;
}

.product-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-meta strong {
  font-size: 26px;
}

.product-meta span {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 800;
}

.checkout-band {
  grid-template-columns: minmax(0, .75fr) minmax(360px, 1fr);
  align-items: start;
}

.checkout-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text-mid);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text-hi);
  background: var(--bg-700);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}

.field textarea {
  padding-block: 12px;
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.checkout-message,
.login-error,
.login-hint {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-weight: 800;
}

.checkout-message,
.login-hint {
  color: var(--brand);
  background: var(--brand-soft);
}

.login-error {
  color: var(--down);
  background: var(--down-bg);
  border: 1px solid currentColor;
}

.view-panel-login {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(26px, 6vw, 72px) clamp(18px, 5vw, 56px);
}

.login-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  align-self: center;
}

.login-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 34px);
}

.login-heading h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.view-panel-admin {
  min-height: calc(100svh - var(--header-h));
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 18px;
}

body[data-view="admin"] .view-panel-admin {
  display: grid;
}

.app-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  display: grid;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-align: left;
}

.sidebar-item span {
  color: var(--brand);
  font-family: var(--font-mono);
}

.sidebar-item.is-active {
  color: var(--text-hi);
  background: var(--brand-soft);
}

.dashboard {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-top {
  min-height: 74px;
  padding: 6px 4px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card,
.orders-panel,
.inventory-panel,
.query-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.metric-line {
  color: var(--text-mid);
}

.kpi-card strong {
  font-size: 34px;
}

.dashboard-grid {
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1fr) minmax(320px, .9fr);
  align-items: start;
}

.order-list,
.stock-list,
.query-list,
.cart-items {
  display: grid;
  gap: 10px;
}

.order-list div,
.stock-list div,
.query-item,
.cart-item,
.empty-cart,
.empty-state {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.order-list em,
.order-list span,
.stock-list span,
.query-item small,
.cart-item span {
  color: var(--text-mid);
  font-style: normal;
}

.query-item {
  width: 100%;
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: left;
  transition: transform var(--fast), background var(--fast);
}

.query-item:hover {
  transform: translateY(-2px);
  background: var(--panel-2);
}

.catalog-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor, transparent 86%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.cat-meds {
  color: var(--brand);
}

.cat-care {
  color: var(--info);
}

.cat-supp {
  color: var(--warn);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 900;
}

.badge-up {
  background: var(--up-bg);
  color: var(--up);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-down {
  background: var(--down-bg);
  color: var(--down);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 900;
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-action);
  transition: transform var(--fast), box-shadow var(--fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-hi);
  border-radius: var(--r-sm);
  font-weight: 900;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.border-aurora {
  border-color: var(--brand);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: end;
  background: var(--scrim);
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--fast);
}

.cart-drawer[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.cart-panel {
  width: min(100%, 430px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 18px;
  padding: 18px;
  border-radius: 0;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checkout-steps button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--text-mid);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 900;
}

.checkout-steps button.is-active {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
}

.checkout-steps button.is-complete {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand), transparent 62%);
}

.checkout-stage {
  min-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.checkout-step-panel {
  display: none;
}

.checkout-step-panel.is-active {
  display: block;
}

.drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cep-button {
  align-self: end;
}

.freight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.freight-options,
.payment-options,
.review-box {
  display: grid;
  gap: 10px;
}

.freight-option,
.payment-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.payment-options label {
  grid-template-columns: auto 1fr;
}

.freight-option:has(input:checked),
.payment-options label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.freight-option small,
.payment-options small {
  display: block;
  margin-top: 3px;
  color: var(--text-mid);
}

.freight-option em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.review-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.review-box span {
  color: var(--text-mid);
}

.review-box strong {
  max-width: 62%;
  text-align: right;
}

.review-box .review-total {
  border-bottom: 0;
  font-size: 20px;
}

.checkout-nav {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.checkout-nav [hidden] {
  display: none;
}

.cart-item {
  grid-template-columns: 58px 1fr auto;
  align-items: center;
}

.cart-item img {
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.quantity-control {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.quantity-control button {
  min-height: 32px;
  border: 0;
  color: var(--text-hi);
  background: var(--panel-2);
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.cart-total {
  font-size: 20px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  align-content: center;
  justify-items: center;
}

.floating-actions {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 55;
  display: grid;
  gap: 10px;
}

.whatsapp-float,
.ai-float {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 900;
  box-shadow: 0 18px 36px -20px rgba(0,0,0,.6);
}

.whatsapp-float {
  background: #1FAF5B;
}

.ai-float {
  background: var(--brand-deep);
}

.ai-assistant {
  position: fixed;
  right: clamp(14px, 3vw, 96px);
  bottom: clamp(86px, 11vw, 108px);
  z-index: 58;
  width: min(calc(100vw - 28px), 420px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--fast), transform var(--fast);
}

.ai-assistant[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.ai-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ai-header h2 {
  font-size: 24px;
}

.ai-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.ai-message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  line-height: 1.45;
}

.bot-message {
  color: var(--text-hi);
  background: var(--surface-2);
}

.user-message {
  justify-self: end;
  color: var(--on-brand);
  background: var(--brand);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 65%);
  border-radius: var(--r-sm);
  font-weight: 800;
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ai-form input {
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-hi);
  background: var(--bg-700);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}

.ai-form button {
  min-height: 44px;
  padding: 0 14px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .view-switch,
  .theme-toggle {
    display: none;
  }

  .hero,
  .notice-band,
  .checkout-band,
  .view-panel-admin,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .product-grid,
  .kpi-grid,
  .premium-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 150px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .cart-open {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-media,
  .carousel {
    min-height: 360px;
    height: 360px;
  }

  .product-grid,
  .kpi-grid,
  .checkout-card,
  .premium-strip {
    grid-template-columns: 1fr;
  }

  .hero-showcase::before {
    inset: 18px -10px -10px 22px;
  }

  .slide-copy {
    bottom: 68px;
  }

  .dashboard-top,
  .dashboard-actions,
  .panel-title,
  .metric-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-panel-admin {
    padding: 12px;
  }

  .cart-panel {
    width: 100%;
  }

  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer-form-grid {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-float,
  .ai-float {
    width: 52px;
  }

  .ai-assistant {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
  }
}
