:root {
  --rose: #d6a22a;
  --rose-deep: #0a0a08;
  --gold: #d4a02a;
  --beige: #f3e4a3;
  --cream: #fffaf0;
  --ink: #11100c;
  --muted: #6b6250;
  --line: #e2d3a8;
  --white: #ffffff;
  --success: #2f684e;
  --danger: #8f2f2f;
  --shadow: 0 18px 44px rgba(17, 16, 12, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--rose-deep);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 98px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 240, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.brand strong {
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 92px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a {
  white-space: nowrap;
  line-height: 1.1;
}

.main-nav a:hover {
  color: var(--rose-deep);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn.primary {
  color: var(--white);
  background: var(--rose-deep);
}

.nav-admin,
.btn.admin-orange {
  color: var(--ink) !important;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
}

.nav-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.btn.light {
  color: var(--rose-deep);
  background: var(--white);
  border-color: var(--line);
}

.btn:hover,
.nav-cta:hover,
.nav-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 160, 42, 0.24);
}

.btn.tiny {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.86rem;
}

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

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 10px;
  color: var(--white);
  background: var(--gold);
  font-size: 0.75rem;
}

.alert-count {
  background: var(--danger);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #b9e3c8;
  border-radius: 999px;
  color: var(--success);
  background: #eef9f2;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.online-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 rgba(47, 104, 78, 0.5);
  animation: onlinePulse 1.2s infinite;
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 104, 78, 0.5);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(47, 104, 78, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 104, 78, 0);
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 92px) clamp(18px, 6vw, 82px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)),
    url("../../images/home-sauvage.jpg") center/cover no-repeat;
}

.hero-content {
  max-width: 660px;
  color: var(--white);
}

.hero h1,
.page-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero p {
  max-width: 570px;
  font-size: 1.15rem;
}

.hero-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 6vw, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.trust-strip article {
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.96);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--rose-deep);
  font-size: 0.98rem;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.status-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modified-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: #7b5a12;
  background: #fff7e6;
}

.modified-note {
  padding: 10px 12px;
  border: 1px solid #f0d08b;
  border-radius: 8px;
  color: #7b5a12;
  background: #fff7e6;
}

.edit-order-items {
  display: grid;
  gap: 12px;
}

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

.user-edit-form {
  max-width: 760px;
  margin-bottom: 22px;
}

.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.65fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: start;
  margin-bottom: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.security-panel h2 {
  margin: 8px 0 10px;
}

.security-panel p {
  margin: 0;
  color: var(--muted);
}

.password-change-status {
  margin-top: 14px !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink) !important;
  font-weight: 700;
}

.password-change-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-security-panel {
  margin: 22px 0 28px;
}

.products-summary {
  min-width: 180px;
  max-width: 320px;
  line-height: 1.45;
  color: var(--text);
}

.orders-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.orders-grid.expanded {
  grid-template-columns: 1fr;
}

.orders-grid.expanded .order-box {
  display: none;
}

.orders-grid.expanded table {
  min-width: 1120px;
}

.orders-grid.expanded .products-summary {
  max-width: 520px;
}

.stock-tool {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1fr) 150px auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stock-tool h2 {
  margin: 0 0 4px;
  color: var(--rose-deep);
  font-size: 1.25rem;
}

.stock-tool p {
  margin: 0;
  color: var(--muted);
}

.stock-tool label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.stock-tool select,
.stock-tool input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
}

.agent-profile {
  max-width: 860px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.agent-profile h2 {
  margin: 0 0 18px;
  color: var(--rose-deep);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.agent-profile dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.agent-profile dl div {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.agent-profile dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  justify-content: center;
  gap: 16px;
}

.agent-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.agent-photo {
  height: 100%;
  min-height: 240px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #f8edc2;
}

.agent-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.agent-card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.agent-card-body > span {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gold);
  background: #fff5cf;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.agent-card-body h2 {
  margin: 0;
  color: var(--rose-deep);
  font-size: 1.12rem;
  line-height: 1.15;
}

.agent-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.agent-card-body dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
}

