/*
 * Final premium UI layer
 * Loaded after styles.css so existing functionality stays intact.
 */

:root {
  --premium-plum: #4a1638;
  --premium-plum-dark: #2b0b20;
  --premium-plum-soft: #6d3458;
  --premium-gold: #c88956;
  --premium-gold-light: #f2c49a;
  --premium-cream: #fffaf7;
  --premium-surface: rgba(255, 255, 255, .9);
  --premium-border: rgba(74, 22, 56, .12);
  --premium-shadow: 0 24px 70px rgba(47, 11, 34, .12);
  --premium-shadow-soft: 0 14px 36px rgba(47, 11, 34, .09);
  --premium-radius-xl: 30px;
  --premium-radius-lg: 22px;
  --premium-radius-md: 16px;
  --container: min(calc(100% - 40px), 1380px);
}

html {
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.public-menu-open,
body.customer-menu-open,
body.admin-menu-open {
  overflow: hidden;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(200, 137, 86, .46);
  outline-offset: 3px;
}

.skip-link {
  left: 18px;
  top: 18px;
  z-index: 1000;
}

.site-shell {
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 255, 255, .94), transparent 31rem),
    radial-gradient(circle at 90% 12%, rgba(244, 213, 200, .56), transparent 34rem),
    linear-gradient(145deg, #fffaf7, #fff1e9 56%, #f7dcd6);
}

.container {
  width: var(--container);
}

/* Public navigation */
.topbar {
  border-bottom: 1px solid rgba(74, 22, 56, .075);
  background: rgba(255, 251, 248, .9);
  box-shadow: 0 10px 34px rgba(47, 11, 34, .055);
  backdrop-filter: blur(24px) saturate(150%);
}

.nav {
  min-height: 76px;
  gap: 18px;
}

.brand {
  flex: 0 1 auto;
}

.brand-mark {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.brand-name {
  font-size: 1.02rem;
}

.brand-tagline {
  font-size: .62rem;
  letter-spacing: .11em;
}

.nav-links {
  gap: 2px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 11px;
  font-size: .83rem;
  transition: color .18s ease, background .18s ease;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--premium-plum);
  background: rgba(74, 22, 56, .07);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(74, 22, 56, .06);
}

.open-status {
  padding: 8px 11px;
  border: 1px solid rgba(74, 22, 56, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  white-space: nowrap;
}

.nav-actions .button-small {
  min-height: 42px;
}

/* Buttons and fields */
.button,
.button-small {
  isolation: isolate;
}

.button {
  min-height: 54px;
  border-radius: 16px;
}

.button-small {
  min-height: 42px;
}

.button-primary {
  background: linear-gradient(135deg, #4a1638, #672b50);
  box-shadow: 0 15px 30px rgba(74, 22, 56, .2);
}

.button-light {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 22px rgba(47, 11, 34, .04);
}

.button:hover,
.button-small:hover {
  transform: translateY(-2px);
}

input,
select,
textarea {
  min-width: 0;
}

.form-field input,
.form-field select,
.form-field textarea,
.filter-bar input,
.filter-bar select {
  border-color: rgba(74, 22, 56, .14);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(47, 11, 34, .025);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(200, 137, 86, .9);
  box-shadow: 0 0 0 4px rgba(200, 137, 86, .13);
}

/* Home hero */
.hero {
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  min-height: auto;
  gap: clamp(34px, 5vw, 78px);
  padding-block: clamp(44px, 6.5vw, 86px) clamp(58px, 7vw, 96px);
}

.hero.container {
  border-radius: 0;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.4rem, 5.8vw, 6rem);
  line-height: .92;
}

.hero-copy {
  max-width: 610px;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}

.hero-frame {
  border-radius: 28px;
  transform: none;
}

.hero-frame:hover {
  transform: translateY(-5px);
}

.hero-frame img {
  aspect-ratio: 5 / 4;
}

.hero-badge {
  right: 18px;
  bottom: 18px;
  max-width: 245px;
  border-radius: 17px;
}

.hero-points {
  max-width: 620px;
}

.mobile-booking-strip {
  border-radius: 22px;
}

/* General sections */
.section {
  padding-block: clamp(64px, 7vw, 94px);
}

.section-heading {
  gap: clamp(24px, 4vw, 56px);
}

.section-title {
  max-width: 820px;
  font-size: clamp(2.45rem, 4vw, 4.35rem);
  line-height: .98;
}

.section-copy,
.page-intro {
  line-height: 1.7;
}

.special-card,
.offer-card,
.promise-card,
.database-service-card,
.product-card,
.therapist-card,
.auth-card,
.booking-card,
.content-card {
  border-color: var(--premium-border);
  box-shadow: var(--premium-shadow-soft);
}

.special-card:hover,
.database-service-card:hover,
.product-card:hover,
.therapist-card:hover {
  box-shadow: var(--premium-shadow);
}

.special-media img,
.database-service-image img,
.product-card img,
.therapist-card img {
  transition: transform .55s ease;
}

.special-card:hover img,
.database-service-card:hover img,
.product-card:hover img,
.therapist-card:hover img {
  transform: scale(1.035);
}

/* Secondary page heroes */
.page-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(34px, 5vw, 74px);
  padding-block: clamp(46px, 6vw, 82px);
}

