/* ============================================================
 * urunler.css — Ürünler Sayfası Stilleri
 *
 * Taşındı: urunler.php inline \3c style> bloğundan
 * Yükleme: urunler.php → $extra_head_css ile sayfa bazlı
 * sections.css design token'larını kullanır
 * ============================================================ */

/* ── HERO KOMPAKT ── */

.urunler-hero {
    position: relative;
    padding: 110px 0 44px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
}

.urunler-hero-orb-1 {
    position: absolute;
    top: -120px; left: -80px;
    width: 360px; height: 360px;
    pointer-events: none;
    background: radial-gradient(circle, rgb(99 102 241 / .15) 0%, transparent 70%);
    border-radius: 50%;
}

.urunler-hero-orb-2 {
    position: absolute; right: -50px;
    bottom: -80px;
    width: 280px; height: 280px;
    pointer-events: none;
    background: radial-gradient(circle, rgb(139 92 246 / .12) 0%, transparent 70%);
    border-radius: 50%;
}

.urunler-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Breadcrumb */

.urunler-hero .breadcrumb-nav { margin-bottom: 14px; }

.urunler-hero .breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center; padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.urunler-hero .breadcrumb-item {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: rgb(255 255 255 / .4);
}

.urunler-hero .breadcrumb-item a {
    color: rgb(255 255 255 / .55);
    text-decoration: none;
    transition: color .2s;
}

.urunler-hero .breadcrumb-item a:hover { color: #a5b4fc; }

.urunler-hero .breadcrumb-item.active { color: rgb(255 255 255 / .7); }

.urunler-hero .breadcrumb-item + .breadcrumb-item::before {
    font-size: 14px;
    color: rgb(255 255 255 / .2);
    content: '›';
}

.urunler-hero-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.urunler-hero-subtitle {
    max-width: 460px;
    margin: 0 auto 20px;
    font-size: 14px;
    line-height: 1.6;
    color: rgb(255 255 255 / .5);
}

.urunler-hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: rgb(255 255 255 / .05);
    border: 1px solid rgb(255 255 255 / .08);
    border-radius: 50px;
}

.urunler-hero-stat {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: rgb(255 255 255 / .5);
}

.urunler-hero-stat i { font-size: 12px; color: #818cf8; }

.urunler-hero-stat strong { font-weight: 700; color: rgb(255 255 255 / .85); }

/* ════════════════════════════════════════════
   KATEGORİ EXPLORER BÖLÜMÜ
   ════════════════════════════════════════════ */

.kat-explorer {
    position: relative;
    padding: 52px 0 44px;
    overflow: hidden;
    background: var(--sec-light-bg);
}

.kat-explorer::before {
    position: absolute;
    top: -30%; right: -10%;
    width: 400px; height: 400px;
    pointer-events: none;
    content: '';
    background: radial-gradient(circle, var(--sec-orb-accent) 0%, transparent 70%);
    border-radius: 50%;
}

.kat-explorer::after {
    position: absolute;
    bottom: -20%; left: -8%;
    width: 320px; height: 320px;
    pointer-events: none;
    content: '';
    background: radial-gradient(circle, var(--sec-orb-accent2) 0%, transparent 70%);
    border-radius: 50%;
}

.kat-explorer-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.kat-explorer-title {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--sec-text-dark);
}

.kat-explorer-title i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    font-size: 14px;
    color: #fff;
    background: var(--sec-accent-gradient);
    border-radius: 8px;
}

.kat-explorer-subtitle { font-size: 13px; color: var(--sec-text-light); }

.kat-all-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sec-accent);
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid rgb(99 102 241 / .25);
    border-radius: 8px;
    transition: all .2s ease;
}

.kat-all-link:hover {
    color: var(--sec-accent2);
    background: rgb(99 102 241 / .06);
    border-color: rgb(99 102 241 / .45);
    transform: translateY(-1px);
}

/* Kategori Grid */

.kat-grid-wrap { position: relative; z-index: 1; }

.kat-card-all { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); border-color: rgb(99 102 241 / .3); }

