/* ==========================================================================
   AdjustableBed.online - shared inner pages, product page and forms
   Loaded after style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Inner page shell
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 52px;
  background: var(--cream);
  border-bottom: 1px solid #e4dbcb;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #5a7080;
}
.breadcrumbs a { transition: color .2s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .crumb-sep { color: #a1b0b9; }

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(43.2px, 8.64vw, 79.2px);
  line-height: 1.01;
  overflow-wrap: anywhere;
}

.page-hero .page-intro {
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--body);
}

.page-hero .page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.page-section {
  padding: 54px 0;
}
.page-section--mist { background: var(--mist); }
.page-section--cream { background: var(--cream); }
.page-section--paper { background: var(--paper); }

.page-content {
  max-width: 840px;
}

.page-content h2 {
  margin-bottom: 14px;
  font-size: clamp(34.8px, 5.04vw, 48px);
  line-height: 1.08;
}
.page-content h3 {
  margin: 28px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.page-content p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--body);
}
.page-content ul {
  margin: 10px 0 20px;
  padding-left: 20px;
}
.page-content li {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
.page-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--cta); }

/* Buttons inside page content must keep the site button styling, not link styling. */
.page-content a.btn { text-decoration: none; }
.page-content a.btn-primary { color: #fff; }
.page-content a.btn-primary:hover { color: #fff; }
.page-content strong { color: var(--ink); }

.content-section + .content-section {
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.policy-note {
  margin-bottom: 28px;
  padding: 13px 16px;
  border-left: 2px solid var(--gold);
  background: #f8f4ec;
  font-size: 11.5px;
  line-height: 1.7;
  color: #5a7080;
}

.page-visual {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 6px;
  aspect-ratio: 16 / 8;
  background: #e3e9ea;
}
.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-visual--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  aspect-ratio: auto;
  margin: 30px auto 0;
  padding: 30px 40px;
  border: 1px solid #e4dbcb;
  background: #fff;
}
.page-visual--logo img {
  width: 250px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.page-end-cta {
  padding: 52px 0;
  background: var(--cream);
  border-top: 1px solid #e4dbcb;
}
.page-end-cta h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(36px, 5.04vw, 52.8px);
}
.page-end-cta p {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
.page-end-cta .actions {
  margin-top: 0;
}

/* FAQ page groups */
.faq-page { max-width: 920px; }
.faq-group + .faq-group {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.faq-group h2 {
  margin-bottom: 8px;
  font-size: clamp(33.6px, 4.8vw, 45.6px);
}
.faq-group .accordion { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Contact page + shared contact forms
   -------------------------------------------------------------------------- */

.contact-section {
  padding: 58px 0 68px;
  background: var(--paper);
}
.contact-section--mist { background: var(--mist); }
.contact-section--cream { background: var(--cream); }

.contact-layout {
  display: grid;
  gap: 30px;
}

.contact-copy .page-intro,
.contact-copy > p {
  max-width: 500px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body);
}
.contact-copy h2 { margin-bottom: 16px; }

.contact-form-column { min-width: 0; }
.contact-direct {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact-direct address {
  margin: 0 0 8px;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}
.contact-direct .contact-phone {
  display: inline-block;
  width: fit-content;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  border: 1px solid #dce4e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8, 31, 50, .05);
}

.form-row {
  display: grid;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a7080;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfdbe0;
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16.8px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--cta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 139, .1);
}
.form-field textarea {
  min-height: 122px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  margin-top: 2px;
  font-size: 16.8px;
}
.form-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.4px;
  line-height: 1.55;
}
.form-note.is-success {
  background: #eaf4ef;
  color: #1e5a45;
}
.form-note.is-error {
  background: #fbf0ed;
  color: #8a3d2d;
}
.form-privacy {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.product-page { background: var(--paper); }

.product-hero {
  position: relative;
  padding: 26px 0 54px;
  background: var(--cream);
  border-bottom: 1px solid #e4dbcb;
}
.product-hero-grid {
  display: grid;
  gap: 28px;
}

.product-gallery { min-width: 0; }
.gallery-main-stage { position: relative; }
.gallery-main-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #d5e0e4;
  border-radius: 4px;
  background: #e3e9ea;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gallery-main-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-main-trigger:hover img { transform: scale(1.02); }
}
.gallery-main-trigger:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}
.gallery-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(8, 31, 50, .78);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(8, 31, 50, .72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, border-color .2s, transform .2s;
}
.gallery-nav:hover {
  background: var(--cta);
  border-color: var(--cta);
}
.gallery-nav:active { transform: translateY(-50%) scale(.94); }
.gallery-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #d5e0e4;
  border-radius: 3px;
  background: #e3e9ea;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-thumb:hover {
    border-color: var(--cta);
    box-shadow: 0 10px 24px rgba(8, 31, 50, .14);
    transform: translateY(-2px);
  }
  .gallery-thumb:hover img { transform: scale(1.04); }
}
.gallery-thumb:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}
.gallery-thumb.is-active {
  border-color: var(--cta);
  box-shadow: 0 0 0 1px var(--cta);
}
@media (min-width: 1100px) {
  .product-gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .product-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.product-info { padding-top: 2px; }
.product-info h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 7.44vw, 74.4px);
  line-height: 1.01;
}
.product-intro {
  max-width: 560px;
  margin-bottom: 17px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--body);
}
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 3px;
}
.product-price strong {
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.product-price span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #5a7080;
}

