/**
 * OKUL HEDİYESİ - CUSTOM CSS
 * AŞAMA 4-7: GELİŞMİŞ MOBİL UX, BİLEŞENLER VE FOOTER
 */

/* =========================================
   FULL-WIDTH RESET (PrestaShop Classic Override)
   - Header/Footer tam ekran genişliği
   - İçerik alanı ortalanmış, yan boşluk yok
   - Yatay scroll engellendi
========================================= */

/* Yatay scroll tamamen engelle */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* PrestaShop wrapper elementlerini tam genişlik yap */
#wrapper,
#content-wrapper,
#main,
#columns,
#content,
.page-home,
.casaba-home-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Classic temasının iç .container'larını sıfırla */
#wrapper > .container,
#content-wrapper > .container,
#main > .container,
#columns > .container,
.page-home > .container,
.casaba-home-content > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Bootstrap .row negatif margin overflow'u önle */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Header / Footer her zaman tam genişlik */
.casaba-header,
.casaba-top-announcement,
.casaba-top-contact,
.casaba-header-main,
.casaba-navigation,
.casaba-footer {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}
/* ======= END FULL-WIDTH RESET ======= */

:root {
  --color-primary: #f26522; /* Turuncu ana renk */
  --color-primary-dark: #d55317;
  --color-secondary: #1e2c45; /* Koyu lacivert yardımcı renk */
  --color-bg: #f5f6f8; /* Açık gri sayfa zemini */
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-border: #e0e0e0;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-circle: 50%;
  
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  --font-main: 'Inter', 'Roboto', sans-serif;
  
  --header-height: 80px; /* Yaklaşık mobil sticky header yüksekliği */
}

/* =========================================
   GENEL RESET VE YAPI
========================================= */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}
body.has-bottom-bar {
  padding-bottom: 60px; /* Mobil alt bar yüksekliği kadar boşluk */
}
body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* .casaba-container — büyük ekranda fluid (tam genişlik + padding),
   küçük ekranda responsive padding */
.casaba-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 30px; /* Yan boşluk — tamamen sıfır değil, düzgün görünsün */
  box-sizing: border-box;
}

/* SVG İkonlar */
.casaba-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* PrestaShop varsayılan kancalarından gelen Custom Text (Duyuru) modülünü gizle (beyaz kutu sorunu) */
#custom-text {
    display: none !important;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.casaba-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  z-index: 1000;
  position: relative;
  transition: transform 0.3s ease;
}
.casaba-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Üst Bilgi Çubuğu (Duyuru) */
.casaba-top-announcement {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: 8px 15px;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.casaba-header.is-sticky .casaba-top-announcement {
  display: none; /* Sticky olunca duyuru çubuğu gizlenir */
}
.casaba-top-contact {
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 12px;
  padding: 5px 15px;
  text-align: right;
}
.casaba-header.is-sticky .casaba-top-contact {
  display: none;
}
.casaba-top-contact a {
  margin-left: 15px;
}

/* Slider Okları (Duyuru için) */
.announcement-nav {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0 5px;
  display: flex;
  align-items: center;
}
.announcement-nav svg {
  width: 16px;
  height: 16px;
}

/* Ana Header */
.casaba-header-main {
  padding: 20px 0;
  background: var(--color-white);
}
.casaba-header.is-sticky .casaba-header-main {
  padding: 10px 0;
}
.casaba-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.casaba-logo img {
  max-height: 60px;
  transition: max-height 0.3s;
}
.casaba-header.is-sticky .casaba-logo img {
  max-height: 40px;
}
.casaba-search {
  flex: 1;
  max-width: 600px;
}
.casaba-search form {
  display: flex;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.casaba-search input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
}
.casaba-search button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0 25px;
  font-weight: bold;
  cursor: pointer;
}
.casaba-user-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.action-item .text {
  display: flex;
  flex-direction: column;
}
.action-item .title {
  font-size: 12px;
  color: #777;
}
.action-item .subtitle {
  font-size: 14px;
  font-weight: bold;
}

