/* ==========================================================================
   MyStore — painel administrativo
   ========================================================================== */

:root {
  --forest-950: #0d271f;
  --forest-900: #123127;
  --forest: #173f31;
  --forest-700: #205441;
  --forest-600: #2a6650;
  --forest-soft: #e9f0eb;
  --gold: #d8b77b;
  --gold-light: #ead8b5;
  --gold-deep: #a97b3d;
  --gold-soft: #f6eddd;
  --cream: #f5f2ea;
  --cream-deep: #ece7dc;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #18231e;
  --ink-soft: #354139;
  --muted: #717c75;
  --muted-light: #929b95;
  --line: #e6e1d5;
  --line-strong: #d6d0c2;
  --danger: #b23a2e;
  --danger-soft: #fbeae7;
  --success: #217a4d;
  --success-soft: #e8f4ed;
  --shadow-xs: 0 1px 2px rgba(24, 35, 30, 0.04);
  --shadow-sm: 0 2px 6px rgba(24, 35, 30, 0.04), 0 12px 30px rgba(24, 35, 30, 0.045);
  --shadow-md: 0 18px 50px rgba(13, 39, 31, 0.14);
  --shadow-lg: 0 30px 80px rgba(13, 39, 31, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sans: "Segoe UI Variable Text", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --sidebar-w: 270px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold-light);
  color: var(--forest-950);
}

:focus-visible {
  outline: 3px solid rgba(169, 123, 61, 0.45);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

.is-hidden {
  display: none !important;
}

.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;
}

/* --------------------------------------------------------------------------
   Componentes base
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fffdf8;
  box-shadow: 0 6px 18px rgba(23, 63, 49, 0.16);
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-700);
  border-color: var(--forest-700);
  box-shadow: 0 8px 22px rgba(23, 63, 49, 0.22);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  border-color: #bdb6a6;
  background: #faf8f2;
}

.btn-ghost {
  color: var(--ink-soft);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(24, 35, 30, 0.06);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #982d23;
  border-color: #982d23;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-950);
}

.btn-gold:hover:not(:disabled) {
  background: #e3c58d;
  border-color: #e3c58d;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12.5px;
}

.btn-sm .icon {
  width: 15px;
  height: 15px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: rgba(24, 35, 30, 0.06);
  color: var(--ink);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.icon-btn-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner-dark {
  border-color: rgba(23, 63, 49, 0.18);
  border-top-color: var(--forest);
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--forest-950);
  flex: none;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-name {
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-dot {
  color: var(--gold-deep);
}

.brand-light .brand-name {
  color: #fdfaf3;
}

.brand-light .brand-dot {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Boot e login
   -------------------------------------------------------------------------- */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 183, 123, 0.09), transparent 36%),
    var(--cream);
}

