:root {
  --ivory: #fbf5ec;
  --paper: #fffaf4;
  --cream: #f4e8d9;
  --sage: #718078;
  --sage-dark: #4f6259;
  --coral: #d79a8e;
  --coral-deep: #ba7569;
  --ink: #34453f;
  --muted: #7d817d;
  --line: rgba(79, 98, 89, .16);
  --danger: #a85050;
  --shadow: 0 24px 70px rgba(75, 60, 43, .12);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.login-visual {
  min-height: 100vh;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 75% 22%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(145deg, #e8d9ca, #c9d8d0);
  overflow: hidden;
  position: relative;
}
.login-visual::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -180px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(255,255,255,.08), 0 0 0 150px rgba(255,255,255,.06);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.login-brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.8);
}
.login-message { max-width: 650px; position: relative; z-index: 1; }
.login-message span,
.eyebrow {
  display: block;
  color: var(--coral-deep);
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 14px;
}
.login-message h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(55px, 6vw, 88px);
  line-height: .92;
  font-weight: 600;
}
.login-message p { max-width: 560px; line-height: 1.7; color: #5d6762; }
.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 45px;
  background: var(--paper);
}
.login-card { width: min(460px, 100%); }
.login-card h2 {
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1;
  margin: 0 0 10px;
}
.login-card > p { color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.form-group { display: grid; gap: 7px; margin-bottom: 18px; }
.form-group label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.form-control {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  background: white;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  transition: .2s;
}
textarea.form-control { min-height: 125px; resize: vertical; }
.form-control:focus { border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(186,117,105,.1); }
.btn {
  min-height: 48px;
  border: 1px solid transparent;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
  transition: .2s;
}
.btn-primary { background: var(--sage-dark); color: white; }
.btn-primary:hover { background: #405149; transform: translateY(-1px); }
.btn-light { background: white; border-color: var(--line); }
.btn-light:hover { background: var(--cream); }
.btn-danger { background: transparent; border-color: rgba(168,80,80,.25); color: var(--danger); }
.btn-full { width: 100%; }
.login-status { min-height: 22px; margin-top: 15px; color: var(--danger); font-size: 12px; }
.login-back { display: inline-flex; margin-top: 25px; color: var(--muted); font-size: 12px; }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sage-dark);
  color: white;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand img { width: 49px; height: 49px; border-radius: 50%; object-fit: cover; }
.sidebar-brand strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; }
.sidebar-brand small { color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 6px; margin-top: 28px; }
.sidebar-nav a {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 3px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: rgba(255,255,255,.11); color: white; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user { margin-bottom: 15px; padding: 0 8px; }
.sidebar-user strong { display: block; font-size: 12px; }
.sidebar-user small { color: rgba(255,255,255,.6); font-size: 10px; overflow-wrap: anywhere; }
.sidebar .btn { width: 100%; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: white; }

.admin-main { min-width: 0; }
.topbar {
  min-height: 82px;
  padding: 0 34px;
  background: rgba(255,250,244,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; }
.admin-content { padding: 34px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(75,60,43,.055);
}
.stat-card { padding: 24px; }
.stat-card small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.stat-card strong { display: block; margin-top: 9px; font-family: var(--serif); font-size: 38px; line-height: 1; }
.stat-card span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; margin-top: 20px; }
.panel { padding: 25px; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-header h2 { font-family: var(--serif); font-size: 31px; margin: 0; }
.panel-header p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.empty-box { min-height: 180px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.empty-box span { display: block; font-family: var(--serif); font-size: 45px; color: var(--coral); }
.activity-list { display: grid; gap: 12px; }
.activity-item { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item strong { font-size: 12px; }
.activity-item small { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 20px; background: var(--cream); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.badge.success { background: #e0ebe5; color: #466456; }
.badge.warning { background: #f4e5ce; color: #866637; }
.badge.danger { background: #f2dede; color: #8e4747; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.toolbar-left { display: flex; gap: 10px; flex: 1; }
.search-input { max-width: 360px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th,
.admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
.admin-table th { background: #f5eadc; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.admin-table tr:last-child td { border-bottom: 0; }
.product-cell { display: flex; align-items: center; gap: 12px; }
.product-thumb { width: 48px; height: 48px; border-radius: 4px; background: linear-gradient(145deg,#b9d0cd,#e8ece6); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell strong { display: block; font-size: 14px; }
.product-cell small { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 7px; }
.icon-action { width: 34px; height: 34px; border: 1px solid var(--line); background: white; display: grid; place-items: center; }
.icon-action:hover { background: var(--cream); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(35,45,40,.45); z-index: 70; opacity: 0; pointer-events: none; transition: .2s; }
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100%);
  background: var(--paper);
  z-index: 80;
  transform: translateX(100%);
  transition: .3s;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.modal.open { transform: none; }
.modal-header,
.modal-footer { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.modal-footer { border-top: 1px solid var(--line); border-bottom: 0; justify-content: flex-end; }
.modal-header h2 { margin: 0; font-family: var(--serif); font-size: 35px; }
.modal-close { border: 0; background: transparent; font-size: 30px; }
.modal-body { overflow-y: auto; padding: 25px 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 8px 0; }
.check-row label { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.form-message { min-height: 18px; color: var(--danger); font-size: 11px; margin-top: 10px; }
.loading-screen { position: fixed; inset: 0; z-index: 200; background: var(--ivory); display: grid; place-items: center; }
.loading-screen div { text-align: center; }
.loading-screen img { width: 80px; height: 80px; border-radius: 50%; animation: pulse 1.5s infinite; }
.loading-screen p { color: var(--muted); font-size: 11px; }
.toast-admin { position: fixed; left: 50%; bottom: 25px; z-index: 120; transform: translate(-50%, 100px); opacity: 0; background: var(--ink); color: white; padding: 13px 20px; font-size: 11px; transition: .25s; }
.toast-admin.show { transform: translate(-50%, 0); opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.04); opacity: .75; } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .admin-login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 340px; padding: 35px 25px; }
  .login-message h1 { font-size: 55px; }
  .login-panel { min-height: auto; padding: 55px 25px; }
  .admin-app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 18px; }
  .admin-content { padding: 22px 16px; }
}
@media (max-width: 580px) {
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left { flex-direction: column; }
  .search-input { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

/* Encomendas e newsletter */
.stats-grid-orders,
.stats-grid-newsletter { margin-bottom: 24px; }
.stat-money { font-size: 29px !important; }
.toolbar-spaced { margin-top: 0; }
.toolbar-left .admin-select-wrap { width: 220px; flex: 0 0 220px; }
.admin-select-wrap { position: relative; }
.admin-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--sage-dark);
  border-bottom: 1.5px solid var(--sage-dark);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.admin-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.admin-table small { color: var(--muted); }
.icon-action-wide { width: auto; min-width: 48px; padding: 0 11px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.icon-action-danger { color: var(--danger); font-size: 20px; }
.email-link { font-weight: 500; }
.email-link:hover { color: var(--coral-deep); }
.order-modal { width: min(720px, 100%); }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-section { border: 1px solid var(--line); background: white; padding: 20px; min-width: 0; }
.detail-section.full { grid-column: 1 / -1; }
.detail-section h3 { margin: 0 0 15px; font-family: var(--serif); font-size: 25px; }
.detail-section p,
.detail-section address { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; font-style: normal; }
.detail-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-section-heading > span { color: var(--muted); font-size: 10px; }
.detail-list { display: grid; gap: 12px; }
.detail-list div { display: grid; gap: 2px; }
.detail-list small { font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.detail-list strong,
.detail-list a { font-size: 12px; overflow-wrap: anywhere; }
.order-items-list { display: grid; }
.order-item-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-item-line strong { font-size: 12px; }
.order-item-line small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }
.order-totals { width: min(310px, 100%); margin: 18px 0 0 auto; display: grid; }
.order-totals > div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; font-size: 11px; }
.order-totals .grand-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 13px; font-size: 14px; }
.muted-text { color: var(--muted); }

@media (max-width: 700px) {
  .order-detail-grid { grid-template-columns: 1fr; }
  .detail-section.full { grid-column: auto; }
  .toolbar-left .admin-select-wrap { width: 100%; flex-basis: auto; }
}



.icon-action {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.icon-action[data-edit-product] {
  font-size: 20px;
}

.icon-action[data-delete-product] {
  font-size: 36px;
}

.icon-action:hover {
  background: var(--sage-dark);
  color: white;
  border-color: var(--sage-dark);
}


.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-action {
  height: 36px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(79, 98, 89, 0.18);
  background: #fff;
  color: var(--admin-ink, #34453f);

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.newsletter-action-toggle:hover {
  background: var(--sage-dark, #4f6259);
  border-color: var(--sage-dark, #4f6259);
  color: #fff;
}

.newsletter-action-delete {
  width: 36px;
  padding: 0;

  color: var(--coral-deep, #ba7569);
  font-size: 20px;
  font-weight: 400;
}

.newsletter-action-delete:hover {
  background: var(--coral-deep, #ba7569);
  border-color: var(--coral-deep, #ba7569);
  color: #fff;
}

.newsletter-action-delete[data-delete-subscriber] {
  padding-left: 3px;
  font-size: 36px;
}

.newsletter-table th:last-child,
.newsletter-table td:last-child {
  width: 190px;
  min-width: 190px;
}




body.modal-open {
  overflow: hidden;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 52, 47, 0.55);
}

.admin-modal-panel {
  position: relative;
  z-index: 1;

  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  background: #fffaf4;
  border: 1px solid rgba(79, 98, 89, 0.18);
  padding: 32px;
  box-shadow: 0 30px 90px rgba(40, 52, 47, 0.22);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(79, 98, 89, 0.18);
  background: white;
  font-size: 24px;
  cursor: pointer;
}

.campaign-form {
  display: grid;
  gap: 18px;
}

.campaign-form label {
  display: grid;
  gap: 7px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campaign-form input,
.campaign-form textarea {
  width: 100%;
  border: 1px solid rgba(79, 98, 89, 0.18);
  background: white;
  padding: 13px 15px;
  color: var(--ink);
  resize: vertical;
}

.campaign-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.campaign-button {
  min-height: 48px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid var(--sage-dark);
  background: transparent;
  color: var(--sage-dark);

  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.campaign-button span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.campaign-button:hover {
  background: var(--sage-dark);
  color: #fff;
  transform: translateY(-1px);
}

.campaign-button:active {
  transform: translateY(0);
}

.campaign-button:focus-visible {
  outline: 3px solid rgba(186, 117, 105, 0.18);
  outline-offset: 3px;
}

.admin-page-header {
  min-height: 80px;
  padding: 14px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  border-bottom: 1px solid var(--admin-line);
}

.admin-page-header h1 {
  margin: 0;
}

.admin-page-header p {
  margin: 2px 0 0;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 750px) {
  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-page-actions button {
    flex: 1;
  }
}


.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-button {
  min-height: 48px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid var(--sage-dark);
  border-radius: 0;

  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.admin-button span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.admin-button-outline {
  background: transparent;
  color: var(--sage-dark);
}

.admin-button-outline:hover {
  background: var(--sage-dark);
  color: #fff;
}

.admin-button-primary {
  background: var(--sage-dark);
  color: #fff;
}

.admin-button-primary:hover {
  background: #405149;
}

.admin-button:hover {
  transform: translateY(-1px);
}

.admin-button:active {
  transform: translateY(0);
}


.campaign-preview-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(79, 98, 89, 0.18);
}

.campaign-preview-heading {
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  color: var(--admin-ink, #34453f);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preview-refresh-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral-deep, #ba7569);

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
}

.campaign-email-preview {
  max-height: 500px;
  overflow: auto;

  border: 1px solid rgba(79, 98, 89, 0.18);
  background: #ebe1d5;
  padding: 20px;
}

.campaign-email-preview > table {
  margin: 0 auto !important;
}









/* =====================================================
   MELHORIA GLOBAL DE LEGIBILIDADE — ADMINISTRAÇÃO
   ===================================================== */

.admin-page-header p,
.page-header p,
.admin-header p {
  font-size: 14px;
  line-height: 1.5;
}

.stat-card small,
.dashboard-card small,
.admin-stat-card small {
  font-size: 12px;
  line-height: 1.4;
}

.stat-card p,
.dashboard-card p,
.admin-stat-card p {
  font-size: 13px;
  line-height: 1.5;
}

.stat-card .eyebrow,
.dashboard-card .eyebrow,
.admin-stat-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
}

.admin-table th,
.data-table th,
table th {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-table td,
.data-table td,
table td {
  font-size: 13px;
}

.badge {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.sidebar-nav a,
.admin-sidebar a {
  font-size: 14px;
}

.sidebar-user strong,
.admin-user strong {
  font-size: 14px;
}

.sidebar-user span,
.admin-user span {
  font-size: 12px;
}

.empty-box p,
.empty-state p {
  font-size: 14px;
}

.next-step-item strong,
.preparation-item strong {
  font-size: 14px;
}

.next-step-item small,
.preparation-item small {
  font-size: 11px;
  line-height: 1.5;
}

.admin-button,
.newsletter-action,
.icon-action-wide {
  font-size: 12px;
}



.product-image-field {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.field-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.field-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  color: var(--admin-ink, #34453f);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-heading small {
  color: #858b87;
  font-size: 11px;
}

.product-image-upload {
  min-height: 270px;
  position: relative;
  overflow: hidden;

  display: grid;
  place-items: center;

  border: 1px dashed rgba(79, 98, 89, 0.32);
  background: #fffaf4;

  cursor: pointer;

  transition:
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.product-image-upload:hover {
  border-color: var(--sage-dark, #4f6259);
  background: #f7efe5;
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  color: #727975;
  text-align: center;
}

.product-image-placeholder > span {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(79, 98, 89, 0.24);
  border-radius: 50%;

  color: var(--sage-dark, #4f6259);
  font-size: 25px;
}

.product-image-placeholder strong {
  color: var(--admin-ink, #34453f);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.product-image-placeholder small {
  font-size: 11px;
}

.product-image-upload img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
}

.remove-product-image {
  padding: 0;

  border: 0;
  background: transparent;
  color: var(--coral-deep, #ba7569);

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  cursor: pointer;
}

.image-position-controls {
  margin-top: 14px;
  padding: 17px 18px;

  border: 1px solid rgba(79, 98, 89, 0.16);
  background: #fffaf4;
}

.image-position-controls[hidden] {
  display: none;
}

.image-position-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.image-position-heading span {
  color: var(--admin-ink, #34453f);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.image-position-heading button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral-deep, #ba7569);

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.image-position-controls label {
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: center;
  gap: 15px;
}

.image-position-controls label + label {
  margin-top: 13px;
}

.image-position-controls label span {
  color: #737a76;
  font-size: 11px;
}

.image-position-controls input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--sage-dark, #4f6259);
}

.image-drag-controls {
  margin-top: 14px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.image-drag-controls[hidden] {
  display: none;
}

.image-adjust-button,
.image-center-button {
  min-height: 38px;
  padding: 0 15px;

  border: 1px solid rgba(79, 98, 89, 0.24);
  background: #fff;
  color: var(--sage-dark, #4f6259);

  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.image-adjust-button:hover,
.image-center-button:hover {
  border-color: var(--sage-dark, #4f6259);
}

.image-adjust-button.active {
  background: var(--sage-dark, #4f6259);
  border-color: var(--sage-dark, #4f6259);
  color: #fff;
}

.image-drag-controls small {
  flex: 1 1 100%;

  color: #7b817d;
  font-size: 10px;
  line-height: 1.5;
}

.product-image-upload {
  user-select: none;
}

.product-image-upload.is-adjusting {
  cursor: grab;
}

.product-image-upload.is-adjusting:active {
  cursor: grabbing;
}

.product-image-upload.is-adjusting img {
  pointer-events: none;
}

.image-adjust-overlay {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  border: 2px solid rgba(255, 255, 255, 0.8);

  background:
    linear-gradient(
      rgba(52, 69, 63, 0.1),
      rgba(52, 69, 63, 0.1)
    );

  pointer-events: none;
}

.image-adjust-overlay[hidden] {
  display: none;
}

.image-adjust-overlay span {
  padding: 9px 14px;

  background: rgba(52, 69, 63, 0.82);
  color: #fff;

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-image-upload.is-adjusting
.image-adjust-overlay span {
  opacity: 1;
}

.product-image-upload {
  position: relative;
  overflow: hidden;
}

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


.product-image-upload {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 5;

  position: relative;
  overflow: hidden;

  display: grid;
  place-items: center;

  border: 1px dashed rgba(79, 98, 89, 0.42);
  background: #f7f1e9;

  cursor: pointer;
  user-select: none;
}

.product-image-upload img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: 50% 50%;
}

.product-image-upload.is-adjusting {
  cursor: grab;
  touch-action: none;
}

.product-image-upload.is-adjusting:active {
  cursor: grabbing;
}

.product-image-upload.is-adjusting img {
  pointer-events: none;
}

/* Preview com a mesma proporção dos cartões da loja */
.product-image-upload {
  width: 100%;
  max-width: 430px;

  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;

  position: relative;
  overflow: hidden;

  display: block;

  border: 1px dashed rgba(79, 98, 89, 0.42);
  background: #f7f1e9;

  user-select: none;
}

.product-image-upload img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;

  display: block;

  object-fit: cover;
}

.product-image-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-drag-controls {
  width: 100%;
  max-width: 430px;
  margin-top: 14px;
}

@media (max-width: 650px) {
  .product-image-upload,
  .image-drag-controls {
    max-width: 100%;
  }
}