/* ==========================================================================
   WS Ortodôntico — v3 Editorial Redesign
   Light, modern, dental-clinic aesthetic. Same brand orange #FF5722.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --orange:        #FF5722;
  --orange-600:    #F4511E;
  --orange-700:    #E64A19;
  --orange-50:     #FFF4EF;
  --orange-100:    #FFE2D3;
  --orange-200:    #FFC4A8;
  --orange-glow:   rgba(255, 87, 34, .35);

  /* Neutrals — warm, editorial */
  --white:         #ffffff;
  --bone:          #FAF7F2;     /* primary surface */
  --bone-2:        #F2EDE5;     /* secondary surface */
  --ink:           #0F0F11;     /* deep near-black */
  --ink-2:         #1A1A1E;
  --graphite:      #2C2C32;
  --slate:         #54545E;
  --muted:         #8A8A95;
  --line:          #E8E2D7;
  --line-2:        #D9D2C4;

  /* System */
  --max:           1320px;
  --pad:           clamp(1.25rem, 4vw, 4rem);
  --r-sm:          10px;
  --r:             18px;
  --r-lg:          28px;
  --r-xl:          40px;
  --r-pill:        999px;

  --shadow-xs:     0 1px 2px rgba(15,15,17,.04);
  --shadow-sm:     0 6px 16px -8px rgba(15,15,17,.10);
  --shadow:        0 18px 40px -16px rgba(15,15,17,.18);
  --shadow-orange: 0 20px 50px -18px var(--orange-glow);

  --ease:          cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --t-fast:        .18s var(--ease);
  --t:             .28s var(--ease);
  --t-slow:        .5s var(--ease-out);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: inherit; text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}
a:hover { color: var(--orange); opacity: 1; }
::selection { background: var(--orange); color: var(--white); }

/* Editorial display type — Fraunces serif. */
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 100;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--graphite); }

.visually-hidden, .hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}
#toolbar-administration, .tabs__tab a, .messages { font-family: system-ui; }

/* ==========================================================================
   HEADER — minimalist white, sticky with backdrop blur
   ========================================================================== */
.wsorto-header {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-700) 38%, #1A0F0A 78%, var(--ink) 100%);
  color: var(--white);
  padding: .85rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 8px 24px -16px rgba(15,15,17,.5);
}
.wsorto-header__brand img,
.wsorto-header__brand svg { height: 42px; width: auto; }
.wsorto-header__brand a { display: inline-flex; align-items: center; }
.wsorto-header__brand a:hover { color: inherit; opacity: .85; }

.wsorto-header__nav { display: flex; align-items: center; gap: .25rem; }
.wsorto-header__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .25rem; align-items: center;
}
.wsorto-header__nav li { margin: 0; }
.wsorto-header__nav a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  color: rgba(255,255,255,.85);
  font-weight: 500; font-size: .92rem;
  background: transparent;
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.wsorto-header__nav a::after {
  content: ''; position: absolute;
  left: 1rem; right: 1rem; bottom: .25rem;
  height: 2px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease-out);
  border-radius: 2px;
}
.wsorto-header__nav a:hover { color: var(--white); background: transparent; opacity: 1; }
.wsorto-header__nav a:hover::after { transform: scaleX(.6); }
.wsorto-header__nav a.is-active { color: var(--white); }
.wsorto-header__nav a.is-active::after { transform: scaleX(1); }

/* Last menu item rendered as solid pill CTA */
.wsorto-header__nav ul li:last-child a {
  background: var(--white);
  color: var(--ink);
  padding: .6rem 1.4rem;
  margin-left: .75rem;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.wsorto-header__nav ul li:last-child a::after { display: none; }
.wsorto-header__nav ul li:last-child a:hover {
  background: var(--orange); color: var(--white); transform: translateY(-1px);
}

/* ----- Hamburger toggle (hidden on desktop) ----- */
.wsorto-header__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 60;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.wsorto-header__toggle:hover { background: rgba(255,255,255,.12); }
.wsorto-header__toggle-bars {
  display: inline-flex; flex-direction: column;
  gap: 5px; width: 22px;
}
.wsorto-header__toggle-bars span {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.wsorto-header__backdrop {
  position: fixed; inset: 0;
  background: rgba(15,15,17,.45);
  z-index: 49;
  backdrop-filter: blur(2px);
}

/* ----- Mobile breakpoint ----- */
@media (max-width: 860px) {
  .wsorto-header { padding: .75rem 1.25rem; gap: .75rem; flex-wrap: nowrap; }
  .wsorto-header__brand img,
  .wsorto-header__brand svg { height: 36px; }

  .wsorto-header__toggle { display: inline-flex; }

  /* Slide-in drawer */
  .wsorto-header__nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-700) 45%, #1A0F0A 88%, var(--ink) 100%);
    color: var(--white);
    padding: 5.25rem 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    z-index: 51;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.5);
    overflow-y: auto;
    /* Reset inherited desktop flex so children stack from the top. */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  /* Drupal wraps the menu inside a <nav> block; make it a vertical stack. */
  .wsorto-header__nav > nav,
  .wsorto-header__nav .block {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
  }
  .wsorto-header__nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
  }
  .wsorto-header__nav li { width: 100%; }
  .wsorto-header__nav a {
    display: block;
    width: 100%;
    padding: .95rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    text-align: left;
    box-sizing: border-box;
  }
  .wsorto-header__nav a::after { display: none; }
  .wsorto-header__nav a:hover,
  .wsorto-header__nav a.is-active {
    background: rgba(255,255,255,.14);
    color: var(--white);
  }
  /* Last item ("Login") becomes a full-width white CTA, pushed to the bottom. */
  .wsorto-header__nav ul li:last-child {
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .wsorto-header__nav ul li:last-child a {
    margin: 0;
    text-align: center;
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: .85rem 1.25rem;
    box-shadow: 0 6px 18px -10px rgba(0,0,0,.5);
  }
  .wsorto-header__nav ul li:last-child a:hover {
    background: var(--orange-50);
    color: var(--ink);
  }

  /* Open state */
  html.wsorto-nav-open { overflow: hidden; }
  html.wsorto-nav-open .wsorto-header__nav { transform: translateX(0); }
  html.wsorto-nav-open .wsorto-header__toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  html.wsorto-nav-open .wsorto-header__toggle-bars span:nth-child(2) {
    opacity: 0;
  }
  html.wsorto-nav-open .wsorto-header__toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Lift the toggle above the drawer so user can close it. */
  html.wsorto-nav-open .wsorto-header__toggle {
    position: fixed;
    top: .75rem; right: 1.25rem;
    z-index: 52;
    border-color: rgba(255,255,255,.6);
  }
}
.wsorto-header__backdrop[hidden] { display: none; }

