/* ============================================================
   ADX — Anasayfa monokrom spor-marka teması (tamamen özgün)
   Yalnızca yeni "adx-" sınıfları + SectionRenderer sarmalayıcıları.
   Palet: siyah #000 / beyaz #fff, ürün görsel zemini #ECEFF1,
   soluk metin #767677, çizgiler #e5e5e5, indirim kırmızısı #e32b2b.
   Köşe yuvarlama YOK, gölge YOK, 1px çizgiler.
   ============================================================ */

/* ------------------------------------------------------------
   1) SECTION RİTMİ — tüm section'larda tutarlı dikey boşluk
   (SectionRenderer inline padding basıyor; !important ile eziyoruz)
   ------------------------------------------------------------ */
.site-section { padding: 64px 0 !important; background-clip: padding-box; }
.site-section.section-slider { padding: 0 !important; }
@media (max-width: 768px) {
    .site-section { padding: 40px 0 !important; }
    .site-section.section-slider { padding: 0 !important; }
}

/* Legacy fallback (home.php statik düzeni) için de aynı ritim */
.section.products-section,
.section.categories-section,
.section.banners-section,
.section.brands-section { padding: 64px 0; }
@media (max-width: 768px) {
    .section.products-section,
    .section.categories-section,
    .section.banners-section,
    .section.brands-section { padding: 40px 0; }
}

/* ------------------------------------------------------------
   2) SECTION BAŞLIKLARI — büyük, kalın, UPPERCASE, sola dayalı
   ------------------------------------------------------------ */
.section-header { margin: 0 0 24px; text-align: left; }
/* body[class] öneki: overlay temaların (body.tema-*) kurallarını da ezer */
.section-title,
body[class] .section-header .section-title {
    margin: 0;
    font-family: var(--font-baslik, inherit);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    background: none;
}
.section-title::after,
.section-title::before,
body[class] .section-header .section-title::after,
body[class] .section-header .section-title::before { display: none; content: none; }
.section-title i { color: inherit; font-size: .8em; }
.section-subtitle,
body[class] .section-header .section-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--renk-text-muted, #767677);
}
@media (max-width: 768px) {
    .section-header { margin-bottom: 18px; }
    .section-title,
    body[class] .section-header .section-title { font-size: 20px; }
    .section-subtitle { font-size: 12px; }
}

/* "Tümünü Gör" satırı — başlığın sağ hizasına çekilir */
.adx-strip-tools { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.adx-strip-tools.adx-pull-up { margin-top: -50px; margin-bottom: 28px; }
@media (max-width: 768px) {
    .adx-strip-tools.adx-pull-up { margin-top: -42px; margin-bottom: 20px; }
}
.adx-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    transition: opacity .15s;
}
.adx-see-all:hover { opacity: .6; }
.adx-see-all span { transition: transform .15s; }
.adx-see-all:hover span { transform: translateX(3px); }

/* ------------------------------------------------------------
   3) BUTONLAR — .adx-btn (siyah) / .adx-btn--onimg (görsel üstü beyaz)
   ------------------------------------------------------------ */
