/* ════════════════════════════════════════════════════════════
   WordPress layer, loaded after site.css and alt.css.
   1. Page builders: Quixx elements are full-bleed sections, so the spacing Elementor and
      WPBakery put around widgets/rows is removed wherever a Quixx element sits.
   2. WordPress specifics: admin bar, hidden FAQ items, honeypot, plain text pages.
   ════════════════════════════════════════════════════════════ */

/* ── Elementor ─────────────────────────────────────────────── */
.elementor .e-con:has(.qx-block) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%; --container-max-width: 100%;
  padding: 0; max-width: none;
}
.elementor .e-con:has(.qx-block) > .e-con-inner { max-width: none; padding: 0; gap: 0; }
.elementor .elementor-section:has(.qx-block) > .elementor-container { max-width: none; }
.elementor .elementor-column:has(.qx-block) > .elementor-widget-wrap,
.elementor .elementor-column:has(.qx-block) > .elementor-column-wrap > .elementor-widget-wrap { padding: 0; }
.elementor .elementor-widget:has(.qx-block) { margin: 0; width: 100%; }
.elementor .elementor-widget:has(.qx-block):not(:last-child) { margin-bottom: 0; }
.elementor .elementor-widget:has(.qx-block) > .elementor-widget-container { margin: 0; padding: 0; }
/* Elementor's `.elementor img { height: auto; max-width: 100% }` outranks single-class image rules */
.elementor .lx-slide img, .elementor .lx-cold__bg, .elementor .lx-contact__photo img, .elementor .lx-card__fill img, .elementor .lx-band img { height: 100%; max-width: none; }
.elementor .lx-cold__bg { height: 116%; }
.elementor .lx-cold__box { height: calc(var(--stage) * .88); max-width: none; }
.elementor .lx-tile__pack { height: 80%; max-width: 42%; }
.elementor .lx-tile--acute .lx-tile__pack { height: 74%; }
.elementor .lx-tile--cold .lx-tile__pack { height: 84%; }
.elementor .lx-tonic__products img { height: 170px; max-width: none; }
.elementor .lx-bov__packs img { height: 140px; max-width: none; }
.elementor .p-fig { margin: 6px 0 26px; }
@media (max-width: 900px) {
  .elementor .lx-tile__pack, .elementor .lx-tile--acute .lx-tile__pack, .elementor .lx-tile--cold .lx-tile__pack { height: 200px; max-width: none; }
  .elementor .lx-tonic__products img { height: 130px; }
  .elementor .lx-bov__packs img { height: 110px; }
}
/* the product card grid also lives inside .lx-flow on the product page */
.lx-flow .elementor, .lx-flow .elementor-section-wrap { display: block; }

/* ── WPBakery ─────────────────────────────────────────────── */
.vc_row:has(.qx-block) { margin-left: 0; margin-right: 0; padding: 0; }
.vc_row[data-vc-full-width]:has(.qx-block) { overflow: visible; }
.vc_column_container:has(.qx-block) { padding: 0; }
.vc_column_container:has(.qx-block) > .vc_column-inner { padding: 0; }
.wpb_wrapper > .qx-block + .qx-block { margin-top: 0; }
.vc_row:has(.qx-block) .wpb_content_element { margin-bottom: 0; }

/* ── WordPress ────────────────────────────────────────────── */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.faq__item[hidden], .faq-more[hidden] { display: none; }
.qx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qx-editing .lx-intro .lx-hero__frame { clip-path: none; }
/* any product added later still fills the grid sensibly */
:where(.lx-bento > .lx-tile) { grid-column: span 6; }
/* the banner tabs follow the number of slides chosen in the element */
.lx-needs[style*="--n"] { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
@media (max-width: 900px) { :where(.lx-bento > .lx-tile) { grid-column: auto; } }

/* Plain text pages (KVKK, policies) and the "Metin bölümü" element */
.qx-prose__body { max-width: 46em; font-size: 1.06rem; line-height: 1.7; color: var(--ink); }
.qx-prose__body > * + * { margin-top: 1em; }
.qx-prose__body h2, .qx-prose__body h3 { color: var(--navy); line-height: 1.2; margin-top: 1.6em; }
.qx-prose__body a { color: var(--sea-700); }
.qx-prose__body ul, .qx-prose__body ol { padding-left: 1.3em; }
.qx-prose .h2 { margin-bottom: 28px; }
.qx-prose__item + .qx-prose__item { margin-top: 48px; }

/* Contact form from a plugin shortcode (e.g. Contact Form 7) */
.form--plugin input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .form--plugin select, .form--plugin textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.form--plugin input[type="submit"] { appearance: none; border: 0; border-radius: 999px; padding: 0 28px; min-height: 52px; background: var(--navy); color: #fff; font: 700 15px/1 var(--f-body); cursor: pointer; }