.boot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boot-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.boot-error {
  width: min(460px, calc(100vw - 40px));
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.boot-error .boot-brand {
  margin-bottom: 18px;
}

.boot-error h1 {
  font-size: 21px;
  margin-bottom: 10px;
}

.boot-error p {
  max-width: 36ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.boot-error small {
  margin-top: 16px;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.45;
}

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(480px, 56%) minmax(380px, 44%);
  background: var(--cream);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(32px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f9f5ec;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(216, 183, 123, 0.22), transparent 42%),
    radial-gradient(ellipse at -4% 92%, rgba(43, 103, 81, 0.62), transparent 55%),
    linear-gradient(150deg, var(--forest-900) 0%, var(--forest-950) 58%, #0a211a 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

.login-visual::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -220px;
  bottom: -260px;
  border: 1px solid rgba(216, 183, 123, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(216, 183, 123, 0.035), 0 0 0 150px rgba(216, 183, 123, 0.025);
  pointer-events: none;
}

.login-visual-top,
.login-visual-copy,
.login-visual-foot {
  position: relative;
  z-index: 2;
}

.login-visual-copy {
  margin-top: clamp(52px, 10vh, 120px);
  max-width: 540px;
}

.login-visual-copy h1 {
  margin-top: 18px;
  color: #fbf7ef;
  font-size: clamp(42px, 4.8vw, 70px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.login-visual-copy h1 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.035em;
}

.login-visual-copy p {
  max-width: 420px;
  margin-top: 24px;
  color: rgba(249, 245, 236, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

.login-art {
  position: absolute;
  z-index: 1;
  right: clamp(10px, 5vw, 80px);
  bottom: clamp(20px, 4vh, 52px);
  width: 430px;
  height: 380px;
  pointer-events: none;
}

.art-card {
  position: absolute;
  background: #fbf8f1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 11px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.art-card-main {
  z-index: 3;
  right: 22px;
  bottom: 16px;
  width: 230px;
  transform: rotate(-4deg);
}

.art-card-back {
  z-index: 2;
  right: 164px;
  bottom: 84px;
  width: 176px;
  opacity: 0.78;
  transform: rotate(8deg);
}

.art-card-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.72), transparent 45%),
    linear-gradient(145deg, #d9c3a2, #b28c5e);
}

.art-card-image.alt {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(145deg, #617c6c, #2d4d3f);
}

.art-coffee {
  position: relative;
  display: block;
  width: 54px;
  height: 70px;
  border-radius: 6px 6px 14px 14px;
  background: linear-gradient(155deg, #2d231b, #4b3829);
  box-shadow: 0 16px 24px rgba(68, 46, 26, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.art-coffee::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 38px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #221a14;
  border: 4px solid #5f4833;
}

.art-coffee::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 28px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #e9dcc8;
  opacity: 0.9;
}

.art-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--forest-950);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.art-line {
  display: block;
  height: 6px;
  margin: 10px 3px 0;
  border-radius: 99px;
  background: #ded7c9;
}

.art-line.w-35 { width: 35%; }
.art-line.w-45 { width: 45%; }
.art-line.w-60 { width: 60%; }
.art-line.w-70 { width: 70%; }

.art-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 3px 2px;
}

.art-price {
  color: var(--forest-950);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.art-buy {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--forest);
  color: white;
  font-size: 8.5px;
  font-weight: 700;
}

.art-badge {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(13, 39, 31, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  color: #fbf7ef;
  transform: rotate(1.5deg);
}

.art-badge-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #2baa5b;
  color: white;
}

.art-badge-icon .icon {
  width: 18px;
  height: 18px;
}

.art-badge strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.art-badge small {
  display: block;
  color: rgba(251, 247, 239, 0.55);
  font-size: 9px;
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(216, 183, 123, 0.18);
  border-radius: 50%;
}

.orbit-one {
  width: 250px;
  height: 250px;
  right: -30px;
  bottom: 70px;
}

.orbit-two {
  width: 390px;
  height: 390px;
  right: -100px;
  bottom: 0;
}

.login-visual-foot {
  margin-top: auto;
  padding-top: 36px;
  color: rgba(249, 245, 236, 0.38);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 32px 74px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(216, 183, 123, 0.09), transparent 44%),
    #faf8f2;
}

.login-box {
  width: 100%;
  max-width: 376px;
  animation: fade-up 500ms both;
}

.login-box h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -0.045em;
}

.login-subtitle {
  margin-top: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.auth-field {
  position: relative;
  margin-bottom: 16px;
}

.auth-field > .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  transform: translateY(-50%);
}

.auth-field input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-field input::placeholder {
  color: #bdb8ad;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(23, 63, 49, 0.08);
}

.login-link {
  display: block;
  margin: 14px auto 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-link:hover {
  color: var(--forest);
}

.login-link:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

.pin-field {
  position: relative;
  margin-bottom: 6px;
}

.pin-field > .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  transform: translateY(-50%);
}

.pin-field input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.25em;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pin-field input::placeholder {
  color: #c4c0b7;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.pin-field input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(23, 63, 49, 0.08);
}

.pin-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-light);
}