.page-title {
  max-width: 760px;
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  line-height: .92;
}

.page-hero-grid .hero-frame {
  min-height: 420px;
}

.page-hero-grid .hero-frame img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.filter-bar {
  position: sticky;
  z-index: 20;
  top: 92px;
  border-color: rgba(74, 22, 56, .1);
  background: rgba(255, 251, 248, .92);
  box-shadow: 0 18px 45px rgba(47, 11, 34, .08);
  backdrop-filter: blur(18px);
}

.service-category-section {
  scroll-margin-top: 170px;
}

.service-category-header h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
}

.database-service-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
}

.database-service-image {
  min-height: 245px;
}

.database-service-image img {
  height: 100%;
  min-height: 245px;
}

.database-service-content {
  padding: 24px;
}

.database-service-content h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
}

.card-actions {
  margin-top: auto;
}

/* Treatment detail */
.service-detail-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(38px, 5.5vw, 78px) clamp(72px, 8vw, 110px);
}

.service-detail-image {
  position: sticky;
  top: 102px;
  min-height: 620px;
  border-radius: 30px;
  box-shadow: var(--premium-shadow);
}

.service-detail-image img {
  min-height: 620px;
  object-fit: cover;
}

.service-detail-summary {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--premium-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(14px);
}

.service-detail-summary .page-title {
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
}

.service-detail-summary .page-intro {
  margin-top: 20px;
}

.service-booking-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(74, 22, 56, .1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 245, 239, .94), rgba(255, 255, 255, .98));
}

.service-booking-panel .price-large {
  margin: 0;
}

.service-booking-panel .hero-actions {
  margin-top: 0;
}

.service-booking-panel .button {
  flex: 1 1 210px;
}

.service-detail-content {
  margin-top: 22px;
}

.detail-section {
  padding: 22px 0;
}

.detail-section + .detail-section {
  border-top: 1px solid rgba(74, 22, 56, .08);
}

.detail-section h2 {
  margin-top: 0;
}

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

.detail-list li {
  border: 1px solid rgba(74, 22, 56, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
}

.warning-panel {
  border-radius: 18px;
}

/* Authentication and booking */
.auth-shell {
  min-height: calc(100vh - 76px);
  padding-block: clamp(42px, 6vw, 82px);
}

.auth-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--premium-shadow);
}

.auth-card h1 {
  font-size: clamp(2.45rem, 4.5vw, 4rem);
  line-height: .98;
}

.booking-form {
  gap: 16px;
}

.form-field label {
  letter-spacing: .01em;
}

.form-help {
  line-height: 1.45;
}

.auth-progress span {
  min-width: 0;
}

.otp-code-input {
  letter-spacing: .34em;
}

/* Customer area */
.customer-sidebar {
  width: 278px;
  padding: 22px 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.11), transparent 18rem),
    linear-gradient(180deg, #3a102d, #260718);
}

.customer-app-workspace {
  margin-left: 278px;
}

.customer-sidebar-nav a {
  min-height: 48px;
}

