/* ========================================================================
   1. GENEL AYARLAR (Tüm Sayfalar)
   ======================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ========================================================================
   2. NAVBAR VE MENÜ (MASAÜSTÜ GÖRÜNÜM)
   ======================================================================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

nav img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    padding: 8px 10px;
}

nav a:hover {
    color: #e30613;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================================================
   3. MOBİL GÖRÜNÜM (768px ve altı)
   ======================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 12px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 0;
    }
    
    nav ul.active {
        display: flex !important;
    }
    
    nav ul li {
        margin: 3px 0;
    }
    
    nav ul li a {
        font-size: 16px;
        padding: 6px 15px;
        display: inline-block;
    }
}

/* ========================================================================
   4. SLIDER (SLAYTER) STILLERI
   ======================================================================== */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slides img.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    z-index: 5;
    max-width: 500px;
}

.slider-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slider-content p {
    font-size: 16px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 6;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ========================================================================
   5. BÖLÜM (SECTION) VE GRID STILLERI
   ======================================================================== */
.section {
    padding: 40px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

/* ========================================================================
   6. KART (CARD) STILLERI - SCROLL DÜZELTİLDİ
   ======================================================================== */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 15px;
    width: 280px;
    min-height: 380px;
    max-height: 380px;
    overflow: visible;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card .image-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
    color: #333;
    min-height: 50px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    padding-right: 5px;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Scrollbar stilleri */
.card p::-webkit-scrollbar {
    width: 5px;
}

.card p::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card p::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.card p::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox için scroll */
.card p {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* ========================================================================
   7. INDEX SAYFASINA ÖZEL KART STILLERI
   ======================================================================== */
@media (min-width: 769px) {
    .home-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        justify-items: center;
        align-items: start;
    }

    .home-grid .card {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        min-height: 320px;
        max-height: 320px;
    }

    .home-grid .card .image-container {
        height: 120px;
    }

    .home-grid .card img {
        height: 100px;
        object-fit: contain;
    }

    .home-grid .card h3 {
        font-size: 16px;
        margin: 10px 0;
        min-height: 45px;
    }

    .home-grid .card p {
        font-size: 13px;
    }
}

/* ========================================================================
   8. BUTON STILLERI
   ======================================================================== */
.btn {
    display: inline-block;
    margin-top: 20px;
    background: #e30613 !important;
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    background: #b0050f !important;
}

/* ========================================================================
   9. WHATSAPP SABİT BUTON
   ======================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* ========================================================================
   10. ÜRÜN SAYFASI STILLERI
   ======================================================================== */
.urun-resimler {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.urun-resimler img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.urun-aciklama {
    text-align: left;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    line-height: 1.8;
    color: #444;
}

/* ========================================================================
   11. FOOTER (ALT BİLGİ)
   ======================================================================== */
footer {
    background: #2b2b2b;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* ========================================================================
   12. LINK STILLERI
   ======================================================================== */
a {
    text-decoration: none;
    color: inherit;
}

.card-no-link { 
    cursor: default;
    text-decoration: none;
    display: block;
}

.card-link { 
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.card-link:hover .card,
.card-no-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========================================================================
   13. RESPONSIVE DÜZENLEMELER
   ======================================================================== */
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slider, .slides img {
        height: 300px;
    }
    
    .slider-content h1 {
        font-size: 24px;
    }
    
    .slider-content p {
        font-size: 14px;
    }
    
    .prev, .next {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ========================================================================
   14. MOBİL INDEX KARTLARI (768px ve altı)
   ======================================================================== */
@media (max-width: 768px) {
    .home-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    .home-grid .card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* MOBİL RESİM ALANI - BÜYÜTÜLDÜ */
    .home-grid .card .image-container {
        height: 150px !important;   /* 100px -> 150px */
        flex-shrink: 0 !important;
        margin-bottom: 10px !important;
    }

    /* MOBİL RESİM - BÜYÜTÜLDÜ */
    .home-grid .card img {
        height: 130px !important;   /* 70px -> 130px */
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .home-grid .card h3 {
        font-size: 15px !important;
        margin: 8px 0 !important;
        min-height: auto !important;
        line-height: 1.3 !important;
    }

    .home-grid .card p {
        font-size: 12px !important;
        margin-top: 5px !important;
    }
}

/* Çok küçük telefonlar (480px ve altı) */
@media (max-width: 480px) {
    .home-grid .card {
        padding: 10px !important;
    }
    
    .home-grid .card h3 {
        font-size: 14px !important;
    }
    
    /* KÜÇÜK TELEFON RESİM */
    .home-grid .card .image-container {
        height: 130px !important;   /* 130px */
    }
    
    .home-grid .card img {
        height: 110px !important;   /* 110px */
    }
    
    .home-grid .card p {
        font-size: 11px !important;
    }
}