.wsorto-main { background: var(--bone); }
/* Kill any top spacing/margin so the first content (often a fullbleed
   video/hero) sits flush against the sticky header. */
.wsorto-main > a#main-content { display: block; height: 0; }
.wsorto-main,
.wsorto-main > *:first-child,
.wsorto-main > *:first-child > *:first-child,
.wsorto-main .region-content,
.wsorto-main .region-content > *:first-child,
.wsorto-main .block:first-child,
.wsorto-main .block-system-main-block,
.wsorto-main .block-system-main-block > *:first-child,
.wsorto-main article,
.wsorto-main article > *:first-child,
.wsorto-main .field--name-field-blocos,
.wsorto-main .field--name-field-blocos > .field__item:first-child,
.wsorto-main .field--name-field-blocos > .field__items > .field__item:first-child {
  margin-top: 0 !important;
  padding-top: 0;
}
.wsorto-main .paragraph--type--video { margin-top: 0 !important; }
.wsorto-section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.wsorto-container { max-width: var(--max); margin: 0 auto; }

/* ==========================================================================
   PARAGRAPHS — editorial layouts
   ========================================================================== */
.paragraph--type--video {
  width: 100%; margin: 0; padding: 0;
  background: #000; overflow: hidden; line-height: 0;
  position: relative;
}
.wsorto-hero-video {
  display: block; width: 100%; height: auto;
  max-height: 92vh; object-fit: cover;
}
.paragraph--type--video::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18));
  pointer-events: none;
}

/* ----- Hero — editorial split ----- */
.paragraph--type--hero {
  background: var(--bone);
  padding: clamp(4rem, 8vw, 8rem) var(--pad) clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}
.paragraph--type--hero::before {
  content: ''; position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--orange-100), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.paragraph--type--hero .paragraph__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}
.paragraph--type--hero:not(:has(.field--name-field-imagem)) .paragraph__inner,
.paragraph--type--hero .paragraph__inner:not(:has(.field--name-field-imagem)) {
  grid-template-columns: 1fr; max-width: 1000px; text-align: left;
}
.paragraph--type--hero .field--name-field-subtitulo {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: .35rem 0;
  margin-bottom: 1.5rem;
}
.paragraph--type--hero .field--name-field-subtitulo::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: var(--orange);
}
.paragraph--type--hero .field--name-field-titulo {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem; line-height: .98;
}
.paragraph--type--hero .field--name-field-titulo em,
.paragraph--type--hero .field--name-field-titulo i {
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}
.paragraph--type--hero .field--name-field-corpo {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 52ch;
  line-height: 1.6;
}
.paragraph--type--hero .field--name-field-imagem img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 800px) {
  .paragraph--type--hero .paragraph__inner { grid-template-columns: 1fr; }
}

/* ----- Texto + Imagem — editorial alternating ----- */
.paragraph--type--texto-imagem {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  background: var(--white);
}
.paragraph--type--texto-imagem .paragraph__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.paragraph--type--texto-imagem .field--name-field-titulo {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.paragraph--type--texto-imagem .field--name-field-corpo {
  color: var(--slate); font-size: 1.05rem; line-height: 1.7;
}
.paragraph--type--texto-imagem .field--name-field-imagem img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 800px) {
  .paragraph--type--texto-imagem .paragraph__inner { grid-template-columns: 1fr; }
}