.agent-card-body dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.agent-card-body dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-card-body dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-agents-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin: 22px 0;
}

.agent-admin-list {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.agent-admin-list h2 {
  margin: 0 0 14px;
  color: var(--rose-deep);
}

.agent-admin-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.agent-admin-list article:first-of-type {
  border-top: 0;
}

.agent-admin-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #b9e3c8;
  border-radius: 8px;
  color: var(--success);
  background: #eef9f2;
}

.admin-alert.warning {
  border-color: #f0d08b;
  color: #7b5a12;
  background: #fff7e6;
}

.admin-alert.notice {
  border-color: #dbc28e;
  color: #6f4f1f;
  background: #fff5cf;
}

.admin-alert p {
  margin: 4px 0 0;
  color: inherit;
}

.print-page {
  color: var(--ink);
  background: var(--white);
}

.print-report {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 28px;
  color: var(--ink);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-height: 100vh;
}

.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-brand h1 {
  margin: 0 0 6px;
  color: var(--rose-deep);
}

.invoice-brand p,
.invoice-company-address,
.invoice-meta p {
  margin: 0;
  color: var(--muted);
}

.invoice-tax-number {
  font-size: 1.08rem;
  font-weight: 700;
}

.invoice-company-address {
  margin-bottom: 18px;
}

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.invoice-meta article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.invoice-meta strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.print-head,
.print-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.print-head {
  margin-bottom: 22px;
}

.print-head h1 {
  margin: 0 0 6px;
}

.print-head p {
  margin: 0;
  color: var(--muted);
}

