/* MXonnowell v0.3.23 — Mobil / tablet / web final responsive, ilk video kararlılığı ve ürün/kart yoğunluk QA. */
:root{
  --mx323-mobile-gutter:12px;
  --mx323-tablet-gutter:22px;
  --mx323-web-gutter:28px;
  --mx323-dock-space:96px;
  --mx323-video-bg:#06172b;
  --mx323-line:#dfe9e5;
  --mx323-green:#0b7b43;
  --mx323-ink:#0d3268;
}
html,body{max-width:100%;overflow-x:clip}
img,video{max-width:100%}

/* İlk video: poster gerçek video çizilene kadar videonun ÜSTÜNDE kalır. Böylece ilk yüklemede siyah/boş kare yanıp sönmez. */
.mx302-video-first__frame{position:relative!important;isolation:isolate!important;background:var(--mx323-video-bg)!important;contain:layout paint!important}
.mx302-video-first__frame .mx302-video-el{
  z-index:2!important;opacity:1!important;visibility:visible!important;background:var(--mx323-video-bg)!important;
  object-position:center center!important;transform:translateZ(0);backface-visibility:hidden
}
.mx302-video-first__frame .mx302-video-poster{
  z-index:3!important;opacity:1!important;visibility:visible!important;pointer-events:none!important;
  background:var(--mx323-video-bg)!important;transition:opacity .24s ease,visibility .24s ease!important;
  transform:translateZ(0);backface-visibility:hidden
}
.mx302-video-first__frame.is-mx312-playing:not(.is-mx312-switching) .mx302-video-poster,
.mx302-video-first__frame.is-mx323-first-frame-ready:not(.is-mx312-switching) .mx302-video-poster{opacity:0!important;visibility:hidden!important}
.mx302-video-first__frame.is-mx312-switching .mx302-video-poster,
.mx302-video-first__frame.is-mx312-waiting .mx302-video-poster,
.mx302-video-first__frame.is-mx316-video-unavailable .mx302-video-poster{opacity:1!important;visibility:visible!important}
.mx302-video-first__badge{z-index:5!important}

/* Sunucudan gelen ilk kaynak yönü, metadata gelmeden önce bile frame'i doğru ölçüde tutar. */
@media(min-width:1024px){
  .mx302-video-first[data-mx323-web-orientation="landscape"] .mx302-video-first__frame{aspect-ratio:16/9!important;width:min(100%,1180px)!important}
  .mx302-video-first[data-mx323-web-orientation="square"] .mx302-video-first__frame{aspect-ratio:1/1!important;width:min(72vw,760px)!important}
  .mx302-video-first[data-mx323-web-orientation="portrait"] .mx302-video-first__frame{aspect-ratio:9/16!important;width:min(42vw,560px)!important}
  .mx302-video-first__frame .mx302-video-el,.mx302-video-first__frame .mx302-video-poster{object-fit:contain!important}
}

