:root {
    --brand-color: #495464;
    --primary-bg: #F4F4F2;
    --secondary-bg: #E8E8E8;
    --border-color: #BBBFCA;
    --text-primary: #495464;
    --text-secondary: #6c757d;
    --white: #ffffff;
}

/* Custom Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-bg);
    color: var(--text-primary);
}


/* RTL Support for Arabic */
[dir="rtl"] .navbar-nav {
    direction: rtl;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Owl Carousel RTL Support */
[dir="rtl"] .owl-carousel {
    direction: rtl;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* RTL modunda owl-stage-outer ve owl-stage için direction'ı sıfırla */
/* Owl Carousel kendi direction yönetimini yapar */
[dir="rtl"] .owl-stage-outer {
    direction: ltr;
    display: block !important;
    visibility: visible !important;
    overflow: hidden !important;
    position: relative !important;
}

[dir="rtl"] .owl-stage {
    direction: ltr;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

[dir="rtl"] .owl-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* RTL için owl carousel nav butonlarının yönünü düzelt */
[dir="rtl"] .owl-nav {
    direction: ltr;
}

/* RTL modunda owl carousel butonlarının ok yönlerini ters çevir */
[dir="rtl"] .owl-prev,
[dir="rtl"] .owl-next {
    transform: none;
}

/* Arabic (RTL) icon swap for navigation chevrons */
/* NOT: Swiper butonları için özel kurallar aşağıda */
[dir="rtl"] .bi-chevron-left::before {
    content: "\f285";
}

[dir="rtl"] .bi-chevron-right::before {
    content: "\f284";
}

/* RTL modunda owl-stage transform'unu düzelt - JavaScript ile kontrol edilecek */
/* !important kaldırıldı çünkü owl-carousel'in kendi transform değerlerini engelliyordu */

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* RTL Carousel Support */
[dir="rtl"] .carousel-item {
    float: right;
    margin-right: 0;
    margin-left: -100%;
}

[dir="rtl"] .carousel-item.active {
    margin-left: 0;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    opacity: 0.9;
}

.btn-outline-primary {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline-primary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--white);
}

.bg-light {
    background-color: var(--secondary-bg) !important;
}

.bg-secondary {
    background-color: var(--secondary-bg) !important;
}

.card {
    background-color: var(--white);
    border-color: var(--border-color);
}

.text-muted {
    color: var(--text-secondary) !important;
}

.table-light {
    background-color: var(--secondary-bg) !important;
}

.breadcrumb {
    background-color: var(--secondary-bg);
}

.breadcrumb-item a {
    color: var(--text-primary);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.form-control {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.alert-info {
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pagination .page-link {
    color: var(--text-primary);
    background-color: var(--white);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--white);
}

.pagination .page-link:hover {
    color: var(--text-primary);
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
}

.modal-content {
    background-color: var(--white);
    border-color: var(--border-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.dropdown-menu {
    background-color: var(--white);
    border-color: var(--border-color);
}

.dropdown-item:hover {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: var(--white);
}

.favorite-btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: var(--white);
}

.favorite-btn.active:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.card-title {
    color: var(--text-primary);
}

.badge.bg-primary {
    background-color: var(--text-primary) !important;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Ensure consistent background */
html {
    background-color: var(--primary-bg);
}

/* Link colors */
a {
    color: var(--text-primary);
}

a:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

/* Input focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(73, 84, 100, 0.25);
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 4px 12px rgba(73, 84, 100, 0.1);
}

/* Table styling */
.table {
    color: var(--text-primary);
}

.table-hover tbody tr:hover {
    background-color: var(--secondary-bg);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
}



/* Banner */ 
.banners .col-lg-4 > div {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.banners .col-lg-4 > div img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.banners .col-lg-4 > div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
    z-index: 0;
  }
  
  .banner-text {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #ffffff;
    z-index: 1;
  }
  
  .banner-text span {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.95;
  }
  
  .banner-text h4 {
    margin: 6px 0 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #ffffff;
  }
  
  .banner-text a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
  }
  
  .banner-text a i {
    transition: transform 0.2s ease;
  }
  
  /* Move arrow slightly right on hover */
  .banner-text a:hover i,
  .banners .col-lg-4 > div:hover .banner-text i {
    transform: translateX(6px);
  }


  /* ========================================
     Favori Ürünler Slider
     ======================================== */
  .slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    cursor: grab;
    user-select: none;
  }

  .slider-track.grabbing {
    cursor: grabbing;
  }

  .slider-track.grabbing .product-card {
    pointer-events: none;
  }

  .product-card {
    flex: 0 0 auto;
    width: 250px;
    margin: 0 15px;
    cursor: pointer;
  }

  .category-card {
    flex: 0 0 auto;
    width: calc((100% - 32px) / 5); /* 5 kart için: container genişliği - gap'ler / 5 */
    min-width: 0;
    cursor: pointer;
  }

  /* Kategori slider container - 5 kart görünsün */
  #favori-kategori .slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
  }

  #favori-kategori .slider-track {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
  }

  #favori-kategori .category-card .card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(73, 84, 100, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  #favori-kategori .category-card .card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 3px 10px rgba(73, 84, 100, 0.15);
  }

  #favori-kategori .category-card .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: var(--secondary-bg);
    padding: 20px;
    display: block;
  }

  #favori-kategori .category-card .card-body {
    padding: 15px 12px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--white);
  }

  #favori-kategori .category-card .card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: left;
    word-wrap: break-word;
  }

  #favori-kategori .category-card .card-text {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    color: var(--text-secondary);
  }

  /* Kartlar arası boşluk - gap kullanıldığı için margin'e gerek yok */
  #favori-kategori .category-card {
    margin: 0;
  }

  /* Slider track'in genişliğini ayarla - 5 kart görünsün */
  #favori-kategori .slider-track {
    width: 100%;
  }

  /* Başlık ve butonlar için düzenleme */
  #favori-kategori .row:first-child {
    margin-bottom: 5px;
  }

  #favori-kategori h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Responsive: Küçük ekranlarda daha az kart göster */
  @media (max-width: 1200px) {
    .category-card {
      flex: 0 0 calc(25% - 16px); /* 4 kart */
      width: calc(25% - 16px);
      max-width: calc(25% - 16px);
    }
  }

  @media (max-width: 992px) {
    .category-card {
      flex: 0 0 calc(33.333% - 16px); /* 3 kart */
      width: calc(33.333% - 16px);
      max-width: calc(33.333% - 16px);
    }
  }

  @media (max-width: 768px) {
    .category-card {
      flex: 0 0 calc(50% - 16px); /* 2 kart */
      width: calc(50% - 16px);
      max-width: calc(50% - 16px);
    }
  }

  @media (max-width: 576px) {
    .category-card {
      flex: 0 0 calc(100% - 16px); /* 1 kart */
      width: calc(100% - 16px);
      max-width: calc(100% - 16px);
    }
  }