.print-stats {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.global-report-stats {
  flex-wrap: wrap;
}

.print-stats article {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.print-stats span {
  display: block;
  color: var(--muted);
}

.print-table {
  width: 100%;
}

.invoice-products {
  break-inside: avoid;
  page-break-inside: avoid;
}

.invoice-signature {
  display: grid;
  justify-items: end;
  gap: 8px;
  margin-top: 26px;
}

.invoice-signature span {
  color: var(--muted);
  font-weight: 800;
}

.invoice-signature img {
  width: 180px;
  max-height: 78px;
  object-fit: contain;
}

.signature-line {
  width: 190px;
  border-bottom: 1px solid var(--ink);
}

.signature-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.signature-preview img {
  width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.invoice-total-row th {
  text-align: right;
}

.invoice-template-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.invoice-company-block {
  display: grid;
  gap: 10px;
}

.invoice-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.invoice-company-block h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.15;
}

.invoice-company-block p,
.invoice-number-block p,
.invoice-billed-block p {
  margin: 0;
  color: var(--ink);
}

.invoice-company-block a,
.invoice-billed-block a {
  color: #1f5fbf;
  text-decoration: underline;
}

.invoice-number-block {
  display: grid;
  gap: 14px;
  justify-items: end;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.invoice-number-block > strong {
  font-size: 1rem;
}

.invoice-number-block p {
  color: var(--ink);
}

.invoice-number-block span {
  display: inline-block;
  min-width: 56px;
  text-align: right;
}

.invoice-billed-block,
.invoice-products,
.invoice-signature-block {
  margin-top: 34px;
}

.invoice-billed-block h2,
.invoice-products h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1rem;
}

.invoice-billed-block {
  display: grid;
  gap: 5px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

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

.invoice-table thead th {
  background: #f3ead1;
  font-weight: 900;
}

.invoice-table td:nth-child(2),
.invoice-table td:nth-child(3),
.invoice-table td:nth-child(4),
.invoice-table th:nth-child(2),
.invoice-table th:nth-child(3),
.invoice-table th:nth-child(4) {
  text-align: right;
}

.invoice-table tbody th {
  text-align: right;
}

.invoice-table .invoice-total-row th,
.invoice-table .invoice-total-row td {
  font-size: 1.05rem;
  font-weight: 900;
}

.invoice-signature-block {
  display: flex;
  justify-content: flex-end;
}

.invoice-signature-block > div {
  display: grid;
  gap: 34px;
  width: min(260px, 100%);
  color: var(--ink);
  font-weight: 800;
}

.invoice-signature-line {
  border-bottom: 1px solid var(--ink);
}

.invoice-footer strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.invoice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  color: var(--muted);
}

.invoice-footer p {
  margin: 0;
}

.price-stack {
  display: grid;
  gap: 3px;
  align-items: start;
}

.price-stack.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.price-stack del {
  color: var(--muted);
  font-size: 0.85rem;
}

.promo-badge,
.promo-inline {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--danger);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.promo-inline {
  display: inline-flex;
  margin: 0 4px;
  vertical-align: middle;
}

.promo-linked-product {
  display: inline-block;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: var(--beige);
  font-size: 0.78rem;
  font-weight: 800;
}

@media print {
  @page {
    margin: 0;
  }

  .no-print {
    display: none !important;
  }

  body,
  .print-page {
    color: var(--ink);
    background: var(--white);
    font-size: 12px;
    line-height: 1.35;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-report {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 10mm;
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
  }

  .invoice-head {
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    break-inside: avoid;
  }

  .invoice-brand {
    gap: 10px;
  }

  .invoice-brand .brand-logo {
    width: 58px;
    max-height: 44px;
  }

  .invoice-brand h1 {
    margin-bottom: 2px;
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .invoice-brand p,
  .invoice-company-address,
  .invoice-meta p {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .invoice-tax-number {
    font-size: 0.92rem !important;
  }

  .invoice-company-address {
    margin-bottom: 8px;
  }

  .invoice-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
    break-inside: avoid;
  }

  .invoice-meta article,
  .print-stats article {
    min-width: 0;
    padding: 7px 8px;
  }

  .invoice-meta span,
  .print-stats span {
    font-size: 0.68rem;
  }

  .invoice-meta strong,
  .print-stats strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .print-stats {
    gap: 7px;
    margin-bottom: 10px;
    break-inside: avoid;
  }

  .invoice-products {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .invoice-signature {
    gap: 5px;
    margin-top: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .invoice-signature img {
    width: 140px;
    max-height: 58px;
  }

  .signature-line {
    width: 150px;
  }

  .invoice-products table,
  .invoice-products thead,
  .invoice-products tbody,
  .invoice-products tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-table {
    min-width: 0;
    font-size: 0.82rem;
  }

  .print-table th,
  .print-table td {
    padding: 7px 9px;
  }

  .print-stats article,
  th,
  td {
    border-color: var(--line);
  }

  .invoice-template-head {
    gap: 18px;
  }

  .invoice-logo {
    width: 58px;
    height: 58px;
  }

  .invoice-company-block h1 {
    font-size: 1.45rem;
  }

  .invoice-number-block {
    gap: 10px;
    font-size: 1rem;
  }

  .invoice-billed-block,
  .invoice-products,
  .invoice-signature-block {
    margin-top: 22px;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 8px 7px;
  }

  .invoice-footer strong {
    font-size: 1.15rem;
  }
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 82px);
}

.section.compact {
  padding-top: 36px;
}

.legal-copy {
  max-width: 920px;
  margin: 0 auto;
}

.legal-copy h2 {
  margin: 24px 0 8px;
  color: var(--rose-deep);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.legal-copy p {
  margin: 0 0 12px;
}

.intro,
.section-heading,
.checkout-grid,
.contact-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.admin-grid.orders-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.admin-content-main,
.admin-content-side {
  display: grid;
  gap: 22px;
}

.admin-content-side {
  max-width: 760px;
}

.section.orders-grid {
  padding-left: clamp(12px, 3vw, 42px);
  padding-right: clamp(12px, 3vw, 42px);
}

.section-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 24px;
}

.about-copy {
  display: grid;
  gap: 14px;
  max-width: 780px;
  color: #1b1710;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.78;
  font-weight: 450;
}

.about-copy p,
.about-copy ul {
  margin: 0;
}

.about-copy ul {
  display: grid;
  gap: 7px;
  padding-left: 0;
  list-style: none;
}

.about-copy li {
  position: relative;
  padding-left: 20px;
}

.about-copy li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.about-copy strong {
  color: var(--rose-deep);
  font-weight: 800;
  letter-spacing: 0;
}

.section.intro h2 {
  max-width: 520px;
  color: var(--rose-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
}

.section h2,
.order-box h2,
.admin-form h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.page-head {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 6vw, 82px) 28px;
  background: var(--beige);
}

.admin-head {
  background: #f7f1ec;
}

.product-grid,
.promo-grid,
.testimonial-grid,
.treatment-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.promotions-section {
  background: #f8edc2;
}

.promotions-section .promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card,
.treatment-card,
.promo-card,
.order-box,
.auth-panel,
.admin-form,
.stats-grid article,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  transition: transform 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--beige);
}

.product-image img,
.detail-image img,
.cart-item img,
.thumb {
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-info span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-info h3 {
  margin: 6px 0;
  line-height: 1.2;
}

.product-info p {
  color: var(--muted);
  min-height: 54px;
  margin: 0 0 14px;
}

.stock-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.stock-badge.available {
  color: var(--success);
  background: #eef9f2;
}

.stock-badge.empty {
  color: var(--danger);
  background: #fff1f2;
}

.product-bottom,
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.multi-product-toolbar,
.multi-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.multi-product-toolbar div {
  display: grid;
  gap: 2px;
}

.multi-product-toolbar strong {
  color: var(--rose-deep);
}

.multi-product-toolbar span {
  color: var(--muted);
  font-size: 0.92rem;
}

.multi-product-footer {
  justify-content: flex-end;
}

.product-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rose-deep);
  background: #fff8f3;
  font-weight: 800;
  cursor: pointer;
}

.product-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-deep);
}

