
/* =========================================================
   MRT / CROSS DEVICE FIX
   Phone / tablet render compatibility
========================================================= */


/* =========================================================
   01. TOUCH DEVICES
   GPU / BLUR SAFE HERO
========================================================= */

@media (max-width:900px) and (pointer:coarse){

  /*
    Bazı Android GPU/WebView kombinasyonlarında büyük
    blur layer'ları ayrı compositor layer'a taşınıp
    içeriğin üstünde hatalı render olabiliyor.

    Blur kullanmadan gradient ile aynı atmosferi koruyoruz.
  */

  .hero-glow{
    filter:none !important;

    pointer-events:none !important;

    z-index:0 !important;
  }


  .hero-glow-red{
    width:68vw !important;
    height:68vw !important;

    max-width:360px;
    max-height:360px;

    left:-22% !important;
    top:9% !important;

    background:
      radial-gradient(
        circle,
        rgba(120,35,28,.21) 0%,
        rgba(120,35,28,.10) 42%,
        rgba(120,35,28,0) 72%
      ) !important;
  }


  .hero-glow-gold{
    width:62vw !important;
    height:62vw !important;

    max-width:330px;
    max-height:330px;

    right:-18% !important;
    bottom:6% !important;

    background:
      radial-gradient(
        circle,
        rgba(215,169,70,.13) 0%,
        rgba(215,169,70,.055) 42%,
        rgba(215,169,70,0) 72%
      ) !important;
  }


  /*
    Ürün arkasındaki glow da gerçek blur kullanmasın.
  */

  .product-glow{
    filter:none !important;

    background:
      radial-gradient(
        circle,
        rgba(215,169,70,.16) 0%,
        rgba(120,35,28,.10) 37%,
        rgba(120,35,28,.035) 55%,
        transparent 72%
      ) !important;
  }


  /*
    Mobil GPU'da sürekli rasterize edilen noise'a
    ihtiyacımız yok.
  */

  .hero-bg-noise{
    display:none !important;
  }


  /*
    Sahne katmanlarını kesin sıraya al.
  */

  .hero{
    isolation:isolate !important;
  }


  .hero-inner{
    position:relative !important;

    z-index:5 !important;
  }


  .hero-copy{
    position:relative !important;

    z-index:20 !important;
  }


  .hero-scene{
    position:relative !important;

    z-index:5 !important;

    isolation:isolate !important;
  }


  .scene-ribbon{
    z-index:1 !important;
  }


  .scene-layer-back{
    z-index:3 !important;
  }


  .product-wrap{
    z-index:6 !important;
  }


  .scene-layer-front{
    z-index:8 !important;
  }


  /*
    Mobilde gereksiz GPU promotion istemiyoruz.
    GSAP transformlarını bozmadan sadece will-change
    kullanımını normalleştiriyoruz.
  */

  .product-image,
  .spice,
  .scene-ribbon svg{
    will-change:auto !important;
  }

}


/* =========================================================
   02. MOBILE HEADER
   SOL MENU / ORTA LOGO / SAĞ LANGUAGE
========================================================= */

@media(max-width:700px){

  /*
    Önceki absolute positioning yerine gerçek grid.
    Sol ve sağ kolon eşit olduğu için logo ekranın
    GERÇEK merkezinde kalır.
  */

  .header-shell{
    position:relative !important;

    display:grid !important;

    grid-template-columns:
      minmax(0,1fr)
      auto
      minmax(0,1fr) !important;

    align-items:center !important;

    gap:8px !important;
  }


  /*
    header-actions wrapper'ını layout açısından kaldır.
    İçindeki menu + language direkt grid item olur.
  */

  .header-actions{
    display:contents !important;
  }


  /* -------------------------------------------------------
     LEFT / MENU
  ------------------------------------------------------- */

  .menu-toggle{
    position:static !important;

    grid-column:1 !important;
    grid-row:1 !important;

    justify-self:start !important;

    transform:none !important;

    margin:0 !important;
  }


  /* -------------------------------------------------------
     CENTER / BRAND
  ------------------------------------------------------- */

  .brand{
    position:static !important;

    grid-column:2 !important;
    grid-row:1 !important;

    justify-self:center !important;

    transform:none !important;

    margin:0 !important;

    max-width:150px !important;

    min-width:0 !important;

    gap:6px !important;
  }


  .brand-mark{
    flex:0 0 auto !important;

    width:34px !important;
    height:34px !important;
  }


  .brand-mark svg{
    width:22px !important;
    height:22px !important;
  }


  .brand-copy{
    min-width:0 !important;
  }


  .brand-copy strong{
    display:block;

    font-size:15px !important;

    white-space:nowrap;
  }


  .brand-copy small{
    display:block;

    font-size:5.2px !important;

    white-space:nowrap;
  }


  /* -------------------------------------------------------
     RIGHT / LANGUAGE
  ------------------------------------------------------- */

  .language-switcher--premium{
    position:static !important;

    grid-column:3 !important;
    grid-row:1 !important;

    justify-self:end !important;

    transform:none !important;

    margin:0 !important;

    min-width:104px !important;

    width:104px !important;
  }


  .language-switcher--premium
  .gt_switcher{
    width:104px !important;
  }


  /*
    Açılan dropdown sağ kenara hizalı kalır.
  */

  .language-switcher--premium
  .gt_option{
    left:auto !important;

    right:0 !important;

    width:138px !important;
  }

}


/* =========================================================
   03. NARROW PHONES
   320 - 380px
========================================================= */

@media(max-width:380px){

  .header-shell{
    gap:5px !important;
  }


  .brand{
    max-width:118px !important;
  }


  .brand-mark{
    width:31px !important;
    height:31px !important;
  }


  .brand-copy strong{
    font-size:13px !important;
  }


  /*
    Çok dar cihazda alt sloganı kaldırmak,
    logonun dil seçiciyle çarpışmasından daha doğru.
  */

  .brand-copy small{
    display:none !important;
  }


  .language-switcher--premium{
    min-width:96px !important;

    width:96px !important;
  }


  .language-switcher--premium
  .gt_switcher{
    width:96px !important;
  }

}


/* =========================================================
   04. LARGE MOBILE
   Pro Max / Ultra vb.
========================================================= */

@media(min-width:420px) and (max-width:700px){

  .brand{
    max-width:175px !important;

    gap:7px !important;
  }


  .brand-mark{
    width:36px !important;
    height:36px !important;
  }


  .brand-copy strong{
    font-size:16px !important;
  }


  .brand-copy small{
    font-size:5.6px !important;
  }


  .language-switcher--premium{
    width:108px !important;

    min-width:108px !important;
  }


  .language-switcher--premium
  .gt_switcher{
    width:108px !important;
  }

}


/* =========================================================
   05. LANDSCAPE PHONE
========================================================= */

@media(
  max-height:500px
)
and
(
  orientation:landscape
)
and
(
  pointer:coarse
){

  .hero{
    min-height:620px !important;
  }


  .hero-inner{
    min-height:620px !important;
  }


  .hero-scene{
    min-height:320px !important;
  }

}


/* =========================================================
   06. SAFE AREA / iPHONE
========================================================= */

@supports(
  padding:max(0px)
){

  @media(max-width:700px){

    .site-header .header-shell{
      padding-left:
        max(
          0px,
          env(safe-area-inset-left)
        );

      padding-right:
        max(
          0px,
          env(safe-area-inset-right)
        );
    }

  }

}