.pin-toggle:hover {
  background: var(--cream);
  color: var(--ink-soft);
}

.pin-toggle .icon {
  width: 17px;
  height: 17px;
}

.form-error {
  margin: 8px 0 4px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 550;
}

#login-submit {
  margin-top: 14px;
  height: 52px;
  font-size: 14.5px;
}

.login-hint {
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(245, 242, 234, 0.7);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.login-hint strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.btn-google {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-google:hover:not(:disabled) {
  background: #fbf9f4;
  border-color: var(--muted-light);
}

.btn-google .google-icon {
  width: 18px;
  height: 18px;
}

.login-super-hint {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
}

.login-super-hint a {
  color: var(--forest);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 183, 123, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(216, 183, 123, 0.12);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 650;
  transition: background var(--transition), border-color var(--transition);
}

.portal-link:hover {
  background: rgba(216, 183, 123, 0.2);
  border-color: rgba(216, 183, 123, 0.45);
}

.portal-link .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.login-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  color: var(--muted-light);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.brand-mobile,
.brand-mobile-dark {
  display: none;
}

/* --------------------------------------------------------------------------
   Estrutura do painel
   -------------------------------------------------------------------------- */

.admin-shell {
  min-height: 100vh;
  background: var(--cream);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  padding: 26px 20px 18px;
  overflow-y: auto;
  color: rgba(249, 245, 236, 0.72);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(216, 183, 123, 0.12), transparent 38%),
    linear-gradient(175deg, #14382c 0%, #0e2b22 52%, #0b251d 100%);
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 4px;
}

.sidebar-close {
  display: none;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.side-nav {
  margin-top: 38px;
}

.nav-label {
  padding: 0 12px;
  margin-bottom: 9px;
  color: rgba(249, 245, 236, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 3px;
  padding: 0 13px;
  border-radius: 11px;
  color: rgba(249, 245, 236, 0.64);
  font-size: 13.5px;
  font-weight: 550;
  transition: background var(--transition), color var(--transition);
}

.nav-item .icon {
  width: 18px;
  height: 18px;
  color: rgba(249, 245, 236, 0.42);
  transition: color var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fdfaf3;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.085);
  color: #fffdf8;
  font-weight: 650;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2.5px;
  border-radius: 99px;
  background: var(--gold);
}

.nav-item.active .icon {
  color: var(--gold);
}

.nav-count {
  margin-left: auto;
  min-width: 21px;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.nav-item.active .nav-count {
  background: rgba(216, 183, 123, 0.16);
  color: var(--gold);
}

.sidebar-tip {
  display: flex;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(216, 183, 123, 0.13);
  border-radius: 13px;
  background: rgba(216, 183, 123, 0.065);
}

.sidebar-tip-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: rgba(216, 183, 123, 0.13);
  color: var(--gold);
}

.sidebar-tip-icon .icon {
  width: 15px;
  height: 15px;
}

.sidebar-tip p {
  color: rgba(249, 245, 236, 0.42);
  font-size: 10.5px;
  line-height: 1.5;
}

.sidebar-tip strong {
  color: rgba(249, 245, 236, 0.8);
  font-size: 11px;
  font-weight: 650;
}

.sidebar-foot {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.store-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 -6px 6px;
  border-radius: 11px;
  transition: background var(--transition);
}

.store-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.store-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: var(--gold);
  color: var(--forest-950);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.store-avatar img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: var(--white);
}

.store-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.store-card-info small {
  color: rgba(249, 245, 236, 0.32);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-card-info strong {
  overflow: hidden;
  color: rgba(249, 245, 236, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.26);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(249, 245, 236, 0.36);
  font-size: 11.5px;
  transition: color var(--transition), background var(--transition);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(249, 245, 236, 0.8);
}

.logout-btn .icon {
  width: 15px;
  height: 15px;
}

.sidebar-backdrop {
  display: none;
}

.admin-main {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.mobile-header {
  display: none;
}

.content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 48px 80px;
}

.view {
  animation: fade-up 320ms both;
}

/* --------------------------------------------------------------------------
   Cabeçalhos, estatísticas e painéis
   -------------------------------------------------------------------------- */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.page-heading {
  min-width: 0;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--gold-deep);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-header h1 {
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-subtitle {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--forest-soft);
  color: var(--forest);
}

.stat-icon.gold {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.stat-icon.clay {
  background: #f7e9e3;
  color: #a65b3d;
}

.stat-icon.neutral {
  background: #f0eee8;
  color: #666f68;
}

.stat-icon .icon {
  width: 18px;
  height: 18px;
}

.stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-tag.muted {
  background: #f1efea;
  color: var(--muted);
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-value.word {
  font-size: 23px;
  letter-spacing: -0.04em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-size: 11.5px;
  font-weight: 650;
}

.panel-link .icon {
  width: 13px;
  height: 13px;
  transition: transform var(--transition);
}

.panel-link:hover .icon {
  transform: translateX(2px);
}

.panel-body {
  padding: 7px 10px 10px;
}

.panel-empty {
  padding: 34px 22px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.panel-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  transition: background var(--transition);
}

.recent-row:hover {
  background: #f8f5ee;
}

.recent-thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
  color: var(--muted-light);
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb .icon {
  width: 17px;
  height: 17px;
}

.recent-info {
  min-width: 0;
  flex: 1;
}

.recent-info strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-info small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-price {
  flex: none;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.recent-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.recent-icon .icon {
  width: 16px;
  height: 16px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 14px 17px;
  border: 1px solid #e5d5b6;
  border-radius: 13px;
  background: #fbf4e6;
  color: #7a5c2f;
  font-size: 12px;
  line-height: 1.55;
}

.notice .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: none;
}

.notice a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tip-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 183, 123, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 50%, rgba(216, 183, 123, 0.2), transparent 48%),
    linear-gradient(135deg, #173f31, #12352a);
  color: rgba(249, 245, 236, 0.66);
}

.tip-banner-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(216, 183, 123, 0.13);
  color: var(--gold);
}

.tip-banner-icon .icon {
  width: 20px;
  height: 20px;
}

.tip-banner-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.6;
}

.tip-banner-text strong {
  display: block;
  margin-bottom: 2px;
  color: #fffdf8;
  font-size: 13.5px;
  font-weight: 650;
}

.tip-banner .btn {
  flex: none;
}

/* --------------------------------------------------------------------------
   Barra de ferramentas e estado vazio
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-field {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.search-field > .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 41px;
  padding: 0 14px 0 39px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input::placeholder {
  color: var(--muted-light);
}

.search-field input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 49, 0.07);
}

.toolbar-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 68px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 183, 123, 0.09), transparent 38%),
    var(--paper);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--cream);
  color: var(--gold-deep);
  box-shadow: var(--shadow-xs);
}

.empty-icon .icon {
  width: 25px;
  height: 25px;
}

.empty-state h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.empty-state p {
  max-width: 380px;
  margin: 7px auto 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Produtos
   -------------------------------------------------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 17px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #dad4c6;
  box-shadow: var(--shadow-sm);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3.05;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.75), transparent 55%),
    var(--cream-deep);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  color: #b8af9f;
}

.image-placeholder .icon {
  width: 26px;
  height: 26px;
}

.image-placeholder span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--transition), transform var(--transition);
}

.product-card:hover .product-actions,
.product-card:focus-within .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-action {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(230, 225, 213, 0.8);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink-soft);
  box-shadow: 0 3px 10px rgba(24, 35, 30, 0.12);
  backdrop-filter: blur(8px);
  transition: background var(--transition), color var(--transition);
}

.card-action:hover {
  background: #fff;
  color: var(--forest);
}

.card-action.danger:hover {
  color: var(--danger);
}

.card-action .icon {
  width: 14px;
  height: 14px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 15px 15px;
}

.product-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 17px;
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.product-price {
  color: var(--forest);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.product-price-hidden {
  color: var(--muted-light);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.product-catalogs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--forest-soft);
  color: var(--forest-700);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.product-catalogs.none {
  background: #f1efea;
  color: var(--muted-light);
}

.product-catalogs .icon {
  width: 10px;
  height: 10px;
}

/* --------------------------------------------------------------------------
   Catálogos
   -------------------------------------------------------------------------- */

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

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: #dad4c6;
  box-shadow: var(--shadow-sm);
}

.catalog-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 19px 20px 15px;
}