.customer-main-content {
  padding-top: 38px;
}

.customer-mobilebar,
.public-admin-mobilebar {
  box-shadow: 0 8px 26px rgba(47, 11, 34, .08);
}

/* Floating actions */
.floating-contact {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 20px 46px rgba(47, 11, 34, .24);
}

/* Footer */
.footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.08), transparent 20rem),
    linear-gradient(135deg, #351024, #220716);
}

.footer-grid {
  gap: clamp(32px, 5vw, 78px);
}

/* Admin preview on public pages */
.public-admin-sidebar {
  width: 278px;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.1), transparent 18rem),
    linear-gradient(180deg, #3a102d, #260718);
}

.public-admin-workspace {
  width: calc(100% - 278px);
  margin-left: 278px;
}

.public-admin-nav a,
.public-admin-footer a {
  min-height: 44px;
}

.public-admin-preview-context {
  background: rgba(255,255,255,.08);
}

/* Broken-image protection */
img.is-image-fallback {
  object-position: center;
}

/* Tablet */
@media (max-width: 1180px) {
  :root {
    --container: min(calc(100% - 32px), 1380px);
  }

  .nav-links {
    position: fixed;
    z-index: 150;
    top: 82px;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 13px;
    border: 1px solid rgba(74, 22, 56, .12);
    border-radius: 20px;
    background: rgba(255, 251, 248, .98);
    box-shadow: 0 24px 70px rgba(47, 11, 34, .2);
    backdrop-filter: blur(24px);
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(74, 22, 56, .07);
    background: rgba(255, 255, 255, .68);
  }

  .menu-toggle {
    display: grid;
  }

  .open-status {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 6vw, 5.25rem);
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(350px, 1.05fr);
  }

  .service-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  }

  .service-detail-image,
  .service-detail-image img {
    min-height: 540px;
  }

  .public-admin-workspace {
    width: 100%;
    margin-left: 0;
  }
}

