/*
Theme Name: Saturn Pro
Author: Saturn Team
Description: Ultra hızlı, sıfır sorgu, Cloudflare/WP Rocket optimize katalog teması.
Version: 1.6
*/

* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; background: #f8f9fa; color: #333; overflow-x: hidden; }

/* Header & Site Logosu */
header.site-header { background: #fff; border-bottom: 1px solid #eaeaea; padding: 6px 20px; }
header.site-header .site-logo img { max-height: 48px; width: auto; display: block; }
header.site-header .site-logo a { font-size: 20px; font-weight: 700; color: #111; text-decoration: none; }

.saturn-header-inner {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
}
.site-logo {
    flex-shrink: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 15px; width: 100%; }

/* Arama */
.saturn-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 260px;
}
.saturn-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f5f7;
    border: 1px solid #e4e6ea;
    border-radius: 999px;
    padding: 7px 12px;
    transition: border-color 0.15s, background 0.15s;
}
.saturn-search-wrap.active .saturn-search-box {
    background: #fff;
    border-color: #0073aa;
}
.saturn-search-icon {
    color: #9a9da3;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.saturn-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1d2327;
    min-width: 0;
}
.saturn-search-input::placeholder {
    color: #9a9da3;
}
.saturn-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 6px;
    max-height: 340px;
    overflow-y: auto;
    z-index: 100;
}
.saturn-search-wrap.active .saturn-search-results:not(:empty) {
    display: block;
}
.saturn-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    text-decoration: none;
    color: #1d2327;
    border-radius: 6px;
}
.saturn-search-item:hover {
    background: #f4f5f7;
}
.saturn-search-item img,
.saturn-search-noimg {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
    flex-shrink: 0;
}
.saturn-search-item span {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.saturn-search-empty {
    font-size: 13px;
    color: #999;
    padding: 10px 6px;
    text-align: center;
}

@media (min-width: 768px) {
    header.site-header {
        padding: 8px 20px;
    }
    header.site-header .site-logo img {
        max-height: 56px;
    }
    .saturn-header-inner {
        gap: 32px;
    }
    .saturn-search-wrap {
        width: 320px;
        max-width: 320px;
        margin-right: auto;
    }
    .saturn-search-box {
        padding: 9px 16px;
    }
    .saturn-search-input {
        font-size: 14px;
    }
}

/* ANA SAYFA & MARKA SAYFASI: Kesin 2'li / 5'li Grid Mührü */
.saturn-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 30px;
}
@media (min-width: 480px) {
    .saturn-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}
@media (min-width: 768px) {
    .saturn-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }
}
@media (min-width: 1024px) {
    .saturn-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 14px !important;
    }
}

/* Minyon Kart Tasarımı */
.saturn-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.saturn-card-img-wrap {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #f0f0f0;
}
@media (min-width: 480px) {
    .saturn-card-img-wrap {
        height: 140px;
    }
}
@media (min-width: 768px) {
    .saturn-card-img-wrap {
        height: 150px;
    }
}
@media (min-width: 1024px) {
    .saturn-card-img-wrap {
        height: 160px;
    }
}
.saturn-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.saturn-card-body {
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    background: #fff;
}
@media (min-width: 480px) {
    .saturn-card-body {
        padding: 10px;
        font-size: 12px;
    }
}
.saturn-card-body a {
    text-decoration: none;
    color: #1d2327;
}
.saturn-card-body span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TEKİL KATALOG (VIEWER) SAYFASI & MOBİL TAŞMA ÖNLEYİCİ */

/* Breadcrumb */
.saturn-breadcrumb {
    font-size: 12px;
    color: #71717a;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.saturn-breadcrumb a {
    color: #71717a;
    text-decoration: none;
}
.saturn-breadcrumb a:hover {
    color: #0073aa;
    text-decoration: underline;
}
.saturn-breadcrumb .sep {
    color: #c4c4c8;
}
.saturn-breadcrumb .current {
    color: #333;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Katalog Başlığı */
.saturn-catalog-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 16px 0;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 600px) {
    .saturn-catalog-title {
        font-size: 24px;
    }
}

