/* =========================
   HOME (SCOPED) - only homepage sections
   - Global header/footer/buttons are in site.css
   ========================= */

/* Quickbar */
.quickbar{
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#ffffff,#fafbff);
  border-radius:22px;
  padding:14px;
  box-shadow:0 14px 40px rgba(15,23,42,.06);
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
}
.quickbar-left{min-width:210px;}
.quickbar-title{font-weight:950;letter-spacing:-.02em;line-height:1.1;margin:0;}
.quickbar-sub{color:rgba(15,23,42,.62);font-weight:650;font-size:.92rem;margin:4px 0 0;}
.quickbar-scroll{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 6px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.quickbar-scroll::-webkit-scrollbar{display:none;}
.quickchip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  text-decoration:none;
  color:#0f172a;
  font-weight:900;
  white-space:nowrap;
  transition:transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.quickchip span{opacity:.7;}
.quickchip:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 44px rgba(37,99,235,.12);
  border-color:rgba(37,99,235,.22);
  background:rgba(37,99,235,.03);
}

/* Highlight */
.home-highlight2{
  border-radius:24px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff,#f7f9ff);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}
.home-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(15,23,42,.03);
  font-weight:950;
  font-size:.86rem;
}
.home-chip-dot{
  width:10px;height:10px;border-radius:999px;
  background:#fbbf24;
  box-shadow:0 0 0 4px rgba(251,191,36,.25);
}
.home-h2{margin:10px 0 6px;font-weight:980;letter-spacing:-.02em;}
.home-sub{margin:0;color:rgba(15,23,42,.70);font-weight:650;line-height:1.6;}

/* Features */
.home-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.home-feature{
  border-radius:20px;
  padding:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.home-ico{
  width:44px;height:44px;border-radius:14px;
  background:linear-gradient(135deg,rgba(251,191,36,.30),rgba(37,99,235,.12));
  margin-bottom:10px;
}
.home-feature h3{margin:0 0 6px;font-weight:980;}
.home-feature p{margin:0;color:rgba(15,23,42,.72);font-weight:650;line-height:1.55;}

/* CTA band */
.cta-band {
    border-radius: 24px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(135deg, rgb(163 163 163 / 20%), rgba(37, 99, 235, .08));
    box-shadow: 0 18px 60px rgba(15,23,42,.08);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
    align-items: center;
}
.cta-title{margin:0 0 6px;font-weight:980;letter-spacing:-.02em;}
.cta-sub{margin:0 0 12px;color:rgba(15,23,42,.70);font-weight:650;line-height:1.6;}
.cta-actions{display:flex;flex-wrap:wrap;gap:10px;}
.mini-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.mini-stat{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.mini-num{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-weight:980;
  background:rgba(251,191,36,.32);
}
.mini-text{font-weight:850;color:rgba(15,23,42,.78);}

/* Featured */
.home-featured{margin:26px 0 10px;}
.home-featured-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.home-featured-head h2{margin:0;font-size:1.35rem;}
.home-featured-link{text-decoration:none;font-weight:700;font-size:.95rem;color:#2563eb;}
.home-featured-link:hover{text-decoration:underline;}
.home-featured-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.home-featured-card{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
.home-featured-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.10);}
.home-featured-media{
  height:230px;
  background:#f3f4f6;
  border-bottom:1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  overflow:hidden;
}
.home-featured-media img{width:100%;height:100%;object-fit:contain;max-height:210px;display:block;}
.home-featured-title{padding:12px 12px 14px;font-weight:800;font-size:.95rem;}

/* Responsive */
@media (max-width: 992px){
  .quickbar{flex-direction:column;align-items:stretch;}
  .quickbar-left{min-width:auto;}
  .home-feature-grid{grid-template-columns:1fr;}
  .cta-band{grid-template-columns:1fr;}
  .home-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 560px){
  .home-featured-grid{grid-template-columns:1fr;}
}
@media (max-width: 640px){
  .mini-stats{grid-template-columns:1fr;}
}
/* =========================
   ÖNE ÇIKAN / ÜRÜN GRID (GENEL)
   Bu blok: .section-head + .product-grid + kartları düzeltir
   ========================= */

/* Başlık satırı */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.section-title {
    margin: 0;
    font-weight: 950;
    letter-spacing: -.02em;
    font-size: 1.35rem;
}

.section-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 800;
    font-size: .95rem;
}

    .section-link:hover {
        text-decoration: underline;
    }

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* Kart */
.product-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    transition: transform .16s ease, box-shadow .16s ease;
}

