/* ==========================================================================
   ORTAK STILLER - TÜM SAYFALAR İÇİN
   ========================================================================== */

/* Genel kaydırmayı önleme */
html,
body {
  overflow-x: hidden;
}

/* Navbar genel ve hover efektleri */
.navbar {
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  position: relative;
  color: #000;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd;
}

.offcanvas-body .nav-link i {
  font-size: 1.1rem;
}

/* Tabloların taşmasını engelleme */
table {
  table-layout: fixed;
  word-wrap: break-word;
}

/* Görsellerin taşmasını engelleme ve hover efekti */
img {
  max-width: 100%;
  height: auto;
}

.product-img-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-img-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Linkli resimler için hover efekti */
a img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

a:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Offcanvas mobil menü scroll sorununu önleme */
.offcanvas-body {
  overflow-x: hidden;
}

/* Ek stiller */
.container-bg-light {
  background-color: #f8f9fa;
}

.faq .accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0d6efd;
}

/* ==========================================================================
   ÜRÜN DETAY SAYFASI STİLLERİ
   ========================================================================== */

/* SLIDER – TÜM RESİMLER AYNI BOY */
.mySwiper .swiper-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Sipariş formu stilleri */
.order-form {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bank-info {
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid #0d6efd;
}

.form-label {
  font-weight: 600;
}

.required::after {
  content: " *";
  color: red;
}

.btn-order {
  background-color: #0d6efd;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-order:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.order-summary {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success-message {
  display: none;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.iban-box {
  background-color: #fff;
  border: 1px dashed #0d6efd;
  border-radius: 6px;
  padding: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin: 10px 0;
}

.order-tracking {
  background-color: #e7f3ff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.status-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.status-step {
  position: relative;
  margin-bottom: 1.5rem;
}

.status-step::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dee2e6;
}

.status-step.active::before {
  background-color: #0d6efd;
}

.status-step.completed::before {
  background-color: #198754;
}

.status-step::after {
  content: "";
  position: absolute;
  left: -1.44rem;
  top: 1.2rem;
  width: 2px;
  height: calc(100% + 0.5rem);
  background-color: #dee2e6;
}

.status-step:last-child::after {
  display: none;
}

.order-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0d6efd;
  background-color: #e7f3ff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.5rem 0;
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.customer-type-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #dee2e6;
}

.customer-type-card:hover {
  border-color: #0d6efd;
  transform: translateY(-2px);
}

.customer-type-card.selected {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

.corporate-fields {
  display: none;
}

/* ==========================================================================
   RENK SEÇENEKLERİ STİLLERİ
   ========================================================================== */

.color-options-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-color: white;
}

.color-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-item.selected {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

.color-box {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  transition: transform 0.2s ease;
}

.color-item:hover .color-box {
  transform: scale(1.1);
}

.color-name {
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.color-code {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
}

.selected-color-info {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0d6efd;
}

#selectedColorName {
  color: #0d6efd;
  font-weight: 600;
}

.color-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   ADET GİRİŞİ VE SİPARİŞ STİLLERİ
   ========================================================================== */

.quantity-input-container {
  position: relative;
}

.quantity-input-container .input-group-text {
  background-color: #e9ecef;
  font-weight: 600;
}

.quantity-info {
  background-color: #e7f3ff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  border-left: 4px solid #0d6efd;
}

.quantity-info h6 {
  color: #0d6efd;
  margin-bottom: 10px;
}

.invalid-feedback {
  display: none;
  font-size: 0.875rem;
}

/* Minimum sipariş uyarısı için stiller */
.min-order-badge {
  background-color: #ffc107;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  margin-left: 10px;
}

.min-order-alert {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.min-order-alert i {
  color: #ffc107;
  margin-right: 5px;
}

/* 20 adet altı uyarısı */
.strict-min-alert {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.strict-min-alert i {
  color: #dc3545;
  margin-right: 8px;
}

.strict-min-alert h5 {
  color: #721c24;
  margin-bottom: 10px;
}

/* ==========================================================================
   DUVAR KORUYUCULAR SAYFASI ÖZELLİKLERİ
   ========================================================================== */

.responsive-map-container {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  border-radius: 8px;
}

.responsive-map-container iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* ==========================================================================
   RESPONSİVE STİLLER
   ========================================================================== */

@media (max-width: 768px) {
  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .color-box {
    width: 60px;
    height: 60px;
  }

  .min-order-badge {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
}