.product-select:has(input:checked) {
  color: var(--white);
  border-color: var(--rose-deep);
  background: var(--rose-deep);
}

.product-quantity-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-quantity-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-quantity-row input {
  width: 88px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--white);
}

.product-quantity-row small {
  color: var(--muted);
  font-weight: 700;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose);
  cursor: pointer;
  font-size: 1.3rem;
}

.promo-card,
.stats-grid article,
.success-panel {
  padding: 20px;
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.promo-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(12px, 2vw, 24px);
  background: #f8edc2;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.promo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
  border: 0;
  margin: 0;
}

.promo-content {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: clamp(22px, 3vw, 34px);
}

.promo-content p,
.promo-content h3 {
  margin: 0;
}

.promo-card strong,
.stats-grid strong,
.price {
  color: var(--rose-deep);
  font-size: 1.6rem;
}

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

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

.treatment-card {
  overflow: hidden;
}

.treatment-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--beige);
  cursor: zoom-in;
  outline: none;
}

.treatment-media img,
.treatment-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-media:focus-visible {
  box-shadow: inset 0 0 0 3px var(--gold);
}

.treatment-media::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(10, 10, 8, 0.78);
  font-size: 1.2rem;
  font-weight: 800;
  content: "+";
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.treatment-media:hover::after,
.treatment-media:focus-visible::after {
  opacity: 1;
  transform: scale(1.04);
}

.treatment-body {
  padding: 16px;
}

.treatment-body h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}

.treatment-body p {
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.treatment-viewer {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 34px);
}

.treatment-viewer[hidden] {
  display: none;
}

.treatment-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.76);
}

.treatment-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.treatment-viewer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.treatment-viewer-toolbar strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.treatment-viewer-toolbar p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.treatment-viewer-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}