.catalog-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--forest-soft);
  color: var(--forest);
}

.catalog-icon .icon {
  width: 18px;
  height: 18px;
}

.catalog-title-wrap {
  flex: 1;
  min-width: 0;
}

.catalog-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.catalog-meta span {
  color: var(--line-strong);
  padding: 0 4px;
}

.catalog-head .icon-btn {
  width: 31px;
  height: 31px;
  margin: -3px -4px 0 0;
}

.catalog-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 16px;
}

.catalog-thumbs-stack {
  display: flex;
  padding-left: 6px;
}

.catalog-thumb {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--muted-light);
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-thumb .icon {
  width: 11px;
  height: 11px;
}

.catalog-thumb-more {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 8.5px;
  font-weight: 750;
}

.catalog-thumbs-label {
  color: var(--muted-light);
  font-size: 10px;
}

.catalog-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px;
  padding: 8px 9px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f4ed;
}

.catalog-link span {
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-link .icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--muted);
}

.catalog-link .icon-btn:hover {
  background: var(--white);
  color: var(--forest);
}

.catalog-link .icon {
  width: 13px;
  height: 13px;
}

.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px 15px;
}

.catalog-foot-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.catalog-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 650;
}

.catalog-open .icon {
  width: 13px;
  height: 13px;
}

