/* Beauty preset refinements. Loaded after beauty-chrome.css (generated) and only
   scoped to [data-theme-preset="beauty"]. Soft, rounded and calm where Barber is
   square and editorial. */
[data-theme-preset="beauty"] {
  --background: 10 50% 96%;
  --foreground: 328 19% 15%;
  --card: 340 100% 99%;
  --card-foreground: 328 19% 15%;
  --popover: 340 100% 99%;
  --popover-foreground: 328 19% 15%;
  --primary: 332 56% 39%;
  --primary-foreground: 340 100% 99%;
  --secondary: 340 52% 93%;
  --secondary-foreground: 328 19% 15%;
  --muted: 340 45% 94%;
  --muted-foreground: 328 10% 39%;
  --accent: 338 50% 91%;
  --accent-foreground: 328 19% 15%;
  --border: 343 35% 89%;
  --input: 340 25% 80%;
  --ring: 332 56% 39%;
  --destructive: 2 62% 42%;
  --destructive-foreground: 0 0% 100%;
  --radius: 0.9rem;
  --beauty-serif: var(--font-beauty-display), "Cormorant Garamond", Georgia,
    serif;
}

/* Type: serif for page and section titles, never for forms or numbers. */
[data-theme-preset="beauty"] main h1,
[data-theme-preset="beauty"] main h2 {
  font-family: var(--beauty-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

[data-theme-preset="beauty"] main h1 {
  line-height: 1.02;
}

[data-theme-preset="beauty"] .barber-page-heading h1,
[data-theme-preset="beauty"] .barber-auth-story-copy h2 {
  font-weight: 500;
}

[data-theme-preset="beauty"] .barber-page-heading > p,
[data-theme-preset="beauty"] .barber-profile-eyebrow {
  letter-spacing: 0.22em;
  font-weight: 600;
}

[data-theme-preset="beauty"] .barber-page-heading h1::first-line {
  font-style: normal;
}

/* Top bar and header */
[data-theme-preset="beauty"] [data-barber-topbar] {
  background: #2e1f27;
  color: #f6e2e8;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

[data-theme-preset="beauty"] [data-site-header] {
  background: rgb(248 241 234 / 0.92);
  backdrop-filter: blur(12px);
  border-color: #efdde3;
}

[data-theme-preset="beauty"] [data-site-navigation-bar] a,
[data-theme-preset="beauty"] [data-site-navigation-bar] button {
  position: relative;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2e1f27;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

[data-theme-preset="beauty"] [data-site-navigation-bar] a:hover {
  background: #f6e2e8;
  color: #6f1d43;
}

/* Active page: a soft blush pill with berry text, not a heavy dark block. */
[data-theme-preset="beauty"] [data-site-navigation-bar] a.site-nav-link-active,
[data-theme-preset="beauty"] [data-site-navigation-bar] a.site-nav-link-active:hover {
  background: #f6e2e8;
  color: #9b2c5f !important;
  box-shadow: none;
}

[data-theme-preset="beauty"] [data-site-navigation-bar] a svg {
  width: 0.95rem;
  height: 0.95rem;
}

.beauty-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #2e1f27;
}

.beauty-wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.beauty-wordmark-name {
  font-family: var(--font-beauty-display), "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.beauty-wordmark-caption {
  margin-top: 0.2rem;
  color: #9b2c5f;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

@media (max-width: 480px) {
    .beauty-wordmark-name {
    font-size: 1.55rem;
  }
}

/* Primary actions are pills. */
[data-theme-preset="beauty"] [data-barber-book] {
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: #9b2c5f;
  border-color: #9b2c5f;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: 0 10px 24px -14px rgb(111 29 67 / 0.7);
}

[data-theme-preset="beauty"] [data-barber-book]:hover {
  background: #6f1d43;
}

[data-theme-preset="beauty"] button[class*="inline-flex"],
[data-theme-preset="beauty"] a[class*="inline-flex"][class*="h-10"],
[data-theme-preset="beauty"] a[class*="inline-flex"][class*="h-9"] {
  border-radius: 999px;
}

[data-theme-preset="beauty"] [class~="bg-primary"][class~="text-primary-foreground"]:hover {
  background-color: #6f1d43;
}

/* Inputs: soft, warm and clearly bounded. */
[data-theme-preset="beauty"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme-preset="beauty"] textarea,
[data-theme-preset="beauty"] [role="combobox"] {
  border-radius: 12px;
  border-color: hsl(var(--input));
  background-color: #fffafb;
}

[data-theme-preset="beauty"] input:focus-visible,
[data-theme-preset="beauty"] textarea:focus-visible {
  border-color: #9b2c5f;
  box-shadow: 0 0 0 3px rgb(210 122 159 / 0.28);
  outline: none;
}

/* Dropdown searches (cmdk) sit inside their own bordered row, so the input itself stays frameless. */
[data-theme-preset="beauty"] [cmdk-input-wrapper] {
  padding: 0 12px;
  border-bottom-color: #ecd9de;
}

[data-theme-preset="beauty"] [cmdk-input-wrapper] input[cmdk-input],
[data-theme-preset="beauty"] [cmdk-input-wrapper] input[cmdk-input]:focus-visible {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

[data-theme-preset="beauty"] [cmdk-input-wrapper]:focus-within {
  border-bottom-color: #9b2c5f;
  box-shadow: 0 1px 0 #9b2c5f;
}

/* Cards and panels keep generous radius instead of Barber's square edges. */
[data-theme-preset="beauty"] [data-offer-categories] {
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  max-width: 100%;
  padding: 0.35rem !important;
  border: 1px solid #ecd9de;
  border-radius: 999px;
  background: #fffafb;
}

[data-theme-preset="beauty"] [data-offer-categories] a {
  border: 0;
  border-radius: 999px;
}

[data-theme-preset="beauty"] [data-barber-person-card],
[data-theme-preset="beauty"] [data-booking-panel],
[data-theme-preset="beauty"] [data-booking-summary],
[data-theme-preset="beauty"] [data-profile-services] {
  border-radius: 24px;
}

[data-theme-preset="beauty"] [data-profile-portrait] {
  border-radius: 999px 999px 22px 22px;
}

/* Footer: warm cocoa with blush accents. */
[data-theme-preset="beauty"] [data-barber-footer] {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 105% -10%, rgb(210 122 159 / 0.28), transparent 60%),
    #2e1f27;
}

[data-theme-preset="beauty"] [data-barber-footer-head] p {
  color: #ecc7d4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

[data-theme-preset="beauty"] [data-barber-footer-head] h2 {
  font-style: italic;
  font-weight: 400;
}

[data-theme-preset="beauty"] [data-barber-footer] [data-barber-book] {
  background: #f6e2e8;
  border-color: #f6e2e8;
  color: #2e1f27;
}

[data-theme-preset="beauty"] [data-barber-footer] [data-barber-book]:hover {
  background: #fffafb;
}

[data-theme-preset="beauty"] [data-barber-footer-grid] h3 {
  color: #ecc7d4;
  letter-spacing: 0.2em;
}

/* Sign-in story panel: art-led when the salon has no cover photo. */
[data-theme-preset="beauty"] .barber-auth-story {
  background:
    radial-gradient(28rem 22rem at 80% 18%, rgb(248 224 232 / 0.85), transparent 62%),
    radial-gradient(24rem 20rem at 10% 95%, rgb(143 155 134 / 0.55), transparent 60%),
    linear-gradient(180deg, #d996b2, #9b2c5f);
}

[data-theme-preset="beauty"] .barber-auth-story::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 50%;
  width: min(62%, 320px);
  aspect-ratio: 3 / 4;
  border: 1px solid rgb(255 250 251 / 0.6);
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

[data-theme-preset="beauty"] .barber-auth-story::after {
  background: linear-gradient(0deg, rgb(46 31 39 / 0.82) 0%, rgb(46 31 39 / 0.25) 55%, transparent 100%);
}

[data-theme-preset="beauty"] .barber-auth-story-copy em {
  font-style: italic;
  color: #f6e2e8;
}

[data-theme-preset="beauty"] .barber-auth-form button[type="submit"] {
  border-radius: 999px;
}

/* Booking pages */
[data-theme-preset="beauty"] .barber-booking-intro > p {
  letter-spacing: 0.2em;
}

[data-theme-preset="beauty"] [data-quick-booking-title] {
  font-family: var(--beauty-serif);
  font-weight: 500;
  text-transform: none;
}

/* Toasts */
[data-theme-preset="beauty"] [data-app-toast-viewport] [data-app-toast] {
  border-radius: 18px;
  border-color: #ecd9de;
  background: #fffafb;
}

/* Team directory: arch portraits, serif monograms while photos are missing. */
[data-theme-preset="beauty"] [data-barber-person-card] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

[data-theme-preset="beauty"] [data-barber-person-card] [data-person-portrait] {
  aspect-ratio: 4 / 5 !important;
  border-radius: 999px 999px 22px 22px;
  background: linear-gradient(165deg, #f8e4ea, #ecc7d4);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme-preset="beauty"] [data-barber-person-card]:hover [data-person-portrait] {
  transform: translateY(-6px);
}

[data-theme-preset="beauty"] [data-person-portrait] > div {
  background: none;
}

[data-theme-preset="beauty"] [data-person-portrait] .text-6xl {
  padding-top: 12%;
  color: #9b2c5f;
  font-family: var(--beauty-serif);
  font-size: clamp(4rem, 8vw, 6rem);
  font-style: italic;
  font-weight: 400;
}

[data-theme-preset="beauty"] [data-barber-person-card] [data-person-details] {
  padding-inline: 0.25rem;
}

[data-theme-preset="beauty"] [data-barber-person-card] h2 {
  font-size: 1.9rem;
}

[data-theme-preset="beauty"] [data-person-action] > div {
  color: #9b2c5f;
  font-weight: 600;
}

[data-theme-preset="beauty"] [data-profile-portrait] > span {
  color: #9b2c5f;
  font-family: var(--beauty-serif);
  font-size: clamp(4rem, 9vw, 7rem);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(165deg, #f8e4ea, #ecc7d4);
}

@media (max-width: 767px) {
  /* Keep the salon's name visible on phones; the generated layer hides logo text. */
  [data-theme-preset="beauty"] [data-site-logo] .beauty-wordmark-text,
  [data-theme-preset="beauty"] [data-site-logo] .beauty-wordmark-name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  [data-theme-preset="beauty"] [data-site-logo] .beauty-wordmark-caption {
    display: none;
  }

  [data-theme-preset="beauty"] [data-site-logo] .beauty-wordmark-name {
    font-size: 1.5rem;
  }

  [data-theme-preset="beauty"] [data-barber-book] {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

/* The salon's own logo: square artwork, so give it height rather than width. */
.beauty-wordmark-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.beauty-sheet-logo {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 70%;
  height: 96px;
  margin: max(2.25rem, calc(env(safe-area-inset-top) + 0.75rem)) 0 0.75rem;
  object-fit: contain;
}

.beauty-wordmark-logo img {
  object-fit: contain;
}

@media (max-width: 767px) {
  .beauty-wordmark-logo img {
    height: 46px;
  }
}

/* Mobile menu drawer: keep the close button clearly visible next to the logo. */
[data-theme-preset="beauty"][role="dialog"] > button.absolute {
  top: max(2.5rem, calc(env(safe-area-inset-top) + 1rem));
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #f6e2e8;
  color: #6f1d43;
  opacity: 1;
}

[data-theme-preset="beauty"][role="dialog"] > button.absolute:hover {
  background: #ecc7d4;
}

[data-theme-preset="beauty"][role="dialog"] > button.absolute svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Gift vouchers on the public offer and detail pages. */
[data-theme-preset="beauty"] .gift-product-card,
[data-theme-preset="beauty"] .gift-product-summary {
  border-radius: 1.5rem;
  border-color: #e7d3c8;
  background: #fffaf6;
}

[data-theme-preset="beauty"] .gift-product-card:hover {
  border-color: #c98b7b;
}

[data-theme-preset="beauty"] .gift-product-art {
  height: 13rem;
  margin: 0.875rem 0.875rem 0;
  overflow: hidden;
  border-radius: 50% 50% 0.75rem 0.75rem / 4.5rem 4.5rem 0.75rem 0.75rem;
  background: #f2e1d7;
}

[data-theme-preset="beauty"] .gift-product-detail-art {
  border-radius: 50% 50% 1rem 1rem / 4.5rem 4.5rem 1rem 1rem;
  background: #f2e1d7;
}

[data-theme-preset="beauty"] .gift-product-preview {
  border-radius: inherit;
  background: linear-gradient(145deg, #f8f1ea, #edd2c8);
  color: #492e29;
  text-align: center;
}

[data-theme-preset="beauty"] .gift-product-preview > [aria-hidden] {
  border-color: #c98b7b;
  border-radius: inherit;
}

[data-theme-preset="beauty"] .gift-product-preview > div:last-child {
  height: 100%;
}

[data-theme-preset="beauty"] .gift-product-preview p {
  color: inherit;
}

[data-theme-preset="beauty"] .gift-product-preview p:first-child {
  color: #8e4f42;
}

[data-theme-preset="beauty"] .gift-product-preview p:nth-child(2) {
  font: 500 1.75rem / 1.05 var(--beauty-serif);
}

[data-theme-preset="beauty"] .gift-product-preview .gift-voucher-value {
  font: 500 3rem / 1 var(--beauty-serif);
}

[data-theme-preset="beauty"] .gift-product-preview .gift-voucher-code {
  font: 500 1rem / 1.4 ui-monospace, monospace;
}

[data-theme-preset="beauty"] .gift-product-preview .gift-voucher-stub {
  border-color: #c98b7b;
}

[data-theme-preset="beauty"] .gift-product-body {
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

[data-theme-preset="beauty"] .gift-product-body h2 {
  font-size: 1.75rem;
  line-height: 1.1;
}

[data-theme-preset="beauty"] .gift-product-footer {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-color: #e7d3c8;
}

[data-theme-preset="beauty"] .gift-product-details {
  border-radius: 999px;
  background: #f2e1d7;
  padding: 0.4rem 0.75rem;
  color: #6d392f;
}

[data-theme-preset="beauty"] .gift-product-card:hover .gift-product-details {
  background: #6d392f;
  color: #fffaf6;
}

/* Segmented switches (calendar "Den | Seznam"): same soft active state as the nav. */
[data-theme-preset="beauty"] button[aria-pressed="true"][class~="bg-foreground"] {
  background: #f6e2e8 !important;
  color: #9b2c5f !important;
  box-shadow: none !important;
}