.treatment-viewer-controls button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  font-weight: 800;
}

.treatment-viewer-controls button:hover,
.treatment-viewer-controls button:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.treatment-viewer-media {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #11100c;
}

.treatment-viewer-media img,
.treatment-viewer-media video {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 8px;
  transform-origin: center center;
  transition: transform 0.16s ease;
}

.treatment-actions form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rose-deep);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  border-color: var(--rose);
  box-shadow: 0 8px 18px rgba(212, 160, 42, 0.16);
}

.reaction-btn.active {
  color: var(--white);
  border-color: var(--rose-deep);
  background: var(--rose-deep);
}

.reaction-btn span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--beige);
  font-size: 0.78rem;
  font-weight: 900;
}

.reaction-btn.active span {
  color: var(--rose-deep);
  background: var(--white);
}

.treatment-share {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.treatment-share span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #111111;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.whatsapp svg {
  width: 20px;
  height: 20px;
  display: block;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(38, 30, 34, 0.16);
}

.treatment-comments {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.treatment-comments p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.client-comment {
  display: grid;
  gap: 6px;
}

.client-comment .link-danger {
  justify-self: start;
  padding: 0;
  font-size: 0.86rem;
}

.public-admin-reply {
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #fff5cf;
}

.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.comment-form textarea {
  min-height: 88px;
  font-size: 0.94rem;
}

.comment-form .btn {
  justify-self: start;
  min-width: 120px;
}

.treatment-admin-list {
  display: grid;
  gap: 18px;
  margin: 20px 0 28px;
}

.admin-interactions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.admin-interactions h4 {
  margin: 4px 0 0;
  color: var(--rose-deep);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.admin-interaction-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-interaction-row strong,
.admin-interaction-row span,
.admin-interaction-row small {
  display: block;
}

.admin-interaction-row span,
.admin-interaction-row small {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-interaction-row p {
  margin: 6px 0;
  color: var(--ink);
}

.admin-reply {
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #fff5cf;
}

.admin-interaction-actions,
.admin-reply-form {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-reply-form textarea {
  width: 100%;
  min-height: 78px;
  font-size: 0.9rem;
}

.admin-reply-form .btn,
.admin-interaction-actions > form:not(.admin-reply-form) .btn {
  justify-self: start;
  min-width: 130px;
}

.admin-content-layout .compact-card {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.admin-content-layout .treatment-media {
  min-height: 260px;
}

.admin-content-layout .treatment-body {
  display: grid;
  gap: 8px;
}

.admin-content-side {
  position: static;
}

.compact-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

blockquote {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 8px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  margin-bottom: 24px;
}

.form,
.admin-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(212, 160, 42, 0.2);
  border-color: var(--gold);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.product-select:focus-within {
  outline: 3px solid rgba(212, 160, 42, 0.28);
  outline-offset: 3px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 7vw, 80px) clamp(18px, 6vw, 82px);
}

.detail-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-content p {
  color: var(--muted);
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.inline-form label {
  width: 120px;
}

.stock,
.muted {
  color: var(--muted);
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 110px 130px auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-item img,
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.cart-summary {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: var(--beige);
}

.link-danger {
  border: 0;
  color: var(--danger);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.order-box {
  padding: 20px;
}

.order-box p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a,
.contact-links p {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  color: var(--rose-deep);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
}

.contact-details {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-details h2 {
  margin: 0 0 16px;
  color: var(--rose-deep);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.contact-details dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-details dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-weight: 900;
}

.contact-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-details a {
  color: var(--rose-deep);
  text-decoration: none;
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
}

.auth-panel {
  position: relative;
  align-self: center;
  isolation: isolate;
  overflow: hidden;
  margin: 32px clamp(18px, 5vw, 72px);
  padding: clamp(24px, 4vw, 42px);
  animation: authPanelIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center left;
}

.auth-panel::before {
  position: absolute;
  inset: -45% auto auto -45%;
  z-index: -1;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 42, 0.22), transparent 62%);
  animation: authGlow 6s ease-in-out infinite;
  content: "";
}

.auth-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(212, 160, 42, 0.28);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.auth-panel .eyebrow,
.auth-panel h1,
.auth-panel > p,
.auth-panel .form label,
.auth-panel .muted,
.auth-panel .btn {
  animation: authItemIn 0.55s ease both;
}

.auth-panel .eyebrow {
  animation-delay: 0.06s;
}

.auth-panel h1 {
  animation-delay: 0.12s;
}

.auth-panel > p {
  animation-delay: 0.18s;
}

.auth-panel .form label:nth-child(2) {
  animation-delay: 0.24s;
}

.auth-panel .form label:nth-child(3) {
  animation-delay: 0.3s;
}

.auth-panel .btn {
  position: relative;
  overflow: hidden;
  animation-delay: 0.36s;
}

.auth-panel .muted {
  animation-delay: 0.42s;
}

.auth-panel .btn::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  content: "";
}

.auth-panel .btn:hover::before {
  transform: translateX(120%);
}

.auth-panel input {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.auth-panel input:focus {
  border-color: var(--gold);
  background: #fffdf7;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 160, 42, 0.2);
}

.auth-panel .btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(10, 10, 8, 0.2);
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authItemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translate(34px, 28px) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel,
  .auth-panel::before,
  .auth-panel .eyebrow,
  .auth-panel h1,
  .auth-panel > p,
  .auth-panel .form label,
  .auth-panel .muted,
  .auth-panel .btn {
    animation: none;
  }

  .auth-panel .btn::before {
    display: none;
  }
}

.auth-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--rose-deep);
}

.auth-visual.register {
  background: var(--rose-deep);
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: var(--rose-deep);
}

.auth-visual img.active {
  opacity: 1;
}

.auth-slides-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.auth-slides-preview label {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.auth-slides-preview img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.form-errors,
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 14px clamp(18px, 6vw, 82px);
}

.form-errors {
  margin: 0;
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #ffd1d7;
}

.form-errors p {
  margin: 0;
}

.flash-success {
  background: #eef9f2;
  border: 1px solid #b9e3c8;
  color: var(--success);
}

.flash-warning {
  background: #fff7e6;
  border: 1px solid #f0d08b;
  color: #7b5a12;
}

.flash-danger {
  background: #fff1f2;
  border: 1px solid #ffd1d7;
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: clamp(14px, 4vw, 34px);
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 16, 12, 0.18);
  pointer-events: auto;
  animation: toast-in 0.22s ease both;
}

.toast.closing {
  animation: toast-out 0.18s ease both;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.toast-body {
  min-width: 0;
}

.toast-body strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.92rem;
}

.toast-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.toast-close:hover,
.toast-close:focus-visible {
  color: var(--ink);
  background: #f5ecd2;
  outline: none;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-success .toast-icon {
  background: var(--success);
}

.toast-warning {
  border-left-color: #c2871a;
}

.toast-warning .toast-icon {
  background: #c2871a;
}

.toast-danger {
  border-left-color: var(--danger);
}

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

.toast-notice {
  border-left-color: #386f8f;
}

.toast-notice .toast-icon {
  background: #386f8f;
}

.cookie-alert {
  position: fixed;
  left: clamp(14px, 4vw, 34px);
  bottom: 18px;
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(620px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 16, 12, 0.18);
}

.cookie-alert[hidden] {
  display: none;
}

.cookie-alert div {
  min-width: 0;
}

.cookie-alert strong {
  display: block;
  margin-bottom: 2px;
}

.cookie-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.cookie-alert .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pagination a.active {
  color: var(--white);
  background: var(--rose-deep);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.orders-grid table {
  min-width: 1180px;
}

.orders-grid .products-summary {
  min-width: 300px;
  max-width: 560px;
}

.orders-grid .order-box {
  max-width: 760px;
}

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

th {
  color: var(--muted);
  background: #f8edc2;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: var(--beige);
  font-size: 0.84rem;
  font-weight: 800;
}

.warning-status {
  color: #7b5a12;
  background: #fff7e6;
}

.success-status {
  color: var(--success);
  background: #eef9f2;
}

.danger-status {
  color: var(--danger);
  background: #fff1f2;
}

.muted-line {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stats-grid {
  margin-bottom: 28px;
}

.stats-grid article span {
  display: block;
  color: var(--muted);
}

.admin-form {
  padding: 20px;
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 82px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  color: #f3e8bf;
}

.site-footer a {
  color: #f7d772;
  margin-right: 12px;
}

.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--ink) !important;
  background: var(--gold);
  font-weight: 900;
}

.footer-legal {
  display: grid;
  gap: 4px;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.ai-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}

.ai-chat-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 38%, rgba(247, 215, 114, 0.22), transparent 34%),
    linear-gradient(145deg, #15120b, #050504);
  box-shadow: 0 14px 34px rgba(38, 30, 34, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.ai-chat-toggle::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(212, 160, 42, 0.48);
  border-radius: 50%;
  animation: aiAvatarPulse 1.8s ease-in-out infinite;
  content: "";
}

.ai-avatar,
.ai-panel-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247, 215, 114, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(247, 215, 114, 0.28), transparent 32%),
    linear-gradient(145deg, #1b160d, #050504);
  box-shadow: inset 0 0 18px rgba(212, 160, 42, 0.16);
}

.ai-panel-avatar {
  width: 38px;
  height: 38px;
}

.ai-avatar::before,
.ai-panel-avatar::before {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(247, 215, 114, 0.78);
  border-radius: 9px 9px 7px 7px;
  background: rgba(255, 250, 240, 0.08);
  content: "";
}

.ai-avatar::after,
.ai-panel-avatar::after {
  position: absolute;
  top: 5px;
  width: 1px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 -3px 0 1px rgba(247, 215, 114, 0.65);
  content: "";
}

.ai-avatar-eye {
  position: absolute;
  top: 12px;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f7d772;
  box-shadow: 0 0 7px rgba(247, 215, 114, 0.8);
}

.ai-avatar-eye.left {
  left: 14px;
}

.ai-avatar-eye.right {
  right: 14px;
}

.ai-avatar-core {
  position: absolute;
  bottom: 9px;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 215, 114, 0.72);
  box-shadow: 0 0 9px rgba(247, 215, 114, 0.42);
}

@keyframes aiAvatarPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(38, 30, 34, 0.2);
}

