:root {
  --paper: #fbfaf6;
  --ivory: #f6f0e7;
  --champagne: #e9dcc8;
  --rose: #d7aaa2;
  --sage: #9bab8d;
  --sage-dark: #465649;
  --ink: #27312a;
  --muted: #6f766d;
  --line: #e4ded2;
  --white: #ffffff;
  --danger: #a64b43;
  --shadow: 0 20px 50px rgba(51, 61, 48, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(228, 222, 210, 0.9);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

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

.brand strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand strong span {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.footer-brand strong {
  font-size: 21px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--sage-dark);
  font-size: 14px;
}

.nav a:not(.button):hover {
  color: var(--ink);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--sage-dark);
}

.app-shell {
  min-height: calc(100vh - 240px);
}

.section {
  padding: clamp(12px, 1.9vw, 25px) clamp(18px, 4vw, 54px);
}

.section-tight {
  padding-top: 6px;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-hero-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(330px, 44vh, 460px);
  padding-top: clamp(18px, 4.2vw, 56px);
  padding-bottom: clamp(7px, 1.24vw, 16px);
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
}

.hero-backdrop::before,
.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
}

.hero-backdrop::before {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.08) 0%, rgba(251, 250, 246, 0.56) 48%, var(--paper) 82%, var(--paper) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.3) 42%, rgba(251, 250, 246, 0.18) 72%);
}

.hero-backdrop::after {
  top: auto;
  bottom: 0;
  height: 46%;
  background: var(--paper);
}

.hero-backdrop img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.82) contrast(0.94);
  transform: scale(1.02);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.58) 58%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.58) 58%, transparent 78%);
}

.home-categories-section {
  padding-top: 2px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  align-items: center;
  min-height: auto;
  text-align: center;
}

.hero-copy {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(4px, 1.2vw, 14px) clamp(14px, 3vw, 34px);
  transform: translateY(clamp(-34px, -3vw, -18px));
}

.eyebrow {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-inline: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.3vw, 39px);
  font-weight: 500;
}

.hero h1 {
  max-width: 1040px;
  font-size: clamp(34px, 4.35vw, 56px);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 500;
}

h3 {
  font-size: 15px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 690px;
  margin-inline: auto;
  margin-top: 10px;
  font-size: clamp(16px, 1.6vw, 19px);
}

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

.hero-actions {
  justify-content: center;
  margin-top: 138px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  background: var(--sage-dark);
  color: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

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

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

.button-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--sage-dark);
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.hero-note {
  max-width: 600px;
  margin: 10px auto 0;
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: min(640px, 100%);
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero-counter {
  position: relative;
  display: inline-grid;
  margin-top: 18px;
  width: min(720px, 100%);
  min-height: 238px;
  overflow: hidden;
  padding: 78px 68px 28px;
  border-radius: 8px;
  color: var(--sage-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  place-items: center;
  text-align: center;
}

.counter-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 430px;
}

.counter-panel strong {
  display: inline-grid;
  min-width: 128px;
  min-height: 82px;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(251, 250, 246, 0.84) 0%, rgba(251, 250, 246, 0.58) 56%, rgba(251, 250, 246, 0) 78%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.95;
}

.counter-panel span {
  display: block;
  max-width: 420px;
  padding: 8px 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(251, 250, 246, 0.76) 0%, rgba(251, 250, 246, 0.48) 62%, rgba(251, 250, 246, 0) 84%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--muted);
  line-height: 1.4;
}

.counter-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.counter-bubbles span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: var(--bubble-h, 28px);
  padding: 0 var(--bubble-x, 11px);
  border: 1px solid rgba(155, 171, 141, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(70, 86, 73, 0.72);
  font-size: var(--bubble-size, 12px);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(51, 61, 48, 0.07);
}

.counter-bubbles span:nth-child(1) {
  --bubble-h: 32px;
  --bubble-x: 15px;
  --bubble-size: 15px;
  left: 76px;
  top: 54px;
}

.counter-bubbles span:nth-child(2) {
  --bubble-h: 42px;
  --bubble-x: 18px;
  --bubble-size: 16px;
  left: 190px;
  top: 10px;
}

.counter-bubbles span:nth-child(3) {
  --bubble-h: 30px;
  --bubble-x: 12px;
  --bubble-size: 12px;
  left: 306px;
  top: 22px;
}

.counter-bubbles span:nth-child(4) {
  --bubble-h: 46px;
  --bubble-x: 20px;
  --bubble-size: 17px;
  right: 82px;
  top: 48px;
}

.counter-bubbles span:nth-child(5) {
  --bubble-h: 28px;
  --bubble-x: 11px;
  --bubble-size: 12px;
  left: 142px;
  top: 92px;
}

.counter-bubbles span:nth-child(6) {
  --bubble-h: 38px;
  --bubble-x: 17px;
  --bubble-size: 15px;
  right: 136px;
  top: 94px;
}

.counter-bubbles span:nth-child(7) {
  --bubble-h: 26px;
  --bubble-x: 10px;
  --bubble-size: 11px;
  left: 52px;
  top: 118px;
}

.counter-bubbles span:nth-child(8) {
  --bubble-h: 30px;
  --bubble-x: 12px;
  --bubble-size: 12px;
  right: 54px;
  top: 118px;
}

