/* =========================================================
   ALYA REKLAM BOYUT + METIN FIX V3.6.7.5
   Yalnız kampanya kartlarını etkiler.
   Kurumsal / Mağaza merkezleme motoruna dokunmaz.
   ========================================================= */

@media (min-width:1100px){

  /* -------------------------------------------------------
     AI / Smart Discount popup
     ------------------------------------------------------- */
  .smart-discount-toast{
    width:var(--alya-smart-popup-width,330px)!important;
    min-width:var(--alya-smart-popup-width,330px)!important;
    max-width:min(var(--alya-smart-popup-width,330px),calc(100vw - 36px))!important;
    min-height:var(--alya-smart-popup-height,365px)!important;
    height:auto!important;
    overflow:hidden!important;
    border-radius:18px!important;
  }

  .smart-discount-header{
    min-height:38px!important;
    padding:15px 44px 6px 18px!important;
    gap:6px!important;
    font-size:9px!important;
    line-height:1.1!important;
    letter-spacing:.09em!important;
  }
  .smart-discount-header-icon{font-size:13px!important}

  .smart-discount-close{
    top:10px!important;
    right:10px!important;
    width:27px!important;
    height:27px!important;
    font-size:18px!important;
  }

  .smart-discount-media-wrap{
    margin:0 18px!important;
    min-height:104px!important;
    height:104px!important;
    border-radius:12px!important;
  }
  .smart-discount-media{height:104px!important}
  .smart-discount-media img{
    width:72%!important;
    height:92px!important;
    padding:4px!important;
    object-fit:contain!important;
  }

  /* İndirim rozeti resmin üstünde ayrı dursun; yazıya karışmasın. */
  .smart-discount-badge{
    left:8px!important;
    top:8px!important;
    min-width:auto!important;
    padding:5px 7px!important;
    border-radius:8px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .smart-discount-badge strong{
    display:inline!important;
    margin-right:2px!important;
    font-size:9px!important;
    line-height:1!important;
  }

  .smart-discount-content{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    padding:11px 18px 15px!important;
    text-align:center!important;
    overflow:visible!important;
  }

  .smart-discount-product{
    width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0 2px!important;
    color:#111827!important;
    font-size:14px!important;
    line-height:1.28!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    overflow-wrap:anywhere!important;
  }

  .smart-discount-prices{
    width:100%!important;
    margin-top:7px!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
  }
  .smart-discount-prices del{
    font-size:10px!important;
    line-height:1!important;
    color:#94a3b8!important;
  }
  .smart-discount-prices strong{
    font-size:19px!important;
    line-height:1!important;
    color:#111827!important;
  }

  .smart-discount-stock{
    margin-top:7px!important;
    padding:5px 9px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* Eski yatay çizgi alt bölümü gereksiz sıkıştırıyordu. */
  .smart-discount-rule{display:none!important}

  .smart-discount-countdown-label{
    display:block!important;
    width:100%!important;
    margin:8px 0 4px!important;
    color:#64748b!important;
    font-size:9px!important;
    line-height:1.2!important;
    text-align:center!important;
  }

  /* Sayaç artık küçük kırmızı noktalara dönüşmez; tek temiz pill. */
  .smart-discount-countdown{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-height:25px!important;
    margin:0 auto!important;
    padding:5px 9px!important;
    gap:3px!important;
    border:1px solid #e5e7eb!important;
    border-radius:999px!important;
    background:#f8fafc!important;
    color:#334155!important;
  }
  .smart-discount-timebox{
    width:auto!important;
    min-width:18px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .smart-discount-timebox b{
    display:block!important;
    color:#111827!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:900!important;
  }
  .smart-discount-timebox small{display:none!important}
  .smart-discount-sep{
    padding:0!important;
    color:#94a3b8!important;
    font-size:10px!important;
    line-height:1!important;
  }

  .smart-discount-button{
    width:100%!important;
    min-height:34px!important;
    margin-top:9px!important;
    padding:0 14px!important;
    border-radius:9px!important;
    font-size:9px!important;
    line-height:34px!important;
    box-sizing:border-box!important;
  }
  .smart-discount-dots{
    height:7px!important;
    margin-top:7px!important;
    gap:4px!important;
  }
  .smart-discount-dots i{
    width:5px!important;
    height:5px!important;
  }

  /* -------------------------------------------------------
     Mağaza ana sliderının sağındaki kampanya sliderı
     ------------------------------------------------------- */
  .theme-2.store-body .storefront-v44-hero > .storefront-v44-hero-grid{
    grid-template-columns:minmax(0,1fr) var(--alya-side-slider-width,300px)!important;
  }

  .theme-2.store-body .storefront-side-campaigns{
    width:var(--alya-side-slider-width,300px)!important;
    min-width:var(--alya-side-slider-width,300px)!important;
    max-width:var(--alya-side-slider-width,300px)!important;
    height:var(--alya-side-slider-height,320px)!important;
    min-height:var(--alya-side-slider-height,320px)!important;
    max-height:var(--alya-side-slider-height,320px)!important;
    align-self:start!important;
  }

  .theme-2.store-body .storefront-side-campaigns .storefront-side-campaign,
  .theme-2.store-body .storefront-side-campaigns .alya-premium-side-card,
  .theme-2.store-body .storefront-side-campaigns .alya-premium-side-card-link{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }

  /* Sağ sliderda alta sıkışmayı azalt. */
  .theme-2.store-body .alya-premium-side-body{
    box-sizing:border-box!important;
    padding-bottom:7px!important;
  }
  .theme-2.store-body .alya-premium-side-countdown{
    overflow:visible!important;
    white-space:nowrap!important;
  }
}

/* Mobil/tablet mevcut kompakt tasarımı kullanır. */


/* =========================================================
   ALYA SAĞ KAMPANYA SLIDER LAYOUT FIX V3.6.7.6
   ========================================================= */

@media (min-width:1100px){

  html.store-root body.theme-2.store-body .storefront-v44-hero > .storefront-v44-hero-grid{
    grid-template-columns:minmax(0,1fr) var(--alya-side-slider-width,300px)!important;
    gap:18px!important;
    align-items:start!important;
  }

  html.store-root body.theme-2.store-body .storefront-side-campaigns{
    position:relative!important;
    align-self:start!important;
    width:var(--alya-side-slider-width,300px)!important;
    min-width:var(--alya-side-slider-width,300px)!important;
    max-width:var(--alya-side-slider-width,300px)!important;
    height:var(--alya-side-slider-height,360px)!important;
    min-height:var(--alya-side-slider-height,360px)!important;
    max-height:var(--alya-side-slider-height,360px)!important;
    overflow:visible!important;
    contain:none!important;
  }

  html.store-root body.theme-2.store-body .storefront-side-campaigns .alya-premium-side-card{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-card-link{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-media{
    flex:0 0 clamp(112px,calc(var(--alya-side-slider-height,360px) * .38),150px)!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    box-sizing:border-box!important;
    padding:12px 14px 5px!important;
    overflow:hidden!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:var(--alya-side-image-fit,contain)!important;
    object-position:center!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-discount{
    top:9px!important;
    left:9px!important;
    max-width:92px!important;
    padding:6px 8px!important;
    border-radius:8px!important;
    font-size:8px!important;
    line-height:1.05!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    padding:5px 13px 14px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    text-align:center!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-eyebrow{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:10px!important;
    margin:0!important;
    font-size:8px!important;
    line-height:10px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-body h2{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:30px!important;
    max-height:45px!important;
    margin:0!important;
    padding:0 2px!important;
    color:#111827!important;
    font-size:13px!important;
    line-height:15px!important;
    font-weight:950!important;
    letter-spacing:-.01em!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    overflow-wrap:anywhere!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-description{
    display:none!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-prices{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:baseline!important;
    justify-content:center!important;
    gap:7px!important;
    width:100%!important;
    min-height:21px!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-prices del{
    font-size:9px!important;
    line-height:1!important;
    color:#94a3b8!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-prices strong{
    font-size:18px!important;
    line-height:1!important;
    color:#111827!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-stock{
    flex:0 0 auto!important;
    min-height:18px!important;
    margin:0!important;
    padding:4px 8px!important;
    font-size:7px!important;
    line-height:10px!important;
    white-space:nowrap!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown{
    flex:0 0 auto!important;
    align-self:stretch!important;
    width:100%!important;
    min-height:34px!important;
    height:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:4px 0 0!important;
    border-top:1px solid #edf0f4!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown > small{
    display:inline!important;
    margin:0 4px 0 0!important;
    color:#7b8493!important;
    font-size:7px!important;
    line-height:12px!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown > div{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    vertical-align:middle!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown span{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:18px!important;
    width:auto!important;
    height:20px!important;
    padding:0 3px!important;
    border:0!important;
    border-radius:5px!important;
    background:#f8fafc!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown b{
    font-size:9px!important;
    line-height:1!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown em{
    display:none!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-countdown > div > i{
    font-size:8px!important;
    line-height:1!important;
  }

  html.store-root body.theme-2.store-body .alya-premium-side-cta{
    flex:0 0 32px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    margin:1px 0 8px!important;
    padding:0 10px!important;
    border-radius:8px!important;
    font-size:8px!important;
    line-height:32px!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html.store-root body.theme-2.store-body .storefront-side-campaign-dots{
    bottom:5px!important;
    height:7px!important;
    padding:0!important;
    gap:4px!important;
    background:transparent!important;
    pointer-events:auto!important;
  }

  html.store-root body.theme-2.store-body .storefront-side-campaign-dots button{
    width:5px!important;
    height:5px!important;
    min-width:5px!important;
    min-height:5px!important;
  }

  html.store-root body.theme-2.store-body .storefront-side-campaign-arrow{
    top:33%!important;
    width:24px!important;
    height:24px!important;
    font-size:16px!important;
  }
}
