﻿:root {
  --bg: #f4f7f8;
  --bg-soft: #fbfdfd;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --panel-soft: #eef6f5;
  --line: #d8e5e2;
  --line-strong: #bfd2cd;
  --text: #163233;
  --muted: #607476;
  --primary: #147a6c;
  --primary-dark: #0f5e54;
  --primary-soft: #dff3ef;
  --accent: #ef8f2f;
  --accent-soft: #fff1e1;
  --success-bg: #e8f7ef;
  --success-text: #13653f;
  --error-bg: #fff0f0;
  --error-text: #a33232;
  --warning-bg: #fff7e7;
  --warning-text: #8a5b00;
  --info-bg: #eef6ff;
  --info-text: #23558d;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 24px rgba(16, 38, 36, 0.08);
  --shadow: 0 22px 48px rgba(16, 38, 36, 0.10);
  --shadow-lg: 0 28px 70px rgba(16, 38, 36, 0.14);
  --shell-width: 1180px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 122, 108, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(239, 143, 47, 0.12), transparent 20%),
    linear-gradient(180deg, #f9fcfc 0%, var(--bg) 100%);
}

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

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

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

code {
  background: #eef4f4;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.9rem;
}

.site-shell {
  min-height: 100vh;
}

.shell {
  width: min(var(--shell-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(248, 251, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(191, 210, 205, 0.92);
  box-shadow: 0 12px 28px rgba(16, 38, 36, 0.08);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #2aa794);
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
  margin-top: 4px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-navigation {
  min-width: 0;
}

.site-navigation-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.site-navigation-inner-client {
  gap: 0.75rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.menu-staff {
  gap: 0.25rem;
}

.menu-client {
  gap: 0.2rem;
}

.nav-link,
.nav-link-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-client .nav-link {
  min-height: 38px;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link-client-subtle {
  color: #587072;
  background: transparent;
  box-shadow: none;
}

.nav-link-client-subtle:hover,
.nav-link-client-subtle:focus-visible,
.nav-link-client-subtle.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.nav-link-client-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #1d917f);
  box-shadow: 0 10px 22px rgba(20, 122, 108, 0.18);
}

.nav-link-client-cta:hover,
.nav-link-client-cta:focus-visible,
.nav-link-client-cta.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 12px 26px rgba(20, 122, 108, 0.22);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.nav-link-summary:hover,
.nav-link-summary:focus-visible,
.nav-link-summary.is-active,
.menu-group[open] > .nav-link-summary {
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.nav-link-summary {
  list-style: none;
  cursor: pointer;
}

.nav-link-summary::-webkit-details-marker {
  display: none;
}

.nav-link-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.menu-group[open] > .nav-link-summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.menu-group {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  display: grid;
  gap: 0.25rem;
  padding: 0.6rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.menu-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.menu-dropdown-link:hover,
.menu-dropdown-link:focus-visible,
.menu-dropdown-link.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-meta-client {
  gap: 0.45rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.profile-chip-client {
  gap: 0.45rem;
  padding: 0.38rem 0.58rem 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(191, 210, 205, 0.75);
  box-shadow: none;
}

.profile-chip-name {
  font-weight: 700;
}

.profile-chip-client .profile-chip-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #40585a;
}

.profile-chip-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a560c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-chip-role-client {
  min-height: 22px;
  padding: 0.05rem 0.42rem;
  background: rgba(239, 143, 47, 0.12);
  color: #8a560c;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.client-logout-btn {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.client-logout-btn:hover,
.client-logout-btn:focus-visible {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.82);
}

.nav-logout,
.quick-cta {
  margin: 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible,
.nav-pill.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.page-main {
  padding-top: calc(var(--header-height) + 1.6rem);
  padding-bottom: 2.6rem;
}

.content-shell {
  display: grid;
  gap: 1rem;
}

.surface {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 229, 226, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
button.btn:hover,
button.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e8f0ef;
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #dce8e5;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-danger {
  background: #b42318;
  color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #8f1c14;
}

.btn-sm,
button.btn-sm {
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
}

.alert-stack {
  display: grid;
  gap: 0.85rem;
}

.alert {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: #b9e5ca;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: #f2b4b4;
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: #f3db99;
}

.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: #c6ddfb;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.page-head h1,
.page-head h2,
.page-head h3 {
  margin: 0;
  line-height: 1.1;
}

.page-lead {
  color: var(--muted);
  margin: 0.45rem 0 0;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 122, 108, 0.1);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-block {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.section-band {
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 247, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.section-band-accent {
  background:
    radial-gradient(circle at top right, rgba(239, 143, 47, 0.16), transparent 22%),
    linear-gradient(180deg, #ffffff, #f5faf8);
}

.section-heading,
.section-split {
  display: grid;
  gap: 1rem;
}

.section-split {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
}

.section-heading h2,
.section-split h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
}

.section-text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.customer-hero,
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
}

.customer-hero-copy,
.customer-hero-panel,
.auth-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.customer-hero-copy {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at top right, rgba(239, 143, 47, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(20, 122, 108, 0.08), rgba(255, 255, 255, 0.96));
}

.customer-hero-copy h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.customer-hero-panel,
.auth-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.hero-inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-inline-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 122, 108, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
}

.journey-list {
  display: grid;
  gap: 0.85rem;
}

.journey-list article {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
  border: 1px solid var(--line);
}

.journey-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

.journey-list p,
.compact-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card-main {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.auth-card-side {
  background:
    radial-gradient(circle at top left, rgba(20, 122, 108, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #f8fbfb);
}

.auth-debug-box {
  display: grid;
  gap: 0.4rem;
}

.otp-code-input {
  font-size: 1.2rem;
  letter-spacing: 0.35rem;
  text-align: center;
}

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

.showcase-grid {
  align-items: stretch;
}

.product-showcase-card {
  display: grid;
  gap: 0.6rem;
}

.showcase-thumb {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfb, #edf5f4);
  padding: 0.8rem;
}

.store-message-band {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fffdf7, #fff7e7);
  border-color: #f3db99;
}

.store-message-band strong {
  color: #8a5b00;
}

.compact-note {
  gap: 0.45rem;
  padding: 1rem;
}

.hero-cover,
.hero-side-card {
  border-radius: 28px;
  overflow: hidden;
}

.hero-cover {
  position: relative;
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(8, 46, 42, 0.15), rgba(8, 46, 42, 0.12)),
    url("../images/home/hero-bg.png") center center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(9, 46, 43, 0.78), rgba(15, 85, 72, 0.58)),
    linear-gradient(180deg, rgba(8, 32, 31, 0.18), rgba(8, 32, 31, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  color: #ffffff;
}

.hero-content h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1;
}

.hero-text {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-content .btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-content .btn-secondary:hover,
.hero-content .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.hero-content .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-content .btn-ghost:hover,
.hero-content .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-highlight {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.hero-highlight strong {
  font-size: 0.98rem;
}

.hero-highlight span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-side-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-side-card h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.hero-side-list {
  display: grid;
  gap: 0.9rem;
}

.hero-side-list div {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
  border: 1px solid var(--line);
}

.hero-side-list strong {
  display: block;
  margin-bottom: 0.3rem;
}

.hero-side-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-side-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-side-cta::after {
  content: "->";
}

.feature-grid,
.mini-card-grid,
.card-grid,
.summary-grid,
.detail-grid,
.appointment-grid,
.slot-grid,
.stats-row,
.filter-grid,
.appointment-meta,
.kv-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.mini-card,
.section-card,
.appointment-card,
.data-card,
.stat-card,
.shop-card,
.order-card,
.product-media,
.product-summary,
.form-card,
.cta-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-card,
.mini-card,
.section-card,
.appointment-card,
.stat-card,
.product-summary,
.form-card,
.cta-panel,
.order-card {
  padding: 1.15rem;
}

.feature-card h3,
.mini-card strong {
  margin: 0 0 0.5rem;
}

.feature-card p,
.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.cta-panel {
  display: grid;
  gap: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 122, 108, 0.12);
}

.staff-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge-success {
  background: #def5e6;
  color: #166534;
}

.badge-neutral {
  background: #eef3f8;
  color: #546578;
}

.card-media-frame,
.media-frame,
.product-detail-media-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(20, 122, 108, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbfb, #edf5f4);
  border: 1px solid rgba(216, 229, 226, 0.9);
}

.card-media-inline {
  align-self: start;
}

.media-thumb {
  display: grid;
  place-items: center;
}

.media-thumb--product {
  width: 112px;
  min-width: 112px;
  height: 112px;
  border-radius: 18px;
}

.media-thumb--pet {
  width: 112px;
  min-width: 112px;
  height: 112px;
  border-radius: 18px;
}

.media-frame-thumb {
  width: 104px;
  min-width: 104px;
  height: 104px;
  border-radius: 18px;
}

.media-frame-mini {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: 16px;
}

.media-frame-preview {
  margin-top: 0.75rem;
  width: min(220px, 100%);
  min-height: 180px;
}

.product-detail-media {
  overflow: visible;
}

.product-detail-media-frame {
  min-height: 300px;
  max-height: 360px;
  padding: 1rem;
}

.product-detail-image {
  width: min(100%, 300px);
  max-height: 240px;
  object-fit: contain;
  object-position: center;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: center;
}

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

.data-card {
  overflow: hidden;
}

.pet-card,
.product-card {
  padding: 1rem;
}

.pet-card-inline,
.store-card-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pet-card-body,
.product-card-body {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 0;
}

.pet-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pet-card-header h3,
.product-card-title {
  margin: 0;
}

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

.pet-card-actions,
.shop-card-actions {
  margin-top: 0.15rem;
}

.pet-photo,
.shop-card-photo,
.product-photo,
.line-thumb,
.thumb-preview,
.pet-thumb {
  width: 100%;
  height: 100%;
}

.pet-photo-contained,
.shop-card-photo-contained,
.product-photo-contained,
.line-thumb-contained {
  object-fit: contain;
  object-position: center;
}

.pet-photo-placeholder,
.shop-card-photo-placeholder,
.product-photo-placeholder,
.line-thumb-placeholder {
  color: var(--primary-dark);
  font-weight: 700;
}

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

.catalog-grid {
  margin-top: 1rem;
  align-items: stretch;
}

.catalog-toolbar {
  margin-bottom: 0.25rem;
}

.catalog-filters {
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
}

.catalog-empty {
  margin-top: 1rem;
}

.product-card-meta {
  display: grid;
  gap: 0.55rem;
}

.product-card-info {
  display: grid;
  gap: 0.35rem;
}

.product-card-title {
  font-size: 1.12rem;
  line-height: 1.35;
}

.shop-card-price,
.line-total {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.product-detail-layout {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.product-detail-summary {
  display: grid;
  gap: 0.9rem;
}

.product-detail-badge {
  width: fit-content;
  margin-top: 0.1rem;
}

.product-detail-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.product-detail-price {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.product-detail-copy {
  display: grid;
  gap: 0.15rem;
}

.qty-field {
  max-width: 150px;
}

.meta-list {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-list strong {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
}

table.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf2f2;
}

.data-table th {
  background: #f8fbfb;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr:hover {
  background: #fbfdfd;
}

.form-card {
  max-width: 860px;
}

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

.field,
.field-full {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #cfd9d7;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(20, 122, 108, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 122, 108, 0.12);
}

.field-help {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-actions,
.toolbar,
.appointment-card-header,
.appointment-card-footer,
.table-actions,
.inline-form,
.shop-card-actions,
.order-card-meta,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar,
.appointment-card-header,
.inline-form {
  justify-content: space-between;
}

.table-actions,
.appointment-card-footer,
.shop-card-actions,
.order-card-meta {
  justify-content: flex-start;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.appointment-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff, #f6fbfb);
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.45rem;
}

.appointment-card {
  display: grid;
  gap: 1rem;
}

.appointment-meta,
.kv-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.appointment-meta div,
.kv-item {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #f8fbfb;
  border: 1px solid #e6efed;
}

.appointment-meta strong,
.kv-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge {
  border: 1px solid transparent;
  text-transform: uppercase;
}

.status-badge-pending,
.status-badge-awaiting_payment {
  background: #fff7e7;
  color: #8a5b00;
  border-color: #f3db99;
}

.status-badge-confirmed,
.status-badge-separating {
  background: #e9f4ff;
  color: #23558d;
  border-color: #c6ddfb;
}

.status-badge-in_service,
.status-badge-paid {
  background: #e8f7ef;
  color: #13653f;
  border-color: #b9e5ca;
}

.status-badge-done {
  background: #def5e6;
  color: #166534;
  border-color: #b7e6c6;
}

.status-badge-canceled {
  background: #fff0f0;
  color: #a33232;
  border-color: #f2b4b4;
}

.status-badge-no_show,
.status-badge-ready {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

.status-badge-delivered {
  background: #e0f2fe;
  color: #0f4c81;
  border-color: #bae6fd;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inline-form {
  margin: 0;
}

.inline-form select {
  min-width: 160px;
}

.empty-state {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed #cad8d6;
  background: linear-gradient(180deg, #fbfdfd, #f1f6f5);
  color: var(--muted);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 1rem;
}

.slot-option {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.slot-option:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 122, 108, 0.32);
}

.slot-option.is-current {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfefc, #f3fbf7);
}

.slot-option input {
  width: auto;
  margin: 0;
  box-shadow: none;
}

.slot-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.slot-option-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.product-hero,
.cart-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.product-media,
.product-summary {
  overflow: hidden;
}

.purchase-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.4rem;
}

.cart-page-layout {
  gap: 1.2rem;
}

.cart-list {
  gap: 0.9rem;
}

.cart-item,
.order-line {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: auto minmax(0, 1.3fr) auto auto auto;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
}

.order-line {
  grid-template-columns: auto minmax(0, 1fr) auto;
  box-shadow: none;
  border-radius: 18px;
}

.cart-card {
  align-items: center;
}

.cart-item-content {
  min-width: 0;
}

.cart-item-meta {
  margin-top: 0.25rem;
}

.cart-item-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-item-form input {
  width: 78px;
}

.cart-line-total {
  font-size: 1.2rem;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.cart-summary-card,
.checkout-summary {
  display: grid;
  gap: 1rem;
}

.cart-summary-actions,
.checkout-totals {
  margin-top: 0.25rem;
}

.order-items {
  display: grid;
  gap: 0.85rem;
}

.thumb-preview {
  object-fit: contain;
  padding: 0.6rem;
}

.pet-thumb {
  object-fit: contain;
}

@media (max-width: 1100px) {
  .site-header-inner {
    grid-template-columns: auto auto;
  }

  .site-navigation {
    grid-column: 1 / -1;
  }

  .site-navigation-inner {
    justify-content: space-between;
  }

  .home-hero,
  .customer-hero,
  .auth-shell,
  .section-split,
  .product-hero,
  .cart-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

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

  .feature-grid-compact,
  .mini-card-grid,
  .hero-highlights,
  .pet-card-meta {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    min-height: 500px;
  }

  .product-detail-media-frame {
    min-height: 280px;
    max-height: 320px;
  }

  .product-detail-image {
    max-height: 220px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(var(--shell-width), calc(100% - 1rem));
  }

  .brand-copy span {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-navigation {
    display: none;
    width: 100%;
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation-inner {
    display: grid;
    gap: 1rem;
    padding-top: 0.25rem;
  }

  .menu,
  .nav-meta {
    width: 100%;
    justify-content: stretch;
  }

  .menu {
    display: grid;
    gap: 0.45rem;
  }

  .menu-client {
    gap: 0.45rem;
  }

  .nav-link,
  .nav-link-summary,
  .nav-pill,
  .btn,
  button.btn {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-group {
    width: 100%;
  }

  .menu-dropdown {
    position: static;
    min-width: 0;
    margin-top: 0.55rem;
    box-shadow: none;
    background: #f8fbfb;
  }

  .nav-meta {
    display: grid;
    gap: 0.75rem;
    margin-left: 0;
  }

  .profile-chip {
    width: 100%;
    justify-content: space-between;
  }

  .hero-cover {
    min-height: 460px;
    background-position: center center;
  }

  .hero-content h1 {
    max-width: none;
  }

  .pet-card-inline,
  .store-card-inline {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-media-frame {
    min-height: 260px;
    max-height: 300px;
  }

  .product-detail-image {
    width: min(100%, 260px);
    max-height: 200px;
  }
}

@media (max-width: 720px) {
  .page-main {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1.5rem;
  }

  .surface {
    padding: 1rem;
    border-radius: 22px;
  }

  .form-grid,
  .feature-grid,
  .feature-grid-compact,
  .mini-card-grid,
  .filter-grid,
  .detail-grid,
  .summary-grid,
  .appointment-grid,
  .slot-grid,
  .appointment-meta,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .hero-cover,
  .hero-side-card,
  .section-band {
    border-radius: 22px;
  }

  .hero-cover {
    min-height: 420px;
    background-position: center top;
  }

  .hero-content,
  .hero-side-card,
  .section-band {
    padding: 1.15rem;
  }

  .hero-actions,
  .form-actions,
  .table-actions,
  .shop-card-actions,
  .order-card-meta,
  .inline-form,
  .cart-item-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form select,
  .inline-form button,
  .nav-pill,
  .form-actions .btn,
  .form-actions a,
  .table-actions .btn,
  .table-actions a,
  .cart-item-form input,
  .cart-item-form button {
    width: 100%;
  }

  .media-thumb--product,
  .media-thumb--pet,
  .media-frame-thumb,
  .media-frame-mini {
    width: 88px;
    min-width: 88px;
    height: 88px;
  }

  .pet-card-inline,
  .store-card-inline {
    grid-template-columns: 1fr;
  }

  .card-media-inline {
    width: 100%;
  }

  .media-thumb--product,
  .media-thumb--pet {
    width: 100%;
    min-width: 0;
    height: 120px;
  }

  .product-detail-media-frame {
    min-height: 220px;
    max-height: 260px;
    padding: 0.85rem;
  }

  .product-detail-image {
    width: min(100%, 220px);
    max-height: 170px;
  }

  .cart-item,
  .order-line {
    grid-template-columns: 1fr;
  }

  .store-message-band {
    align-items: flex-start;
  }

  .table-wrap {
    margin-inline: -0.15rem;
  }
}