.counter-bubbles span:nth-child(9) {
  --bubble-h: 28px;
  --bubble-x: 12px;
  --bubble-size: 12px;
  left: 238px;
  top: 84px;
}

.counter-bubbles span:nth-child(10) {
  --bubble-h: 34px;
  --bubble-x: 14px;
  --bubble-size: 13px;
  right: 214px;
  top: 42px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.input,
.select {
  height: 46px;
  padding: 0 14px;
}

.textarea {
  min-height: 128px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(155, 171, 141, 0.2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-head p {
  max-width: 560px;
  margin: 5px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.category-card,
.step-card,
.article-card,
.product-card,
.info-panel,
.admin-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.category-card,
.step-card,
.info-panel,
.admin-panel,
.form-card {
  padding: 22px;
}

.category-card {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--white), var(--ivory));
  color: var(--sage-dark);
  font-weight: 800;
}

.category-card:hover {
  border-color: rgba(155, 171, 141, 0.72);
  transform: translateY(-1px);
}

.category-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--sage-dark);
}

.category-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--sage-dark);
  font-weight: 800;
}

.product-card,
.article-card {
  overflow: hidden;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.product-card:hover img,
.article-card:hover img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.pill-available {
  background: #e9f0e4;
}

.pill-reserved {
  background: #f3e8d3;
}

.pill-sold {
  background: #eee7e3;
  color: var(--muted);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 800;
}

.quick-filter:hover,
.quick-filter.is-active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: var(--paper);
}

.price {
  color: var(--sage-dark);
  font-size: 20px;
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(190px, 1.35fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.related-results {
  margin-top: clamp(26px, 4vw, 44px);
}

.page-hero {
  padding: 46px clamp(18px, 4vw, 54px) 28px;
  background: var(--ivory);
  text-align: center;
}

.page-hero .lead {
  max-width: 820px;
  margin-inline: auto;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ivory);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 8px;
  object-fit: cover;
}

.detail-panel {
  position: sticky;
  top: 96px;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.spec span:first-child {
  color: var(--muted);
}

.process-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
}

.process-panel h2 {
  margin-top: 8px;
}

.process-flow {
  display: grid;
  gap: 0;
  margin-top: 26px;
  margin-bottom: 28px;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  min-height: 100px;
  padding-bottom: 20px;
}

.process-step:last-child {
  min-height: 82px;
  padding-bottom: 0;
}

.process-step:not(:last-child)::after {
  position: absolute;
  top: 50px;
  left: 20px;
  width: 2px;
  height: calc(100% - 48px);
  background-image: radial-gradient(circle, rgba(70, 86, 73, 0.42) 1.6px, transparent 1.8px);
  background-size: 2px 9px;
  content: "";
}

.process-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(155, 171, 141, 0.72);
  border-radius: 50%;
  background: var(--paper);
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 0 7px var(--white);
}

.process-step strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.process-step p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.compact-process .process-flow {
  margin-top: 22px;
  margin-bottom: 0;
}

.compact-process .process-step {
  min-height: 88px;
  padding-bottom: 18px;
}

.compact-process .process-step:last-child {
  min-height: 66px;
}

.compact-process .process-step strong {
  font-size: 17px;
}

.process-cta {
  align-self: center;
  margin-top: auto;
}

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

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

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce8d2;
  border-radius: 8px;
  background: #f0f6eb;
  color: var(--sage-dark);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  align-self: start;
}

.admin-sidebar button {
  justify-content: flex-start;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 26px;
  align-items: center;
  padding: 36px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.footer-links,
.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-note {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .product-detail,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .home-hero-section {
    min-height: 400px;
    padding-top: 28px;
    padding-bottom: 11px;
  }

  .hero-backdrop {
    height: 100%;
  }

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

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

  .detail-panel,
  .admin-sidebar {
    position: static;
  }

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

  .footer-note {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    right: 18px;
    top: 70px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .search-band {
    grid-template-columns: 1fr;
  }

  .home-hero-section {
    min-height: 480px;
    padding-top: 22px;
    padding-bottom: 9px;
  }

  .hero-backdrop {
    height: 100%;
  }

  .hero-backdrop::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.24) 0%, rgba(251, 250, 246, 0.78) 40%, var(--paper) 72%, var(--paper) 100%),
      radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.42) 50%, rgba(251, 250, 246, 0.24) 78%);
  }

  .hero-copy {
    padding-inline: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-counter {
    width: 100%;
    min-height: 190px;
    padding-inline: 18px;
  }

  .counter-panel {
    padding-inline: 20px;
  }

  .counter-bubbles span:nth-child(1),
  .counter-bubbles span:nth-child(2),
  .counter-bubbles span:nth-child(5),
  .counter-bubbles span:nth-child(6),
  .counter-bubbles span:nth-child(7),
  .counter-bubbles span:nth-child(8),
  .counter-bubbles span:nth-child(9),
  .counter-bubbles span:nth-child(10) {
    display: none;
  }

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

  .process-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    min-height: 104px;
    padding-bottom: 22px;
  }

  .process-step > span {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: 0 0 0 6px var(--white);
  }

  .process-step:not(:last-child)::after {
    top: 44px;
    left: 17px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .site-header {
    min-height: 68px;
  }
}