.product-link {
    display: block;
    text-decoration: none;
    color: #0f172a;
    height: 100%;
}

/* Görsel alanı: taşma yok, düzgün contain */
.product-media {
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

    .product-media img {
        width: 100%;
        height: 100%;
        object-fit: contain !important; /* cover ezmesin diye */
        display: block;
        transform: scale(1.02);
        transition: transform .35s ease;
    }

.product-body {
    padding: 12px 12px 14px;
}

.product-title {
    font-weight: 950;
    font-size: .98rem;
    line-height: 1.25;
    margin: 0 0 6px;
}

.product-desc {
    color: rgba(15,23,42,.70);
    font-size: .86rem;
    line-height: 1.35;
}

.product-cta {
    margin-top: 10px;
}
/* Kart içini dikey düzende sabitle */
.product-link {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* Gövde büyüsün, buton en alta insin */
.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Açıklama sabit satır (3 satır) */
.product-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 2 istersen 2 yap */
    overflow: hidden;
    min-height: calc(1.35em * 3); /* line-height * satır sayısı */
}

/* Butonu en alta sabitle */
.product-cta {
    margin-top: auto !important;
    padding-top: 10px;
}



/* Pill: kesin düzgün görünüm */
.pill {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(37,99,235,.18);
    color: #1d4ed8;
    font-weight: 900;
    font-size: .82rem;
    line-height: 1;
    width: 100%;
    justify-content: center;
}

/* Hover efekti */
.glow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(37,99,235,.16), 0 0 0 1px rgba(37,99,235,.14);
}

    .glow-hover:hover .product-media img {
        transform: scale(1.06);
    }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-media {
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .product-grid {
    }

    .product-media {
        aspect-ratio: 16/9;
    }
}
/* Featured kart içi crossfade (sayfa yenileniyormuş gibi durmasın) */
#featuredGrid .product-card {
    position: relative;
}

    #featuredGrid .product-card.is-swapping {
        pointer-events: none;
    }

        #featuredGrid .product-card.is-swapping .product-media img,
        #featuredGrid .product-card.is-swapping .product-title,
        #featuredGrid .product-card.is-swapping .product-desc,
        #featuredGrid .product-card.is-swapping .product-cta {
            opacity: 0;
            transition: opacity .22s ease;
        }

#featuredGrid .product-media img,
#featuredGrid .product-title,
#featuredGrid .product-desc,
#featuredGrid .product-cta {
    opacity: 1;
    transition: opacity .22s ease;
}
/* ========== Çok Satanlar Slider ========== */
.tt-slider {
    position: relative;
}

.tt-slider-viewport {
    overflow: hidden;
    border-radius: 18px;
}

.tt-slider-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    transition: transform .45s ease;
    padding: 6px;
}

.tt-slide {
    flex: 0 0 auto;
    width: 260px;
}

@media (max-width: 900px) {
    .tt-slide {
        width: 220px;
    }
}

@media (max-width: 520px) {
    .tt-slide {
        width: 78vw;
    }
}

.tt-slide-card {
    display: block;
    background: #f6f7fb;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .tt-slide-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(15,23,42,.10);
    }

.tt-slide-media {
    background: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tt-slide-media img {
        width: 100%;
        height: 160px;
        object-fit: contain;
    }

.tt-slide-body {
    padding: 12px 14px 14px;
}

.tt-slide-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.tt-slide-desc {
    font-size: 12px;
    opacity: .75;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.tt-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

    .tt-slider-btn.prev {
        left: -10px;
    }

    .tt-slider-btn.next {
        right: -10px;
    }

@media (max-width: 520px) {
    .tt-slider-btn.prev {
        left: 6px;
    }

    .tt-slider-btn.next {
        right: 6px;
    }
}