.card-img-top {
    height: 200px;
    object-fit: contain;
    background-color: #ffffff;
}

/* Ürün kartları eşit yükseklik için */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .card-img-top {
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 0;
  margin-bottom: 0;
  height: 250px;
  width: 100%;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Mobilde resimlerin tam gösterilmesi için */
@media (max-width: 769.98px) {
  .product-card .card-img-top {
    height: 250px;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    padding: 0;
    margin-bottom: 0;
  }
}

.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

/* Ürün kartlarının eşit yükseklikte olması için */
.row.g-3 {
  display: flex;
  flex-wrap: wrap;
}

.product-col {
  display: flex;
}

.product-col > .product-card-link {
  display: flex;
  width: 100%;
}

.product-card .card-body .card-text {
  flex: 1 1 auto;
  line-height: 1.5;
}

/* Ürün listesi için responsive düzen - 4-2-1 */
.container .row > [class*="col-md-6"] {
  padding-left: 12px;
  padding-right: 12px;
}

.container .row > [class*="col-xl-3"],
.container .row > [class*="col-lg-3"] {
  padding-left: 12px;
  padding-right: 12px;
}

/* Responsive ürün kartları düzeni: <500px: 1, 500-770px: 2, 770-1000px: 3, 1000px+: 4 */

/* <500px: 1 kart - Bootstrap col-12'i override et ve ortalı */
@media (max-width: 499.98px) {
  .container .row.g-3 {
    justify-content: center;
  }
  
  .container .row.g-3 > .product-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
  }
  
  .container .row.g-3 > .product-col .card {
    width: 100%;
    max-width: 100%;
  }
}