/* Mobil İkon Grubu */
.casaba-mobile-icons {
  display: none;
  gap: 15px;
  align-items: center;
}
.casaba-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--color-secondary);
}

/* Navigasyon */
.casaba-navigation {
  background: var(--color-primary);
  color: var(--color-white);
}
.casaba-header.is-sticky .casaba-navigation {
  display: none; /* Mobilde veya sticky'de saklanabilir, masaüstünde kalsın diyorsak @media'da yönetiriz */
}
.nav-grid {
  display: flex;
  align-items: center;
}
.btn-categories {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  height: 100%;
}
.nav-links {
  display: flex;
  flex: 1;
}
.nav-links li a {
  display: block;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-links li a:hover {
  background: var(--color-primary-dark);
}
.nav-cart {
  padding: 0 20px;
  background: var(--color-secondary);
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* =========================================
   OFF-CANVAS SEPET (YANDAN AÇILAN)
========================================= */
.casaba-offcanvas-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  max-width: 100%;
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.casaba-offcanvas-cart.is-open {
  right: 0;
}
.cart-header {
  padding: 20px;
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.cart-header h3 {
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.cart-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
}
.cart-footer .btn-primary {
  width: 100%;
  text-align: center;
  display: block;
  box-sizing: border-box;
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
}
.cart-overlay.is-active {
  display: block;
}

/* =========================================
   MOBİL ALT BAR (SMART BOTTOM BAR)
========================================= */
.casaba-mobile-bottom-bar {
  display: none; /* Masaüstünde gizli */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1500;
}
.casaba-mobile-bottom-bar.is-visible {
  bottom: 0; /* Artık is-visible sınıfına gerek yok, JS'den bağımsız her zaman görünür */
}
.bottom-bar-grid {
  display: flex;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}
.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 11px;
  gap: 4px;
  flex: 1;
  height: 100%;
}
.bottom-bar-item.cart {
  position: relative;
}
.bottom-bar-item.cart .badge {
  position: absolute;
  top: 5px;
  right: 25px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   ANA İÇERİK (3 KOLON)
========================================= */
.casaba-layout-3col {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
  margin-bottom: 30px;
}
.casaba-widget-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.casaba-category-list li {
  border-bottom: 1px solid var(--color-border);
}
.casaba-category-list li:last-child {
  border-bottom: none;
}
.casaba-category-list a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  font-size: 14px;
  color: var(--color-text);
  transition: background 0.2s;
}
.casaba-category-list a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
.casaba-category-list .icon {
  margin-right: 10px;
  font-size: 18px;
}

/* Hero Section */
.casaba-hero {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 400px;
}
.hero-banner {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: var(--radius-md);
  max-width: 350px;
}
.hero-content h2 {
  margin: 0 0 10px;
  color: var(--color-secondary);
  font-size: 24px;
}
.hero-content p {
  margin: 0 0 20px;
  color: #555;
  font-size: 15px;
}
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: bold;
}

/* =========================================
   RESİMLİ KATEGORİLER (MOBİL İÇİN YATAY)
========================================= */
.casaba-image-categories {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
}
.casaba-image-categories::-webkit-scrollbar {
  display: none; /* Chrome */
}
.img-cat-item {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.img-cat-item img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--color-primary);
  padding: 2px;
}
.img-cat-item span {
  font-size: 12px;
  font-weight: 500;
}