/* Mobile and compact tablet */
@media (max-width: 820px) {
  :root {
    --container: min(calc(100% - 24px), 1380px);
  }

  html {
    scroll-padding-top: 78px;
  }

  .nav {
    min-height: 68px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-actions > .button-small {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    top: 75px;
    right: 12px;
    left: 12px;
  }

  .nav-links.open {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding-block: 34px 66px;
  }

  .hero > div:first-child {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .hero h1 {
    max-width: 580px;
    font-size: clamp(3.05rem, 12vw, 4.8rem);
  }

  .hero-copy {
    margin-top: 20px;
  }

  .hero-frame img {
    aspect-ratio: 4 / 3;
  }

  .hero-badge {
    right: 12px;
    bottom: 12px;
    max-width: min(250px, calc(100% - 24px));
  }

  .page-hero-grid {
    gap: 28px;
    padding-block: 36px 52px;
  }

  .page-title {
    font-size: clamp(2.85rem, 11vw, 4.7rem);
  }

  .page-hero-grid .hero-frame,
  .page-hero-grid .hero-frame img {
    min-height: 360px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filter-bar {
    top: 76px;
  }

  .service-detail-grid {
    padding-top: 24px;
  }

  .service-detail-image {
    position: relative;
    top: auto;
    min-height: 420px;
  }

  .service-detail-image img {
    min-height: 420px;
  }

  .service-detail-summary {
    padding: 24px;
  }

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

  .customer-app-workspace {
    margin-left: 0;
  }

  .customer-main-content {
    padding: 22px 12px 96px;
  }

  .floating-contact {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(calc(100% - 18px), 1380px);
  }

  .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .brand-name {
    max-width: 180px;
    font-size: .95rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.05rem);
  }

  .eyebrow {
    letter-spacing: .16em;
  }

  .hero-actions,
  .service-booking-panel .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .button-small,
  .service-booking-panel .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 9px;
  }

  .hero-frame,
  .service-detail-image,
  .service-detail-summary,
  .auth-card {
    border-radius: 22px;
  }

  .hero-badge {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -22px 12px 0;
  }

  .page-title,
  .service-detail-summary .page-title {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .page-hero-grid .hero-frame,
  .page-hero-grid .hero-frame img {
    min-height: 280px;
  }

  .database-service-image,
  .database-service-image img {
    min-height: 215px;
  }

  .database-service-content {
    padding: 20px;
  }

  .service-detail-image,
  .service-detail-image img {
    min-height: 330px;
  }

  .service-detail-summary {
    padding: 20px;
  }

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

  .auth-progress span {
    min-height: 38px;
  }

  .floating-contact a:not(:first-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Final mobile usability corrections found during screenshot review */
.service-detail-image {
  height: clamp(520px, 70vh, 760px);
  min-height: 0;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

@media (max-width: 820px) {
  .mobile-booking-strip {
    order: 3;
  }

  .service-detail-image {
    height: 300px;
    min-height: 300px;
  }

  .service-detail-image img {
    height: 300px;
    min-height: 300px;
  }

  .auth-progress span {
    justify-content: flex-start;
    padding: 8px 10px;
    font-size: .7rem;
  }

  .auth-progress b {
    flex: 0 0 25px;
    font-size: .75rem;
  }

  .home-page .quick-actions,
  .services-page .quick-actions,
  .auth-page .quick-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-progress {
    gap: 7px;
  }

  .auth-progress span {
    min-height: 44px;
  }
}

/* 2026 compact catalogue, product view and account recovery refinements */
.page-hero-grid,
.products-hero {
  max-width: 1280px;
}

.service-category-section {
  margin-bottom: 52px;
}

.service-category-header {
  margin-bottom: 18px;
}

.service-category-header h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
}

.service-card-list,
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.database-service-card,
.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(47, 11, 34, .075);
}

.database-service-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(47, 11, 34, .12);
}

.database-service-image,
.product-card-image {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.database-service-image img,
.product-card-image img {
  min-height: 0;
}

.database-service-content,
.product-card-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 17px;
}

.database-service-content .section-label,
.product-category {
  margin-bottom: 7px;
  font-size: .64rem;
}

.database-service-content h3,
.product-card h3 {
  font-size: clamp(1.22rem, 1.45vw, 1.48rem);
  line-height: 1.16;
}

.database-service-content p,
.product-card p {
  min-height: 0;
  margin: 8px 0 14px;
  font-size: .83rem;
  line-height: 1.52;
}

.database-service-price {
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  font-size: .76rem;
}

.product-card-footer {
  align-items: flex-start;
  margin-top: auto;
  margin-bottom: 13px;
}

.product-card-footer strong {
  font-size: 1rem;
}

.product-card .button-small,
.database-service-card .button-small {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .73rem;
}

.database-service-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
}

.product-detail-section {
  padding-top: clamp(30px, 4vw, 52px);
}

.product-detail-grid {
  width: min(100%, 1180px);
  margin-inline: auto;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 54px);
}

.product-detail-image {
  top: 94px;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(47, 11, 34, .12);
}

.product-detail-image img {
  max-height: 520px;
  aspect-ratio: 4 / 4.4;
}

.product-detail-copy h1 {
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: .98;
}

.product-detail-price {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.product-detail-copy .lead {
  margin: 14px 0;
  font-size: 1rem;
  line-height: 1.62;
}

.product-information-card {
  margin-top: 13px;
  padding: 15px;
  border-radius: 14px;
}

.product-information-card h2 {
  font-size: 1.28rem;
}

.product-detail-actions {
  margin-top: 18px;
}

.service-detail-grid {
  width: min(100%, 1180px);
  margin-inline: auto;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 54px);
}

.service-detail-image,
.service-detail-image img {
  min-height: 0;
  max-height: 570px;
}

.service-detail-image img {
  aspect-ratio: 4 / 5;
}

.service-detail-summary {
  padding: clamp(20px, 2.5vw, 30px);
  border-radius: 22px;
}

.service-detail-summary .page-title {
  font-size: clamp(2.35rem, 4vw, 4.15rem);
}

.detail-section {
  padding: 17px 0;
}

.detail-section h2 {
  font-size: 1.35rem;
}

.auth-shell {
  min-height: calc(100vh - 76px);
  align-items: center;
}