.ai-chat.open .ai-chat-panel {
  display: block;
}

.ai-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  color: var(--white);
  background: var(--rose-deep);
}

.ai-chat-panel header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.ai-chat-panel header strong,
.ai-chat-panel header span {
  display: block;
}

.ai-chat-panel header span {
  color: #f3dbe4;
  font-size: 0.78rem;
}

.ai-chat-panel header button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.ai-chat-messages {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 14px;
  background: #fffaf0;
}

.ai-message {
  max-width: 88%;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ai-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.ai-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--rose-deep);
}

.ai-chat-suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
  scrollbar-width: thin;
}

.ai-chat-suggestions button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(122, 45, 75, 0.25);
  border-radius: 20px;
  padding: 5px 9px;
  color: var(--rose-deep);
  background: #fff7fa;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.ai-chat-suggestions button:hover,
.ai-chat-suggestions button:focus-visible {
  color: var(--white);
  background: var(--rose-deep);
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.ai-chat-form input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.ai-chat-form button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: var(--rose-deep);
  cursor: pointer;
  font-weight: 800;
}

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

  .promo-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-grid,
  .checkout-grid,
  .contact-grid,
  .security-panel,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

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

  .admin-content-side {
    position: static;
  }

  .admin-content-layout .compact-card,
  .admin-interaction-row,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 260px;
    order: -1;
  }
}

