:root {
  --black: #080706;
  --ink: #1e1d1a;
  --muted: #716a5f;
  --paper: #fffdf8;
  --soft: #f5f1e9;
  --gold: #d8a74a;
  --gold-strong: #f0c167;
  --line: #e6dccb;
  --red: #9e1f28;
  --green: #0f7f5c;
  --shadow: 0 18px 50px rgba(25, 18, 8, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

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

.topbar {
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.icon-button,
.cart-button,
.dialog-close {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.icon-button {
  flex-direction: column;
  gap: 5px;
  height: 44px;
  width: 44px;
}

.icon-button span {
  background: var(--ink);
  border-radius: 999px;
  height: 3px;
  width: 26px;
}

.brand {
  align-items: center;
  background: var(--black);
  border: 0;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.brand img {
  background: var(--black);
  border: 0;
  border-radius: 0;
  display: block;
  height: clamp(96px, 15vw, 190px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
  width: 100%;
}

.nav-row {
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  min-height: 64px;
  padding: 8px clamp(18px, 5vw, 56px);
  width: 100%;
}

.admin-home-link {
  color: var(--ink);
  justify-self: start;
}

body.admin-visible .nav-row {
  grid-template-columns: minmax(130px, auto) 1fr;
}

.nav-cta {
  color: var(--ink);
  font-weight: 900;
  justify-self: center;
  text-transform: uppercase;
}

.cart-button {
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  height: 46px;
  justify-self: end;
  position: relative;
  width: 46px;
}

.cart-icon {
  font-size: 24px;
  line-height: 1;
}

.cart-count {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: var(--black);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -6px;
  top: -6px;
  width: 22px;
}

.drawer {
  background: var(--black);
  color: var(--paper);
  display: none;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 56px);
  position: sticky;
  top: clamp(156px, calc(18vw + 64px), 244px);
  z-index: 9;
}

.drawer.open {
  display: flex;
}

.drawer a {
  color: #f4e1bd;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  background:
    linear-gradient(120deg, rgba(8, 7, 6, 0.9), rgba(8, 7, 6, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(216, 167, 74, 0.32), transparent 34%),
    var(--black);
  color: var(--paper);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  min-height: 520px;
  padding: clamp(50px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 800px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero p {
  color: #efe5d4;
  font-size: 18px;
  line-height: 1.65;
  max-width: 630px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.primary-action {
  background: var(--gold);
  color: var(--black);
}

.secondary-action {
  background: transparent;
  border-color: rgba(216, 167, 74, 0.55);
  color: var(--gold-strong);
}

.hero-showcase {
  align-self: end;
  display: grid;
  gap: 16px;
}

.hero-showcase article {
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(216, 167, 74, 0.25);
  border-radius: 8px;
  min-height: 150px;
  padding: 22px;
}

.hero-showcase strong,
.hero-showcase small {
  display: block;
}

.hero-showcase strong {
  font-size: 26px;
  margin: 18px 0 8px;
}

.tag {
  background: rgba(216, 167, 74, 0.16);
  border-radius: 999px;
  color: var(--gold-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
}

.toolbar {
  background: var(--paper);
  display: grid;
  gap: 18px;
  padding: 46px clamp(18px, 5vw, 64px) 10px;
}

.section-heading {
  max-width: 760px;
}

.search {
  display: grid;
  gap: 8px;
}

.search span,
.booking-form label,
.admin-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 64px;
  padding: 0 22px;
  width: 100%;
}

.segments {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.segment {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.segment.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--gold-strong);
}

.catalog-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.catalog-filters label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

.catalog-filters input,
.catalog-filters select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
}

.catalog-grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px clamp(18px, 5vw, 64px) 38px;
}

.featured-strip {
  background: var(--soft);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding: 1px;
}

.featured-strip article {
  background: #fff;
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 42px);
}

.featured-strip span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.featured-strip strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.product-card {
  cursor: pointer;
  min-width: 0;
}

.product-image {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  overflow: hidden;
  place-items: end;
  position: relative;
}

.product-figure {
  color: rgba(255, 255, 255, 0.9);
  font-size: 82px;
  font-weight: 800;
  opacity: 0.96;
  padding: 18px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.product-add {
  align-items: center;
  background: rgba(255, 253, 248, 0.94);
  border: 0;
  border-radius: 50%;
  bottom: 18px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 26px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  position: absolute;
  right: 18px;
  width: 54px;
}

.product-add:disabled,
.primary-action:disabled {
  background: rgba(255, 253, 248, 0.68);
  color: var(--muted);
  cursor: not-allowed;
}

.product-card h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 16px 0 10px;
  overflow-wrap: anywhere;
}

.price {
  font-size: 22px;
  font-weight: 900;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.booking-panel,
.admin-panel,
.contact-band {
  padding: clamp(42px, 7vw, 72px) clamp(18px, 5vw, 64px);
}

.booking-panel {
  background: var(--black);
  color: var(--paper);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1fr);
}

.booking-panel p {
  color: #eadfcf;
  line-height: 1.7;
}

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

.booking-form label,
.admin-form label,
.admin-box label,
.block-form label {
  display: grid;
  gap: 8px;
}

.booking-form input,
.booking-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-box input,
.block-form input,
.block-form select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 12px;
}

.admin-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.image-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

.image-field legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.image-tabs {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
}

.image-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
}

.image-tab.active {
  background: var(--black);
  color: var(--gold-strong);
}

.image-search-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
}

.image-source {
  display: none;
}

.image-source.active {
  display: grid;
}

.image-preview {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  border: 1px dashed #cdbf9f;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
}

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

.form-action,
.wide-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions .secondary-action {
  color: var(--ink);
}

.hidden-control {
  display: none;
}

.rental-field.hidden {
  display: none;
}

.info-band {
  background: var(--soft);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding: 1px;
}

.info-band article {
  background: var(--paper);
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 28px clamp(18px, 4vw, 42px);
}

.info-band strong {
  font-size: 22px;
}

.info-band span {
  color: var(--muted);
  line-height: 1.5;
}

.atelier-band {
  align-items: start;
  background: var(--paper);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  padding: clamp(42px, 7vw, 72px) clamp(18px, 5vw, 64px);
}

.atelier-copy {
  color: var(--muted);
  display: grid;
  gap: 14px;
  line-height: 1.7;
}

.atelier-copy p {
  margin: 0;
}

.admin-panel {
  background: var(--paper);
  display: none;
}

body.admin-visible .admin-panel {
  display: block;
}

body.admin-visible .topbar {
  position: static;
}

body.admin-visible .brand img {
  height: clamp(78px, 12vw, 150px);
}

.admin-back {
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.admin-back:hover {
  color: var(--ink);
}

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

.admin-stat {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  font-size: 34px;
  line-height: 1;
}

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

.admin-heading .secondary-action {
  color: var(--ink);
}

.admin-lock {
  align-items: center;
  background: var(--black);
  border-radius: 8px;
  color: var(--paper);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 42px);
}

.admin-lock p {
  color: #eadfcf;
  line-height: 1.6;
}

.lock-form {
  display: grid;
  gap: 12px;
}

.lock-form label {
  color: #eadfcf;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.lock-form input {
  border: 1px solid rgba(216, 167, 74, 0.3);
  border-radius: 6px;
  min-height: 48px;
  padding: 0 12px;
}

.lock-hint {
  font-size: 13px;
  margin: 0;
}

.admin-content.locked {
  display: none;
}

.availability-message {
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(216, 167, 74, 0.25);
  border-radius: 6px;
  color: #f7ecd5;
  display: none;
  font-weight: 700;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
}

.availability-message.show {
  display: block;
}

.availability-message.ok {
  border-color: rgba(15, 127, 92, 0.8);
}

.availability-message.blocked {
  border-color: rgba(158, 31, 40, 0.9);
}

.message-preview {
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(216, 167, 74, 0.25);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.message-preview span {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-preview pre {
  color: #f7ecd5;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-pill {
  align-items: center;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  left: 14px;
  min-height: 28px;
  padding: 0 10px;
  position: absolute;
  top: 14px;
}

.status-pill.blocked {
  color: var(--red);
}

.product-image img,
.dialog-media img {
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.product-image .tag {
  position: absolute;
  right: 14px;
  top: 14px;
}

.product-figure {
  grid-area: 1 / 1;
  justify-self: end;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  margin-bottom: 24px;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.admin-dashboard article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-dashboard span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard strong {
  color: var(--ink);
  font-size: 20px;
}

.admin-dashboard ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-dashboard li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-dashboard li strong {
  color: var(--gold-strong);
  font-size: 13px;
}

.danger-dashboard-card {
  border-color: rgba(158, 31, 40, 0.35) !important;
  background: rgba(158, 31, 40, 0.06) !important;
}

.danger-dashboard-card strong {
  color: var(--red);
}

.wide-dashboard-card {
  grid-column: span 2;
}

.admin-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.admin-box h3,
.admin-list h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

.admin-box .secondary-action,
.block-form .secondary-action {
  color: var(--ink);
  width: 100%;
}

.backup-actions {
  display: grid;
  gap: 10px;
}

.backup-status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.backup-status-card strong {
  color: var(--ink);
  font-size: 14px;
}

.backup-status-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.backup-status-card.ok {
  background: rgba(15, 127, 92, 0.08);
  border-color: rgba(15, 127, 92, 0.25);
}

.backup-status-card.warning {
  background: rgba(216, 167, 74, 0.12);
  border-color: rgba(216, 167, 74, 0.35);
}

.backup-status-card.danger {
  background: rgba(158, 31, 40, 0.08);
  border-color: rgba(158, 31, 40, 0.35);
}

.backup-status-card.danger strong {
  color: var(--red);
}

.import-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
}

.import-button input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.admin-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

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

.finance-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.finance-summary,
.order-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.finance-summary article,
.order-summary article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
}

.finance-summary span,
.order-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-summary strong,
.order-summary strong {
  font-size: 26px;
}

.order-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.finance-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

.finance-form input,
.finance-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 12px;
}

.finance-form .secondary-action {
  color: var(--ink);
  width: 100%;
}

.finance-table-wrap {
  overflow-x: auto;
}

.finance-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.finance-table th,
.finance-table td {
  border-top: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.finance-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-table td {
  color: var(--ink);
  font-size: 14px;
}

.cashflow-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.cashflow-badge.entrada {
  background: rgba(15, 127, 92, 0.12);
  color: var(--green);
}

.cashflow-badge.saida {
  background: rgba(158, 31, 40, 0.12);
  color: var(--red);
}

.admin-list {
  margin-top: 34px;
}

.agenda-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.admin-list-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-list-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-filter {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-width: min(260px, 100%);
  text-transform: uppercase;
}

.compact-filter {
  min-width: 150px;
}

.admin-filter input,
.admin-filter select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.admin-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  padding: 16px 0;
}

.empty-admin {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  padding: 18px 0;
}

.agenda-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 96px 1fr;
  padding: 14px 0;
}

.agenda-date {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px;
  text-align: center;
}

.agenda-date strong {
  color: var(--ink);
  font-size: 18px;
}

.agenda-date span,
.agenda-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.agenda-item > div:last-child strong {
  color: var(--ink);
  display: block;
  margin-bottom: 5px;
}

.agenda-item.retirada .agenda-date {
  border-color: rgba(15, 127, 92, 0.35);
}

.agenda-item.devolucao .agenda-date {
  border-color: rgba(216, 167, 74, 0.55);
}

.agenda-item.bloqueio .agenda-date {
  border-color: rgba(158, 31, 40, 0.35);
}

.agenda-item.atrasado .agenda-date {
  background: rgba(158, 31, 40, 0.08);
  border-color: rgba(158, 31, 40, 0.45);
}

.agenda-item.atrasado .agenda-date strong,
.agenda-item.atrasado > div:last-child strong {
  color: var(--red);
}

.status-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  min-height: 40px;
  padding: 0 10px;
}

.admin-item strong,
.admin-item span {
  display: block;
}

.admin-item span {
  color: var(--muted);
  line-height: 1.45;
}

.order-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-timeline span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  padding: 6px 10px;
  width: auto;
}

.order-timeline strong {
  color: var(--ink);
  display: inline;
  font-size: 11px;
}

.reservation-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 8px;
}