.catalog-open:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-edit-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.catalog-edit-btn:hover {
  background: var(--cream);
}

.new-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 244px;
  padding: 26px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.45);
  color: var(--muted);
  text-align: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.new-catalog-card:hover {
  border-color: var(--gold-deep);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
}

.new-catalog-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 13px;
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--shadow-xs);
}

.new-catalog-icon .icon {
  width: 20px;
  height: 20px;
}

.new-catalog-card strong {
  font-size: 13px;
  font-weight: 650;
}

.new-catalog-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Configurações
   -------------------------------------------------------------------------- */

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
}

.settings-form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 17px;
  border-bottom: 1px solid var(--line);
}

.settings-card-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.settings-card-head h2 .icon {
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

.settings-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.settings-body {
  padding: 22px 24px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.settings-row + .settings-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-row-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.settings-row-copy p {
  max-width: 520px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 0 2px;
}

.settings-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}

.settings-saved.visible {
  opacity: 1;
}

.settings-saved .icon {
  width: 14px;
  height: 14px;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.span-2 {
  grid-column: span 2;
}

.field-hint {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--white);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.text-input {
  height: 44px;
  padding: 0 13px;
}

.text-area {
  min-height: 104px;
  padding: 11px 13px;
  line-height: 1.6;
  resize: vertical;
}

.text-input::placeholder,
.text-area::placeholder {
  color: #aca79b;
}

.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 49, 0.07);
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix span {
  position: absolute;
  left: 13px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

.input-with-prefix .text-input {
  padding-left: 37px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--muted-light);
  transform: translateY(-50%);
}

.input-with-icon .text-input {
  padding-left: 39px;
}

.phone-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.phone-preview .icon {
  width: 12px;
  height: 12px;
  color: #25a75b;
}

.phone-preview strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 27px;
  flex: none;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d9d4c8;
  transition: background var(--transition);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(24, 35, 30, 0.25);
  transition: transform var(--transition);
}