/* =========================================
   PROMO BANNERLAR
========================================= */
.casaba-promo-banners {
  margin-bottom: 40px;
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.promo-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.promo-banner:hover {
  transform: translateY(-3px);
}
.promo-banner img {
  width: 100%;
  display: block;
}

/* =========================================
   ÜRÜN VİTRİNİ & SEKMELER (TABS)
========================================= */
.casaba-product-section {
  margin-bottom: 40px;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.casaba-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid var(--color-bg);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.casaba-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  padding: 10px 5px;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.tab-btn.active {
  color: var(--color-secondary);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-carousel {
  display: flex; /* grid yerine mobil yatay kaydırma için flex */
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
/* Masaüstünde sarmala (wrap) veya kaydır. Örnek site grid şeklinde masaüstünde. */
@media (min-width: 1025px) {
  .product-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}
.casaba-product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: var(--color-white);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  flex: 0 0 200px; /* Mobilde kart genişliği */
}
@media (min-width: 1025px) {
  .casaba-product-card { flex: auto; }
}

.casaba-product-card:hover {
  box-shadow: var(--shadow-md);
}
.product-img {
  position: relative;
}
.product-img img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: var(--radius-sm);
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: bold;
}
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category-name {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}
.product-name {
  font-size: 13px;
  margin: 5px 0 10px;
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
}
.product-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 15px;
}
.product-action {
  display: flex;
  gap: 5px;
}
.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.btn-add-to-cart {
  flex: 1;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}
.btn-add-to-cart:hover {
  background: var(--color-primary);
}

/* =========================================
   GÜVEN ALANI (MODERN SVG İKONLAR)
========================================= */
.casaba-trust-section {
  background: var(--color-white);
  padding: 30px 0;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: transform 0.2s;
}
.trust-item:hover {
  transform: translateY(-3px);
  background: #ffebe3; /* Açık turuncu hover */
}
.trust-item .icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}
.trust-item h5 {
  margin: 0 0 5px;
  font-size: 15px;
  color: var(--color-secondary);
}
.trust-item p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-light);
}

/* =========================================
   MÜŞTERİ YORUMLARI (GOOGLE STİLİ)
========================================= */
.casaba-testimonials {
  margin-bottom: 40px;
}
.section-header-centered {
  text-align: center;
  margin-bottom: 30px;
}
.section-header-centered h3 {
  font-size: 24px;
  color: var(--color-secondary);
  margin: 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}
.reviewer-info h5 {
  margin: 0 0 5px;
  font-size: 14px;
}
.stars {
  color: #fbbc04; /* Google yıldız rengi */
  font-size: 14px;
}
.review-text {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* =========================================
   FOOTER (ALT BİLGİ)
========================================= */
.casaba-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding-top: 50px;
  margin-top: 50px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img {
  max-width: 200px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 15px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: var(--color-white);
}
.social-icon:hover {
  background: var(--color-primary);
}
.social-icon svg {
  width: 20px;
  height: 20px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer-col h4 {
  color: var(--color-primary);
  margin: 0 0 20px;
  font-size: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #ccc;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--color-white);
}
.footer-newsletter p {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 15px;
}
.newsletter-form {
  display: flex;
}
.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
}
.newsletter-form button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: bold;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}
.payment-icons {
  display: flex;
  gap: 10px;
}
.payment-icons svg {
  height: 24px;
  width: auto;
}