.product-price .price-prefix {
  font-size: .58em;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
}

.price-code {
  font-size: .62em;
  font-weight: 400;
  letter-spacing: .01em;
}

.btn .price-code { font-size: .775em; }
.product-buy-note {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.product-actions .btn { width: 100%; }

.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #ded5c5;
  list-style: none;
}
.product-trust li {
  position: relative;
  padding-left: 13px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #4f6677;
}
.product-trust li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.product-trust a,
.product-trust a:hover,
.product-trust a:focus-visible {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.product-section { padding: 62px 0; }
.product-section--mist { background: var(--mist); }
.product-section--cream { background: var(--cream); }
.product-section--paper { background: var(--paper); }

.product-section .section-head { margin-bottom: 34px; }
.product-section .section-head h2 { font-size: clamp(38.4px, 6vw, 57.6px); }
.product-section .split-copy p { max-width: 560px; }

@media (min-width: 900px) {
  .split-reverse .split-media { order: 2; }
  .split-reverse .split-copy { order: 1; }
}

/* Product specifications table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9e2e5;
  background: #fff;
  font-size: 13px;
}
.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3eaed;
  text-align: left;
  vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 34%;
  background: #f7f9f9;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.spec-table td {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body);
}
.spec-note {
  margin-top: 16px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Reassurance cards */
.reassurance-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d9e2e5;
  border-radius: 4px;
  background: #d9e2e5;
}
.reassurance-card {
  padding: 24px;
  background: var(--paper);
}
.reassurance-card h3 {
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.reassurance-card p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--body);
}
.reassurance-card a {
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #b9c7ce;
  padding-bottom: 3px;
}
.reassurance-card a:hover { border-color: var(--ink); }

/* Purchase / variants */
.purchase-section {
  padding: 62px 0;
  background: var(--cream);
}
.purchase-section .section-head { margin-bottom: 30px; }

.variant-grid {
  display: grid;
  gap: 16px;
}
.variant-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d8e1e4;
  border-radius: 8px;
  background: #fff;
}
.variant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.variant-top > div { min-width: 0; }
.variant-thumb {
  display: block;
  flex: none;
  width: 108px;
  height: 81px;
  object-fit: cover;
  border: 1px solid #d5e0e4;
  border-radius: 3px;
  background: #e3e9ea;
}
.variant-card .variant-label {
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5a7080;
}
.variant-card h3 {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.045em;
}
.variant-price {
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.variant-desc {
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--body);
}
.variant-features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.variant-features li {
  position: relative;
  padding-left: 18px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #4f6677;
}
.variant-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cta);
  font-size: 10px;
  font-weight: 700;
}
.variant-card .btn {
  width: 100%;
  margin-top: auto;
}
.purchase-note {
  max-width: 720px;
  margin-top: 20px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

.purchase-note-more {
  margin-top: 10px;
  font-size: 13.65px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 28px; }
}