/* ----- FAQ paragraph ----- */
.paragraph--type--faq {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  background: var(--bone);
}
.paragraph--type--faq .paragraph__inner { max-width: 880px; margin: 0 auto; }
.paragraph--type--faq .field--name-field-titulo {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.paragraph--type--faq .field--name-field-corpo {
  text-align: center; color: var(--slate); margin-bottom: 3rem;
}
.paragraph--type--pergunta {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.paragraph--type--pergunta .field--name-field-titulo {
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: .5rem;
  letter-spacing: -0.005em;
  display: flex; align-items: flex-start; gap: .75rem;
}
.paragraph--type--pergunta .field--name-field-titulo::before {
  content: '+';
  color: var(--orange);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.paragraph--type--pergunta .field--name-field-resposta {
  color: var(--slate); padding-left: 1.85rem;
}

/* ----- CTA ----- */
.paragraph--type--cta {
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.paragraph--type--cta::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(60px); pointer-events: none;
}
.paragraph--type--cta > * { position: relative; }
.paragraph--type--cta .field--name-field-titulo {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: -0.03em;
  max-width: 18ch; margin-left: auto; margin-right: auto;
  line-height: 1.05;
}
.paragraph--type--cta .field--name-field-corpo {
  color: rgba(255,255,255,.75); max-width: 50ch;
  margin: 0 auto 2rem; font-size: 1.05rem;
}
.paragraph--type--cta a {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1rem;
  padding: 1rem 2.4rem;
  background: var(--orange); color: var(--white);
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-orange);
}
.paragraph--type--cta a:hover {
  background: var(--orange-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -14px var(--orange-glow);
}

/* Generic field--name-field-link button */
.paragraph .field--name-field-link a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.9rem;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  border: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.paragraph .field--name-field-link a:hover {
  background: var(--orange); color: var(--white); transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER — sophisticated dark with orange accents
   ========================================================================== */
.wsorto-footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 7vw, 6.5rem) var(--pad) 1.75rem;
  position: relative; overflow: hidden;
}
.wsorto-footer::before {
  content: ''; position: absolute;
  bottom: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(80px); pointer-events: none;
}
.wsorto-footer > * { position: relative; }
.wsorto-footer a { color: var(--white); }
.wsorto-footer a:hover { color: var(--orange-200); }
.wsorto-footer__inner { max-width: var(--max); margin: 0 auto; }
.wsorto-footer__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500; margin-bottom: 2.5rem; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.05;
  max-width: 16ch;
}
.wsorto-footer__contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: start;
}
@media (max-width: 800px) {
  .wsorto-footer__contact-grid { grid-template-columns: 1fr; }
}
.wsorto-footer__bottom {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .85rem;
}
.wsorto-footer__legal { display: flex; gap: 1.75rem; }
.wsorto-footer__legal a { color: rgba(255,255,255,.65); }
.wsorto-footer__legal a:hover { color: var(--orange); }
.wsorto-footer__copy {
  font-size: .78rem; color: rgba(255,255,255,.45);
  margin-top: 1rem; letter-spacing: .02em;
}

.wsorto-social { display: flex; gap: .6rem; }
.wsorto-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; color: var(--white);
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.wsorto-social svg { width: 18px; height: 18px; fill: currentColor; }
.wsorto-social a:hover {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
  transform: translateY(-3px);
}

/* ----- Footer form (legacy / contact wrapper) ----- */
.wsorto-footer form,
.wsorto-footer .contact-message-form,
.wsorto-footer .form-wrapper { color: var(--white); }
.wsorto-footer label {
  display: block; color: rgba(255,255,255,.65);
  font-size: .78rem; margin-bottom: .5rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
}
.wsorto-footer .form-required::after {
  content: '*'; color: var(--orange); margin-left: .25rem; background: none;
}
.wsorto-footer input[type="text"],
.wsorto-footer input[type="email"],
.wsorto-footer input[type="tel"],
.wsorto-footer textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  padding: .65rem 0;
  font-size: 1rem; font-family: inherit;
  outline: none; border-radius: 0;
  transition: border-color var(--t-fast);
}
.wsorto-footer input::placeholder,
.wsorto-footer textarea::placeholder { color: rgba(255,255,255,.3); }
.wsorto-footer input:focus,
.wsorto-footer textarea:focus { border-bottom-color: var(--orange); }
.wsorto-footer .description,
.wsorto-footer .form-item__description {
  color: rgba(255,255,255,.4); font-size: .75rem; margin-top: .35rem;
}
.wsorto-footer .form-actions { text-align: right; margin-top: 2rem; }
.wsorto-footer .button,
.wsorto-footer button[type="submit"],
.wsorto-footer .form-submit {
  background: var(--orange); border: 0;
  color: var(--white);
  padding: .9rem 2.4rem;
  border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-orange);
}
.wsorto-footer .button:hover,
.wsorto-footer button[type="submit"]:hover,
.wsorto-footer .form-submit:hover {
  background: var(--orange-600); transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px var(--orange-glow);
}