/* 500px-770px: 2 kart - Bootstrap col-sm-6'yı override et */
@media (min-width: 500px) and (max-width: 769.98px) {
  .container .row.g-3 {
    justify-content: center;
  }
  
  .container .row.g-3 > .product-col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  /* col-md-4 ve col-lg-3'ü devre dışı bırak */
  .container .row.g-3 > .product-col.col-md-4,
  .container .row.g-3 > .product-col.col-lg-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* 770px-1000px: 3 kart - Bootstrap col-md-4'ü override et */
@media (min-width: 770px) and (max-width: 999.98px) {
  .container .row.g-3 > .product-col {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
  
  /* col-lg-3'ü devre dışı bırak */
  .container .row.g-3 > .product-col.col-lg-3 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

/* 1000px+: 4 kart - Bootstrap col-lg-3 kullanılacak */
@media (min-width: 1000px) {
  .container .row.g-3 > .product-col.col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

  .slider-track.grabbing .category-card {
    pointer-events: none;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    opacity: 0.8;
}

.nav-btn:hover {
    background-color: var(--text-primary);
    opacity: 1;
}

.product-brand {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.product-name {
    font-size: 0.95rem;
    min-height: 60px;
}

.main-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ========================================
Information Section
======================================== */

#information .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--white);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#information .card-icon i {
    font-size: 32px;
}

#information .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#information .card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#information .card-body {
    padding: 30px 20px;
    text-align: center;
}

#information .card-title {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

#information .card-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}


/* ========================================
Favori Kategoriler Slider
======================================== */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 2px;
}

.carousel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Buton Tasarımı - Yuvarlak */
.owl-nav button {
  background: var(--text-primary) !important;
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  color: var(--white) !important;
  border: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: .2s ease;
  opacity: 0.8;
}

.owl-nav button:hover {
  background: var(--text-primary) !important;
  opacity: 1;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav .owl-nav {
  display: flex;
  gap: 20px;
}

/* Owl Carousel Genel Stilleri - Tüm item'ların eşit yükseklikte olması için */
.owl-stage {
  display: flex;
  align-items: stretch;
}

.owl-item {
  display: flex;
  flex-direction: column;
}

.item {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(73, 84, 100, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Favori Kategori Swiper Carousel Özel Stilleri */
#favori-kategori .swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
}

#favori-kategori .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

#favori-kategori .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

#favori-kategori .swiper-slide .card {
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(73, 84, 100, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#favori-kategori .swiper-slide .card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 3px 10px rgba(73, 84, 100, 0.15);
}

#favori-kategori .swiper-slide .card-img-top {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 5px;
  display: block;
  flex-shrink: 0;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#favori-kategori .swiper-slide .card-body {
  padding: 8px 12px 12px 12px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
}

#favori-kategori .swiper-slide .card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: left;
  word-wrap: break-word;
  flex-grow: 0;
}

#favori-kategori .swiper-slide .card-text {
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
  color: var(--text-secondary);
  flex-grow: 0;
}

/* Swiper Navigation Butonları */
#favori-kategori .swiper-button-prev,
#favori-kategori .swiper-button-next {
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: 0;
  color: var(--text-primary);
  background: var(--secondary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#favori-kategori .swiper-button-prev:hover,
#favori-kategori .swiper-button-next:hover {
  background: var(--brand-color);
  color: white;
}

#favori-kategori .swiper-button-prev::after,
#favori-kategori .swiper-button-next::after {
  display: none;
}

#favori-kategori .swiper-button-prev i,
#favori-kategori .swiper-button-next i {
  font-size: 20px;
}

/* Zenne ve Merdane Favori Swiper Carousel Özel Stilleri */
#zenne-favori .swiper,
#merdane-favori .swiper {
  width: 100%;
  padding-bottom: 20px;
}

#zenne-favori .swiper-wrapper,
#merdane-favori .swiper-wrapper {
  display: flex;
  align-items: stretch;
  height: auto;
}

#zenne-favori .swiper-slide,
#merdane-favori .swiper-slide {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  min-height: 100%;
}

#zenne-favori .swiper-slide > *,
#merdane-favori .swiper-slide > * {
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#zenne-favori .swiper-slide .product-card,
#merdane-favori .swiper-slide .product-card {
  width: 100%;
  margin: 0;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#zenne-favori .swiper-slide .card,
#merdane-favori .swiper-slide .card {
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(73, 84, 100, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#zenne-favori .swiper-slide .card:hover,
#merdane-favori .swiper-slide .card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 3px 10px rgba(73, 84, 100, 0.15);
}

