/* ===========================
   ÜRÜN GRID TASARIMI
=========================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px auto;
    width: 90%;
}

.urun-card {
    background: #0b0b0b;
    border: 2px solid red;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 0 10px red;
}

.urun-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px red;
}

/* SEÇİLEN ÜRÜN – BEYAZ NEON */
.urun-card.secili {
    border-color: #ffffff !important;
    box-shadow: 0 0 25px #ffffff !important;
    transform: scale(1.05);
}

.urun-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.urun-title {
    margin-top: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.urun-price {
    color: #ff0000;
    font-size: 20px;
    margin-top: 5px;
    font-weight: bold;
}


/* ===========================
   FORM TASARIMI
=========================== */

#cym-form {
    width: 90%;
    margin: 50px auto;
}

#cym-form h3 {
    color: white;
    margin-bottom: 5px;
    margin-top: 20px;
}

#cym-form input,
#cym-form textarea {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 2px solid red;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    outline: none;
}

#cym-form textarea {
    height: 180px;
}


/* ===========================
   ÖDEME SEÇENEKLERİ
=========================== */

.odeme-sec {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.odeme-box {
    flex: 1;
    background: #000;
    border: 2px solid red;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 12px red;
}

.odeme-box:hover {
    background: #000 !important;
    box-shadow: 0 0 18px red;
}

/* SEÇİLİNCE – BEYAZ NEON */
.odeme-box.selected {
    border-color: #ffffff !important;
    box-shadow: 0 0 25px #ffffff !important;
    background: #000 !important;
}


/* ===========================
   SİPARİŞ BUTONU
=========================== */

.siparis-btn {
    width: 50%;
    max-width: 350px;
    display: block;
    margin: 30px auto;
    background: #d40000;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px #ff0000;
    transition: 0.2s;
}

.siparis-btn:hover {
    background: #ff0000;
    box-shadow: 0 0 25px #ff2b2b;
}


/* ===========================
   SÖZLEŞME – HİZALAMA (FIX)
=========================== */

.sozlesme-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;   /* sola yasla */
    margin-top: 15px;
    padding-left: 10px;            /* soldaki çizgi hizasına oturması için */
}

.sozlesme-label {
    display: flex;
    flex-direction: row;
    align-items: center;           /* checkbox + yazı hizalı */
    gap: 1px !important;           /* ✔ istediğin 1px boşluk */
    font-size: 17px;
    color: white;
    white-space: nowrap;           /* ✔ yazı tek satır */
}

.sozlesme-label input[type="checkbox"] {
    transform: scale(1.1);         /* boyut ideal */
    margin: 0 !important;
    margin-right: 1px !important;  /* ✔ checkbox ile yazı arasında 1px */
}

/* Mobilde hizalama korunur */
@media (max-width: 600px) {
    .sozlesme-container {
        padding-left: 10px;
    }
    
    .sozlesme-label {
        font-size: 15px;
        white-space: nowrap !important;  /* ✔ mobilde bile tek satır */
    }
}

/* ===========================
   POPUP TASARIMI
=========================== */

.popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

.popup-box {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #000;
    border: 3px solid #ff0000;
    box-shadow: 0 0 25px #ff0000;
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.popup-box h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.popup-icerik {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: white !important;
}

.popup-icerik * {
    color: white !important;
}

.popup-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    color: #ff0000;
    cursor: pointer;
}

.popup-ok {
    width: 100%;
    background: #ff0000;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 0 15px #ff0000;
    display: none;
}

/* Mobil popup */
@media(max-width: 480px) {
    .popup-box {
        padding: 18px;
    }
    .popup-box h2 {
        font-size: 22px;
    }
    .popup-icerik {
        font-size: 14px;
    }
}


/* ===========================
   RESPONSIVE ÜRÜN GRID
=========================== */

/* Tablet – 2 sütun */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobil – 1 sütun */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 95%;
    }

    .urun-card {
        padding: 12px;
        border-radius: 10px;
    }

    .urun-title {
        font-size: 16px;
    }

    .urun-price {
        font-size: 18px;
    }
}