/* ----- Custom contact form layout ----- */
.wsorto-contact-wrap form,
.wsorto-footer .contact-message-form {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 1.5rem; align-items: start;
}
.wsorto-contact-wrap form > .field--name-name,
.wsorto-contact-wrap form > .form-item-name,
.wsorto-contact-wrap form > .field--name-field-clinica-empresa,
.wsorto-contact-wrap form > .field--name-mail,
.wsorto-contact-wrap form > .form-item-mail,
.wsorto-contact-wrap form > .field--name-subject,
.wsorto-contact-wrap form > .form-item-subject { grid-column: 1; }
.wsorto-contact-wrap form > .field--name-message,
.wsorto-contact-wrap form > .form-item-message {
  grid-column: 2; grid-row: 1 / span 4;
}
.wsorto-contact-wrap form > .form-actions {
  grid-column: 2; grid-row: 5; justify-self: end; margin-top: .5rem;
}
.wsorto-contact-wrap #edit-preview { display: none; }
.wsorto-contact-wrap textarea { resize: vertical; min-height: 200px; }
.wsorto-contact-wrap .description,
.wsorto-contact-wrap .form-item__description { display: none; }
@media (max-width: 800px) {
  .wsorto-contact-wrap form { grid-template-columns: 1fr; }
  .wsorto-contact-wrap form > * {
    grid-column: 1 !important; grid-row: auto !important; justify-self: start !important;
  }
  .wsorto-contact-wrap form > .form-actions { width: 100%; }
  .wsorto-contact-wrap .form-submit { width: 100%; }
}

/* ==========================================================================
   PRODUCT CATALOGUE — listing
   ========================================================================== */
.wsorto-products-page {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.wsorto-products-page::before {
  content: ''; position: absolute;
  top: -200px; left: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange-100), transparent 65%);
  filter: blur(50px); pointer-events: none;
}
.wsorto-products-inner { max-width: var(--max); margin: 0 auto; position: relative; }

.wsorto-products-head {
  text-align: left; margin-bottom: 3rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  max-width: 880px;
}
.wsorto-products-head h1 {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1;
}
.wsorto-products-head h1::before {
  content: 'Catálogo';
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.wsorto-products-lead {
  color: var(--slate); max-width: 56ch;
  font-size: 1.05rem; line-height: 1.65;
  margin: 0;
}

.wsorto-products-filter {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 2.5rem 0 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.wsorto-chip {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--slate);
  font-size: .85rem; font-weight: 500;
  border: 1px solid var(--line-2);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.wsorto-chip:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}
.wsorto-chip.is-active {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}

.wsorto-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.wsorto-product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--t) var(--ease-out),
              box-shadow var(--t),
              border-color var(--t);
}
.wsorto-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.wsorto-product-card__link {
  display: block; flex: 1; color: inherit;
  padding: 0;
}
.wsorto-product-card__link:hover { color: inherit; }
.wsorto-product-card__media {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  overflow: hidden;
  display: grid; place-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.wsorto-product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 1.25rem;
  transition: transform .6s var(--ease-out);
}
.wsorto-product-card:hover .wsorto-product-card__media img { transform: scale(1.06); }
.wsorto-product-card__placeholder {
  font-size: 3rem; opacity: .25; color: var(--slate);
}
.wsorto-product-card__body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; flex: 1;
}
.wsorto-product-card__cat {
  display: inline-block;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: .5rem;
}
.wsorto-product-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.wsorto-product-card__sub {
  font-size: .85rem; color: var(--slate); margin: 0;
  flex: 1;
}
.wsorto-product-card__cta {
  display: flex; gap: .5rem;
  padding: 0 1.4rem 1.4rem;
  margin-top: -.25rem;
  flex-wrap: nowrap;
}
.wsorto-product-card__cta .btn {
  flex: 1 1 0; min-width: 0;
  text-align: center;
  padding: .6rem .5rem;
  font-size: .8rem;
  white-space: nowrap;
}