/* =========================================
   RESPONSIVE (MOBİL ÖNCELİKLİ ADAPTASYON)
========================================= */
@media (max-width: 1024px) {
  .casaba-layout-3col {
    grid-template-columns: 200px 1fr;
  }
  .casaba-sidebar-right { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 0 !important; }
  .casaba-footer { padding-bottom: 110px !important; }

  /* ===== MOBİL: YATAY SCROLL VE KENAR BOŞLUK DÜZELTME ===== */
  /* Tüm ana elementlerde overflow-x kilitle */
  html, body,
  #wrapper, #content-wrapper, #main, #columns, #content,
  .page-home, .casaba-home-content {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  /* Inner .container sıfırla */
  #wrapper > .container,
  #content-wrapper > .container,
  #main > .container,
  #columns > .container,
  .page-home > .container,
  .casaba-home-content > .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  /* Mobilde casaba-container SIFIR padding — tam kenara yapışsın */
  .casaba-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  /* Bootstrap row negatif margin'ini mobilde sıfırla */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Google reviews kartları mobilde overflow olmasın */
  .reviews-carousel-wrapper {
    overflow: hidden !important;
  }
  .reviews-carousel-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  /* ===== HEADER ===== */
  .casaba-mobile-bottom-bar { display: block; }
  .casaba-header.is-sticky .casaba-navigation { display: none; }
  
  .casaba-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu logo icons"
      "search search search";
    gap: 5px;
    row-gap: 5px;
    align-items: center;
    padding: 0 10px; /* Header içi minimal yan boşluk */
    box-sizing: border-box;
  }
  .casaba-search {
    grid-area: search;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }
  .casaba-user-actions { display: none; }
  
  .casaba-mobile-toggle {
    display: block;
    position: static;
    grid-area: menu;
  }
  .casaba-mobile-icons {
    display: flex;
    position: static;
    grid-area: icons;
  }
  .casaba-logo { margin: 0; text-align: center; grid-area: logo; }
  
  .casaba-header.is-sticky .casaba-header-grid {
    padding-bottom: 5px;
  }
  
  .nav-links, .btn-categories, .nav-cart { display: none; }
  .casaba-navigation { padding: 10px 0; }
  
  /* ===== LAYOUT ===== */
  .casaba-layout-3col { grid-template-columns: 1fr; }
  .casaba-sidebar-left { display: none; }
  
  .hero-content {
    left: 10px;
    right: 10px;
    padding: 15px;
  }
  .banner-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  
  /* ===== FOOTER ===== */
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h2 { font-size: 18px; }
  .hero-content p { font-size: 13px; }
  .casaba-product-card { flex: 0 0 160px; }
}

/* =========================================
   HATA DÜZELTMELERİ (SON EKLENENLER)
========================================= */

/* 1. Yan Menüler Beyaz Alan İçinde (PrestaShop ve Özel Tema) */
#left-column .block,
#right-column .block,
#left-column > div,
#right-column > div {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    padding: 15px;
    overflow: hidden;
}

/* Kapat butonu ve ok ikonunu masaüstünde GİZLE */
@media (min-width: 992px) {
  .mobile-menu-close {
    display: none !important;
  }
  .menu-expand {
    display: none !important;
  }
}

/* 2. Markalar ve Tedarikçiler bloklarını (İstenmeyen) gizle */
#left-column .block-manufacturer,
#left-column .block-supplier,
#right-column .block-manufacturer,
#right-column .block-supplier,
.block-brand, 
.block-supplier,
#search_filters_brands,
#search_filters_suppliers,
.block_manufacturer,
.block_supplier {
    display: none !important;
}

/* 3. Telefon numaraları (Görünmüyordu, hover olmadan) */
.casaba-top-contact a,
.casaba-top-contact {
    color: var(--color-white) !important;
}

/* 4. Ana menü yatayda kategori üzerine gelince alt kategorilerin açılması */
.nav-links li,
.top-menu li {
    position: relative;
}
.nav-links li > ul,
.top-menu .sub-menu,
.top-menu li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-links li:hover > ul,
.top-menu li:hover > .sub-menu,
.top-menu li:hover > ul {
    display: block;
}
.nav-links li > ul li a,
.top-menu .sub-menu li a,
.top-menu li > ul li a {
    color: var(--color-text);
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-border);
    display: block;
    text-transform: none;
    font-weight: normal;
}
.nav-links li > ul li a:hover,
.top-menu .sub-menu li a:hover,
.top-menu li > ul li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* 5. Mobil menü açılması (Toggle Sınıfı İçin Ek CSS) */
@media (max-width: 1024px) {
  .casaba-navigation {
    display: block;
    padding: 0;
  }
  .casaba-header.is-sticky .casaba-navigation {
    display: block;
  }
  .nav-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    padding-top: 0; /* Üstteki 60px boşluk kaldırıldı */
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  
  /* Menü Kapat Butonu Tasarımı */
  .mobile-menu-close {
    display: block !important;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    border-bottom: 2px solid rgba(0,0,0,0.1);
  }
  .nav-links.is-open {
    left: 0;
  }
  .nav-links li a {
    color: var(--color-white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
  }
  
  /* Mobil alt menüler için düzen */
  .nav-links li > ul,
  .top-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.1);
  }
  .nav-links li:hover > ul,
  .top-menu li:hover > .sub-menu {
    display: block;
  }
  .nav-links li > ul li a {
    padding-left: 30px;
  }
}

