html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.kurumsal-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: flex-start;
  flex-wrap: wrap; /* Küçük ekranlarda taşma olmasın */
}

.about-sidebar {
  flex: 0 0 250px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.about-sidebar h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #230b68;
  border-bottom: 2px solid #230b68;
  padding-bottom: 10px;
}
 
.about-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-sidebar ul li {
  margin-bottom: 12px;
}

.about-sidebar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.about-sidebar ul li a:hover,
.about-sidebar ul li a.active {
  color: #230b68;
  font-weight: bold;
}

/* içerik */
.faaliyet-content {
  flex: 1;
  min-width: 280px;
  
} 

.faaliyet-content h2 {
  font-size: 1.8rem;
  color: #230b68;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 90px; 
  padding: 10px;
}

.donation-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  width: 250px;
}

.donation-card:hover {
  transform: translateY(-5px);
}

.donation-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.donation-card h3 {
  font-size: 1.2rem;
  margin: 10px 0 5px 0;
}

.donation-card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.donation-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 15px 0;
  color: #000;
}

.donation-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.donation-actions button,
.donation-actions .donate-now {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.donation-actions button {
  background-color: rgb(35, 35, 143);
  color: white;
}

.donation-actions button:hover {
  background-color: #180a4d;
}

.donation-actions .donate-now {
  background-color: rgb(8, 8, 97);
  color: white;
}

.donation-actions .donate-now:hover {
  background-color: rgb(35, 35, 143);
}

/* --- Modal Temel Yapısı --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 95%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close:hover {
    color: #dc3545;
}

#sepet-liste {
    margin: 20px 0;
    max-height: 50vh;
    overflow-y: auto;
}

/* --- Jilet Gibi Hizalama: Sepet Satırı --- */
.sepet-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    gap: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.sepet-item:hover {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Ürün Adı */
.sepet-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.sepet-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* --- Adet Kontrolleri (Modern Tasarım) --- */
.sepet-item-controls {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(8, 16, 133, 0.15);
}

.qty-btn {
    background: linear-gradient(135deg, #081085 0%, #0a14a8 100%);
    color: white !important;
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.qty-btn:first-child { 
    border-radius: 8px 0 0 8px;
}

.qty-btn:last-child { 
    border-radius: 0 8px 8px 0;
}

.qty-btn:hover { 
    background: linear-gradient(135deg, #0a14a8 0%, #0d18c2 100%);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #081085 0%, #0a14a8 100%);
    color: white;
    display: inline-block;
    flex-shrink: 0;
}

.qty-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.qty-input:focus {
    outline: none;
    background: linear-gradient(135deg, #0a14a8 0%, #0d18c2 100%);
}

/* Sayı oklarını gizle */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Fiyat Alanı */
.sepet-item-total {
    font-weight: 800;
    color: #28a745;
    font-size: 16px;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Çıkar Butonu */
.btn-cikar-modal {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0 14px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cikar-modal:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.btn-cikar-modal:active {
    transform: translateY(0);
}

/* Modal Footer */
.modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
}

.modal-toplam-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#modal-toplam {
    font-size: 1.4rem;
    font-weight: 800;
    color: #081085;
}

.modal-sepet-btn {
    width: 100%;
    background: linear-gradient(135deg, #081085 0%, #0a14a8 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(8, 16, 133, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-sepet-btn:hover { 
    background: linear-gradient(135deg, #0a14a8 0%, #0d18c2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 16, 133, 0.4);
}

.modal-sepet-btn:active {
    transform: translateY(0);
}

@media (max-width: 910px) {
  .donation-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
  }
  .faaliyet-content h2 {
    display: block;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
  }

  .donation-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .donation-card {
    padding: 10px;
  }
  .donation-card img {
    height: 200px;
  }
  .donation-card h3 {
    font-size: 0.95rem;
  }
  .donation-price {
    font-size: 1rem;
  }
  .faaliyet-content h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
}
 
@media (max-width: 576px) {
  .kurumsal-layout {
    flex-direction: column;
    gap: 0;
    padding: 0 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .faaliyet-content {
    padding: 0 2px;
    min-width: 0;
    width: 275px;
    box-sizing: border-box;
  }
  .donation-grid {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .about-sidebar {
    text-align: center;
  }

  .kurumsal-layout {
        width: 350px;
  }
}

/* --- Mobil Responsive Modal --- */
@media (max-width: 600px) {
    .modal-content { padding: 15px 10px; }
    
    .sepet-item { 
        gap: 10px;
        padding: 12px;
        flex-wrap: wrap;
    }

    .sepet-item-info {
        gap: 10px;
    }

    .sepet-item-name { font-size: 12px; }

    .sepet-item-controls {
        height: 34px;
    }

    .qty-btn { 
        width: 34px; 
        height: 34px; 
        font-size: 18px;
    }
    
    .qty-input { 
        width: 45px; 
        height: 34px; 
        font-size: 14px;
    }
    
    .sepet-item-total { 
        font-size: 14px; 
        min-width: 75px; 
    }
    
    .btn-cikar-modal { 
        padding: 0 12px; 
        height: 34px; 
        font-size: 10px; 
    }
}



/* Modal içindeki kontrol grubu kapsayıcısı */
#sepet-modal .sepet-item-controls {
    display: inline-flex;
    align-items: center;
    background-color: #081085; /* Kanka burası buton ve inputun ortak arka planı */
    border-radius: 50px; /* Hap şeklinde modern bir görünüm */
    padding: 3px 8px;
    gap: 0; /* Boşlukları kapattık ki bütün dursun */
}

/* Butonların temizlenmesi */
#sepet-modal .qty-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #081085;
    font-weight: bold;
    font-size: 18px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sayı giriş alanının temizlenmesi */
#sepet-modal .qty-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 40px;
    text-align: center;
    font-weight: 800;
    color: #333;
    font-size: 15px;
    -moz-appearance: textfield; /* Firefox oklarını kaldırır */
}

/* Chrome/Safari oklarını kaldırma */
#sepet-modal .qty-input::-webkit-outer-spin-button,
#sepet-modal .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hover efekti (sadece butonlara) */
#sepet-modal .qty-btn:hover {
    color: #ff0000; /* Artı eksiye gelince renk değişsin istersen */
    transform: scale(1.1);
}