.wsorto-products-empty {
  text-align: center; padding: 4rem 1rem;
  background: var(--white);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--slate);
}
.wsorto-products-empty h2 { color: var(--ink); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: .9rem; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-orange {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}
.btn-orange:hover {
  background: var(--orange); border-color: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.wsorto-product-detail {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad) clamp(4rem, 7vw, 6rem);
  background: var(--bone);
}
.wsorto-product-detail__inner { max-width: var(--max); margin: 0 auto; }

.wsorto-breadcrumbs {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 2.5rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.wsorto-breadcrumbs a { color: var(--slate); font-weight: 500; }
.wsorto-breadcrumbs a:hover { color: var(--orange); }

.wsorto-product-detail__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 880px) {
  .wsorto-product-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
}

/* ----- Gallery ----- */
.wsorto-product-gallery__main {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.wsorto-product-gallery__main img {
  width: 100%; height: 100%; object-fit: contain; padding: 2rem;
}
.wsorto-product-gallery__placeholder {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-size: 5rem; opacity: .2; color: var(--slate);
}
.wsorto-product-gallery__thumbs {
  display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap;
}
.wsorto-product-gallery__thumb {
  width: 76px; height: 76px;
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); padding: 0;
  background: var(--white); cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.wsorto-product-gallery__thumb:hover {
  transform: translateY(-2px); border-color: var(--ink);
}
.wsorto-product-gallery__thumb.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.wsorto-product-gallery__thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
}

/* ----- Info ----- */
.wsorto-product-info__cat {
  display: inline-block;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--orange); font-weight: 600;
  margin-bottom: 1rem;
}
.wsorto-product-info__cat::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 18px; height: 1px; background: var(--orange); margin-right: .6rem;
}
.wsorto-product-info__title {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.wsorto-product-info__sub {
  font-size: 1.1rem; color: var(--slate); margin-bottom: 2rem;
  font-weight: 400;
}
.wsorto-product-info__description {
  color: var(--graphite); line-height: 1.7;
  margin-bottom: 2rem; font-size: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wsorto-product-info__description p:first-child { margin-top: 0; }
.wsorto-product-info__cta {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 2rem;
}

/* ----- Extras / SKUs ----- */
.wsorto-product-extras { margin-top: 5rem; }
.wsorto-product-extras h2 {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
.wsorto-product-extras h2::before {
  content: 'Variantes';
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--orange);
  margin-bottom: .5rem;
}
.wsorto-product-extras__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.wsorto-product-extras__table {
  width: 100%; border-collapse: collapse; min-width: 420px;
}
.wsorto-product-extras__table th,
.wsorto-product-extras__table td {
  padding: 1rem 1.4rem; text-align: left;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.wsorto-product-extras__table thead th {
  background: var(--bone);
  color: var(--slate);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .7rem;
}
.wsorto-product-extras__table tbody tr:last-child td { border-bottom: 0; }
.wsorto-product-extras__table tbody tr { transition: background var(--t-fast); }
.wsorto-product-extras__table tbody tr:hover { background: var(--bone); }
.wsorto-product-extras__table code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, monospace;
  background: var(--ink);
  padding: .25rem .55rem;
  border-radius: 6px;
  color: var(--white);
  font-size: .82rem; font-weight: 500;
  letter-spacing: .02em;
}

/* ==========================================================================
   USER LOGIN / ACCOUNT PAGES
   ========================================================================== */
.wsorto-user-page .wsorto-main {
  background: var(--bone);
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  min-height: 70vh;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.wsorto-user-page .wsorto-main::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange-100), transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.wsorto-user-page .wsorto-highlighted { display: none; }
.wsorto-user-page #block-wsorto-tabs    { display: none; }

.user-login-form,
.user-pass,
.user-register-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  display: block; width: 100%; max-width: 460px;
  margin: 0 auto; box-sizing: border-box;
  position: relative;
}
.user-login-form .form-item,
.user-pass .form-item,
.user-register-form .form-item { display: block; margin: 0 0 1.25rem; }
.user-login-form label,
.user-pass label,
.user-register-form label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--slate); margin: 0 0 .5rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.user-login-form .form-required::after,
.user-pass .form-required::after,
.user-register-form .form-required::after {
  content: ' *'; color: var(--orange); background: none !important;
  width: auto; height: auto; margin: 0;
}
.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-pass input[type="text"],
.user-pass input[type="email"],
.user-register-form input[type="text"],
.user-register-form input[type="email"] {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font: inherit; font-size: 1rem;
  background: var(--white); color: var(--ink);
  outline: none; box-sizing: border-box; margin: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.user-login-form input:focus,
.user-pass input:focus,
.user-register-form input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(15,15,17,.06);
}
.user-login-form .description,
.user-pass .description,
.user-register-form .description,
.user-login-form .form-item__description,
.user-pass .form-item__description {
  font-size: .78rem; color: var(--muted); margin-top: .4rem;
}
.user-login-form .form-actions,
.user-pass .form-actions,
.user-register-form .form-actions {
  display: block; margin: 1.75rem 0 0; padding: 0; text-align: center;
}
.user-login-form input.form-submit,
.user-pass input.form-submit,
.user-register-form input.form-submit {
  display: inline-block;
  background: var(--ink); color: var(--white);
  border: 0;
  border-radius: var(--r-pill);
  padding: .9rem 2.6rem; font-size: 1rem; font-weight: 600;
  font-family: inherit; cursor: pointer; width: 100%;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.user-login-form input.form-submit:hover,
.user-pass input.form-submit:hover,
.user-register-form input.form-submit:hover {
  background: var(--orange);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* ==========================================================================
   COOKIES BANNER
   ========================================================================== */
.wsorto-cookies {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(15,15,17,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 100; font-size: .88rem;
  box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto;
}
.wsorto-cookies button {
  background: var(--orange); color: var(--white); border: 0;
  padding: .55rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: .85rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.wsorto-cookies button:hover {
  background: var(--orange-600); transform: translateY(-1px);
}
.wsorto-cookies.hidden { display: none; }

/* ==========================================================================
   FAQ-CTA paragraph
   ========================================================================== */
.paragraph--type--faq-cta {
  background: var(--bone-2);
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
}
.paragraph--faq-cta__link {
  display: block; max-width: var(--max); margin: 0 auto;
  text-decoration: none; color: inherit;
}
.paragraph--faq-cta__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.paragraph--faq-cta__title {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 500; line-height: 1.1;
  margin: 0 0 1rem; letter-spacing: -0.025em;
}
.paragraph--faq-cta__body {
  color: var(--slate); font-size: 1.05rem; line-height: 1.6;
}
.paragraph--faq-cta__body p { margin: 0; }
.paragraph--faq-cta__arrow {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: background var(--t), transform var(--t) var(--ease-out);
}
.paragraph--faq-cta__link:hover .paragraph--faq-cta__title { color: var(--orange); }
.paragraph--faq-cta__link:hover .paragraph--faq-cta__arrow {
  background: var(--orange); color: var(--white);
  transform: translateX(10px);
}
@media (max-width: 700px) {
  .paragraph--faq-cta__inner { grid-template-columns: 1fr; }
  .paragraph--faq-cta__arrow { justify-self: end; width: 56px; height: 56px; }
}

/* ==========================================================================
   FAQ PAGE (with marquee)
   ========================================================================== */
.wsorto-faq-page { background: var(--bone); }
.wsorto-marquee {
  overflow: hidden; white-space: nowrap;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem);
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.wsorto-marquee__track {
  display: inline-flex; gap: 2rem;
  animation: wsorto-marquee 38s linear infinite;
  will-change: transform;
}
.wsorto-marquee__item,
.wsorto-marquee__sep {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 1; letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--ink);
}
.wsorto-marquee__item:nth-child(odd) { color: var(--orange); }
.wsorto-marquee__sep { opacity: .25; font-style: normal; }
@keyframes wsorto-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wsorto-faq-page__list {
  max-width: 980px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 7rem);
  display: flex; flex-direction: column; gap: 0;
}
.wsorto-faq-item {
  border-bottom: 1px solid var(--line-2);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}
.wsorto-faq-item:last-child { border-bottom: 0; }
.wsorto-faq-item__q {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500; margin: 0 0 .85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.wsorto-faq-item__a {
  color: var(--graphite); font-size: 1rem; line-height: 1.7;
}
.wsorto-faq-item__a p:first-child { margin-top: 0; }
.wsorto-faq-item__a p:last-child  { margin-bottom: 0; }

/* ==========================================================================
   Misc: blocks, generic content
   ========================================================================== */
.wsorto-highlighted {
  background: var(--orange-50);
  color: var(--ink);
  text-align: center;
  padding: .75rem var(--pad);
  font-size: .9rem;
}
/* Collapse the highlighted region when it only contains an empty Drupal
   messages fallback (no real announcement to show). */
.wsorto-highlighted:has(> [data-drupal-messages-fallback].hidden:only-child),
.wsorto-highlighted:empty {
  display: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.view-produtos {
  padding: clamp(2rem, 5vw, 4rem) var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.view-produtos .views-row {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1rem;
  transition: transform var(--t), box-shadow var(--t);
}
.view-produtos .views-row:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .wsorto-marquee__track { animation: none; }
}

/* ==========================================================================
   PRICE / ADD-TO-CART (product card + detail)
   ========================================================================== */
.wsorto-product-card__price {
  margin-top: .5rem;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
}
.wsorto-product-card__price--ondemand {
  font-size: .95rem; color: var(--muted); font-style: italic; font-weight: 500;
}
.wsorto-product-card__cta form { display: contents; }
.wsorto-product-card__cta form button {
  flex: 1 1 0; min-width: 0; white-space: nowrap;
}

.wsorto-product-info__price {
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255,87,34,.08), rgba(255,87,34,0));
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.wsorto-product-info__price-amount {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.wsorto-product-info__price-vat {
  font-size: .85rem; color: var(--muted);
}
.wsorto-product-info__price--ondemand .wsorto-product-info__price-amount,
.wsorto-product-info__price--ondemand span {
  font-style: italic; color: var(--muted); font-size: 1.1rem;
}

.wsorto-add-to-cart {
  display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap;
}
.wsorto-add-to-cart__qty {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .85rem; color: var(--muted);
}
.wsorto-add-to-cart__qty input {
  width: 78px; padding: .65rem .75rem;
  border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 1rem;
}

/* ==========================================================================
   HEADER CART PILL
   ========================================================================== */
.wsorto-header__cart { display: inline-flex; align-items: center; }
.wsorto-cart-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--white);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.wsorto-cart-pill:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); color: var(--white); }
.wsorto-cart-pill__icon svg { width: 24px; height: 24px; }
.wsorto-cart-pill__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem; font-weight: 700; line-height: 20px;
  text-align: center;
  border: 2px solid var(--ink);
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.wsorto-cart-page { padding: 3rem 0 5rem; }
.wsorto-cart-page__inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.wsorto-cart-page h1 {
  font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 2rem;
}
.wsorto-cart-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.wsorto-cart-empty p { font-size: 1.2rem; margin-bottom: 2rem; }

.wsorto-cart-table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
  background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden;
}
.wsorto-cart-table th, .wsorto-cart-table td {
  padding: 1rem; text-align: left; border-bottom: 1px solid #f0f0f0;
}
.wsorto-cart-table th {
  background: #fafafa; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.wsorto-cart-table th.num, .wsorto-cart-table td.num { text-align: right; }
.wsorto-cart-table th.qty, .wsorto-cart-table td.qty { text-align: center; width: 110px; }
.wsorto-cart-table td.actions { width: 50px; text-align: center; }
.wsorto-cart-product {
  display: flex; align-items: center; gap: 1rem;
  color: var(--ink); text-decoration: none;
}
.wsorto-cart-product img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #f6f6f6;
}
.wsorto-cart-product strong { display: block; }
.wsorto-cart-product small { color: var(--muted); font-size: .85rem; }
.wsorto-cart-table input[type="number"] {
  width: 70px; padding: .5rem; border: 1px solid #ddd; border-radius: 8px;
  font: inherit; text-align: center;
}
.wsorto-cart-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%; background: #f5f5f5; color: var(--muted);
  font-size: 1.4rem; line-height: 1; text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.wsorto-cart-remove:hover { background: var(--orange); color: #fff; }

.wsorto-cart-totals {
  max-width: 360px; margin-left: auto; margin-bottom: 1.5rem;
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1.25rem 1.5rem;
}
.wsorto-cart-totals .row {
  display: flex; justify-content: space-between; padding: .35rem 0; color: var(--muted);
}
.wsorto-cart-totals .row.total {
  border-top: 1px solid #eee; padding-top: .75rem; margin-top: .5rem;
  color: var(--ink); font-weight: 700; font-size: 1.2rem;
}
.wsorto-cart-actions {
  display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap;
}

/* ==========================================================================
   CHECKOUT FORM
   ========================================================================== */
.wsorto-checkout-form {
  max-width: 760px; margin: 0 auto; padding: 2rem var(--pad) 5rem;
}
.wsorto-checkout-form fieldset {
  border: 1px solid #eee; border-radius: 12px; padding: 1.5rem; background: #fff;
  margin-bottom: 1.5rem;
}
.wsorto-checkout-form legend {
  padding: 0 .5rem; font-family: var(--ff-display); font-size: 1.3rem;
}
.wsorto-checkout__summary {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.wsorto-checkout__summary table { width: 100%; border-collapse: collapse; }
.wsorto-checkout__summary th, .wsorto-checkout__summary td {
  padding: .5rem .75rem; text-align: left; border-bottom: 1px solid #f0f0f0;
}
.wsorto-checkout__total { font-size: 1.15rem; margin-top: 1rem; text-align: right; }
.wsorto-checkout-form .form-item {
  margin-bottom: 1.1rem;
}
.wsorto-checkout-form input[type="text"],
.wsorto-checkout-form input[type="email"],
.wsorto-checkout-form input[type="tel"],
.wsorto-checkout-form textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wsorto-checkout-form input:focus,
.wsorto-checkout-form textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,87,34,.15);
}
.wsorto-checkout-form label {
  display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink);
}
.wsorto-checkout-form .description {
  font-size: .85rem; color: var(--muted); margin-top: .25rem;
}
.wsorto-checkout-form .form-actions {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  justify-content: flex-end;
}

