/* Sadece urunler.html sayfasını etkileyecek stiller */

.urun-galerisi h1 {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-top: 40px;
    margin-bottom: 40px;
}

.urun-konteyner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.urun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.urun-karti {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.urun-karti:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.resim-cerceve {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: rgb(255, 245, 225);
}

.resim-cerceve img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.resim-cerceve img:hover {
    transform: scale(1.1);
}

.urun-bilgisi {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.urun-bilgisi h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: #444;
}

.urun-bilgisi p {
    margin: 0;
    color: #777;
    font-size: 0.95em;
}

/* --- MODAL (BÜYÜYEN RESİM) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.modal.aktif {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
    animation: zoom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2em;
    animation: slideUp 0.5s;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .urun-galerisi h1 {
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        font-size: 2em;
        margin-top: 25px;
        margin-bottom: 25px;
    }
}