.auth-card {
  width: min(100%, 620px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 22px;
}

.auth-card-otp {
  width: min(100%, 760px);
}

.auth-card h1 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.auth-security-note {
  margin-top: 18px;
  border-radius: 13px;
}

.otp-code-input {
  min-height: 58px;
  font-size: 1.35rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .service-card-list,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .service-card-list,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-detail-image,
  .service-detail-image {
    position: relative;
    top: auto;
    max-width: 620px;
  }

  .product-detail-image img,
  .service-detail-image img {
    max-height: 520px;
  }
}

@media (max-width: 560px) {
  .service-card-list,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .database-service-card,
  .product-card {
    display: grid;
    grid-template-columns: minmax(116px, .72fr) minmax(0, 1.28fr);
    border-radius: 16px;
  }

  .database-service-image,
  .product-card-image {
    height: 100%;
    min-height: 158px;
    aspect-ratio: auto;
  }

  .database-service-content,
  .product-card-content {
    padding: 14px;
  }

  .database-service-content h3,
  .product-card h3 {
    font-size: 1.15rem;
  }

  .database-service-content p,
  .product-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .database-service-card .card-actions {
    grid-template-columns: 1fr;
  }

  .database-service-card .button-small:first-child {
    display: none;
  }

  .product-card-footer {
    display: grid;
    gap: 6px;
  }

  .product-card .stock {
    font-size: .58rem;
  }

  .product-detail-image img,
  .service-detail-image img {
    max-height: 390px;
    aspect-ratio: 4 / 3;
  }

  .product-detail-copy h1,
  .service-detail-summary .page-title {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }
}

.button.is-loading,
.button-small.is-loading {
  position: relative;
  padding-left: 44px;
  cursor: wait;
  opacity: .82;
}

.button.is-loading::before,
.button-small.is-loading::before {
  content: '';
  position: absolute;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: formSubmitSpin .7s linear infinite;
}

@keyframes formSubmitSpin {
  to { transform: rotate(360deg); }
}


/* Final compact catalogue, detail and accessibility refinements */
.skip-link {
  top: -120px !important;
  transform: none !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px !important;
}

.services-hero-compact,
.products-hero-compact {
  min-height: 0;
  padding-top: clamp(34px, 4vw, 58px);
  padding-bottom: clamp(34px, 4vw, 58px);
  gap: clamp(28px, 4vw, 54px);
}

.services-hero-compact {
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
}

.services-hero-compact .page-title,
.products-hero-compact h1 {
  max-width: 9.7ch;
  font-size: clamp(3rem, 5.1vw, 5.05rem);
  line-height: .94;
}

.services-hero-compact .page-intro,
.products-hero-compact .page-hero-copy {
  max-width: 620px;
  margin-top: 15px;
  font-size: .98rem;
  line-height: 1.68;
}

.services-hero-compact .hero-actions {
  margin-top: 20px;
}

.services-hero-compact .hero-frame,
.products-hero-compact .page-hero-media {
  border-radius: 24px;
}

.services-hero-compact .hero-frame img,
.products-hero-compact .page-hero-media img {
  width: 100%;
  height: clamp(300px, 29vw, 410px);
  object-fit: cover;
}

.catalog-section-compact {
  padding-top: clamp(30px, 4vw, 50px);
  padding-bottom: clamp(56px, 6vw, 82px);
}

.catalog-section-compact .filter-bar,
.catalog-section-compact .catalog-filter {
  margin-bottom: 24px;
}

.catalog-section-compact .service-category-section {
  margin-top: 31px;
}

.catalog-section-compact .service-category-header {
  margin-bottom: 15px;
}

.catalog-section-compact .service-category-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.product-detail-grid {
  width: min(100%, 1060px);
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(25px, 4vw, 48px);
}

.product-detail-image img {
  max-height: 445px;
  aspect-ratio: 4 / 4.25;
}

.product-detail-copy h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.65rem);
}

.product-detail-copy > p:not(.lead):not(.service-note) {
  font-size: .94rem;
  line-height: 1.66;
}

.product-detail-actions .button {
  min-height: 44px;
}