.reservation-row span {
  min-width: 0;
}

.admin-edit,
.admin-delete,
.admin-unblock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-edit {
  color: var(--ink);
}

.admin-edit:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

.admin-unblock {
  color: var(--ink);
  flex: 0 0 auto;
  min-height: 34px;
}

@media (max-width: 540px) {
  .reservation-row,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .reservation-row {
    flex-direction: column;
  }
}

.contact-band {
  background: var(--black);
  color: var(--paper);
  text-align: center;
}

.contact-band p {
  color: #eadfcf;
}

.whatsapp-float {
  align-items: center;
  background: #138c63;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 16px 40px rgba(15, 127, 92, 0.32);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 52px;
  padding: 0 18px;
  position: fixed;
  right: 18px;
  z-index: 12;
}

.site-footer {
  align-items: center;
  background: #050505;
  color: #d8cfbd;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px) 78px;
}

.admin-access {
  color: #8f8677;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-access:focus,
.admin-access:hover {
  color: var(--gold-strong);
}

.product-dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 920px;
  padding: 0;
  width: min(calc(100vw - 28px), 920px);
}

.product-dialog::backdrop {
  background: rgba(8, 7, 6, 0.65);
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 1fr);
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.dialog-close {
  background: var(--black);
  border-radius: 50%;
  color: var(--paper);
  height: 36px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  z-index: 1;
}