.switch input:checked + .switch-track {
  background: var(--forest);
}

.switch input:checked + .switch-track::after {
  transform: translateX(19px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(169, 123, 61, 0.4);
  outline-offset: 2px;
}

.brand-setting {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.logo-preview {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 750;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.brand-setting-copy {
  flex: 1;
  min-width: 0;
}

.brand-setting-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.brand-setting-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.brand-setting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.mini-btn:hover {
  border-color: #bdb6a6;
  background: #faf8f2;
}

.mini-btn.danger {
  color: var(--danger);
  border-color: #eed7d2;
}

.mini-btn.danger:hover {
  background: var(--danger-soft);
}

.mini-btn .icon {
  width: 12px;
  height: 12px;
}

.security-note {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #eadcc1;
  border-radius: 11px;
  background: var(--gold-soft);
  color: #7a5c2f;
  font-size: 11px;
  line-height: 1.55;
}

.security-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Modais
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 28, 22, 0.55);
  backdrop-filter: blur(5px);
  animation: fade-in 160ms both;
}

.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  background: #fbf9f4;
  box-shadow: var(--shadow-lg);
  animation: modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-content-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.modal-floating-close {
  position: absolute;
  z-index: 5;
  top: 13px;
  right: 13px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--muted);
}

.modal-floating-close:hover {
  background: var(--cream);
  color: var(--ink);
}

.modal-card.modal-sm {
  max-width: 440px;
}

.modal-card.modal-lg {
  max-width: 860px;
}

.modal-card.modal-camera {
  max-width: 640px;
  background: #0c1a15;
  color: white;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
}

.modal-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.modal-close {
  flex: none;
  margin: -3px -6px 0 0;
}

.modal-body {
  min-height: 0;
  padding: 22px 26px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: none;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #f8f5ee;
}

.modal-footer .btn {
  min-height: 41px;
}

.modal-footer-spacer {
  flex: 1;
}

.form-section-label {
  margin: 0 0 12px;
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-section-label:not(:first-child) {
  margin-top: 22px;
}

.product-form-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 24px;
}

.product-form-fields {
  min-width: 0;
}

.image-uploader {
  min-width: 0;
}

.image-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.7), transparent 55%),
    var(--cream);
  color: var(--muted-light);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.image-dropzone:hover {
  border-color: var(--gold-deep);
}

.image-dropzone.is-dragging {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.image-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.image-dropzone-empty .icon {
  width: 30px;
  height: 30px;
  color: #bdb5a5;
}

.image-dropzone-empty strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.image-dropzone-empty span {
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.5;
}

.image-dropzone.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 249, 244, 0.72);
  backdrop-filter: blur(2px);
}

.image-dropzone .upload-spinner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.image-actions .mini-btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.image-remove {
  flex: 1 0 100% !important;
}

.image-hint {
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.form-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.required-mark {
  color: var(--gold-deep);
}

/* Seleção de produtos no modal de catálogo */

.selection-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.selection-toolbar .search-field {
  max-width: none;
  flex: 1;
}

.selection-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--forest-soft);
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.selection-count .icon {
  width: 12px;
  height: 12px;
}

.selection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 650;
}

.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-btn.muted {
  color: var(--muted);
}

.selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 324px;
  padding: 1px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}

.selection-item:hover {
  border-color: #cfc8b9;
  background: #fdfbf6;
}

.selection-item.is-selected {
  border-color: rgba(23, 63, 49, 0.45);
  background: var(--forest-soft);
}

.selection-item-image {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted-light);
}

.selection-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selection-item-image .icon {
  width: 15px;
  height: 15px;
}

.selection-item-info {
  flex: 1;
  min-width: 0;
}

.selection-item-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-item-price {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
}

