﻿/* --- TOKENS --------------------------------------- */
:root {
  --bg:       #070b0f;
  --bg2:      #0c1219;
  --surface:  #111820;
  --surface2: #172030;
  --border:   #1f2f3f;
  --border-h: #2a4060;

  --accent:   #3af2a4;
  --accent2:  #48d8ff;
  --accent-d: #0d6644;

  --text:     #eaf4ff;
  --muted:    #7a97b0;
  --soft:     #c8e6ff;

  --warn:  #ffd166;
  --danger:#ff4d6d;
  --green: #3af2a4;

  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --r:      10px;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, textarea { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

html, body { height: 100%; }

body {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    background:
      radial-gradient(circle at 18% 14%, rgba(58,242,164,.08), transparent 28%),
      radial-gradient(circle at 88% 88%, rgba(72,216,255,.07), transparent 24%),
      var(--bg);
  }
}

/* --- BACKGROUND FX ------------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(58,242,164,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,242,164,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
  animation: gridDrift 18s linear infinite;
}

.bg-glow {
  position: fixed; z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}
.glow-1 {
  width: 500px; height: 500px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(58,242,164,.1), transparent 70%);
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(72,216,255,.09), transparent 70%);
  animation-delay: -6s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.08); }
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(58,242,164,.045), transparent);
  height: 180px;
  transform: translateY(-220px);
  animation: scanSweep 7s ease-in-out infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

@keyframes scanSweep {
  0%, 22% { transform: translateY(-220px); opacity: 0; }
  38% { opacity: .75; }
  60%, 100% { transform: translateY(110vh); opacity: 0; }
}

/* --- AUTH ----------------------------------------- */
.auth-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), transparent), var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px rgba(58,242,164,.06);
  position: relative;
  overflow: hidden;
}

.auth-card::before,
.product-card::before,
.checkout-info::before,
.payment-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 32%, rgba(255,255,255,.08) 48%, transparent 64% 100%);
  transform: translateX(-120%);
  pointer-events: none;
}

.auth-card:hover::before,
.product-card:hover::before,
.checkout-info:hover::before,
.payment-card:hover::before {
  animation: surfaceSweep .9s ease;
}

@keyframes surfaceSweep {
  to { transform: translateX(120%); }
}

.auth-logo {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 32px;
}

.logo-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.9rem; font-weight: 700;
  letter-spacing: -1px; line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.animate-in {
  animation: slideUp .5s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* --- STORE LAYOUT --------------------------------- */
.store-wrapper {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* --- SIDEBAR -------------------------------------- */
.sidebar {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(58,242,164,.03), transparent), var(--bg2);
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px;
  margin-bottom: 36px;
}

.brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}

.sidebar-nav {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: .93rem; font-weight: 600;
  text-align: left;
  transition: all .18s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--border);
}

.nav-item.active {
  background: rgba(58,242,164,.1);
  border-color: rgba(58,242,164,.3);
  color: var(--accent);
}

.nav-item.has-active-payment {
  animation: navPulse 1.65s ease-in-out infinite;
}

@keyframes navPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(58,242,164,0); }
  50% { box-shadow: 0 0 24px rgba(58,242,164,.16); }
}

.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  border-radius: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #04120d;
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
  animation: popIn .25s cubic-bezier(.22,.68,0,1.4) both;
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin-top: 16px;
}

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(58,242,164,.1);
  border: 1px solid rgba(58,242,164,.25);
  display: grid; place-items: center;
  color: var(--accent); flex-shrink: 0;
}

.user-email-text {
  flex: 1; min-width: 0;
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.logout-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .15s ease;
}
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* --- STORE MAIN ----------------------------------- */
.store-main {
  padding: 36px 40px;
  overflow-y: auto;
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: fadeSlide .3s ease both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.page-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -1px;
}
.page-sub {
  color: var(--muted); font-size: .9rem;
  margin-top: 4px;
}