.wsorto-cart-success { padding: 4rem var(--pad) 6rem; }
.wsorto-cart-success__inner {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.wsorto-cart-success__icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700;
}
.wsorto-cart-success h1 { font-family: var(--ff-display); margin-bottom: 1rem; }
.wsorto-cart-success .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1rem; }

/* Mobile cart adjustments */
@media (max-width: 720px) {
  .wsorto-cart-table thead { display: none; }
  .wsorto-cart-table, .wsorto-cart-table tbody, .wsorto-cart-table tr, .wsorto-cart-table td {
    display: block; width: 100%;
  }
  .wsorto-cart-table tr {
    border-bottom: 1px solid #eee; padding: 1rem 0;
  }
  .wsorto-cart-table td {
    border: none; padding: .35rem 1rem;
  }
  .wsorto-cart-table td.num, .wsorto-cart-table td.qty { text-align: left; }
  .wsorto-cart-totals { max-width: none; }
}

@media (max-width: 860px) {
  /* Hide the floating account pill on mobile — the menu drawer has a
     dedicated "Login" entry instead. */
  .wsorto-header__account { display: none !important; }

  /* Cart pill stays fixed in the header bar, next to the hamburger. */
  .wsorto-header__cart {
    position: fixed; top: 50%; transform: translateY(-50%);
    z-index: 60; margin: 0;
    right: calc(1rem + 44px + .75rem);
  }
  .wsorto-header__cart:hover { transform: translateY(-50%); }
  .wsorto-cart-pill, .wsorto-account-pill { width: 44px; height: 44px; }
}