/* =========================================
   GOOGLE REVIEWS COMPONENT (CUSTOM CAROUSEL)
========================================= */
.casaba-google-reviews {
  background: transparent;
  padding: 30px 0;
  margin-bottom: 40px;
}
.reviews-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  gap: 15px;
}
.reviews-title-area h3 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--color-primary-dark);
  font-weight: 700;
}
.reviews-title-area p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 16px;
}
.google-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.google-logo svg {
  display: block;
}
.google-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-score {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}
.rating-stars {
  color: #FBBC05;
  letter-spacing: 2px;
  font-size: 20px;
}
.rating-count {
  font-size: 14px;
  color: var(--color-text-light);
}

.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}
.review-nav {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: var(--color-primary-dark);
  font-size: 18px;
  z-index: 2;
  transition: all 0.2s;
  flex-shrink: 0;
}
.review-nav:hover {
  background: #f8f9fa;
  color: var(--color-primary);
}
.prev-review {
  margin-right: -22px;
}
.next-review {
  margin-left: -22px;
}

.reviews-carousel-viewport {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}
.reviews-carousel-viewport::-webkit-scrollbar {
  display: none;
}

/* Animated RGB Border */
@keyframes rgbBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.google-review-card {
  position: relative;
  flex: 0 0 calc(25% - 15px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 25px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Sürekli Yanan Işık Efekti İçin - opacity:1 ve ::before/::after kullanımı */
.google-review-card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  border-radius: calc(var(--radius-md) + 2px);
  animation: rgbBorder 15s linear infinite;
  opacity: 0.2; /* Her zaman hafif yanık */
  transition: opacity 0.3s ease;
}
.google-review-card:hover::before {
  opacity: 0.8; /* Üzerine gelince parlasın */
}
.google-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: transparent;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.review-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.review-author-name {
  font-weight: 700;
  color: var(--color-text);
  font-size: 15px;
}
.review-google-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 2px;
}
.review-google-badge svg {
  width: 14px;
  height: 14px;
}

.review-stars {
  color: #FBBC05;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.review-text-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 25px;
  flex: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.review-date {
  font-size: 13px;
  color: var(--color-text-light);
}

.btn-view-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid #eee;
  border-radius: 20px;
  transition: all 0.2s;
  background: #fff;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.btn-view-review:hover {
  background: #f8f9fa;
  border-color: #ddd;
}
.btn-view-review svg.g-icon {
  width: 16px;
  height: 16px;
}
.btn-view-review svg.link-icon {
  width: 14px;
  height: 14px;
  color: #666;
}

.reviews-footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.reviews-footer-note svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1200px) {
  .google-review-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}