@media (max-width: 980px) {
  .services-hero-compact {
    grid-template-columns: 1fr 1fr;
  }

  .services-hero-compact .page-title,
  .products-hero-compact h1 {
    font-size: clamp(2.8rem, 6vw, 4.25rem);
  }
}

@media (max-width: 760px) {
  .services-hero-compact,
  .products-hero-compact {
    grid-template-columns: 1fr;
    padding-top: 22px;
    padding-bottom: 28px;
    gap: 24px;
  }

  .services-hero-compact .page-title,
  .products-hero-compact h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 3.65rem);
  }

  .services-hero-compact .hero-frame img,
  .products-hero-compact .page-hero-media img {
    height: clamp(220px, 66vw, 315px);
  }

  .catalog-section-compact {
    padding-top: 24px;
  }

  .catalog-section-compact .filter-bar,
  .catalog-section-compact .catalog-filter {
    margin-bottom: 18px;
  }

  .product-detail-grid {
    gap: 22px;
  }

  .product-detail-image {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .product-detail-image img {
    max-height: 330px;
    aspect-ratio: 4 / 3;
  }

  .product-detail-copy h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }
}

@media (max-width: 560px) {
  .services-hero-compact .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .services-hero-compact .hero-actions .button {
    width: 100%;
  }

  .catalog-section-compact .service-category-section {
    margin-top: 23px;
  }

  .catalog-section-compact .service-category-header {
    display: block;
  }

  .catalog-section-compact .service-category-header > p {
    margin-top: 6px;
    font-size: .82rem;
  }

  .product-detail-section {
    padding-top: 22px;
  }

  .product-detail-copy {
    padding-inline: 2px;
  }

  .product-information-card {
    padding: 13px;
  }
}

/* Product detail mobile layout correction */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail-copy {
    min-width: 0;
  }
}

/* Compact treatment preview and stronger home conversion hero */
.hero-conversion {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, calc(100dvh - 112px), 680px);
  margin-top: 16px;
  margin-bottom: 16px;
  padding: clamp(28px, 3.8vw, 50px);
  overflow: hidden;
  border: 1px solid rgba(74, 22, 56, .1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .96), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(244, 183, 178, .34), transparent 26rem),
    linear-gradient(145deg, rgba(255, 250, 247, .98), rgba(255, 232, 221, .9));
  box-shadow: 0 28px 78px rgba(47, 11, 34, .12);
}

.hero-conversion::before,
.hero-conversion::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(74, 22, 56, .08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-conversion::before {
  width: 330px;
  height: 330px;
  top: -230px;
  left: 36%;
  box-shadow: 0 0 0 30px rgba(74, 22, 56, .025), 0 0 0 64px rgba(74, 22, 56, .018);
}

.hero-conversion::after {
  width: 260px;
  height: 260px;
  right: -180px;
  bottom: -170px;
  box-shadow: 0 0 0 26px rgba(200, 137, 86, .05), 0 0 0 58px rgba(200, 137, 86, .025);
}

.hero-copy-panel {
  min-width: 0;
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.hero-status-row .eyebrow {
  margin-bottom: 0;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(74, 22, 56, .1);
  border-radius: 999px;
  color: var(--premium-plum);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 8px 20px rgba(47, 11, 34, .05);
  font-size: .74rem;
  font-weight: 900;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--premium-gold);
  box-shadow: 0 0 0 5px rgba(200, 137, 86, .14);
}

.hero-conversion h1 {
  max-width: 10.5ch;
  font-size: clamp(3.35rem, 5.35vw, 5.55rem);
}

.hero-conversion .gold-line {
  margin-top: 15px;
}

.hero-conversion .hero-copy {
  max-width: 575px;
  margin-top: 18px;
}

.hero-conversion .hero-actions {
  margin-top: 22px;
}

.hero-booking-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 21px;
}

.hero-booking-path > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(74, 22, 56, .09);
  border-radius: 15px;
  background: rgba(255, 255, 255, .64);
}

.hero-booking-path span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--white);
  background: var(--premium-plum);
  font-size: .67rem;
  font-weight: 950;
}

.hero-booking-path strong {
  min-width: 0;
  color: var(--premium-plum-dark);
  font-size: .76rem;
  line-height: 1.24;
}