/* ============================================================
   Account: header pill + register/login forms + dashboard
   ============================================================ */
.wsorto-header__account {
  display: inline-flex; align-items: center;
}
.wsorto-account-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%; background: rgba(255,255,255,.14);
  color: var(--white); text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.wsorto-account-pill svg { width: 24px; height: 24px; }
.wsorto-account-pill:hover {
  background: rgba(255,255,255,.24); transform: translateY(-1px);
  color: var(--white);
}
.wsorto-account-pill__dot {
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink);
}

/* Group cart + account into a single right-aligned action cluster */
.wsorto-header__nav { gap: .5rem; }
.wsorto-header__account,
.wsorto-header__cart { margin-left: .5rem; }

/* --- Account / Register / Confirm forms (re-uses checkout-form chrome) --- */
.wsorto-account-form {
  max-width: 560px; margin: 0 auto; padding: 2.5rem var(--pad) 5rem;
}
.wsorto-account-form h1,
.wsorto-account-form .wsorto-account-form__title {
  font-family: var(--ff-display); font-size: 2rem; margin-bottom: .5rem;
}
.wsorto-account-form__lead {
  color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem;
}
.wsorto-account-form .form-item { margin-bottom: 1.1rem; }
.wsorto-account-form input[type="text"],
.wsorto-account-form input[type="email"],
.wsorto-account-form input[type="tel"],
.wsorto-account-form input[type="password"],
.wsorto-account-form textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wsorto-account-form input:focus,
.wsorto-account-form textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,87,34,.15);
}
.wsorto-account-form label {
  display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink);
}
.wsorto-account-form .description {
  font-size: .85rem; color: var(--muted); margin-top: .25rem;
}
.wsorto-account-form .form-actions {
  display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem;
}