#zenne-favori .swiper-slide .card-img-top,
#merdane-favori .swiper-slide .card-img-top {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: white;
  padding: 5px;
  display: block;
  flex-shrink: 0;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#zenne-favori .swiper-slide .card-body,
#merdane-favori .swiper-slide .card-body {
  padding: 8px 12px 12px 12px;
  text-align: left;
  flex-grow: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  min-height: 0;
}

#zenne-favori .swiper-slide .card-body .mt-auto,
#merdane-favori .swiper-slide .card-body .mt-auto {
  margin-top: auto;
}

#zenne-favori .swiper-slide .product-title,
#merdane-favori .swiper-slide .product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: left;
  word-wrap: break-word;
  flex-grow: 0;
}

#zenne-favori .swiper-slide .product-color,
#merdane-favori .swiper-slide .product-color {
  font-size: 12px;
  line-height: 1.3;
  margin: 0 0 6px 0;
  color: var(--text-secondary);
  flex-grow: 0;
}

/* Zenne ve Merdane Favori Swiper Navigation Butonları */
#zenne-favori .swiper-button-prev,
#zenne-favori .swiper-button-next,
#merdane-favori .swiper-button-prev,
#merdane-favori .swiper-button-next {
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: 0;
  color: var(--text-primary);
  background: var(--secondary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#zenne-favori .swiper-button-prev:hover,
#zenne-favori .swiper-button-next:hover,
#merdane-favori .swiper-button-prev:hover,
#merdane-favori .swiper-button-next:hover {
  background: var(--brand-color);
  color: white;
}

#zenne-favori .swiper-button-prev::after,
#zenne-favori .swiper-button-next::after,
#merdane-favori .swiper-button-prev::after,
#merdane-favori .swiper-button-next::after {
  display: none;
}

#zenne-favori .swiper-button-prev i,
#zenne-favori .swiper-button-next i,
#merdane-favori .swiper-button-prev i,
#merdane-favori .swiper-button-next i {
  font-size: 20px;
}

/* RTL modunda Swiper navigation icon'ları normal görünmeli */
/* Swiper RTL modunda buton konumlarını değiştiriyor: prev sağda, next solda */
/* Genel RTL kuralını override et - Swiper butonları için icon'lar normal görünmeli */
/* bi-chevron-left normal: \f284, bi-chevron-right normal: \f285 */
[dir="rtl"] #zenne-favori .swiper-button-prev i.bi-chevron-left::before,
[dir="rtl"] #merdane-favori .swiper-button-prev i.bi-chevron-left::before,
[dir="rtl"] #favori-kategori .swiper-button-prev i.bi-chevron-left::before {
  content: "\f284" !important; /* chevron-left normal görünümü (sola bakar) */
}

[dir="rtl"] #zenne-favori .swiper-button-next i.bi-chevron-right::before,
[dir="rtl"] #merdane-favori .swiper-button-next i.bi-chevron-right::before,
[dir="rtl"] #favori-kategori .swiper-button-next i.bi-chevron-right::before {
  content: "\f285" !important; /* chevron-right normal görünümü (sağa bakar) */
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--text-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(73, 84, 100, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.scroll-to-top:hover {
  background-color: var(--text-primary);
  box-shadow: 0 6px 16px rgba(73, 84, 100, 0.5);
  transform: translateY(-3px) scale(1.05);
  opacity: 0.9;
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(1);
}

.scroll-to-top i {
  font-size: 24px;
}

/* RTL Support */
[dir="rtl"] .scroll-to-top {
  right: auto;
  left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
  
  [dir="rtl"] .scroll-to-top {
    left: 20px;
  }
  
  .scroll-to-top i {
    font-size: 22px;
  }
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-button {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-button:hover {
  background-color: #20BA5A;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
  text-decoration: none;
}

.whatsapp-button:active {
  transform: translateY(-50%) scale(1.05);
}

.whatsapp-button i {
  font-size: 28px;
}

/* RTL Support */
[dir="rtl"] .whatsapp-button {
  right: auto;
  left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-button {
    width: 45px;
    height: 45px;
    right: 20px;
  }
  
  [dir="rtl"] .whatsapp-button {
    left: 20px;
  }
  
  .whatsapp-button i {
    font-size: 24px;
  }
}

/* ========================================
   Product Detail Page Styles
   ======================================== */
.product-thumbnails {
  margin-top: 15px;
}

/* RTL için thumbnail'ların yönünü düzelt */
[dir="rtl"] .product-thumbnails {
  direction: ltr;
  text-align: center;
}

[dir="rtl"] .product-thumbnails .d-flex {
  direction: ltr;
  justify-content: center;
}

.thumbnail-item {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item.active {
  opacity: 1;
}

.thumbnail-item img {
  display: block;
}

/* Product Image Carousel */
#productImageCarousel {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-bg);
}

#productImageCarousel .carousel-item img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#productImageCarousel .carousel-item img:hover {
  transform: scale(1.02);
}

#productImageCarousel .carousel-control-prev,
#productImageCarousel .carousel-control-next {
  background-color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#productImageCarousel .carousel-control-prev {
  left: 15px;
}

#productImageCarousel .carousel-control-next {
  right: 15px;
}