.adx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 48px;
    padding: 0 22px;
    background: #000;
    color: #fff !important;
    border: 1px solid #000;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--font-baslik, inherit);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.adx-btn::after {
    content: "\2192"; /* → */
    font-size: 16px;
    line-height: 1;
    transition: transform .15s;
}
.adx-btn:hover { background: #fff; color: #000 !important; }
.adx-btn:hover::after { transform: translateX(4px); }
.adx-btn:disabled { opacity: .6; cursor: wait; }

.adx-btn--onimg { background: #fff; color: #000 !important; border-color: #fff; }
.adx-btn--onimg:hover { background: #000; color: #fff !important; border-color: #000; }

/* ------------------------------------------------------------
   4) HERO SLIDER — tam ekran genişliği, sol-alt kutulu başlıklar
   ------------------------------------------------------------ */
.hero-slider.adx-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 16 / 7;
    height: var(--slider-yukseklik, auto);
    max-height: none;
    overflow: hidden;
    background: #ECEFF1;
    border-radius: 0;
}
@media (max-width: 768px) {
    .hero-slider.adx-hero {
        aspect-ratio: 9 / 16;
        height: var(--slider-yukseklik-mobil, auto);
        min-height: 360px;
        max-height: none;
    }
}
.adx-hero .swiper-slide { position: relative; overflow: hidden; }
.adx-hero .slide-link { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; }
.adx-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sol-alt: her satır ayrı beyaz kutu (beyaz zemin + siyah metin) */
.adx-hero .adx-hero-caption {
    position: absolute;
    left: 32px;
    bottom: 44px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: min(600px, 82%);
    background: none;
    padding: 0;
    border-radius: 0;
}
.adx-hero .adx-hero-line {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 6px 10px;
    margin: 0;
    font-family: var(--font-baslik, inherit);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.adx-hero .adx-hero-line--sub {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}
.adx-hero .adx-hero-caption .adx-btn--onimg { margin-top: 12px; height: 44px; }
@media (max-width: 768px) {
    .adx-hero .adx-hero-caption { left: 16px; bottom: 56px; max-width: calc(100% - 32px); }
    .adx-hero .adx-hero-line { font-size: 18px; padding: 5px 8px; }
    .adx-hero .adx-hero-line--sub { font-size: 12px; }
    .adx-hero .adx-hero-caption .adx-btn--onimg { height: 40px; font-size: 13px; }
}

/* Swiper kontrolleri — keskin, monokrom */
.hero-slider.adx-hero .swiper-pagination-bullet {
    width: 26px;
    height: 3px;
    border-radius: 0;
    background: #fff;
    opacity: .45;
    transition: opacity .15s;
}
.hero-slider.adx-hero .swiper-pagination-bullet-active { opacity: 1; background: #fff; }
.hero-slider.adx-hero .swiper-button-prev,
.hero-slider.adx-hero .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: #fff;
    color: #000;
    border: 1px solid #000;
}
.hero-slider.adx-hero .swiper-button-prev::after,
.hero-slider.adx-hero .swiper-button-next::after { font-size: 16px; font-weight: 900; }
.hero-slider.adx-hero .swiper-button-prev:hover,
.hero-slider.adx-hero .swiper-button-next:hover { background: #000; color: #fff; }
@media (max-width: 768px) {
    .hero-slider.adx-hero .swiper-button-prev,
    .hero-slider.adx-hero .swiper-button-next { display: none; }
}

/* ------------------------------------------------------------
   5) ÜRÜN ŞERİDİ — CSS scroll-snap karusel (JS gerekmez)
   .adx-carousel > .adx-carousel-track > .adx-carousel-item
   ------------------------------------------------------------ */
.adx-carousel { position: relative; }
.adx-carousel-track {
    --adx-gap: 8px;
    display: flex;
    gap: var(--adx-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.adx-carousel-track::-webkit-scrollbar { display: none; }
.adx-carousel-item {
    flex: 0 0 calc((100% - (var(--adx-cols-m, 2) - 1) * var(--adx-gap)) / var(--adx-cols-m, 2));
    min-width: 0;
    scroll-snap-align: start;
}
@media (min-width: 769px) {
    .adx-carousel-track { --adx-gap: 12px; }
    .adx-carousel-item {
        flex-basis: calc((100% - (var(--adx-cols-t, 3) - 1) * var(--adx-gap)) / var(--adx-cols-t, 3));
    }
}
@media (min-width: 1024px) {
    .adx-carousel-track { --adx-gap: 16px; }
    .adx-carousel-item {
        flex-basis: calc((100% - (var(--adx-cols-d, 4) - 1) * var(--adx-gap)) / var(--adx-cols-d, 4));
    }
}

/* Swiper modunda kalan ürün şeritleri — kontrolleri monokromlaştır */
.urun-slider .swiper-button-prev,
.urun-slider .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #fff;
    border: 1px solid #000;
    color: #000;
}
.urun-slider .swiper-button-prev::after,
.urun-slider .swiper-button-next::after { font-size: 14px; font-weight: 900; }
.urun-slider .swiper-button-prev:hover,
.urun-slider .swiper-button-next:hover { background: #000; color: #fff; }
.urun-slider .swiper-pagination-bullet { width: 22px; height: 3px; border-radius: 0; background: #000; opacity: .25; }
.urun-slider .swiper-pagination-bullet-active { opacity: 1; background: #000 !important; }

/* ------------------------------------------------------------
   6) KATEGORİ GRID — görsel karo + sol-alt beyaz kutulu etiket
   ------------------------------------------------------------ */
.adx-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--adx-cols-m, 2), 1fr);
    gap: 8px;
}
@media (min-width: 769px) {
    .adx-cat-grid { grid-template-columns: repeat(var(--adx-cols-d, 4), 1fr); gap: 16px; }
}
.adx-cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ECEFF1;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-decoration: none !important;
}
.adx-cat-tile:hover { transform: none !important; box-shadow: none !important; }
.adx-cat-media {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECEFF1;
    border-radius: 0;
    overflow: hidden;
}
.adx-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.adx-cat-tile:hover .adx-cat-media img { transform: scale(1.03); }
.adx-cat-media i { font-size: 40px; color: #000; }
/* NOT: Kural bilinçli olarak .adx-cat-tile kapsamında — ürün detay
   sayfasındaki marka satırı da .adx-cat-label kullanıyor; kapsamsız
   yazılırsa o etiket mutlak konuma düşüp başka yazıların üstüne biner. */
.adx-cat-tile .adx-cat-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-block;
    max-width: calc(100% - 20px);
    background: #fff;
    color: #000;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .adx-cat-tile .adx-cat-label { font-size: 11px; padding: 5px 8px; }
}

/* ------------------------------------------------------------
   7) BANNER'LAR — keskin görsel kartlar, beyaz kutulu başlıklar
   ------------------------------------------------------------ */
.banner-grid .banner-grid-item img { transition: transform .4s ease; }
.banner-grid .banner-grid-item:hover img { transform: scale(1.03); }
.banner-grid .banner-grid-content.adx-banner-caption,
.adx-banner-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: auto;
    top: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: none;
    padding: 0;
}
.banner-grid .banner-grid-content.adx-banner-caption h3,
.adx-banner-caption h3,
.adx-banner-caption .adx-caption-line {
    display: inline-block;
    margin: 0;
    background: #fff;
    color: #000;
    padding: 6px 10px;
    font-family: var(--font-baslik, inherit);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.2;
}
.banner-grid .banner-grid-content.adx-banner-caption p.adx-caption-line,
.adx-banner-caption p.adx-caption-line { font-size: 12px; font-weight: 600; margin: 0; opacity: 1; }
.adx-banner-caption .adx-btn--onimg { margin-top: 6px; height: 38px; font-size: 12px; padding: 0 14px; }
@media (max-width: 768px) {
    .adx-banner-caption { left: 10px; bottom: 10px; }
    .adx-banner-caption h3 { font-size: 13px; padding: 5px 8px; }
    .adx-banner-caption p.adx-caption-line { font-size: 11px; }
}

.adx-banner-yatay { display: block; border-radius: 0 !important; box-shadow: none !important; overflow: hidden; }
.adx-banner-yatay img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.adx-banner-yatay:hover img { transform: scale(1.02); }

/* ------------------------------------------------------------
   8) ÜRÜN GRID (tum-urunler) — keskin grid
   ------------------------------------------------------------ */
.adx-product-grid { border-radius: 0; }

/* ------------------------------------------------------------
   9) ÖZELLİK ŞERİDİ — 1px çerçeveli kutular, siyah ikonlar
   ------------------------------------------------------------ */
.adx-features .ozellik-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--renk-border, #e5e5e5);
    border-radius: 0;
    box-shadow: none;
}
.adx-features .ozellik-ikon {
    width: auto;
    height: auto;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    color: #000;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adx-features .ozellik-metin strong {
    display: block;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.adx-features .ozellik-metin small {
    display: block;
    color: var(--renk-text-muted, #767677);
    font-size: 11px;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .adx-features .ozellik-item { flex-direction: column; text-align: center; padding: 12px 8px; gap: 8px; }
}

/* ------------------------------------------------------------
   10) MİNİMAL MONOKROM RÖTUŞLAR (yorumlar / e-bülten / video / metin)
   ------------------------------------------------------------ */
.adx-mono-card {
    background: #fff !important;
    border: 1px solid var(--renk-border, #e5e5e5) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.metin-blok { color: #111; }
.metin-blok a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
