﻿/* ═══════════════════════════════════════════════════════════════
   Anasayfa — pages/anasayfa.css
═══════════════════════════════════════════════════════════════ */

/* ── HERO GRID ──────────────────────────────────────────────── */
.hero-grid-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
/* Container içinde 3 sütun grid; sabit yükseklik zorunlu (carousel için) */
.hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr 230px;
    height: 420px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Sol: Kategori Listesi */
.hero-cats {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hero-cats-head {
    background: var(--primary);
    color: #fff;
    padding: 13px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}
.hero-cats-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.hero-cats-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--bg-soft);
    transition: background .1s, color .1s, padding-left .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-cats-list a:last-child { border-bottom: none; }
.hero-cats-list a i {
    color: var(--primary);
    width: 15px;
    font-size: 12px;
    flex-shrink: 0;
    text-align: center;
}
.hero-cats-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}

/* Orta: Slider — tam yükseklik doldur */
.hero-center {
    overflow: hidden;
    position: relative;
    height: 100%;
}
/* Carousel ve tüm iç elementleri tam yükseklik */
.hero-center .hero-slider-wrap { height: 100%; }
.hero-center .carousel { height: 100%; }
.hero-center .carousel-inner { height: 100%; }
.hero-center .carousel-item {
    height: 100%;
    position: relative;
}
.hero-center .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Statik hero fallback */
.hero-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 32px;
    gap: 24px;
    height: 100%;
    background: linear-gradient(135deg, #fff7f7 0%, #fef2f2 100%);
}
.hero-static .hero-content { flex: 1; }
.hero-static .hero-content h1 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-static .hero-content h1 span { color: var(--primary); }
.hero-static .hero-content p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.hero-static .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-static .hero-visual {
    font-size: 100px;
    color: var(--primary);
    opacity: .12;
    flex-shrink: 0;
    line-height: 1;
}

/* Sağ: Çok Satanlar */
.hero-right {
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}
.hero-right-head {
    background: #1e293b;
    color: #fff;
    padding: 13px 14px;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    flex-shrink: 0;
}
.hero-bestsellers-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.hero-bestseller-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bg-soft);
    text-decoration: none;
    color: var(--text);
    align-items: flex-start;
    transition: background .12s;
}
.hero-bestseller-item:last-child { border-bottom: none; }
.hero-bestseller-item:hover { background: var(--bg-soft); }
.hero-bestseller-item img {
    width: 42px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-soft);
}
.hbs-meta { flex: 1; min-width: 0; }
.hbs-title {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.hbs-pub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hbs-prices { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hbs-price { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.hbs-price-old { font-size: 10.5px; color: var(--text-light); text-decoration: line-through; }
.hbs-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.hero-right-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
    transition: background .12s;
}
.hero-right-more:hover { background: var(--primary-light); }

/* Slider altyazı */
.hero-slide-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.hero-slide-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    pointer-events: none;
}
.hero-slide-caption h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.hero-slide-caption p  { margin: 0; font-size: 13.5px; opacity: .95; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 7%; }

/* ── İKİNCİL BANNERLAR ───────────────────────────────────────── */
.secondary-banners .banner-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    background: var(--bg-soft);
}
.secondary-banners .banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.secondary-banners .banner-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.secondary-banners .banner-card-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 18px;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}
.secondary-banners .banner-card-caption h3 { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.secondary-banners .banner-card-caption p  { margin: 0; font-size: 13px; opacity: .95; }

/* ── BÜLTEN ──────────────────────────────────────────────────── */
.newsletter-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}
.newsletter-box h3 { font-size: 22px; color: var(--text); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 195px 1fr 215px; height: 400px; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 0 1fr 210px; height: 360px; }
    .hero-cats  { display: none; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-cats  { display: none; }
    .hero-center { height: 240px; }
    .hero-right { border-left: none; border-top: 1px solid var(--border); height: 250px; }
    .hero-static { padding: 24px 20px; height: 240px; }
    .hero-static .hero-visual { display: none; }
    .hero-static .hero-content h1 { font-size: 20px; }
    .newsletter-box { padding: 24px; text-align: center; }
    .newsletter-form { flex-direction: column; }
}
@media (max-width: 575px) {
    .secondary-banners .banner-card img { height: 140px; }
}