.dialog-media {
  min-height: 420px;
}

.dialog-content {
  padding: 36px;
}

.dialog-content p {
  color: var(--muted);
  line-height: 1.65;
}

dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

dl div {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    min-height: 0;
  }

  body.admin-visible .brand img {
    height: 82px;
  }

  body.admin-visible .nav-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 16px;
  }

  body.admin-visible .nav-cta,
  body.admin-visible .admin-home-link {
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
  }

  .drawer {
    flex-direction: column;
    top: 150px;
  }

  .hero,
  .booking-panel,
  .atelier-band,
  .admin-lock,
  .product-dialog[open] {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    flex: 1 1 180px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  h2 {
    font-size: 30px;
  }

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

  .catalog-filters,
  .admin-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card h3 {
    font-size: 18px;
  }

  .booking-form,
  .admin-form,
  .admin-grid,
  .block-form,
  .finance-form,
  .featured-strip,
  .info-band {
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .finance-summary,
  .order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-dashboard-card {
    grid-column: auto;
  }

  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions .status-select,
  .admin-actions button {
    width: 100%;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-media {
    min-height: 260px;
  }

  .dialog-content {
    padding: 28px;
  }
}

@media (max-width: 440px) {
  .topbar {
    padding: 0;
  }

  .nav-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 58px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.admin-visible .nav-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-home-link,
  body.admin-visible .nav-cta {
    justify-self: stretch;
  }

  .brand img {
    height: 94px;
    object-fit: cover;
  }

  .drawer {
    top: 152px;
  }

  .nav-cta {
    font-size: 13px;
  }

  .cart-button {
    height: 42px;
    width: 42px;
  }

  .hero {
    gap: 22px;
    padding-top: 34px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .hero p,
  .booking-panel p,
  .atelier-copy {
    font-size: 15px;
  }

  .hero-showcase {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-showcase article {
    min-height: 126px;
    padding: 16px;
  }

  .hero-showcase strong {
    font-size: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-grid {
    gap: 20px 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .status-pill {
    font-size: 10px;
    left: 10px;
    min-height: 24px;
    padding: 0 8px;
    top: 10px;
  }

  .product-image .tag {
    bottom: 12px;
    font-size: 10px;
    left: 10px;
    max-width: calc(100% - 70px);
    overflow: hidden;
    position: absolute;
    right: auto;
    text-overflow: ellipsis;
    top: auto;
    white-space: nowrap;
  }

  .price {
    font-size: 19px;
  }

  .meta {
    font-size: 12px;
  }

  .booking-panel,
  .admin-panel,
  .contact-band,
  .atelier-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.admin-visible .brand img {
    height: 72px;
  }

  .admin-panel {
    padding-top: 24px;
  }

  .admin-lock {
    gap: 16px;
  }

  .admin-lock h2,
  .admin-heading h2 {
    font-size: 24px;
  }

  .admin-stats,
  .admin-dashboard,
  .finance-summary,
  .order-summary {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    grid-template-columns: 1fr;
  }

  .admin-stat,
  .finance-summary article,
  .order-summary article {
    min-height: auto;
    padding: 14px;
  }

  .admin-stat strong,
  .finance-summary strong,
  .order-summary strong {
    font-size: 24px;
  }

  .admin-form,
  .block-form,
  .finance-form {
    gap: 12px;
  }

  .image-tabs {
    grid-template-columns: 1fr;
  }

  .product-add {
    bottom: 12px;
    height: 46px;
    right: 12px;
    width: 46px;
  }

  .primary-action,
  .secondary-action {
    min-height: 46px;
    padding: 0 14px;
  }

  .booking-form input,
  .booking-form select,
  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .admin-box input,
  .block-form input,
  .block-form select {
    min-height: 46px;
  }

  .admin-lock,
  .admin-box {
    padding: 18px;
  }

  .admin-actions,
  .admin-list-actions,
  .admin-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions button,
  .admin-list-actions button,
  .admin-filter,
  .status-select {
    width: 100%;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .finance-panel {
    margin-left: -2px;
    margin-right: -2px;
    padding: 14px;
  }

  .agenda-panel {
    padding: 14px;
  }

  .agenda-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .agenda-date {
    min-height: auto;
    text-align: left;
  }

  .finance-table {
    min-width: 640px;
  }

  dl div {
    display: grid;
    gap: 4px;
  }

  dd {
    text-align: left;
  }

  .whatsapp-float {
    bottom: 12px;
    min-height: 48px;
    right: 12px;
  }
}