@media (max-width: 1024px) {
  .google-review-card {
    flex: 0 0 calc(50% - 10px);
  }
  .reviews-carousel-wrapper {
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .google-review-card {
    flex: 0 0 85%;
  }
  .review-nav {
    display: none;
  }
  .reviews-carousel-wrapper {
    padding: 15px;
    border-radius: var(--radius-md);
  }
  .casaba-google-reviews {
    padding: 15px 0;
  }
  .reviews-title-area h3 {
    font-size: 24px;
  }
  .reviews-header-block {
    margin-bottom: 25px;
  }
}

/* =========================================
   KATEGORİ / ÜRÜN LİSTELEME SAYFASI
   Çiçeksepeti tarzı premium tasarım
========================================= */

/* Sayfa container */
.ck-category-page {
  padding-top: 20px;
  padding-bottom: 50px;
  min-height: 60vh;
}

/* ===== KATEGORİ BAŞLIK ÇUBUĞU ===== */
.ck-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-border);
}
.ck-category-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ck-category-icon img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.ck-category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.2;
}
.ck-product-count {
  font-size: 13px;
  color: var(--color-text-light);
  background: var(--color-bg);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ck-category-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

/* ===== SIRALAMA DROPDOWN (Classic Override) ===== */
.ck-sort-wrap .select-title,
.ck-sort-wrap #js-product-sort-select {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 35px 8px 12px !important;
  font-size: 13px !important;
  background: var(--color-white) !important;
  color: var(--color-text) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.ck-sort-wrap .sort-by-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-sort-wrap label[for="js-product-sort-select"] {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ===== ALT KATEGORİLER ===== */
.ck-subcategories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.ck-subcategories::-webkit-scrollbar { display: none; }

.ck-subcat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 10px 8px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 80px;
  transition: all 0.2s;
  background: var(--color-white);
}
.ck-subcat-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ck-subcat-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--color-bg);
}
.ck-subcat-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* ===== ÜRÜN GRID ===== */
.ck-product-grid,
.products.row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
  float: none !important;
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================
   YATAY FİLTRELEME (FACETED SEARCH)
   (Sadece Masaüstü)
========================================= */
@media (min-width: 769px) {
  .ck-search-filters {
    margin-bottom: 25px;
  }
  .ck-facets-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    padding: 10px 15px;
  }
  .ck-facets-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .ck-facet-item {
    position: relative;
    margin: 0;
  }
  .ck-facet-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
  }
  .ck-facet-trigger:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .ck-facet-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    padding: 10px 0;
    display: none;
  }
  .ck-facet-item:hover .ck-facet-dropdown {
    display: block;
  }
  .ck-facet-dropdown li {
    list-style: none;
    margin: 0;
    padding: 5px 15px;
  }
  .ck-facet-dropdown li label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
  }
  .ck-filter-link {
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
  }
  .ck-filter-link:hover {
    color: var(--color-primary);
  }
  .ck-custom-checkbox, .ck-custom-radio {
    display: inline-flex;
    margin-top: 2px;
  }
  .ck-btn-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #e84545;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
  }
  .ck-btn-clear:hover {
    background: #fce8e8;
    border-radius: var(--radius-sm);
  }
}

.products.row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
  float: none !important;
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== ÜRÜN KARTI ===== */
.ck-product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s;
  cursor: pointer;
  height: 100%;
}
.ck-product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

/* Görsel Alanı */
.ck-product-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-white);
  padding: 0; /* Kullanıcı talebi: üst kısım tamamen görsel olsun */
  text-decoration: none;
}
.ck-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Kenarlarda boşluk kalmaması için cover */
  transition: transform 0.4s ease;
}
.ck-product-card:hover .ck-product-img-wrap img {
  transform: scale(1.06);
}


/* Rozet */
.ck-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-transform: uppercase;
}
.ck-badge-discount {
  background: #e84545;
  color: #fff;
}
.ck-badge-new {
  background: #27ae60;
  color: #fff;
}

/* Favori Butonu */
.ck-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  color: #bbb;
}
.ck-product-card:hover .ck-wishlist-btn {
  opacity: 1;
  transform: scale(1);
}
.ck-wishlist-btn:hover {
  color: #e84545;
  border-color: #e84545;
}
.ck-wishlist-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

/* Ürün Bilgi Alanı */
.ck-product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* Kategori adı */
.ck-product-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  font-weight: 600;
}