/* --- NOTICE --------------------------------------- */
.notice {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  background: var(--surface);
  font-size: .9rem; font-weight: 600;
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.notice.error  { border-color: rgba(255,77,109,.5); color: #ffd8df; background: rgba(255,77,109,.08); }
.notice.success{ border-color: rgba(58,242,164,.5); color: #d8ffef; background: rgba(58,242,164,.08); }

/* --- PRODUCT GRID --------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), transparent), var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: all .22s ease;
  animation: cardIn .48s cubic-bezier(.22,.68,0,1.15) both;
  animation-delay: var(--delay, 0ms);
  position: relative;
  overflow: hidden;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.product-card:hover {
  border-color: rgba(58,242,164,.4);
  background: linear-gradient(160deg, rgba(58,242,164,.06), transparent), var(--surface);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(58,242,164,.15);
}

.product-card:hover .availability-pill:not(.active-order) {
  animation: pillFlash .8s ease;
}

@keyframes pillFlash {
  0%, 100% { box-shadow: none; }
  45% { box-shadow: 0 0 18px rgba(58,242,164,.35); }
}

.product-topline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.product-badge, .availability-pill {
  font-size: .72rem; font-weight: 700;
  padding: 5px 9px; border-radius: 6px;
  letter-spacing: .3px;
}
.product-badge {
  border: 1px solid rgba(72,216,255,.3);
  color: var(--accent2);
  background: rgba(72,216,255,.07);
}
.availability-pill {
  border: 1px solid rgba(58,242,164,.35);
  color: var(--accent);
  background: rgba(58,242,164,.07);
}
.availability-pill.active-order {
  border-color: rgba(255,209,102,.35);
  color: var(--warn);
  background: rgba(255,209,102,.07);
  animation: activeOrderPulse 1.35s ease-in-out infinite;
}

@keyframes activeOrderPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,209,102,0); }
  50% { box-shadow: 0 0 18px rgba(255,209,102,.18); }
}

.product-card h3 {
  font-size: 1.4rem; font-weight: 800;
  line-height: 1.1;
}

.product-card > p {
  color: var(--muted); font-size: .88rem;
  line-height: 1.5; flex: 1;
}

.product-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.product-features span {
  display: grid; place-items: center;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--soft);
  font-size: .75rem; font-weight: 700;
  text-align: center; padding: 6px 4px;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.product-footer strong { font-size: 1.5rem; font-weight: 800; }
.stock { color: var(--accent); font-size: .85rem; font-weight: 700; }

/* --- CHECKOUT PANEL ------------------------------- */
.checkout-panel {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  animation: fadeSlide .35s ease both;
}

.checkout-panel.is-awaiting {
  animation: fadeSlide .35s ease both, paymentGlow 2.4s ease-in-out infinite;
}

@keyframes paymentGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(58,242,164,0)); }
  50% { filter: drop-shadow(0 0 24px rgba(58,242,164,.12)); }
}

.checkout-info {
  border: 1px solid rgba(58,242,164,.2);
  border-radius: 14px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(58,242,164,.07), transparent 50%),
    var(--surface);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  overflow: hidden;
}