/* Tablet kendine ait geometri: desktop'un küçültülmüş hali değil. */
@media(min-width:768px) and (max-width:1023px){
  .mx302-video-first{padding:10px 0 16px!important}
  .mx302-video-first>.mx-wrap{width:calc(100% - (var(--mx323-tablet-gutter) * 2))!important;max-width:none!important}
  .mx302-video-first[data-mx323-web-orientation="landscape"] .mx302-video-first__frame{width:100%!important;aspect-ratio:16/9!important}
  .mx302-video-first[data-mx323-web-orientation="square"] .mx302-video-first__frame{width:min(78vw,650px)!important;aspect-ratio:1/1!important;margin-inline:auto!important}
  .mx302-video-first[data-mx323-web-orientation="portrait"] .mx302-video-first__frame{width:min(70vw,600px)!important;aspect-ratio:9/16!important;margin-inline:auto!important}
  .mx302-video-first__frame .mx302-video-el,.mx302-video-first__frame .mx302-video-poster{object-fit:contain!important}

  .mx302-feature-grid.mx302-cols-4,.mx302-feature-grid.mx302-cols-5,.mx302-feature-grid.mx302-cols-6,.mx302-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mx302-feature-card,.mx302-explore-card{height:auto!important;min-height:0!important;padding:22px 20px!important}
  .mx302-media-card,.mx302-video-card,.mx302-story-card{flex:0 0 calc(50% - 8px)!important;width:calc(50% - 8px)!important}
  .mx302-hero__grid,.mx302-split__grid{grid-template-columns:1fr 1fr!important}
  .mx302-hero__media,.mx302-split__media{min-height:360px!important;max-height:560px!important}
  .mx302-hero__media img,.mx302-split__media img{object-fit:cover!important}
  .mx302-page--onnowell-urunleri [data-mx-builder-key="products-featured"] .mx302-split__media img{object-fit:contain!important;padding:12px!important;background:#fff!important}
}

/* Mobil ilk video: yatay video tam genişlik, dikey video gerçek 9:16 tam sayfa etkisi. */
@media(max-width:767px){
  :root{--mx323-dock-space:94px}
  body.mx-has-mobile-dock{padding-bottom:calc(var(--mx323-dock-space) + env(safe-area-inset-bottom,0px))!important}
  .mx302-video-first{padding:5px 0 12px!important;background:#fff!important}
  .mx302-video-first>.mx-wrap{width:calc(100% - (var(--mx323-mobile-gutter) * 2))!important;max-width:none!important;margin-inline:auto!important}
  .mx302-video-first__frame{width:100%!important;min-height:0!important;max-height:none!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(14,49,83,.08)!important}
  .mx302-video-first[data-mx323-mobile-orientation="landscape"] .mx302-video-first__frame,
  .mx302-video-first__frame.is-mx323-landscape,.mx302-video-first__frame.is-mx320-landscape,.mx302-video-first__frame.is-mx317-landscape{aspect-ratio:16/9!important;width:100%!important}
  .mx302-video-first[data-mx323-mobile-orientation="square"] .mx302-video-first__frame,
  .mx302-video-first__frame.is-mx323-square,.mx302-video-first__frame.is-mx320-square,.mx302-video-first__frame.is-mx317-square{aspect-ratio:1/1!important;width:100%!important}
  .mx302-video-first[data-mx323-mobile-orientation="portrait"] .mx302-video-first__frame,
  .mx302-video-first__frame.is-mx323-portrait,.mx302-video-first__frame.is-mx320-portrait,.mx302-video-first__frame.is-mx317-portrait{
    width:100%!important;aspect-ratio:9/16!important;max-height:none!important;margin-inline:auto!important
  }
  .mx302-video-first__frame .mx302-video-el,.mx302-video-first__frame .mx302-video-poster{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  .mx302-video-first__badge{left:10px!important;right:10px!important;bottom:10px!important;max-width:calc(100% - 20px)!important}

  /* Hero ve split görseller: mobilde tam kolon ama gereksiz dev yükseklik yok. */
  .mx302-hero__grid,.mx302-split__grid{display:grid!important;grid-template-columns:1fr!important;min-width:0!important}
  .mx302-hero__media,.mx302-split__media{order:1!important;width:100%!important;min-height:0!important;height:auto!important;max-height:min(62svh,500px)!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:16px 16px 0 0!important;background:#f7fafb!important}
  .mx302-hero__media img,.mx302-split__media img{display:block!important;width:100%!important;height:clamp(260px,70vw,460px)!important;object-fit:cover!important;object-position:center!important}
  .mx302-hero__copy,.mx302-split__copy{order:2!important;padding:22px 18px 24px!important}
  .mx302-page--onnowell-urunleri [data-mx-builder-key="products-featured"] .mx302-split__media{max-height:none!important;background:#fff!important}
  .mx302-page--onnowell-urunleri [data-mx-builder-key="products-featured"] .mx302-split__media img{height:auto!important;max-height:68svh!important;object-fit:contain!important;padding:8px!important;background:#fff!important}

  /* Bilgi kartları: gereksiz dikey boşluğu kaldır. */
  .mx302-feature-grid,.mx302-explore-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mx302-feature-card,.mx302-explore-card,.mx302-steps article{height:auto!important;min-height:0!important;padding:18px 16px!important}
  .mx302-feature-card .mx302-icon,.mx302-explore-card .mx302-icon,.mx302-steps .mx302-icon{width:48px!important;height:48px!important;min-width:48px!important;margin:0 auto 10px!important;padding:12px!important}
  .mx302-feature-card h3,.mx302-explore-card h3{margin:4px 0 6px!important;font-size:16px!important;line-height:1.28!important}
  .mx302-feature-card p,.mx302-explore-card p,.mx302-steps article p{margin:0!important;font-size:13px!important;line-height:1.48!important}

  /* Hikâye / medya / video carousel: kart ekranı kullanır ama ikinci kartı hafif gösterir. */
  .mx302-media-grid,.mx302-video-card-grid,.mx302-story-grid{display:flex!important;gap:11px!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-inline:0!important;padding:2px 0 10px!important}
  .mx302-media-card,.mx302-story-card{flex:0 0 86%!important;width:86%!important;max-width:86%!important;scroll-snap-align:start!important;height:auto!important;min-height:0!important}
  .mx302-video-card{flex:0 0 90%!important;width:90%!important;max-width:90%!important;scroll-snap-align:start!important;height:auto!important;min-height:0!important}
  .mx302-media-card figure,.mx302-story-card figure{width:100%!important;aspect-ratio:4/3!important;max-height:62vw!important;border-radius:15px!important;overflow:hidden!important;background:#f6faf9!important}
  .mx302-media-card figure img,.mx302-story-card figure img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
  .mx302-video-card__frame{width:100%!important;aspect-ratio:16/9!important;border-radius:15px!important;overflow:hidden!important;background:var(--mx323-video-bg)!important}
  .mx302-video-card__frame video,.mx302-video-card__frame img{width:100%!important;height:100%!important;object-fit:cover!important}
  .mx302-video-card__frame.is-mx320-portrait,.mx302-video-card__frame.is-mx323-portrait{aspect-ratio:9/16!important;max-height:72svh!important;width:min(100%,430px)!important;margin-inline:auto!important}

  .mx307-story-featured__card,.mx307-story-featured__grid{display:grid!important;grid-template-columns:1fr!important}
  .mx307-story-featured__media{min-height:0!important;height:auto!important;max-height:58svh!important;overflow:hidden!important}
  .mx307-story-featured__media img{width:100%!important;height:auto!important;max-height:58svh!important;object-fit:cover!important;object-position:center!important}
  .mx307-story-featured__copy{padding:20px 18px!important}

  /* Katalog kartları: uzun posterleri dev tam genişlik karta dönüştürmek yerine kompakt bilgi kartı. */
  .mx322-catalog .mx-public-product-grid,.mx-public-product-grid{grid-template-columns:1fr!important;gap:11px!important}
  .mx322-catalog .mx-public-product-card,.mx-public-product-card{
    display:grid!important;grid-template-columns:minmax(116px,36%) minmax(0,1fr)!important;align-items:stretch!important;
    min-height:0!important;height:auto!important;border-radius:16px!important;overflow:hidden!important
  }
  .mx322-catalog .mx-public-product-image,.mx-public-product-image{width:100%!important;min-height:138px!important;height:100%!important;aspect-ratio:auto!important;border:0!important;border-right:1px solid #edf2ef!important;background:#fff!important}
  .mx322-catalog .mx-public-product-image img,.mx-public-product-image img{width:100%!important;height:100%!important;max-height:220px!important;padding:6px!important;object-fit:contain!important;background:#fff!important}
  .mx322-catalog .mx-public-product-card>div:last-child,.mx-public-product-card>div:last-child{min-width:0!important;padding:13px 11px!important;justify-content:center!important}
  .mx322-catalog .mx-public-product-card h3,.mx-public-product-card h3{margin:5px 0!important;font-size:16px!important;line-height:1.25!important;overflow-wrap:anywhere}
  .mx322-product-summary{display:none!important}
  .mx322-catalog .mx52-card-actions,.mx52-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:7px!important;padding-top:7px!important}
  .mx322-catalog .mx52-card-actions button,.mx322-catalog .mx52-card-actions a,.mx52-card-actions button,.mx52-card-actions a{min-height:40px!important;padding:5px 6px!important;font-size:10.5px!important;line-height:1.2!important}
  .mx322-catalog .mx52-card-actions .mx52-card-cart,.mx52-card-actions .mx52-card-cart{grid-column:1/-1!important}

  /* Referans ONNOWELL ürün kartı da aynı yoğunlukta. */
  .mx302-product-grid{grid-template-columns:1fr!important;gap:11px!important}
  .mx302-product-card{display:grid!important;grid-template-columns:minmax(116px,36%) minmax(0,1fr)!important;width:100%!important;min-height:0!important;height:auto!important;border-radius:16px!important;overflow:hidden!important}
  .mx302-product-card__media{min-height:138px!important;height:100%!important;aspect-ratio:auto!important;border-radius:0!important;border-right:1px solid #edf2ef!important;background:#fff!important}
  .mx302-product-card__media img{width:100%!important;height:100%!important;max-height:220px!important;padding:6px!important;object-fit:contain!important}
  .mx302-product-card__body{padding:13px 11px!important;justify-content:center!important}

  /* Ürün detay: servis/değerlendirme kartlarında boş alanı azalt, sticky satın al barını mobil dock üstüne taşı. */
  .mx90-product-detail{width:calc(100% - 18px)!important;padding-bottom:calc(184px + env(safe-area-inset-bottom,0px))!important}
  .mx272-service-grid{grid-template-columns:1fr!important;gap:9px!important}
  .mx272-service-card,.mx277-review-note,.mx293-review-note,.mx293-review-trust-card,.mx293-review-score-card{height:auto!important;min-height:0!important;padding:17px 16px!important;border-radius:15px!important}
  .mx272-service-card h3,.mx293-review-note strong,.mx293-review-trust-card strong{margin-top:0!important;margin-bottom:7px!important}
  .mx272-service-card p,.mx277-review-note span,.mx293-review-note span,.mx293-review-trust-card p{margin:0!important;font-size:14px!important;line-height:1.5!important}
  .mx90-mobile-buybar{left:10px!important;right:10px!important;bottom:calc(var(--mx323-dock-space) - 4px + env(safe-area-inset-bottom,0px))!important;z-index:1640!important;min-height:62px!important;padding:8px!important;border:1px solid var(--mx323-line)!important;border-radius:16px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 10px 28px rgba(10,43,30,.16)!important}
  .mx90-mobile-buybar a{min-height:46px!important}
  .mx-mobile-dock{z-index:1650!important}

  .mx90-final-cta{color:#fff!important;background:linear-gradient(125deg,#064f73,#087d76 55%,#16823f)!important;border-color:transparent!important}
  .mx90-final-cta h2,.mx90-final-cta p,.mx90-final-cta span{color:#fff!important}

  /* Mobil başlıklar ve section ritmi. */
  .mx302-section{padding:34px 0!important}
  .mx302-heading{margin-bottom:18px!important}
  .mx302-heading h2{font-size:clamp(28px,8vw,38px)!important;line-height:1.08!important;letter-spacing:-.035em!important}
  .mx302-heading p{font-size:14px!important;line-height:1.52!important}
  .mx302-hero h1{font-size:clamp(38px,10.8vw,54px)!important;line-height:1.02!important}
  .mx302-split__copy h2{font-size:clamp(30px,8.8vw,42px)!important;line-height:1.07!important}
}

/* Header: logo + 2 kayıt işlemi + sepet + menü tek satır, sıkışmadan. */
@media(max-width:1024px){
  html body .mx-header-v0148 .mx-header__in{display:grid!important;grid-template-columns:minmax(112px,1fr) auto!important;align-items:center!important;width:calc(100% - 16px)!important;gap:6px!important;padding:0!important;overflow:visible!important}
  html body .mx-header-v0148 .mx-brand{min-width:0!important;max-width:none!important;overflow:visible!important;gap:7px!important}
  html body .mx-header-v0148 .mx-brand__logo--apex{width:auto!important;max-width:118px!important;max-height:42px!important;object-fit:contain!important}
  html body .mx-header-v0148 .mx-brand__logo--apex-emblem{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;max-height:40px!important}
  html body .mx-header-v0148 .mx-brand__apex-copy{display:flex!important;min-width:0!important}
  html body .mx-header-v0148 .mx-brand__apex-copy strong{font-size:15px!important;letter-spacing:.09em!important}
  html body .mx-header-v0148 .mx-brand__apex-copy small{font-size:6px!important;letter-spacing:.25em!important}
  html body .mx-header-v0148 .mx37-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:4px!important;min-width:0!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head{display:flex!important;flex-wrap:nowrap!important;gap:4px!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head .mx280-saved-action{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;border-radius:12px!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head .mx280-saved-count{top:-5px!important;right:-4px!important;min-width:19px!important;height:19px!important;line-height:15px!important}
  html body .mx-header-v0148 .mx37-cart-trigger--mobile{width:46px!important;min-width:46px!important;height:44px!important;min-height:44px!important;padding:0 6px!important;border-radius:12px!important}
  html body .mx-header-v0148 .mx-site-menu-toggle{display:inline-flex!important;width:46px!important;min-width:46px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:12px!important}
}
@media(max-width:374px){
  :root{--mx323-mobile-gutter:8px}
  html body .mx-header-v0148 .mx-header__in{width:calc(100% - 10px)!important;grid-template-columns:minmax(96px,1fr) auto!important;gap:3px!important}
  html body .mx-header-v0148 .mx-brand__logo--apex{max-width:102px!important;max-height:38px!important}
  html body .mx-header-v0148 .mx-brand__logo--apex-emblem{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important}
  html body .mx-header-v0148 .mx-brand__apex-copy strong{font-size:13px!important}
  html body .mx-header-v0148 .mx-brand__apex-copy small{font-size:5.5px!important}
  html body .mx-header-v0148 .mx37-header-actions{gap:2px!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head{gap:2px!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head .mx280-saved-action{width:35px!important;min-width:35px!important;height:40px!important;min-height:40px!important}
  html body .mx-header-v0148 .mx280-saved-actions--mobile-head .mx280-saved-icon,html body .mx-header-v0148 .mx280-saved-actions--mobile-head .mx280-saved-icon svg{width:18px!important;height:18px!important}
  html body .mx-header-v0148 .mx37-cart-trigger--mobile,html body .mx-header-v0148 .mx-site-menu-toggle{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
}

/* Yalnız bilinçli carousel yatay kayabilir; sayfanın kendisi kayamaz. */
.mx302-media-grid,.mx302-video-card-grid,.mx302-story-grid,.mx302-steps,.mx-product-category-grid--catalog{overscroll-behavior-inline:contain}

@media(max-height:560px) and (orientation:landscape){
  .mx302-video-first[data-mx323-mobile-orientation="portrait"] .mx302-video-first__frame,.mx302-video-first__frame.is-mx323-portrait{width:auto!important;height:min(70svh,460px)!important;aspect-ratio:9/16!important}
  .mx90-mobile-buybar{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .mx302-video-first__frame .mx302-video-poster{transition:none!important}
  .mx302-media-grid,.mx302-video-card-grid,.mx302-story-grid{scroll-behavior:auto!important}
}
@media(max-width:1023px){.mx323-overflow-guard{max-width:100vw!important;box-sizing:border-box!important}}