/* Ürün Adı */
.ck-product-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.ck-product-name a {
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-product-name a:hover {
  color: var(--color-primary);
}

/* Fiyat */
.ck-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.ck-price-old {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
  line-height: 1.2;
}
.ck-price-current {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.ck-price-save {
  font-size: 11px;
  color: #27ae60;
  font-weight: 600;
}

/* Aksiyon Butonu ve Adet Seçici */
.ck-card-actions {
  margin-top: auto;
  padding-top: 10px;
}
.ck-add-to-cart-form {
  width: 100%;
}
.ck-cart-group {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.ck-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  height: 34px;
  background: var(--color-white);
  overflow: hidden;
}
.ck-qty-btn {
  background: none;
  border: none;
  width: 24px;
  height: 100%;
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-qty-btn:hover {
  background: var(--color-bg);
}
.ck-qty-input {
  width: 26px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  padding: 0;
  -moz-appearance: textfield;
}
.ck-qty-input::-webkit-outer-spin-button,
.ck-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ck-btn-cart {
  flex: 1;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ck-btn-cart:hover {
  background: var(--color-primary);
}
.ck-btn-cart:active {
  transform: scale(0.98);
}
.ck-btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 10px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.ck-btn-detail:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Aktif Filtreler */
.ck-active-filters {
  margin-bottom: 15px;
}

/* ===== BOŞ KATEGORİ ===== */
.ck-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}
.ck-empty-state svg {
  color: var(--color-border);
  margin-bottom: 20px;
}
.ck-empty-state h4 {
  font-size: 20px;
  color: var(--color-secondary);
  margin: 0 0 8px;
}
.ck-empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ===== SAYFALAMA ===== */
.ck-category-page .pagination,
#js-product-list .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 15px 0;
  margin: 0;
  flex-wrap: wrap;
}
.ck-category-page .pagination .page-item .page-link,
#js-product-list .pagination .page-item .page-link {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--color-white);
  white-space: nowrap;
}
.ck-category-page .pagination .page-item.active .page-link,
.ck-category-page .pagination .page-item .page-link:hover,
#js-product-list .pagination .page-item.active .page-link,
#js-product-list .pagination .page-item .page-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.ck-category-page .pagination .page-item.disabled .page-link,
#js-product-list .pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* Stok 0 ürün görünümü */
.ck-product-card.ck-out-of-stock .ck-product-img-wrap img {
  opacity: 0.6;
  filter: grayscale(30%);
}
.ck-product-card.ck-out-of-stock .ck-btn-cart {
  background: #aaa;
  cursor: not-allowed;
}
.ck-product-card.ck-out-of-stock .ck-btn-cart:hover {
  background: #999;
}

/* Classic tema fallback — .products.row içindeki js-product her zaman grid-item olsun */
.products.row > .js-product,
.products.row > .ck-product-card {
  width: 100% !important;
  float: none !important;
  flex: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 1025px) {
  .ck-product-grid,
  .products.row {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .ck-product-grid,
  .products.row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 768px) {
  .ck-category-page {
    padding-top: 10px;
    padding-bottom: 100px; /* mobil alt bar için */
  }
  .ck-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .ck-category-title {
    font-size: 18px;
  }
  .ck-product-grid,
  .products.row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .ck-product-body {
    padding: 8px;
    gap: 4px;
  }
  .ck-product-name {
    font-size: 12px;
  }
  .ck-product-name a {
    -webkit-line-clamp: 2;
  }
  .ck-price-current {
    font-size: 14px;
  }
  .ck-price-old {
    font-size: 11px;
  }
  .ck-btn-cart,
  .ck-btn-detail {
    font-size: 11px;
    padding: 8px 6px;
    gap: 4px;
  }
  /* Mobilde favori butonu her zaman görünür */
  .ck-wishlist-btn {
    opacity: 1 !important;
    transform: scale(1) !important;
    width: 28px;
    height: 28px;
  }
  .ck-badge {
    font-size: 9px;
    padding: 3px 5px;
  }
}
@media (max-width: 400px) {
  .ck-product-grid {
    gap: 6px;
  }
  .ck-product-body {
    padding: 6px;
  }
  .ck-price-current {
    font-size: 13px;
  }
}
/* ======= END KATEGORİ SAYFASI ======= */