.checkout-stage {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  color: var(--muted); font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.03);
  transition: all .2s ease;
}
.step::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--border);
  transition: all .2s ease;
}
.step.done {
  border-color: rgba(58,242,164,.45);
  color: var(--accent);
  background: rgba(58,242,164,.08);
}
.step.done::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.checkout-info .eyebrow {
  color: var(--accent2);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

.checkout-info h2 {
  font-family: 'Space Mono', monospace;
  font-size: 2rem; line-height: 1.05;
}

.checkout-info > p {
  color: var(--muted); font-size: .9rem; line-height: 1.55;
}

.checkout-meta {
  display: inline-flex;
  border: 1px solid rgba(72,216,255,.25);
  border-radius: 8px; padding: 9px 14px;
  background: rgba(72,216,255,.07);
  color: var(--soft); font-weight: 700; font-size: .9rem;
  font-family: 'Space Mono', monospace;
}

/* Payment card */
.payment-card {
  border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
}

.payment-label {
  color: var(--accent2);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

.qr-box {
  display: grid; place-items: center;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #f7fbff;
  padding: 16px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.qr-box::after {
  content: '';
  position: absolute;
  inset: auto 16px 12px 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  filter: blur(4px);
}

.qr-box img {
  animation: qrPop .35s cubic-bezier(.22,.68,0,1.35) both;
  position: relative;
  z-index: 1;
}

@keyframes qrPop {
  from { opacity: 0; transform: scale(.92) rotate(-1deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.qr-box img {
  width: 100%; max-width: 240px;
  aspect-ratio: 1; object-fit: contain;
}

.qr-loader {
  display: grid; place-items: center;
  min-height: 280px;
  border: 1px dashed rgba(72,216,255,.4);
  border-radius: 10px;
  color: var(--accent2); font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: .82rem;
  position: relative; overflow: hidden;
  background: rgba(72,216,255,.04);
}
.qr-loader::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(72,216,255,.08), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.pix-code {
  color: #dff9ff; font-size: .75rem; line-height: 1.4;
  font-family: 'Space Mono', monospace;
  resize: none;
  border: 1px solid rgba(58,242,164,.2);
  border-radius: 8px; padding: 10px;
  background: rgba(0,0,0,.3);
  width: 100%; min-height: 70px;
}
.pix-code:focus { outline: 2px solid rgba(58,242,164,.3); outline-offset: 2px; }

/* --- ORDERS --------------------------------------- */
.orders-list { display: flex; flex-direction: column; gap: 10px; }

.order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  background: rgba(255,255,255,.02);
  transition: border-color .15s ease;
  animation: cardIn .36s cubic-bezier(.22,.68,0,1.12) both;
  animation-delay: var(--delay, 0ms);
}
.order-row:hover { border-color: var(--border-h); }
.order-row.status-paid { border-color: rgba(58,242,164,.35); }
.order-row.status-awaiting_payment { border-color: rgba(255,209,102,.35); }

.order-row h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.order-row p  { color: var(--muted); font-size: .83rem; }

.order-output { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

code {
  max-width: 340px; overflow-wrap: anywhere;
  border: 1px solid rgba(58,242,164,.25);
  border-radius: 8px; padding: 8px 12px;
  background: #050a0d;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
}

.delivered-code {
  animation: codeDelivered 1.1s ease both;
}

@keyframes codeDelivered {
  0% {
    box-shadow: 0 0 0 rgba(58,242,164,0);
    transform: scale(.98);
  }
  35% {
    box-shadow: 0 0 26px rgba(58,242,164,.28);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 rgba(58,242,164,0);
    transform: scale(1);
  }
}

.mini-qr {
  width: 68px; height: 68px;
  border-radius: 8px; background: white; padding: 4px;
}

.pending-code { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* --- EMPTY STATE ---------------------------------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 320px;
  color: var(--muted); text-align: center;
}
.empty-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--border-h);
}
.empty-state p { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.empty-state span { font-size: .875rem; }

/* --- BUTTONS -------------------------------------- */
.primary-button {
  min-height: 50px; border: 0; border-radius: var(--r);
  padding: 0 20px; width: 100%;
  background: linear-gradient(135deg, var(--accent), #9affd8);
  color: #04120d; font-weight: 800; font-size: .95rem;
  box-shadow: 0 10px 28px rgba(58,242,164,.2), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  position: relative;
  overflow: hidden;
}
.primary-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: translateX(-120%);
}
.primary-button:hover:not(:disabled)::after {
  animation: buttonSweep .65s ease;
}
@keyframes buttonSweep {
  to { transform: translateX(120%); }
}
.primary-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(58,242,164,.28);
}
.primary-button:active:not(:disabled) { transform: translateY(0); }

.secondary-button {
  min-height: 44px; width: 100%;
  border: 1px solid rgba(72,216,255,.3);
  border-radius: var(--r);
  background: rgba(72,216,255,.07);
  color: var(--soft); font-weight: 700;
  transition: all .15s ease;
}
.secondary-button:hover:not(:disabled) {
  background: rgba(72,216,255,.13);
  border-color: rgba(72,216,255,.5);
}

.ghost-button {
  display: flex; align-items: center; gap: 6px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0 14px;
  background: transparent;
  color: var(--muted); font-weight: 600; font-size: .88rem;
  transition: all .15s ease;
}
.ghost-button:hover { border-color: var(--border-h); color: var(--text); }

.small-button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px; padding: 0 10px;
  background: var(--surface2);
  color: var(--text); font-size: .8rem; font-weight: 700;
  transition: all .15s ease;
}
.small-button:hover { border-color: var(--accent); color: var(--accent); }

/* --- BRAND MARK ----------------------------------- */
.brand-mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(58,242,164,.7);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(58,242,164,.2), rgba(72,216,255,.07)), #07100f;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 1rem; font-weight: 700;
  box-shadow: inset 0 0 20px rgba(58,242,164,.12), 0 0 24px rgba(58,242,164,.07);
  flex-shrink: 0;
  animation: brandBreathe 2.8s ease-in-out infinite;
}

@keyframes brandBreathe {
  0%, 100% { box-shadow: inset 0 0 20px rgba(58,242,164,.12), 0 0 24px rgba(58,242,164,.07); }
  50% { box-shadow: inset 0 0 26px rgba(58,242,164,.2), 0 0 34px rgba(58,242,164,.13); }
}
.brand-mark.sm { width: 36px; height: 36px; font-size: .78rem; border-radius: 8px; }

/* --- COMMON --------------------------------------- */
.eyebrow {
  color: var(--accent2);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}

.form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(0,0,0,.4);
  color: var(--text);
}
input {
  min-height: 48px; padding: 0 14px;
}
input::placeholder { color: rgba(122,151,176,.5); }
input:focus, textarea:focus {
  outline: 2px solid rgba(58,242,164,.35);
  outline-offset: 2px;
  border-color: rgba(58,242,164,.3);
}

.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 22px;
}
.tab {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  color: var(--muted); font-weight: 700;
  transition: all .15s ease;
}
.tab:hover { border-color: var(--border-h); color: var(--text); }
.tab.active {
  border-color: rgba(58,242,164,.7);
  background: rgba(58,242,164,.1);
  color: var(--accent);
}

.hidden { display: none !important; }
.empty { color: var(--muted); font-size: .9rem; }

/* --- RESPONSIVE ----------------------------------- */
@media (max-width: 900px) {
  .store-wrapper { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; flex-direction: row;
    flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 12px 16px; border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-brand { margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; flex: 1; gap: 4px; }
  .nav-item { flex-direction: row; min-height: 38px; font-size: .82rem; }
  .sidebar-user { margin-top: 0; }
  .store-main { padding: 20px; }
  .checkout-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .store-main { padding: 16px; }
  .product-features { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr; }
  .order-output { align-items: flex-start; }
  code { max-width: 100%; }
}

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