.selection-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.selection-check .icon {
  width: 12px;
  height: 12px;
}

.selection-item.is-selected .selection-check {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.selection-empty {
  grid-column: 1 / -1;
  padding: 32px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.selection-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

/* Modal de câmera */

.camera-header {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.camera-header h2 {
  color: #fdfaf3;
}

.camera-header p {
  color: rgba(255, 255, 255, 0.45);
}

.camera-header .modal-close {
  color: rgba(255, 255, 255, 0.65);
}

.camera-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.camera-body {
  padding: 0;
  background: #07110d;
}

.camera-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #0a1611;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.camera-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1a15;
}

.camera-footer .btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.camera-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--forest-950);
  font-size: 12.5px;
  font-weight: 700;
}

.capture-btn:hover {
  background: #e3c58d;
}

.capture-btn .icon {
  width: 17px;
  height: 17px;
}

.camera-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: center;
}

.camera-error .icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.camera-error strong {
  color: #fff;
  font-size: 14px;
}

/* Confirmação */

.confirm-body {
  padding: 28px 26px 10px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
}

.confirm-icon .icon {
  width: 22px;
  height: 22px;
}

.confirm-body h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.confirm-body p {
  max-width: 340px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.confirm-footer {
  border-top: 0;
  background: transparent;
  padding: 18px 26px 24px;
  justify-content: center;
}

.confirm-footer .btn {
  flex: 1;
}

/* Link criado */

.success-body {
  padding: 28px 26px 8px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 15px;
  background: var(--success-soft);
  color: var(--success);
}

.success-icon .icon {
  width: 24px;
  height: 24px;
}

.success-body h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
}

.success-body p {
  max-width: 350px;
  margin: 6px auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--cream);
  text-align: left;
}

.share-link-box span {
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link-box .btn {
  min-height: 34px;
  font-size: 10.5px;
  padding: 0 11px;
}

.success-footer {
  border-top: 0;
  background: transparent;
  padding: 14px 26px 24px;
  justify-content: center;
}

.success-footer .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  z-index: 600;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  animation: toast-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
}

.toast.is-leaving {
  animation: fade-in 180ms reverse both;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: var(--success-soft);
  color: var(--success);
}

.toast-error .toast-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast-icon .icon {
  width: 14px;
  height: 14px;
}