@media (max-width: 760px) {
  .print-report {
    width: 100%;
    padding: 22px 14px;
    border: 0;
  }

  .invoice-template-head {
    grid-template-columns: 1fr;
  }

  .invoice-number-block {
    justify-items: start;
  }

  .invoice-number-block span {
    min-width: 48px;
    text-align: left;
  }

  .invoice-products {
    overflow-x: auto;
  }

  .invoice-table {
    min-width: 560px;
  }

  .treatment-viewer {
    padding: 10px;
  }

  .treatment-viewer-panel {
    max-height: calc(100vh - 20px);
  }

  .treatment-viewer-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .treatment-viewer-controls {
    justify-content: stretch;
  }

  .treatment-viewer-controls button {
    flex: 1 1 0;
  }

  .treatment-viewer-media {
    padding: 10px;
  }

  .treatment-viewer-media img,
  .treatment-viewer-media video {
    max-height: calc(100vh - 280px);
  }

  .toast-stack {
    top: 84px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .toast {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    padding: 11px;
  }

  .cookie-alert {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }

  .cookie-alert .btn {
    width: 100%;
  }

  .site-header {
    min-height: 76px;
    padding: 8px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 78px;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    align-items: stretch;
  }

  .main-nav.open .online-badge {
    justify-self: start;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-logo {
    width: 58px;
    max-height: 44px;
  }

  .hero {
    min-height: 68vh;
    padding: 36px 18px;
    background-position: center;
  }

  .page-head,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro,
  .section-heading,
  .filters,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .promo-grid,
  .testimonial-grid,
  .treatment-grid,
  .stats-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .trust-strip article {
    min-height: auto;
    padding: 16px;
  }

  .stock-tool {
    grid-template-columns: 1fr;
  }

  .admin-agents-panel,
  .agent-admin-list article {
    grid-template-columns: 1fr;
  }

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

  .agent-card {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 210px;
  }

  .agent-photo {
    min-height: 210px;
  }

  .agent-card-body dl {
    grid-template-columns: 1fr;
  }

  .contact-details dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .agent-profile dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .promo-card {
    grid-template-columns: 1fr;
  }

  .promo-media {
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .promo-image {
    max-height: 100%;
  }

  .compact-card {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item input,
  .cart-item strong,
  .cart-item button {
    grid-column: 1 / -1;
  }

  .cart-summary,
  .hero-actions,
  .multi-product-toolbar,
  .multi-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .invoice-head,
  .invoice-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .inline-form,
  .status-form,
  .table-actions,
  .page-actions,
  .treatment-actions form {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .nav-cta,
  .reaction-btn,
  .table-actions form,
  .status-form button,
  .inline-form .btn {
    width: 100%;
  }

  .ai-chat {
    right: 12px;
    bottom: 12px;
  }

  .ai-chat-toggle {
    width: 52px;
    height: 52px;
  }

  .admin-content-layout .treatment-media {
    min-height: 190px;
  }

  .admin-interactions,
  .admin-interaction-row {
    padding: 10px;
  }

  .auth-panel {
    margin: 18px 14px;
    padding: 22px;
  }

  .auth-visual {
    min-height: 220px;
  }

  table {
    min-width: 680px;
  }

  .orders-grid table {
    min-width: 980px;
  }

  .page-head h1,
  .hero h1 {
    font-size: clamp(2.2rem, 16vw, 4.2rem);
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .hero h1,
  .page-head h1 {
    font-size: clamp(2rem, 15vw, 3.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .product-card,
  .treatment-card,
  .promo-card,
  .order-box,
  .auth-panel,
  .admin-form,
  .success-panel {
    border-radius: 8px;
  }

  .print-report {
    padding: 16px;
  }
}