@media (min-width: 700px) {
  .page-hero { padding: 48px 0 66px; }
  .page-actions { flex-direction: row; align-items: center; }
  .page-section { padding: 68px 0; }
  .contact-section { padding: 72px 0 82px; }
  .contact-form { padding: 32px; }
  .product-section { padding: 78px 0; }
  .reassurance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purchase-section { padding: 78px 0; }
}

@media (min-width: 700px) {
  .variant-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .page-hero h1 { font-size: clamp(55.2px, 5.52vw, 79.2px); }
  .page-hero .page-intro { font-size: 16px; }
  .contact-layout { grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
  .contact-copy { position: sticky; top: 110px; }

  .product-hero { padding: 40px 0 72px; }
  .product-hero-grid { grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: start; }
  .product-info { padding-top: 4px; }
  .product-info h1 { font-size: clamp(55.2px, 5.64vw, 76.8px); }
  .product-price strong { font-size: 34px; }
  .product-section { padding: 92px 0; }
  .purchase-section { padding: 92px 0; }
  .variant-card { padding: 28px; }
}

@media (min-width: 1100px) {
  .product-actions { flex-direction: row; }
  .product-actions .btn { width: auto; flex: 1; }
}

@media (min-width: 1180px) {
  .product-hero-grid { gap: 76px; }
  .contact-layout { gap: 84px; }
}

@media (max-width: 599px) {
  .spec-table th,
  .spec-table td { display: block; width: 100%; }
  .spec-table th {
    padding-bottom: 4px;
    border-bottom: 0;
    background: transparent;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5a7080;
  }
  .spec-table td { padding-top: 0; }
  .spec-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid #e3eaed; }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table tr:last-child th,
  .spec-table tr:last-child td { border-bottom: 0; }
  .contact-form { padding: 20px; }
  .page-visual { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Inverse outline button for dark CTA panels
   -------------------------------------------------------------------------- */

.btn-outline-light {
  border-color: rgba(255, 255, 255, .48);
  background: transparent;
  color: #fff;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

/* Long button labels must not widen the layout on small screens. */
@media (max-width: 599px) {
  .btn { white-space: normal; text-align: center; }
  .page-content .btn { width: 100%; }
}


/* --------------------------------------------------------------------------
   Product photo lightbox (based on the Foto Izmir gallery lightbox)
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 22, 35, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox.is-closing { transition: none !important; }

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1100px);
  height: 86vh;
  height: 86dvh;
  overflow: hidden;
  touch-action: none;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
  transition: transform .12s ease-out;
  will-change: transform;
}
.lightbox-slide {
  display: block;
  width: 100%;
  height: 100%;
}
.lightbox-slide.no-anim { transition: none !important; }
.lightbox-stage.is-zoomed img { cursor: grab; }
.lightbox-stage.is-dragging img { cursor: grabbing; transition: none; }

.lightbox-hint {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(8, 31, 50, .65);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox-close:hover {
  background: var(--cta);
  border-color: var(--cta);
  transform: scale(1.04);
}
.lightbox-close:active { transform: scale(.96); }
.lightbox-close svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.lightbox-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(8, 31, 50, .65);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox-nav:hover {
  background: var(--cta);
  border-color: var(--cta);
}
.lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.lightbox-prev { left: 22px; left: max(22px, env(safe-area-inset-left, 0px)); }
.lightbox-next { right: 22px; right: max(22px, env(safe-area-inset-right, 0px)); }

.lightbox-counter {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .lightbox-hint { display: none; }
  .lightbox-stage { height: 74vh; height: 74dvh; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 60px; height: 60px; }
}


@media (max-width: 599px) {
  .page-visual--logo { padding: 22px 24px; }
}


@media (max-width: 599px) {
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}


@media (max-width: 599px) {
  .variant-thumb { width: 96px; height: 72px; }
}

/* Product page trust strip: 30% larger text */
.product-page .trust-item { font-size: 12.35px; }
@media (min-width: 700px) {
  .product-page .trust-item { font-size: 13.65px; }
}

/* Product page benefit card text: 20% larger, headings unchanged */
.product-page .benefit-card p { font-size: 15px; }
@media (min-width: 700px) {
  .product-page .benefit-card p { font-size: 15.36px; }
}

/* Button labels: 25% larger */
.btn { font-size: 15px; }
.btn-lg { font-size: 17.5px; }
.form-submit { font-size: 21px; }
.header-cta { font-size: 14.375px; }
@media (max-width: 599px) {
  .header-cta { font-size: 13.125px; }
}
@media (max-width: 380px) {
  .header-cta { font-size: 12.5px; }
}

/* Keep the enlarged desktop navigation on one line at the 1024px breakpoint */
@media (min-width: 1024px) and (max-width: 1179px) {
  .header-inner { gap: 20px; }
  .nav-links { gap: 14px; }
}

/* Product page material descriptions: 40% larger, titles unchanged */
.tech-grid span { font-size: 13.3px; }

/* --------------------------------------------------------------------------
   Unified three-tier type scale
   Small 15px - Mid 18px - Big 44/64px
   Announcement, privacy note and numeric display values remain exceptions.
   -------------------------------------------------------------------------- */
:root {
  --fs-small: 15px;
  --fs-mid: 18px;
  --fs-big: clamp(44px, 5vw, 64px);
}

h1,
h2 {
  font-size: var(--fs-big) !important;
}

h3,
h4,
.btn,
.btn-lg,
.form-submit,
.nav-links a,
.acc-trigger,
.manual-check summary,
.tech-grid strong {
  font-size: var(--fs-mid) !important;
}

body,
p,
li,
dt,
dd,
label,
input,
textarea,
select,
small,
figcaption,
.kicker,
.eyebrow,
.breadcrumbs,
.page-intro,
.product-intro,
.section-intro,
.lead,
.note,
.product-buy-note,
.form-note,
.footer-nav a,
.footer-bottom,
.trust-item,
.tech-grid span,
.product-trust li,
.benefit-card p,
.benefit-num,
.hero-tag,
.hero-card span,
.product-badge,
.stat-label,
.media-badge span,
.manual-toc a,
.manual-toc-title,
.manual-kicker,
.manual-section p,
.manual-section li,
.manual-note,
.manual-part p,
.manual-control p,
.manual-step p,
.manual-check-body p,
.manual-figure figcaption,
.contact-direct address,
.contact-phone,
.nav-phone,
.nav-aside p {
  font-size: var(--fs-small) !important;
}

/* Preserve the explicitly requested small privacy note and prevent title overflow */
.form-privacy { font-size: 10px !important; }
h1,
h2 { overflow-wrap: anywhere; }

/* Math question label: regular wording, bold numbers and question mark */
.form-math label {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.form-math label strong { font-weight: 800; }

/* Contact page: Contact Form heading at 50% of the big-title size */
.contact-page .contact-copy h2 {
  font-size: clamp(22px, 2.5vw, 32px) !important;
}

/* Mobile: photos and product graphics run edge to edge, text keeps its gutters */
@media (max-width: 699px) {
  .split-media,
  .product-gallery {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
  .product-gallery .gallery-main-trigger,
  .product-gallery .gallery-thumb { border-radius: 0; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .hero-media,
  .lifestyle-media,
  .split-media,
  .product-gallery {
    margin-left: -36px;
    margin-right: -36px;
    border-radius: 0;
  }
  .product-gallery .gallery-main-trigger,
  .product-gallery .gallery-thumb { border-radius: 0; }
}

/* Long single-word manual headings shrink on small screens instead of clipping */
@media (max-width: 599px) {
  .manual-section h2#troubleshooting {
    font-size: clamp(28px, 8vw, 38px) !important;
  }
}

/* Premium build -> specifications: reduce the section gap by 70% */
.product-section--premium { padding-bottom: 18.6px; }
#specs { padding-top: 18.6px; }
@media (min-width: 700px) {
  .product-section--premium { padding-bottom: 23.4px; }
  #specs { padding-top: 23.4px; }
}
@media (min-width: 900px) {
  .product-section--premium { padding-bottom: 27.6px; }
  #specs { padding-top: 27.6px; }
}