.toast-message {
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsividade
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .content {
    padding: 38px 34px 72px;
  }

  .login-visual-copy h1 {
    font-size: clamp(40px, 4.6vw, 58px);
  }

  .login-art {
    transform: scale(0.88);
    transform-origin: bottom right;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    transform: translateX(-102%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 50px rgba(10, 28, 22, 0.22);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    border: 0;
    background: rgba(10, 28, 22, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .admin-main {
    margin-left: 0;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 248, 242, 0.92);
    backdrop-filter: blur(14px);
  }

  .brand-mobile-dark {
    display: inline-flex;
  }

  .brand-mobile-dark .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  .brand-mobile-dark .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .brand-mobile-dark .brand-name {
    font-size: 17px;
  }

  .content {
    padding-top: 28px;
  }

  .login-screen {
    grid-template-columns: minmax(440px, 52%) minmax(360px, 48%);
  }
}

@media (max-width: 900px) {
  .login-screen {
    display: block;
    min-height: 100vh;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(216, 183, 123, 0.06), transparent 45%),
      #faf8f2;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 90px 26px 74px;
    background: transparent;
  }

  .brand-mobile {
    display: inline-flex;
    margin-bottom: 40px;
  }

  .brand-mobile .brand-mark {
    width: 32px;
    height: 32px;
  }

  .login-box {
    max-width: 400px;
  }
}

@media (max-width: 850px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .catalogs-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .product-form-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-uploader {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .image-actions {
    margin-top: 0;
    align-content: flex-start;
  }

  .image-hint {
    text-align: left;
  }

  .selection-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content {
    padding: 24px 18px 72px;
  }

  .page-header h1 {
    font-size: 29px;
  }

  .page-subtitle {
    font-size: 12.5px;
  }

  .page-actions .btn {
    padding: 0 13px;
    font-size: 12.5px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 15px 16px;
    border-radius: 14px;
  }

  .stat-top {
    margin-bottom: 13px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-value.word {
    font-size: 19px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  .stat-tag {
    display: none;
  }

  .page-eyebrow {
    font-size: 9.5px;
  }

  .panel-head {
    padding: 16px 17px 14px;
  }

  .recent-row {
    padding: 9px 8px;
  }

  .tip-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .tip-banner-icon {
    width: 36px;
    height: 36px;
  }

  .tip-banner-text {
    flex-basis: calc(100% - 56px);
  }

  .tip-banner .btn {
    width: 100%;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-field {
    max-width: none;
  }

  .toolbar-meta {
    width: 100%;
    margin-left: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .product-body {
    padding: 11px 11px 12px;
  }

  .product-name {
    font-size: 12.5px;
  }

  .product-description {
    font-size: 10.5px;
    -webkit-line-clamp: 1;
    min-height: 15px;
  }

  .product-actions {
    opacity: 1;
    transform: none;
  }

  .card-action {
    width: 28px;
    height: 28px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-catalogs {
    display: none;
  }

  .product-foot {
    padding-top: 9px;
  }

  .catalog-head {
    padding: 16px 16px 13px;
  }

  .catalog-thumbs {
    padding: 0 16px 13px;
  }

  .catalog-link {
    margin: 0 16px;
  }

  .catalog-foot {
    padding: 12px 16px 14px;
    flex-wrap: wrap;
  }

  .new-catalog-card {
    min-height: 170px;
  }

  .settings-card-head {
    padding: 17px 18px 15px;
  }

  .settings-body {
    padding: 18px;
  }

  .settings-row {
    gap: 14px;
  }

  .settings-row-copy p {
    font-size: 10.5px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group.span-2 {
    grid-column: auto;
  }

  .brand-setting {
    align-items: flex-start;
    gap: 13px;
  }

  .logo-preview {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 16px;
  }

  .settings-actions {
    flex-wrap: wrap;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: none;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }

  .modal-card.modal-sm,
  .modal-card.modal-lg,
  .modal-card.modal-camera {
    max-width: none;
  }

  .modal-header {
    padding: 19px 18px 15px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-footer {
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .modal-footer .btn {
    flex: 1;
  }

  .modal-footer .modal-footer-spacer {
    display: none;
  }

  .image-uploader {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
  }

  .image-actions .mini-btn {
    flex: 1 1 auto;
  }

  .image-remove {
    flex: 1 1 auto !important;
  }

  .selection-toolbar {
    flex-wrap: wrap;
  }

  .selection-toolbar .selection-count {
    order: 3;
  }

  .selection-list {
    max-height: 38vh;
    max-height: 38dvh;
  }

  .toast-region {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .confirm-footer,
  .success-footer {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 4 / 2.9;
  }

  .product-description {
    -webkit-line-clamp: 2;
  }

  .product-catalogs {
    display: inline-flex;
  }

  .page-actions {
    flex-direction: column;
  }

  .page-actions .btn {
    width: 100%;
  }

  .image-uploader {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .image-actions .mini-btn {
    padding: 0 7px;
    font-size: 9.5px;
  }

  .image-actions .mini-btn .icon {
    width: 11px;
    height: 11px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-visual-copy {
    margin-top: 42px;
  }

  .login-visual-copy h1 {
    font-size: clamp(38px, 4.2vw, 54px);
  }

  .login-visual-copy p {
    margin-top: 18px;
  }

  .art-card-main {
    width: 205px;
  }

  .login-art {
    transform: scale(0.86);
    transform-origin: bottom right;
  }

  .sidebar-tip {
    display: none;
  }
}

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