.saturn-viewer-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
@media (min-width: 992px) {
    .saturn-viewer-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}
.saturn-viewer-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.saturn-viewer-sidebar {
    display: none;
}
@media (min-width: 992px) {
    .saturn-viewer-sidebar {
        display: block;
        width: 300px;
        position: sticky;
        top: 20px;
    }
}
.saturn-sidebar-inner {
    background: transparent;
    padding: 0;
    border: none;
    min-height: 0;
}
.saturn-ad-label {
    font-size: 11px;
    color: #999;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

/* Katalog Sayfa Resimleri - Mobilde Kesin Taşmaz Yapı */
.saturn-catalog-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.saturn-catalog-page {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.saturn-infeed-ad {
    width: 100%;
    text-align: center;
    margin: 0;
}
.saturn-infeed-ad .saturn-ad-label {
    margin: 0 0 8px 0;
}
.saturn-page-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(3px);
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.saturn-catalog-page img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain !important;
}

/* Statik Sayfalar (page.php) */
.saturn-page {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 24px 20px;
    margin: 20px 0;
}
.saturn-page-title {
    font-size: 22px;
    color: #111;
    margin: 0 0 16px 0;
}
.saturn-page-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.saturn-page-content p {
    margin: 0 0 1em 0;
}
.saturn-page-content a {
    color: #0073aa;
}
.saturn-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
@media (min-width: 768px) {
    .saturn-page {
        padding: 36px 40px;
    }
    .saturn-page-title {
        font-size: 28px;
    }
}
/* Önerilen Kataloglar */
.saturn-related {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e1e4e8;
}
.saturn-related-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px 0;
}
@media (min-width: 600px) {
    .saturn-related-title {
        font-size: 19px;
    }
}
.saturn-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.saturn-brand-header img {
    max-height: 40px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    flex-shrink: 0;
}
.saturn-brand-header h1 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    color: #111;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 600px) {
    .saturn-brand-header img {
        max-height: 50px;
        max-width: 110px;
    }
    .saturn-brand-header h1 {
        font-size: 20px;
    }
}
/* Footer */
.saturn-footer {
    border-top: 1px solid #e1e4e8;
    margin-top: 40px;
    background: #fff;
}
.saturn-footer-inner {
    text-align: center;
    padding: 28px 15px;
}
.saturn-footer-copy {
    color: #1a202c;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 12px 0;
}
.saturn-footer-disclaimer {
    color: #71717a;
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 16px auto;
    font-weight: 400;
}
.saturn-footer-links {
    color: #71717a;
    font-weight: 500;
    font-size: 13px;
}
.saturn-footer-links a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.15s ease;
}
.saturn-footer-links a:hover {
    color: #0073aa;
}
.saturn-footer-links .sep {
    margin: 0 8px;
    color: #c4c4c8;
}
@media (min-width: 768px) {
    .saturn-footer-inner {
        padding: 35px 20px;
    }
}

/* Yukarı Çık Butonu */
.saturn-scroll-top {
    position: fixed;
    right: 14px;
    bottom: 125px; /* mobilde sabit alt reklamın üstünde kalsın */
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0091d5, #005d87);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 93, 135, 0.35), 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
    z-index: 999;
    padding: 0;
}
.saturn-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.saturn-scroll-top:hover {
    box-shadow: 0 6px 18px rgba(0, 93, 135, 0.45), 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.04);
}
.saturn-scroll-top:active {
    transform: scale(0.94);
}
.saturn-scroll-top svg {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}
@media (min-width: 768px) {
    .saturn-scroll-top {
        right: 24px;
        bottom: 24px; /* masaüstünde sabit reklam yok, aşağıda kalabilir */
        width: 50px;
        height: 50px;
    }
}