.hero-conversion .hero-points {
  margin-top: 18px;
  font-size: .78rem;
}

.hero-conversion .hero-media {
  display: flex;
  align-items: stretch;
  height: clamp(430px, calc(100dvh - 190px), 570px);
}

.hero-conversion .hero-frame {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

.hero-conversion .hero-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-position: center;
}

.hero-image-tag {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 999px;
  color: var(--white);
  background: rgba(74, 22, 56, .72);
  box-shadow: 0 12px 28px rgba(47, 11, 34, .18);
  backdrop-filter: blur(12px);
  font-size: .74rem;
  font-weight: 900;
}

.hero-badge-label {
  display: block;
  margin-bottom: 5px;
  color: var(--premium-gold-light) !important;
  font-size: .66rem !important;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.modal-box {
  width: min(1120px, calc(100vw - 24px));
  height: min(748px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.modal-grid {
  grid-template-columns: minmax(360px, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 32px);
  height: 100%;
  padding: clamp(26px, 3.2vw, 42px);
}

.modal-picture {
  min-height: 0;
  height: 100%;
  border-radius: 24px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-right: 2px;
}

.modal-badge {
  align-self: flex-start;
  padding: 7px 10px;
  font-size: .65rem;
}

.modal-title {
  margin-top: 10px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: .94;
}

.modal-price {
  margin-top: 9px;
  font-size: clamp(2.1rem, 3.1vw, 3.1rem);
}

.modal-copy {
  margin-top: 10px;
  font-size: .91rem;
  line-height: 1.52;
}

.fact-list {
  gap: 8px;
  margin-top: 13px;
}

.fact {
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.fact-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-size: .86rem;
}

.fact-label {
  font-size: .61rem;
}

.fact-value {
  margin-top: 2px;
  font-size: .86rem;
  line-height: 1.32;
}

.modal-actions {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .82fr) minmax(0, .82fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.modal-actions .wide {
  grid-column: auto;
}

.modal-actions .button {
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: .78rem;
  white-space: nowrap;
}

@media (max-height: 700px) and (min-width: 900px) {
  .modal-box {
    height: calc(100dvh - 16px);
  }

  .modal-grid {
    padding: 22px 30px;
  }

  .modal-title {
    font-size: clamp(1.85rem, 3vw, 2.75rem);
  }

  .modal-copy {
    font-size: .84rem;
    line-height: 1.42;
  }

  .fact {
    padding-block: 8px;
  }

  .fact-value {
    font-size: .81rem;
  }
}

@media (max-width: 980px) and (min-width: 821px) {
  .hero-conversion {
    grid-template-columns: minmax(0, .95fr) minmax(370px, 1.05fr);
  }

  .hero-booking-path {
    grid-template-columns: 1fr;
  }

  .hero-booking-path > div {
    padding-block: 8px;
  }

  .modal-grid {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 820px) {
  .hero-conversion {
    min-height: 0;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 24px;
    border-radius: 28px;
  }

  .hero-status-row {
    align-items: flex-start;
  }

  .hero-status-pill {
    margin-top: 3px;
  }

  .hero-conversion .hero-media {
    height: clamp(330px, 78vw, 510px);
  }

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

  .modal {
    padding: 8px;
    align-items: end;
  }

  .modal-box {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 8px);
    overflow: auto;
    border-radius: 26px 26px 0 0;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 18px;
    padding: 56px 16px 20px;
  }

  .modal-picture {
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

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

@media (max-width: 620px) {
  .hero-conversion {
    padding: 20px;
  }

  .hero-status-row {
    display: grid;
    justify-content: start;
  }

  .hero-conversion h1 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .hero-booking-path {
    grid-template-columns: 1fr;
  }

  .hero-booking-path > div {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 8px 10px;
  }

  .hero-conversion .hero-media {
    height: clamp(290px, 92vw, 410px);
  }

  .hero-image-tag {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: .67rem;
  }

  .modal-picture {
    aspect-ratio: 4 / 3;
  }

  .modal-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

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

  .modal-actions .wide {
    grid-column: auto;
  }

  .modal-actions .button {
    width: 100%;
  }
}