/* The 6-digit code input: big monospaced + centered */
.wsorto-account-form__code input {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-size: 2rem !important; text-align: center;
  letter-spacing: .35em; padding: 1rem !important;
}

/* --- Dashboard --- */
.wsorto-account-page { padding: 3rem 0 5rem; }
.wsorto-account-page__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--pad);
}
.wsorto-account-page__head { margin-bottom: 2rem; }
.wsorto-account-page__head h1 {
  font-family: var(--ff-display); font-size: 2.4rem; margin: 0 0 .25rem;
}
.wsorto-account-page__sub { color: var(--muted); margin: 0; }

.wsorto-account-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(280px, 360px) 1fr;
}
@media (max-width: 860px) {
  .wsorto-account-grid { grid-template-columns: 1fr; }
}

.wsorto-account-card {
  background: #fff; border: 1px solid #eee; border-radius: 14px;
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.wsorto-account-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.wsorto-account-card__head h2 {
  font-family: var(--ff-display); font-size: 1.35rem; margin: 0;
}
.wsorto-account-card__foot {
  margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid #f0f0f0;
  text-align: right;
}
.wsorto-account-logout {
  color: var(--muted); font-size: .9rem; text-decoration: none;
}
.wsorto-account-logout:hover { color: var(--orange); }

.wsorto-account-dl {
  display: grid; grid-template-columns: max-content 1fr;
  column-gap: 1rem; row-gap: .55rem; margin: 0;
}
.wsorto-account-dl dt {
  color: var(--muted); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em; align-self: center;
}
.wsorto-account-dl dd { margin: 0; color: var(--ink); }
.wsorto-account-dl__empty {
  grid-column: 1 / -1; color: var(--muted); font-style: italic;
}

.wsorto-account-empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted);
}

/* Orders table */
.wsorto-account-orders {
  width: 100%; border-collapse: collapse;
}
.wsorto-account-orders th,
.wsorto-account-orders td {
  padding: .75rem .5rem; text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.wsorto-account-orders th {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600;
}
.wsorto-account-orders th.num,
.wsorto-account-orders td.num { text-align: right; }
.wsorto-account-orders code {
  background: #faf6f3; padding: .15rem .45rem; border-radius: 4px;
  font-size: .85rem;
}

/* Order status pill */
.wsorto-status {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; background: #eee; color: #555;
}
.wsorto-status--received { background: rgba(255,87,34,.12); color: #b3360c; }
.wsorto-status--processing { background: #fff7d6; color: #8a6d00; }
.wsorto-status--shipped { background: #e0f2ff; color: #0b5da6; }
.wsorto-status--completed { background: #e3f7e8; color: #1c7a36; }
.wsorto-status--cancelled { background: #fde0e0; color: #a61c1c; }

@media (max-width: 720px) {
  .wsorto-account-orders thead { display: none; }
  .wsorto-account-orders, .wsorto-account-orders tbody,
  .wsorto-account-orders tr, .wsorto-account-orders td { display: block; width: 100%; }
  .wsorto-account-orders tr {
    border-bottom: 1px solid #eee; padding: .75rem 0;
  }
  .wsorto-account-orders td { border: none; padding: .25rem 0; }
  .wsorto-account-orders td.num { text-align: left; }
}

/* Login / password forms — helper links + divider */
.wsorto-account-form--login .form-actions { justify-content: stretch; }
.wsorto-account-form--login .form-actions input[type="submit"] { width: 100%; }
.wsorto-account-form__links {
  margin-top: 1.5rem; text-align: center;
}
.wsorto-account-form__link {
  color: var(--muted); font-size: .92rem; text-decoration: none;
}
.wsorto-account-form__link:hover { color: var(--orange); text-decoration: underline; }
.wsorto-account-form__divider {
  position: relative; text-align: center;
  margin: 1.5rem 0; color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.wsorto-account-form__divider::before,
.wsorto-account-form__divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 2rem); height: 1px; background: #e5e5e5;
}
.wsorto-account-form__divider::before { left: 0; }
.wsorto-account-form__divider::after  { right: 0; }
.wsorto-account-form__divider span { background: var(--bg, #fff); padding: 0 .5rem; }

.btn-block { display: inline-block; width: 100%; text-align: center; }

/* Login prompt on product detail when anonymous */
.wsorto-add-to-cart--login {
  display: flex; flex-direction: column; align-items: stretch;
  gap: .65rem; padding: 1rem 1.25rem;
  background: rgba(255,87,34,.06);
  border: 1px solid rgba(255,87,34,.2);
  border-radius: 12px;
  max-width: 360px;
}
.wsorto-add-to-cart--login .btn { width: 100%; text-align: center; }
.wsorto-add-to-cart__login-note {
  margin: 0 0 .25rem; color: var(--ink); font-weight: 600; font-size: .98rem;
}