.kat-card-all .kat-card-icon { background: rgb(99 102 241 / .25); border-color: rgb(99 102 241 / .4); }

.kat-card-all .kat-card-icon i { background: #a5b4fc; -webkit-text-fill-color: transparent; background-clip: text; }

.kat-card-all .kat-card-name { color: #e2e8f0; }

.kat-card-all .kat-card-count { color: #a5b4fc; background: rgb(99 102 241 / .2); }

.kat-card-all:hover { border-color: rgb(99 102 241 / .5); box-shadow: 0 12px 30px rgb(99 102 241 / .3); }

.kat-card-all.active-kat { border-color: rgb(99 102 241 / .6); box-shadow: 0 0 0 3px rgb(99 102 241 / .2), 0 10px 28px rgb(99 102 241 / .25); }

.kat-active-badge {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: var(--sec-accent-gradient);
    border-radius: 6px;
}

#katMainGrid.kat-main-grid,
.kat-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 168px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#katMainGrid.kat-main-grid.kat-extra-visible,
.kat-main-grid.kat-extra-visible {
    max-height: 2400px;
}

.kat-card {
    position: relative;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px 16px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--sec-border-light);
    border-radius: 14px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.kat-card::before {
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    content: '';
    background: var(--kat-grad, linear-gradient(90deg,#6366f1,#8b5cf6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.kat-card:hover::before,
.kat-card.active-kat::before { transform: scaleX(1); }

.kat-card:hover { border-color: rgb(99 102 241 / .3); box-shadow: 0 10px 28px rgb(99 102 241 / .12); transform: translateY(-5px); }

.kat-card.active-kat { background: linear-gradient(180deg, rgb(99 102 241 / .04) 0%, #fff 100%); border-color: rgb(99 102 241 / .4); box-shadow: 0 0 0 3px rgb(99 102 241 / .1), 0 8px 24px rgb(99 102 241 / .15); }

.kat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 10px;
    background: var(--kat-grad-soft, rgb(99 102 241 / .08));
    border: 1px solid var(--kat-border, rgb(99 102 241 / .15));
    border-radius: 14px;
    transition: all .3s ease;
}

.kat-card:hover .kat-card-icon,
.kat-card.active-kat .kat-card-icon { background: var(--kat-grad-soft-h, rgb(99 102 241 / .15)); transform: scale(1.1) rotate(4deg); }

.kat-card-icon i { font-size: 22px; background: var(--kat-grad, linear-gradient(135deg,#6366f1,#8b5cf6)); -webkit-text-fill-color: transparent; background-clip: text; }

.kat-card.active-kat .kat-card-icon { background: var(--kat-grad, linear-gradient(135deg,#6366f1,#8b5cf6)); }

.kat-card.active-kat .kat-card-icon i { background: #fff; -webkit-text-fill-color: transparent; background-clip: text; }

.kat-card-name { margin-bottom: 5px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--sec-text-dark); transition: color .2s; }

.kat-card:hover .kat-card-name { color: var(--sec-accent); }

.kat-card.active-kat .kat-card-name { color: var(--sec-accent); }

.kat-card-count { padding: 2px 8px; font-size: 11px; font-weight: 600; color: var(--sec-text-light); background: var(--kat-grad-soft, rgb(99 102 241 / .07)); border-radius: 10px; transition: all .2s; }

.kat-card:hover .kat-card-count,
.kat-card.active-kat .kat-card-count { color: var(--sec-accent); background: var(--kat-grad-soft-h, rgb(99 102 241 / .15)); }

.kat-show-more {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sec-text-light);
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 1.5px dashed var(--sec-border-light);
    border-radius: 12px;
    transition: all .2s ease;
}

.kat-show-more:hover { color: var(--sec-accent); background: rgb(99 102 241 / .04); border-color: rgb(99 102 241 / .35); }

.kat-show-more .kat-chevron { font-size: 11px; transition: transform .3s ease; }

.kat-show-more.expanded .kat-chevron { transform: rotate(180deg); }

/* Aktif Kategori Başlığı */

.urunler-section-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }

.urunler-section-title { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 700; color: var(--sec-text-dark); }

.urunler-section-title .aktif-kat-badge { padding: 3px 10px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .4px; background: var(--sec-accent-gradient); border-radius: 6px; }

.urunler-section-meta { font-size: 13px; color: var(--sec-text-light); }

.urunler-section-meta strong { color: var(--sec-accent); }

/* Ürün Kataloğu */

.modern-products.urunler-page { padding: 0 0 72px; background: var(--sec-light-bg); }

.modern-products.urunler-page .container { padding-top: 40px; border-top: 1px solid var(--sec-border-light); }

.modern-products.urunler-page .products-grid { display: flex; flex-wrap: wrap; gap: 22px; }

.modern-products.urunler-page .product-card { flex: 1 1 calc(33.333% - 16px); min-width: 0; max-width: calc(33.333% - 16px); }

.product-subtitle { display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-line-clamp: 1; font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--sec-text-light); opacity: .82; -webkit-box-orient: vertical; }

.product-price-tag { display: inline-flex; gap: 3px; align-items: baseline; font-size: 14px; font-weight: 700; color: #db2777; white-space: nowrap; }

.product-price-tag .kdv-note { font-size: 9px; font-weight: 500; color: var(--sec-text-light); }

.product-install-badge { display: inline-flex; gap: 3px; align-items: center; padding: 2px 7px; font-size: 9px; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: .3px; background: rgb(34 197 94 / .08); border: 1px solid rgb(34 197 94 / .2); border-radius: 5px; }

/* Boş Durum */

.urunler-empty { padding: 80px 20px; text-align: center; }

.urunler-empty-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 18px; background: linear-gradient(135deg, rgb(99 102 241 / .1), rgb(139 92 246 / .1)); border: 1px solid rgb(99 102 241 / .18); border-radius: 18px; }

.urunler-empty-icon i { font-size: 32px; background: var(--sec-accent-gradient); -webkit-text-fill-color: transparent; background-clip: text; }

.urunler-empty h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; color: var(--sec-text-dark); }

.urunler-empty p { margin-bottom: 22px; font-size: 14px; color: var(--sec-text-light); }

/* Pagination */

.urunler-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 52px; }

.urunler-pag-btn { display: inline-flex; gap: 5px; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--sec-text-medium); white-space: nowrap; text-decoration: none; background: #fff; border: 1.5px solid var(--sec-border-light); border-radius: 10px; transition: all .22s ease; }

.urunler-pag-btn:hover { color: var(--sec-accent); background: rgb(99 102 241 / .04); border-color: rgb(99 102 241 / .4); transform: translateY(-1px); }

.urunler-pag-btn.active { color: #fff; background: var(--sec-accent-gradient); border-color: transparent; box-shadow: 0 4px 12px rgb(99 102 241 / .35); }

.urunler-pag-btn.disabled { pointer-events: none; cursor: default; opacity: .3; }

.urunler-pag-ellipsis { padding: 0 2px; font-size: 14px; line-height: 40px; color: var(--sec-text-light); }

/* Üye Kayıt Hint */

.product-member-hint { display: flex; gap: 6px; align-items: center; padding: 8px 12px; margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; color: #6366f1; background: linear-gradient(90deg, rgb(99 102 241 / .06) 0%, rgb(139 92 246 / .06) 100%); border: 1px dashed rgb(99 102 241 / .28); border-radius: 8px; }

.product-member-hint i { flex-shrink: 0; font-size: 11px; color: #8b5cf6; }

.product-member-hint a { font-weight: 700; color: #6366f1; text-decoration: none; border-bottom: 1px solid rgb(99 102 241 / .35); transition: color .18s, border-color .18s; }

.product-member-hint a:hover { color: #4f46e5; border-color: #4f46e5; }

/* ── RESPONSIVE ── */
@media (width <= 1100px) {
    .kat-main-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (width <= 992px) {
    .modern-products.urunler-page .products-grid { gap: 18px; }

    .modern-products.urunler-page .product-card { flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); }
}

@media (width <= 768px) {
    .urunler-hero { padding: 88px 0 30px; }

    .urunler-hero-title { font-size: 22px; }

    .kat-explorer { padding: 36px 0 32px; }

    .kat-main-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }

    .kat-card { padding: 16px 10px 12px; }

    .kat-card-icon { width: 44px; height: 44px; }

    .kat-card-icon i { font-size: 18px; }

    .kat-card-name { font-size: 11.5px; }

    .modern-products.urunler-page .products-grid { gap: 14px; }

    .modern-products.urunler-page .product-card { flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px); }

    .modern-products.urunler-page .product-image-wrapper,
    .modern-products.urunler-page .product-image-wrapper img,
    .modern-products.urunler-page .product-image-wrapper picture img { height: 180px; min-height: 180px; max-height: 180px; }

    .modern-products.urunler-page .product-cta-btn { min-height: 40px; padding: 10px 12px; font-size: 12px; }

    .modern-products.urunler-page .product-content { padding: 16px; }

    .modern-products.urunler-page .product-title { font-size: 14px; }

    .modern-products.urunler-page .product-category { margin-bottom: 6px; font-size: 10px; }

    .modern-products.urunler-page .feature-tag { padding: 2px 6px; font-size: 9px; }
}

@media (width <= 480px) {
    .urunler-hero-stats { display: none; }

    .kat-main-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .kat-card { padding: 14px 8px 10px; border-radius: 12px; }

    .kat-card-icon { width: 38px; height: 38px; }

    .kat-card-icon i { font-size: 16px; }

    .modern-products.urunler-page .container { padding-right: 12px; padding-left: 12px; }

    .modern-products.urunler-page .products-grid { gap: 10px; }

    .modern-products.urunler-page .product-card { flex: 1 1 calc(50% - 6px); max-width: calc(50% - 6px); }

    .modern-products.urunler-page .product-image-wrapper,
    .modern-products.urunler-page .product-image-wrapper img,
    .modern-products.urunler-page .product-image-wrapper picture img { height: 140px; min-height: 140px; max-height: 140px; }

    .modern-products.urunler-page .product-content { padding: 12px; }

    .modern-products.urunler-page .product-category { margin-bottom: 4px; font-size: 9px; letter-spacing: 0; }

    .modern-products.urunler-page .product-title { font-size: 12.5px; line-height: 1.35; }

    .modern-products.urunler-page .product-header { gap: 4px; margin-bottom: 6px; }

    .modern-products.urunler-page .product-features { display: none; }

    .modern-products.urunler-page .product-cta-btns { gap: 6px; margin-top: 6px; }

    .modern-products.urunler-page .product-cta-btn { gap: 3px; min-height: 36px; padding: 8px; font-size: 11px; border-radius: 8px; }

    .urunler-pag-btn { min-width: 36px; height: 36px; font-size: 12px; }
}

@media (width <= 360px) {
    .urunler-hero { padding: 80px 0 24px; }

    .urunler-hero-title { font-size: 19px; }

    .kat-main-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .kat-card { padding: 12px 8px 10px; border-radius: 10px; }

    .kat-card-icon { width: 34px; height: 34px; }

    .kat-card-icon i { font-size: 14px; }

    .kat-card-name { font-size: 11px; }

    .modern-products.urunler-page .container { padding-right: 8px; padding-left: 8px; }

    .modern-products.urunler-page .products-grid { gap: 8px; }

    .modern-products.urunler-page .product-card { flex: 1 1 calc(50% - 5px); max-width: calc(50% - 5px); }

    .modern-products.urunler-page .product-image-wrapper,
    .modern-products.urunler-page .product-image-wrapper img,
    .modern-products.urunler-page .product-image-wrapper picture img { height: 120px; min-height: 120px; max-height: 120px; }

    .modern-products.urunler-page .product-content { padding: 10px; }

    .modern-products.urunler-page .product-title { font-size: 11.5px; }

    .modern-products.urunler-page .product-cta-btn { min-height: 32px; padding: 7px 5px; font-size: 10px; border-radius: 6px; }

    .urunler-pag-btn { min-width: 32px; height: 34px; padding: 0 6px; font-size: 11px; }

    .urunler-pagination { gap: 4px; }
}