:root {
  color-scheme: light;
  --ink: #21201d;
  --muted: #66615a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ddd8cf;
  --accent: #8f2f3d;
  --accent-dark: #68222c;
  --sage: #6e7f71;
  --gold: #b08b4f;
  --shadow: 0 18px 50px rgba(35, 32, 28, 0.14);
}

body.theme-dark {
  --ink: #f5f1e8;
  --muted: #c7beb0;
  --paper: #11100f;
  --panel: #1d1b19;
  --line: #36302a;
  --accent: #cda85c;
  --accent-dark: #e2c782;
  --sage: #d4bc78;
  --gold: #cda85c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.theme-dark .topbar {
  background: rgba(13, 12, 11, 0.94);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  font-size: 16px;
}

nav a {
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  height: calc(100svh - 70px);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #efede8, #d8d3ca);
}

body.theme-dark .hero-media {
  background: linear-gradient(135deg, #0d0c0b, #2d2823);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: opacity 180ms ease;
}

.hero-media img.is-switching {
  opacity: 0.35;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 3vw, 24px);
  pointer-events: none;
}

.slider-button {
  width: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(35, 32, 28, 0.18);
  font-size: 36px;
  line-height: 1;
  pointer-events: auto;
}

.slide-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33, 32, 29, 0.74);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 76px);
}

.eyebrow,
.small-label {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  color: var(--accent-dark);
  margin: 0 0 18px;
}

body.theme-dark .lead {
  color: #d8b96e;
}

.hero-actions,
.admin-actions,
.analytics-header,
.editor-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button {
  border: 0;
  border-radius: 6px;
  min-height: 50px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--accent);
  color: #fff;
}

body.theme-dark .primary {
  color: #16130f;
}

.secondary {
  background: #ece7dd;
  color: var(--ink);
}

body.theme-dark .secondary {
  background: #2c2823;
  color: var(--ink);
  border: 1px solid var(--line);
}

.notice-band {
  background: var(--accent-dark);
  color: #fff;
  padding: 18px clamp(16px, 4vw, 48px);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 800;
}

body.theme-dark .notice-band {
  background: #080807;
  color: #d8b96e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-band p {
  max-width: 1180px;
  margin: 0 auto;
}

.section {
  padding: clamp(42px, 7vw, 92px) clamp(16px, 4vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
}

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

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

.look {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(35, 32, 28, 0.08);
}

body.theme-dark .look {
  box-shadow: var(--shadow);
}

.look img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ddd7cc;
}

.look-content {
  padding: 18px;
}

.look-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.look-content p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #efe7d9;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

body.theme-dark .pill {
  background: rgba(205, 168, 92, 0.18);
  color: #e2c782;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.clean-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.appointment {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.whatsapp-large {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: 10px 0 18px;
  border-radius: 6px;
  background: #1f8f55;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

body.theme-dark .appointment,
body.theme-dark .login-panel,
body.theme-dark .admin-panel,
body.theme-dark .collection-item,
body.theme-dark .notice-item,
body.theme-dark .metric,
body.theme-dark table {
  background: var(--panel);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.admin-body {
  background: #f4f1ea;
}

.admin-body.admin-dark-preview {
  --ink: #f5f1e8;
  --muted: #c7beb0;
  --paper: #11100f;
  --panel: #1d1b19;
  --line: #36302a;
  --accent: #cda85c;
  --accent-dark: #e2c782;
  --sage: #d4bc78;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  background: var(--paper);
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 14px 80px;
}

.login-panel,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.login-panel {
  max-width: 460px;
  margin: 10vh auto 0;
}

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

form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-dark-preview input,
.admin-dark-preview textarea {
  border-color: var(--line);
  background: #12110f;
  color: var(--ink);
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-inline-size: 0;
}

.theme-picker legend {
  grid-column: 1 / -1;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 0;
}

.theme-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf8;
  cursor: pointer;
}

.admin-dark-preview .theme-option {
  background: #151310;
}

.theme-option input {
  grid-column: 2;
  grid-row: 1;
  width: 22px;
  min-height: 22px;
  margin-top: 4px;
}

.theme-option span {
  grid-column: 1;
  min-width: 0;
}

.theme-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.theme-option small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

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

.wide {
  grid-column: 1 / -1;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tab {
  background: transparent;
  border-bottom: 4px solid transparent;
  border-radius: 0;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.collection-item,
.notice-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  background: #fcfbf8;
}

.password-form {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

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

.remove-button {
  background: #f3d8d8;
  color: #7c1f1f;
  margin-top: 12px;
}

.sticky-save {
  position: sticky;
  bottom: 14px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.form-message {
  min-height: 26px;
  color: var(--accent-dark);
  font-weight: 800;
}

.warning {
  padding: 12px 14px;
  background: #fff0ca;
  border: 1px solid #e3c36d;
  border-radius: 6px;
  margin-bottom: 18px;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  background: #fcfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 32px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f0ece4;
}

.admin-dark-preview th,
body.theme-dark th {
  background: #2c2823;
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

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

  .hero,
  .split,
  .form-grid,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    height: 360px;
    min-height: 300px;
    order: 1;
  }

  .hero-copy {
    order: 2;
    padding: 28px 18px 36px;
  }

  .collection-grid,
  .metric-row,
  .theme-picker {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
  }

  .button,
  button,
  .hero-actions a,
  .admin-actions a {
    width: 100%;
  }

  .slider-button {
    width: 48px;
    min-height: 48px;
  }
}