#productImageCarousel .carousel-control-prev:hover,
#productImageCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: var(--text-primary);
}

/* RTL Support for Product Image Carousel */
[dir="rtl"] #productImageCarousel .carousel-control-prev {
  left: auto;
  right: 15px;
}

[dir="rtl"] #productImageCarousel .carousel-control-next {
  right: auto;
  left: 15px;
}


/* Modal Image Carousel */
#imageModal .modal-content {
  background-color: var(--white);
}

#imageModal .carousel-control-prev,
#imageModal .carousel-control-next {
  background-color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#imageModal .carousel-control-prev:hover,
#imageModal .carousel-control-next:hover {
  opacity: 1;
  background-color: var(--text-primary);
}

/* RTL Support for Modal Image Carousel */
[dir="rtl"] #imageModal .carousel-control-prev {
  left: auto;
  right: 10px;
}

[dir="rtl"] #imageModal .carousel-control-next {
  right: auto;
  left: 10px;
}


#imageModal .carousel-control-prev-icon,
#imageModal .carousel-control-next-icon {
  filter: brightness(0);
}

#imageModal .btn-close {
  opacity: 1;
  padding: 0.5rem;
  margin: 0.5rem;
}

#imageModal .btn-close:hover {
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
  .thumbnail-item img {
    width: 60px !important;
    height: 60px !important;
  }
  
  #productImageCarousel .carousel-control-prev,
  #productImageCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #productImageCarousel .carousel-control-prev {
    left: 10px;
  }
  
  #productImageCarousel .carousel-control-next {
    right: 10px;
  }
  
  /* RTL Mobile Support */
  [dir="rtl"] #productImageCarousel .carousel-control-prev {
    left: auto;
    right: 10px;
  }
  
  [dir="rtl"] #productImageCarousel .carousel-control-next {
    right: auto;
    left: 10px;
  }
}

/* Similar Products Carousel */
.similar-products-carousel {
  margin-top: 1rem;
}

.similar-products-carousel .swiper-slide {
  height: auto;
}

.similar-products-carousel .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.similar-products-carousel .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Swiper navigation buttons for similar products */
.similar-products-nav {
  display: flex !important;
  gap: 10px;
  align-items: center;
  flex-direction: row;
}

.similar-products-nav .swiper-button-prev,
.similar-products-nav .swiper-button-next {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  background: var(--text-primary) !important;
  color: var(--white) !important;
  border-radius: 50% !important;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.similar-products-nav .swiper-button-prev:hover,
.similar-products-nav .swiper-button-next:hover {
  opacity: 1;
  transform: scale(1.1);
}

.similar-products-nav .swiper-button-prev::after,
.similar-products-nav .swiper-button-next::after {
  display: none;
}

.similar-products-nav .swiper-button-prev i,
.similar-products-nav .swiper-button-next i {
  font-size: 20px;
  line-height: 1;
}

/* RTL modunda Swiper navigation icon'ları normal görünmeli */
[dir="rtl"] .similar-products-nav .swiper-button-prev i.bi-chevron-left::before {
  content: "\f284" !important; /* chevron-left normal görünümü (sola bakar) */
}

[dir="rtl"] .similar-products-nav .swiper-button-next i.bi-chevron-right::before {
  content: "\f285" !important; /* chevron-right normal görünümü (sağa bakar) */
}

@media (max-width: 768px) {
  .similar-products-nav .swiper-button-prev,
  .similar-products-nav .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  
  .similar-products-nav .swiper-button-prev i,
  .similar-products-nav .swiper-button-next i {
    font-size: 16px;
  }
}

