/* Genel Stil Resetleme ve Body */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Ana Konteyner */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Üst Kısımdaki Ürün Görselleri */
.product-images img {
    display: block; /* Resimler arasındaki boşluğu kaldırır */
    width: 100%;
    height: auto;
}

/* Form Alanı */
.form-section {
    padding: 0px 0px;
    text-align: center;
    background: #f9f9f9;
}

.form-section img{
    width: 100% !important;
}

.form-section h2 {
    margin-bottom: 20px;
}

.flush-image {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    /*margin-bottom: 25px;*/
}

/* Paket Seçim Alanı */
.package-selection {
    display: flex;
    flex-direction: column;
     /* Paketler arası boşluk */
    /*margin-left: -30px; /* Konteynerin yan boşluğunu sıfırlar
    margin-right: -30px; /* Konteynerin yan boşluğunu sıfırlar */
    gap: 1px;
    background: #f5f5f5;
}

.package label {
    display: block;
    cursor: pointer;
    /* Kenarlık ve dolgu kaldırıldı */
}

.package.selected label {
    /* Kenarlık kaldırıldığı için bu kurala gerek kalmadı */
}

.package-image {
    display: block;
    width: 100%;
    -webkit-user-drag: none; /* Safari */
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    /* Köşe yuvarlaklığı kaldırıldı */
}

/* Satın Al Butonu */
button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Önerilen Ürünler Bölümü */
.recommended-products {
    margin-bottom: 30px; /* Add some space between sections */
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-extra-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartın alt kısmının esnemesini sağlar */
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.product-rating {
    color: #ffc107; /* Altın sarısı yıldızlar */
    margin-bottom: 10px;
    font-size: 18px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-top: auto; /* Fiyatı en alta iter */
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: #1E90FF; /* Canlı bir mavi */
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover {
    background-color: #1C86EE;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

#show-more-btn {
    display: block;
    margin: 0 auto;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.product-card.hidden {
    display: none;
}

/* Kargo Bilgileri Bölümü */
.shipping-info {
    /*
    Bu bölümün başlığı zaten .section-title sınıfını kullandığı için ek stil gerekmiyor
    padding: 25px 30px;
    */
}

.form-grid {
    text-align:  left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-top: none; /* Başlığın alt border'ı olduğu için üst border'ı kaldır */
    border-radius: 0 0 8px 8px;
}

.form-group {
    position: relative;
    margin-bottom: 10px; /* Gruplar arası boşluk */
}

.form-group.full-width,
.form-grid > button.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    text-align: left;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    display: block; /* Ensure label takes up its own line */
}

.form-control {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff; /* Shopier'in mavi tonuna benzer bir renk */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Select elementleri için özel stil */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Açıklama ve Geri Sayım Sayacı için Stiller */
.section-description {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.countdown-timer {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 25px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.countdown-timer span {
    padding: 0 8px;
}

/* Bölüm Başlıkları Stili */
.shipping-info .section-title,
.recommended-products .section-title {
    background-color: tomato;
    color: white;
    font-size: 20px;
    text-align: left;
    padding: 10px 20px;
    margin-bottom: 0;
    border-bottom: none;
    margin-top:0px;
    text-align: center;
}

/* Ürünler Bölümü İçerik Stili */
.product-section-content {
    padding: 0px 20px;
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-top: none;
    border-radius: 0 0 8px 8px;
    text-align: center; /* Center the content inside */
    border-bottom:0px;
}

/* Sepet Özeti Bölümü */
.basket-summary {
    margin-bottom: 30px;
}

.basket-summary .section-title {
    background-color: #3498db; /* Mavi bir arka plan */
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 20px;
}

.basket-content {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Ödeme Yöntemi Bölümü */
.payment-method {
    margin-bottom: 30px;
}

.payment-method .section-title {
    background-color: #9b59b6; /* Mor bir arka plan */
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 20px;
}

.payment-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-option:hover {
    border-color: #9b59b6;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #9b59b6;
}

.payment-option label {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;
    text-align: left;
}

.discount-badge {
    background-color: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}


.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.basket-item:last-child {
    border-bottom: none;
}

.basket-item-title {
    font-weight: 600;
    flex-grow: 1;
}

.basket-item-price {
    color: #2c3e50;
}

.basket-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #3498db;
    font-size: 18px;
    font-weight: bold;
}

#total-price {
    color: #e74c3c; /* Kırmızımsı bir renk */
}

.remove-item-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
    background-color: #c0392b;
}

.basket-discount {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 16px;
    color: #27ae60; /* Yeşil renk */
}

.u-none {
    display: none;
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütunlu yapı */
    }

    .product-grid {
        grid-template-columns: 1fr 1fr; /* Mobilde ürünleri 2'li göster */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr; /* Çok küçük ekranlarda da ürünleri ikili göster */
    }
}