/* Kaptan Sepeti Master Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

html {
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.ks-topbar {
  background-color: var(--secondary);
  color: #ffffff;
  font-size: 12px;
  height: 34px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 910;
}

.ks-topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.ks-topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.ks-topbar-link {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.ks-topbar-link:hover {
  color: #ffffff;
  opacity: 0.85;
}

.ks-topbar-user {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.ks-topbar-user strong {
  font-weight: 600;
  color: #ffffff;
}

.ks-topbar-logout {
  color: #fca5a5 !important;
  font-weight: 500;
}

.ks-topbar-logout:hover {
  color: #ef4444 !important;
}

.ks-topbar-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.ks-topbar-lang:hover {
  opacity: 0.85;
}

.ks-topbar-lang svg {
  stroke: #ffffff;
}

.ks-lang-arrow {
  margin-top: 1px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.ks-header {
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 900;
}

.ks-header-main {
  padding: 14px 0 10px 0;
}

.ks-header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ks-logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ks-search-form {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  position: relative;
}

.ks-search-input {
  width: 100%;
  height: 42px;
  padding: 0 70px 0 44px;
  background-color: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--dark);
  transition: var(--transition);
}

.ks-search-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(248, 107, 37, 0.12);
}

.ks-search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}

.ks-search-btn {
  position: absolute;
  right: 16px;
  background: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.ks-search-btn:hover {
  color: var(--primary-hover);
}

.ks-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ks-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: var(--dark);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.ks-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.ks-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ==========================================================================
   NAVIGATION & MEGA-MENU (Sade, Taşmayan & Akıllı Hiyerarşik Tasarım)
   ========================================================================== */
.ks-navbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
  position: relative;
  z-index: 45;
}

.ks-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ks-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
  height: 48px;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-wrap: nowrap;
}

.ks-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Birincil kategorilerin mega menüsü kapsayıcıya (container) kilitlenir - Asla sağa taşmaz! */
.ks-nav-item.has-mega-menu {
  position: static;
}

.ks-nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #1c3b71;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  white-space: nowrap;
  letter-spacing: -0.2px;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  padding: 0 4px;
}

.ks-nav-link:hover,
.ks-nav-item:hover > .ks-nav-link {
  color: var(--primary);
}

.ks-nav-caret {
  color: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

.ks-nav-item:hover > .ks-nav-link .ks-nav-caret {
  transform: rotate(180deg);
  color: var(--primary);
}

/* 2. BİRİNCİL KATEGORİLER MEGA MENÜ (Full Konteyner Genişliği & Sıfır Taşma) */
.ks-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 30px;
  display: none;
  z-index: 999;
  box-sizing: border-box;
}

.ks-nav-item.has-mega-menu:hover .ks-mega-menu {
  display: block;
}

.ks-mega-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ks-mega-header-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks-mega-header-all:hover {
  text-decoration: underline;
}

.ks-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 32px;
  max-height: 460px;
  overflow-y: auto;
}

.ks-mega-col {
  min-width: 180px;
}

.ks-mega-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ks-mega-col h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ks-mega-col h4 a:hover {
  color: var(--primary);
}

.ks-mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ks-mega-col a {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  display: inline-block;
  transition: var(--transition);
  text-decoration: none;
}

.ks-mega-col a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.ks-mega-view-all {
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* 3. DİĞER KATEGORİLER DROPDOWN (Sağa Yaslı & Sola Açılan Flyout) */
.ks-nav-more {
  margin-left: auto;
}

.ks-nav-more-link {
  font-weight: 700;
}

.ks-nav-more-badge {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.ks-nav-more:hover .ks-nav-more-badge {
  background-color: var(--primary);
  color: #ffffff;
}

.ks-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 270px;
  background-color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.ks-nav-more:hover .ks-more-menu {
  display: block;
}

.ks-more-list {
  position: relative;
  overflow: visible;
}

.ks-more-item {
  position: relative;
}

.ks-more-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ks-more-item-link:hover,
.ks-more-item:hover > .ks-more-item-link {
  background-color: #f8fafc;
  color: var(--primary);
  font-weight: 600;
  padding-right: 18px;
}

.ks-more-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ks-more-item:hover > .ks-more-item-link .ks-more-arrow {
  color: var(--primary);
  transform: translateX(-2px);
}

/* Diğer Kategoriler Sola Açılan Flyout (İçeri Doğru Açılır, Sağa Asla Taşmaz) */
.ks-more-flyout {
  position: absolute;
  top: 0;
  right: 100%;
  min-width: 600px;
  max-width: 780px;
  min-height: 100%;
  background-color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 10px 0 10px 10px;
  padding: 20px 24px;
  display: none;
  z-index: 1001;
  box-sizing: border-box;
}

.ks-more-item:hover > .ks-more-flyout {
  display: block;
}

/* Flyout Ortak Elemanları */
.ks-flyout-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ks-flyout-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.ks-flyout-all-link:hover {
  text-decoration: underline;
}

.ks-flyout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  max-height: 420px;
  overflow-y: auto;
}

.ks-flyout-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}

.ks-flyout-col h5 a {
  color: inherit;
  text-decoration: none;
}

.ks-flyout-col h5 a:hover {
  color: var(--primary);
}

.ks-flyout-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ks-flyout-col li a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ks-flyout-col li a:hover {
  color: var(--primary);
  padding-left: 2px;
}

@media (max-width: 1200px) {
  .ks-nav-list {
    gap: 12px;
  }
  .ks-nav-link {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   HERO SLIDER (1:1 Orijinal Aspect Ratio & Doğal 3D Dalga)
   ========================================================================== */
.ks-hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2160 / 803;
  max-height: 720px;
  min-height: 320px;
  background-color: var(--body-bg-color);
  overflow: hidden;
}

.ks-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.ks-slide.active {
  opacity: 1;
  z-index: 2;
}

.ks-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ks-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Slider Navigation Controls (Orijinal Tasarım) */
.ks-slider-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  z-index: 15;
  pointer-events: none;
}

.ks-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 1px solid #1c3b71;
  color: #1c3b71;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ks-slider-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ks-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.ks-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(28, 59, 113, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.ks-dot.active {
  background-color: var(--primary);
  width: 22px;
  border-radius: 4px;
}
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.ks-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
}

.ks-dot.active {
  background-color: var(--primary);
  width: 24px;
}

/* ==========================================================================
   PRODUCT CARDS & SHOWCASES
   ========================================================================== */
.ks-section {
  padding: 40px 0;
}

.ks-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ks-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  position: relative;
  padding-left: 0;
  margin: 0;
}

.ks-section-title::before {
  display: none;
}

.ks-section-more-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.ks-section-promo-primary {
  padding: 10px 0 20px;
}

.ks-section-promo-secondary {
  padding: 6px 0 24px;
}

.ks-section-blog,
.ks-section-products {
  padding: 10px 0 28px;
}

.ks-section-brands {
  padding: 10px 0 36px;
}

.ks-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.ks-product-card {
  background-color: var(--surface);
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-sizing: border-box;
}

.ks-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
  transform: translateY(-2px);
}

.ks-card-badge-box {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.ks-badge-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.ks-badge-new {
  background-color: #ffffff;
  border: 1px solid #ff5d01;
  color: #ff5d01;
}

.ks-badge-discount {
  background-color: #00a651;
  color: #ffffff;
  border: none;
}

.ks-card-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.ks-card-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ks-product-card:hover .ks-card-image img {
  transform: scale(1.04);
}

.ks-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 6px;
}

.ks-stars {
  display: flex;
  gap: 2px;
}

.ks-stars.rated {
  color: #fbbf24;
}

.ks-stars.empty {
  color: #d1d5db;
}

.ks-review-text {
  color: #777777;
  font-size: 11px;
  font-weight: 400;
}

.ks-card-brand {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.ks-card-name {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.35;
  height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.ks-card-name:hover {
  color: var(--primary);
}

.ks-card-price-box {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ks-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.ks-card-price.ks-price-discounted {
  color: #f86b25;
}

.ks-card-old-price {
  font-size: 12px;
  color: #888888;
  text-decoration: line-through;
  font-weight: 400;
}

.ks-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ks-qty-selector {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0 4px;
  box-sizing: border-box;
}

.ks-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ks-qty-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.ks-qty-input {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  pointer-events: none;
}

.ks-btn-cart {
  width: 100%;
  height: 38px;
  background-color: #f86b25;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.ks-btn-cart:hover {
  background-color: #e05510;
}

.ks-btn-cart:active {
  transform: scale(0.98);
}

.ks-btn-out {
  width: 100%;
  height: 38px;
  background-color: #475569;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* ==========================================================================
   PROMO BANNERS
   ========================================================================== */
.ks-promo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.ks-promo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 354px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ks-promo-picture {
  position: absolute;
  inset: 0;
  display: block;
}

.ks-promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ks-promo-card:hover img {
  transform: scale(1.03);
}

.ks-promo-cloud-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 60px 55px 25px;
  background: url('../images/banner-text-bg.svg') right bottom / calc(100% + 60px) no-repeat;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
  z-index: 5;
}

.ks-promo-cloud-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #1c3b71;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.ks-promo-cloud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f86b25;
  color: #ffffff !important;
  font-family: inherit;
  height: 40px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: none;
}

.ks-promo-cloud-btn:hover {
  background-color: #e05510;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.ks-banner-center {
  position: relative;
  width: 100%;
  aspect-ratio: 1248 / 533;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}

.ks-banner-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-banner-center-picture,
.ks-slide-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ks-banner-center-content {
  position: absolute;
  right: 64px;
  top: 47.1%;
  z-index: 5;
}

.ks-banner-center-btn {
  display: inline-flex;
  width: 115px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ff6726;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.ks-banner-center-btn:hover {
  background: #ec5a19;
  color: #ffffff;
}

.ks-section-center-banner {
  padding: 40px 0 56px;
}

/* ==========================================================================
   POPULAR CATEGORIES
   ========================================================================== */
.ks-pop-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-top: 10px;
}

.ks-pop-cat-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ks-pop-cat-item:hover {
  transform: translateY(-4px);
  border: none;
  box-shadow: none;
}

.ks-pop-cat-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ks-pop-cat-icon img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
}

.ks-pop-cat-item:hover .ks-pop-cat-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
}

.ks-pop-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.ks-pop-cat-item:hover .ks-pop-cat-title {
  color: var(--primary);
}

/* ==========================================================================
   TRUST BADGES / FEATURES
   ========================================================================== */
.ks-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ks-trust-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.ks-trust-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.ks-trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-trust-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ks-trust-text p {
  color: #111827;
  font-size: 10px;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.ks-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ks-blog-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 56px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ks-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.ks-blog-date-badge {
  position: absolute;
  top: 0;
  left: 24px;
  width: 48px;
  background-color: #f86b25;
  color: #ffffff;
  border-radius: 0 0 6px 6px;
  padding: 6px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(248, 107, 37, 0.3);
  z-index: 2;
}

.ks-blog-date-day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.ks-blog-date-month {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  margin-top: 2px;
}

.ks-blog-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 12px;
}

.ks-blog-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ks-blog-card:hover .ks-blog-title a,
.ks-blog-title a:hover {
  color: var(--primary);
}

.ks-blog-summary {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-blog-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ks-blog-card:hover .ks-blog-link {
  gap: 10px;
  color: #e05816;
}

/* ==========================================================================
   BRANDS STRIP
   ========================================================================== */
.ks-brands-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ks-brand-pill {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.ks-brand-pill:hover, .ks-brand-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ks-rail-pagination {
  display: none;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.ks-newsletter {
  height: 170px;
  background: #22457d;
  color: #ffffff;
  border-radius: 10px;
  padding: 48px 16px 46px;
}

.ks-newsletter-inner {
  width: 100%;
  max-width: 832px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 328px 472px;
  align-items: center;
  gap: 32px;
}

.ks-newsletter-text h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px;
}

.ks-newsletter-text p {
  max-width: 320px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}

.ks-newsletter-form-wrap {
  width: 472px;
}

.ks-newsletter-form {
  width: 100%;
}

.ks-newsletter-field {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.ks-newsletter-field svg {
  flex: 0 0 auto;
}

.ks-newsletter-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.ks-newsletter-kvkk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.ks-newsletter-kvkk input {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
}

.ks-newsletter-kvkk input:checked {
  border-width: 3px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #22457d;
}

.ks-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ks-footer {
  background: #ffffff;
}

.ks-footer-main {
  min-height: 330px;
  padding: 58px 0 39px;
}

.ks-footer-grid {
  display: grid;
  grid-template-columns: 289px repeat(3, 125px) 1fr;
  gap: 64px;
}

.ks-footer-logo {
  display: block;
  width: max-content;
}

.ks-footer-logo img {
  width: 122px;
  height: 49px;
  object-fit: contain;
}

.ks-footer-col h3 {
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
}

.ks-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ks-footer-col li {
  font-size: 12px;
  line-height: 16px;
}

.ks-footer-col a {
  display: block;
  color: #000000;
  font-size: 12px;
  line-height: 16px;
  transition: var(--transition);
}

.ks-footer-col a:hover {
  color: var(--primary);
}

.ks-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  font-size: 11px;
  line-height: 1.35;
}

.ks-footer-contact-item svg {
  flex: 0 0 18px;
}

.ks-footer-contact-group {
  margin-bottom: 18px;
}

.ks-footer-contact-group:last-child {
  margin-bottom: 0;
}

.ks-footer-contact-group strong {
  display: block;
  color: #000000;
  font-size: 12px;
  margin-bottom: 10px;
}

.ks-social-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.ks-social-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.ks-social-btn:hover {
  transform: translateY(-2px);
}

.ks-social-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ks-payment-bar {
  min-height: 88px;
  background: #22457d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ks-payment-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ks-payment-list img {
  display: block;
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET - Bire Bir KaptanSepeti Tasarımı
   ========================================================================== */
.ks-whatsapp-widget {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  background-color: #30ba45;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 38px;
  height: 240px;
  padding: 16px 6px 14px 6px;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 850;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.25s ease;
}

.ks-whatsapp-widget:hover {
  background-color: #279e3a;
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.18);
}

.ks-whatsapp-widget .ks-wp-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
  user-select: none;
  margin-bottom: 12px;
  line-height: 1;
}

.ks-whatsapp-widget .ks-wp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.ks-whatsapp-widget .ks-wp-icon svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER - Kaptan Sepeti Bire Bir Tasarım
   ========================================================================== */
.ks-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #1c3b71;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ks-mobile-nav-toggle:hover {
  background: transparent;
  color: var(--primary);
  opacity: 0.85;
}

.ks-mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.ks-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ks-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ks-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background-color: #ffffff;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
}

.ks-mobile-drawer.active {
  transform: translateX(0);
}

/* Header */
.ks-drawer-header {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
  flex-shrink: 0;
}

.ks-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c3b71;
  letter-spacing: 0.3px;
}

.ks-drawer-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ks-drawer-close:hover {
  color: #111827;
  background-color: #f3f4f6;
}

/* Auth / User bar */
.ks-drawer-auth {
  padding: 12px 18px;
  background-color: #f9fafb;
  border-bottom: 1px solid #eeeeee;
  flex-shrink: 0;
}

.ks-drawer-auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c3b71;
}

.ks-drawer-auth-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-drawer-auth-info strong {
  font-size: 13px;
  font-weight: 700;
  color: #1c3b71;
}

.ks-drawer-auth-sublinks {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.ks-drawer-auth-sublinks a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.ks-drawer-auth-sublinks a:hover {
  color: var(--primary);
}

.ks-drawer-auth-sublinks a.ks-drawer-logout-link {
  color: #ef4444;
}

.ks-drawer-auth-guest {
  display: flex;
  gap: 8px;
}

.ks-drawer-auth-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ks-drawer-auth-btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.ks-drawer-auth-btn-primary:hover {
  background-color: var(--primary-hover);
}

.ks-drawer-auth-btn-secondary {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151 !important;
}

.ks-drawer-auth-btn-secondary:hover {
  background-color: #f3f4f6;
}

/* Drawer Kategori Navigasyonu */
.ks-drawer-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 24px 0;
  background-color: #ffffff;
}

.ks-drawer-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  padding: 14px 18px 6px 18px;
  text-transform: uppercase;
}

.ks-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ks-drawer-menu-item {
  border-bottom: 1px solid #f8fafc;
  position: relative;
  background-color: #ffffff;
}

.ks-drawer-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.ks-drawer-menu-link,
.ks-drawer-toggle-row {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ks-drawer-menu-link:hover,
.ks-drawer-toggle-row:hover {
  color: var(--primary);
  background-color: #fafbfc;
}

.ks-drawer-menu-label {
  flex: 1;
  display: flex;
  align-items: center;
}

.ks-drawer-arrow-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Seviyeye Göre Temiz Kademeli Girintiler */
.ks-drawer-level-1 > .ks-drawer-menu-row > .ks-drawer-menu-link,
.ks-drawer-level-1 > .ks-drawer-toggle-row {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  border-left: 2px solid #e2e8f0;
}

.ks-drawer-level-2 > .ks-drawer-menu-row > .ks-drawer-menu-link,
.ks-drawer-level-2 > .ks-drawer-toggle-row {
  padding-left: 40px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  border-left: 2px solid #cbd5e1;
}

.ks-drawer-level-3 > .ks-drawer-menu-row > .ks-drawer-menu-link,
.ks-drawer-level-3 > .ks-drawer-toggle-row,
.ks-drawer-level-4 > .ks-drawer-menu-row > .ks-drawer-menu-link,
.ks-drawer-level-4 > .ks-drawer-toggle-row {
  padding-left: 52px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border-left: 2px solid #94a3b8;
}

/* Açılır/Kapanır Ok Butonu */
.ks-drawer-toggle-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 0;
  transition: color 0.15s ease;
}

.ks-drawer-toggle-btn:hover {
  color: var(--primary);
}

.ks-drawer-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.ks-drawer-menu-item.expanded > .ks-drawer-toggle-row,
.ks-drawer-menu-item.expanded > .ks-drawer-menu-row {
  background-color: #f8fafc;
}

.ks-drawer-menu-item.expanded > .ks-drawer-toggle-row .ks-drawer-arrow,
.ks-drawer-menu-item.expanded > .ks-drawer-menu-row .ks-drawer-arrow {
  transform: rotate(90deg);
  color: var(--primary);
}

.ks-drawer-menu-item.expanded > .ks-drawer-toggle-row .ks-drawer-link-text {
  color: var(--primary);
  font-weight: 700;
}

/* Submenu */
.ks-drawer-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #fafbfc;
  border-top: 1px solid #f1f5f9;
}

.ks-drawer-menu-item.expanded > .ks-drawer-submenu {
  display: block;
}

.ks-drawer-sublink-all {
  display: block;
  padding: 9px 18px 9px 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed #e2e8f0;
}
.ks-drawer-submenu-level-2 .ks-drawer-sublink-all { padding-left: 40px; }
.ks-drawer-submenu-level-3 .ks-drawer-sublink-all { padding-left: 52px; }

.ks-drawer-special-link {
  font-weight: 600 !important;
}

/* Badges & Divider */
.ks-drawer-menu-divider {
  height: 8px;
  background-color: #f3f4f6;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin: 8px 0;
}

.ks-drawer-link-badge {
  color: var(--primary) !important;
}

.ks-drawer-mini-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background-color: #fff0eb;
  color: var(--primary);
  border: 1px solid rgba(248, 107, 37, 0.25);
}

/* Footer links inside drawer */
.ks-drawer-footer-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
}

.ks-drawer-footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ks-drawer-footer-item:hover {
  color: var(--primary);
  background-color: #f9fafb;
}

.ks-drawer-footer-wp {
  color: #30ba45 !important;
  font-weight: 600;
}

/* ==========================================================================
   OFFCANVAS CART DRAWER
   ========================================================================== */
.ks-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

/* ==========================================================================
   POP-UP CART MODAL
   ========================================================================== */
.ks-cart-modal-overlay,
.ks-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ks-cart-modal-overlay.active,
.ks-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ks-cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: calc(100% - 32px);
  max-width: 580px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
}

.ks-cart-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ks-cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.ks-cart-modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-modal-check-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-modal-heading {
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
  margin: 0;
  letter-spacing: -0.2px;
}

.ks-modal-heading.is-cart-title {
  color: #111827;
}

.ks-modal-check-circle[hidden] {
  display: none;
}

.ks-modal-close-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.ks-modal-close-icon:hover {
  color: #0f172a;
}

.ks-cart-modal-body {
  margin-top: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 184px);
}

.ks-popup-cart-list {
  display: flex;
  flex-direction: column;
}

.ks-popup-item-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
  min-height: 133px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e5e7eb;
}

.ks-popup-item-row + .ks-popup-item-row {
  padding-top: 16px;
}

.ks-popup-item-thumb {
  width: 96px;
  height: 96px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  flex-shrink: 0;
}

.ks-popup-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ks-popup-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ks-popup-item-title {
  color: #111827;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 8px;
  word-break: break-word;
}

.ks-popup-item-title strong {
  font-weight: 700;
  color: #111827;
  margin-right: 4px;
}

.ks-popup-unit-price {
  font-size: 12px;
  color: #475569;
  margin-bottom: 2px;
}

.ks-popup-qty-label {
  font-size: 12px;
  color: #475569;
  margin-bottom: 2px;
}

/* Stepper: Kırmızı Çöp Kutusu, Adet, Artı Butonu */
.ks-popup-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 112px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 10px;
  background-color: #ffffff;
}

.ks-stepper-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  width: 20px;
  height: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.ks-stepper-btn.trash {
  color: #ef4444;
}

.ks-stepper-btn:hover {
  opacity: 0.8;
}

.ks-stepper-count {
  font-size: 12px;
  font-weight: 400;
  color: #0f172a;
  min-width: 16px;
  text-align: center;
}

/* Sağ Taraf Fiyat Bloğu */
.ks-popup-item-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 41px;
}

.ks-popup-total-price {
  font-size: 16px;
  font-weight: 700;
  color: #f86b25;
  line-height: 1.2;
  white-space: nowrap;
}

.ks-popup-total-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.ks-modal-empty-state {
  text-align: center;
  min-height: 133px;
  padding: 16px 20px 24px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ks-modal-empty-state svg {
  margin-bottom: 8px;
}

.ks-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.ks-empty-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.ks-cart-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.ks-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ks-popup-btn-cart {
  background-color: #ffffff;
  border: 1px solid #ff6726;
  color: #ff6726;
}

.ks-popup-btn-cart:hover {
  background-color: #fff7ed;
}

.ks-popup-btn-checkout {
  background-color: #ff6726;
  border: 1px solid #ff6726;
  color: #ffffff;
}

.ks-popup-btn-checkout:hover {
  background-color: #ea580c;
  border-color: #ea580c;
}

/* ==========================================================================
   CATEGORY LISTING PAGE (FILTER & GRID)
   ========================================================================== */
.ks-breadcrumb {
  padding: 14px 0;
  width: 100%;
}

.ks-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ks-breadcrumb-inner::-webkit-scrollbar {
  display: none;
}

.ks-breadcrumb-link,
.ks-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.ks-breadcrumb-link:hover,
.ks-breadcrumb a:hover {
  color: var(--primary);
}

.ks-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 14px;
  flex-shrink: 0;
  user-select: none;
}

.ks-breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
  flex-shrink: 0;
}

.ks-listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Filter Sidebar (1:1 Orijinal KaptanSepeti Tasarımı) */
.ks-filter-sidebar {
  display: flex;
  flex-direction: column;
}

/* Mobil filtre başlığı ve butonu masaüstünde kesinlikle gizlidir */
.ks-mobile-filter-header,
.ks-mobile-filter-btn {
  display: none;
}

.ks-filter-sidebar form,
#ks-filters-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ks-filter-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ks-filter-card:last-child {
  margin-bottom: 0;
}

/* Hedef Kaynak: Turuncu Başlık Barı */
.ks-filter-header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.ks-filter-header:hover {
  background-color: var(--primary-hover);
}

.ks-filter-toggle-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.ks-filter-card.collapsed .ks-filter-body {
  display: none;
}

.ks-filter-body {
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

/* Kategori Ağacı (Çok Seviyeli Akordeon ve Hiyerarşik Ağaç) */
.ks-filter-cat-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ks-cat-node {
  position: relative;
  list-style: none;
}

.ks-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.ks-cat-row:hover {
  background-color: #f8fafc;
}

.ks-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
  line-height: 1.35;
}

.ks-cat-link:hover,
.ks-cat-link.active {
  color: var(--primary);
  font-weight: 700;
}

.ks-cat-link.ancestor-active {
  color: var(--primary);
  font-weight: 600;
}

.ks-cat-toggle-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.ks-cat-toggle-btn:hover {
  color: var(--primary);
  background-color: #f1f5f9;
}

.ks-cat-toggle-icon {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.ks-cat-node.is-open > .ks-cat-row .ks-cat-toggle-btn .ks-cat-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.ks-cat-nested-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.ks-cat-node.is-open > .ks-cat-nested-tree {
  display: flex;
}

/* Hiyerarşik Seviye Girintileri & Font Boyutları */
.ks-cat-level-0 > .ks-cat-row .ks-cat-link {
  font-weight: 600;
  color: #0f172a;
}

.ks-cat-level-1 > .ks-cat-row {
  padding-left: 12px;
}
.ks-cat-level-1 > .ks-cat-row .ks-cat-link {
  font-size: 12.5px;
  color: #334155;
}

.ks-cat-level-2 > .ks-cat-row {
  padding-left: 24px;
}
.ks-cat-level-2 > .ks-cat-row .ks-cat-link {
  font-size: 12px;
  color: #475569;
}

.ks-cat-level-3 > .ks-cat-row {
  padding-left: 36px;
}
.ks-cat-level-3 > .ks-cat-row .ks-cat-link {
  font-size: 11.5px;
  color: #64748b;
}

.ks-cat-level-4 > .ks-cat-row {
  padding-left: 48px;
}
.ks-cat-level-4 > .ks-cat-row .ks-cat-link {
  font-size: 11px;
  color: #64748b;
}

/* Canlı Arama Inputu */
.ks-filter-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.ks-search-icon-small {
  position: absolute;
  left: 10px;
  color: #9ca3af;
  pointer-events: none;
}

.ks-filter-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #3b3734;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-filter-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(248, 107, 37, 0.15);
  outline: none;
}

.ks-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Özel Checkbox Tasarımı */
.ks-custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.ks-custom-checkbox input {
  display: none;
}

.ks-checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  background-color: #ffffff;
}

.ks-custom-checkbox input:checked + .ks-checkbox-mark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.ks-custom-checkbox input:checked + .ks-checkbox-mark::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.ks-checkbox-label {
  flex: 1;
}

.ks-filter-count {
  margin-left: auto;
  color: #9ca3af;
  font-size: 11px;
}

.ks-filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ks-filter-price-inputs input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
}

.ks-filter-submit-btn {
  width: 100%;
  height: 36px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-filter-submit-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(248, 107, 37, 0.3);
}

/* ==========================================================================
   LISTING HEADER & CONTROLS (HEDEF KAYNAK 1:1)
   ========================================================================== */
.ks-listing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  gap: 16px;
}

.ks-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sıralama Seçici */
.ks-sort-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ks-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 36px 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #3b3734;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(248, 107, 37, 0.15);
}

.ks-sort-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #6b7280;
}

/* Hızlı Stok Kontrolü */
.ks-control-stock-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.ks-control-stock-label input {
  display: none;
}

.ks-control-stock-label input:checked + .ks-checkbox-mark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.ks-control-stock-label input:checked + .ks-checkbox-mark::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Grid Görünüm Değiştirici (4, 3, 2 Sütun) */
.ks-view-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.ks-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ks-view-btn .dot {
  width: 5px;
  height: 14px;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.ks-view-btn:hover .dot {
  background-color: #9ca3af;
}

.ks-view-btn.active {
  background-color: #fff7ed;
  border-color: #ffedd5;
}

.ks-view-btn.active .dot {
  background-color: var(--primary);
}

/* Dinamik Ürün Izgarası Kolon Sınıfları */
.ks-product-grid.ks-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ks-product-grid.ks-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ks-product-grid.ks-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ks-empty-products {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
}

.ks-empty-products svg {
  margin: 0 auto 16px;
  color: #9ca3af;
}

.ks-empty-products h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c3b71;
  margin-bottom: 8px;
}

.ks-empty-products p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.ks-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.ks-page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ks-page-btn:hover, .ks-page-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.ks-product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
}

.ks-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ks-gallery-main {
  width: 100%;
  height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ks-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

.ks-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.ks-gallery-thumbs::-webkit-scrollbar {
  height: 5px;
}
.ks-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.ks-gallery-thumb-btn {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ks-gallery-thumb-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.ks-gallery-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary), 0 4px 10px rgba(28, 59, 113, 0.15);
}

.ks-gallery-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.ks-product-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.ks-product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ks-product-brand-tag {
  margin-bottom: 6px;
}

.ks-product-brand-tag a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  text-decoration: none;
}

.ks-product-stock-status.in-stock {
  color: var(--success);
  font-weight: 600;
}

.ks-product-stock-status.out-of-stock {
  color: var(--danger);
  font-weight: 600;
}

.ks-product-price-box {
  background-color: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.ks-product-old-price {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.ks-product-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* Havale / EFT İndirim Rozeti */
.ks-product-havale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  margin-bottom: 18px;
  max-width: 100%;
  box-sizing: border-box;
}

.ks-product-havale-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ks-product-havale-badge-main svg {
  color: #16a34a;
  flex-shrink: 0;
}

.ks-product-havale-label {
  color: #166534;
  font-weight: 500;
}

.ks-product-havale-price {
  color: #15803d;
  font-size: 15px;
  font-weight: 700;
}

.ks-product-havale-tag {
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ks-product-price-spacer {
  margin-bottom: 16px;
}

/* Ürün Detay Satın Alma Aksiyonları (Desktop) */
.ks-product-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ks-product-detail-actions .ks-qty-selector {
  width: 124px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  padding: 0 6px;
  box-sizing: border-box;
}

.ks-product-detail-actions .ks-qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ks-product-detail-actions .ks-qty-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.ks-product-detail-actions .ks-qty-input {
  width: 44px;
  text-align: center;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  pointer-events: none;
}

.ks-product-detail-actions .ks-btn-cart,
.ks-product-detail-actions .ks-btn-out {
  flex: 1;
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.ks-product-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  background: #16a34a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ks-product-whatsapp-button:hover {
  background: #15803d;
  color: #ffffff;
}

/* Hızlı Güven Rozetleri */
.ks-product-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
  color: var(--dark);
}

.ks-trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-product-tabs {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.ks-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.ks-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.ks-tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.ks-tab-content {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
}

.ks-tab-content.active {
  display: block;
}

.ks-attributes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.ks-attributes-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.ks-attributes-table td:first-child {
  font-weight: 600;
  width: 200px;
  background-color: #f9fafb;
}

/* Reviews Section (Tab Reviews) */
.ks-reviews-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.ks-reviews-header {
  margin-bottom: 16px;
}

.ks-reviews-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

.ks-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ks-review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s ease;
}

.ks-review-item:hover {
  border-color: #cbd5e1;
}

.ks-review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ks-review-user {
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.ks-review-stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.ks-stars-gold {
  color: #fcbe2d;
}

.ks-stars-empty {
  color: #e2e8f0;
}

.ks-review-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.ks-review-comment {
  font-size: 13.5px;
  color: var(--dark);
  margin: 0;
  line-height: 1.6;
}

.ks-review-reply {
  background: #eff6ff;
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 12.5px;
}

.ks-review-reply-title {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.ks-review-reply-body {
  color: #1e3a8a;
  margin: 0;
  line-height: 1.5;
}

.ks-reviews-empty {
  text-align: center;
  padding: 32px 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--muted);
}

.ks-reviews-empty svg {
  margin-bottom: 10px;
  color: #94a3b8;
}

.ks-reviews-empty p {
  margin: 0;
  font-size: 13px;
}

.ks-reviews-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ks-reviews-form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ks-review-form .ks-form-group {
  margin-bottom: 14px;
}

.ks-review-form .ks-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.ks-review-form .ks-form-input,
.ks-review-form .ks-form-select,
.ks-review-form .ks-form-textarea {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: #0f172a;
  background-color: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.ks-review-form .ks-form-input:focus,
.ks-review-form .ks-form-select:focus,
.ks-review-form .ks-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(248, 107, 37, 0.15);
}

.ks-review-submit-btn {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-top: 6px;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.ks-cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin: 30px 0 50px 0;
}

.ks-cart-table-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ks-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.ks-cart-table th {
  text-align: left;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
}

.ks-cart-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ks-cart-summary-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.ks-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ks-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 12px;
}

.ks-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--border);
}

.ks-summary-row.total span:last-child {
  color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Kapsamlı Mobil & Tablet Optimizasyonu)
   ========================================================================== */
@media (max-width: 1024px) {
  .ks-mobile-nav-toggle {
    display: inline-flex;
  }
  .ks-listing-layout {
    grid-template-columns: 1fr;
  }
  .ks-filter-sidebar {
    display: none;
  }
  .ks-filter-sidebar.active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #ffffff;
    padding: 24px 20px;
    overflow-y: auto;
  }
  .ks-filter-sidebar.active .ks-mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
  }
  .ks-mobile-filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c3b71;
  }
  .ks-mobile-filter-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ks-mobile-filter-close:hover {
    color: var(--primary);
  }
  .ks-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
  }
  .ks-product-detail-grid {
    grid-template-columns: 1fr;
  }
  .ks-cart-layout {
    grid-template-columns: 1fr;
  }
  .ks-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
  }
  .ks-pop-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ks-mega-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* WhatsApp Widget Mobilde: Zarif, Ekran Kapatmayan Yuvarlak Buton */
  .ks-whatsapp-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    writing-mode: horizontal-tb !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 18px rgba(48, 186, 69, 0.45) !important;
    z-index: 995 !important;
    background-color: #30ba45 !important;
  }
  .ks-whatsapp-widget:hover {
    transform: scale(1.08) !important;
    background-color: #279e3a !important;
  }
  .ks-whatsapp-widget .ks-wp-text {
    display: none !important;
  }
  .ks-whatsapp-widget .ks-wp-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .ks-whatsapp-widget .ks-wp-icon svg {
    transform: none !important;
    width: 26px !important;
    height: 26px !important;
  }

  /* Üst Çubuk */
  .ks-topbar {
    display: none;
  }

  /* Mobil Header: 2 Satırlı Ferah & Tam Boy Arama Düzeni */
  .ks-header-main {
    padding: 10px 0 12px 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
  }
  .ks-header-main .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;
    column-gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .ks-brand-wrapper {
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .ks-mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #1e293b;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .ks-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }
  .ks-logo img {
    height: 34px;
    max-height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }
  .ks-header-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .ks-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #f1f5f9;
    transition: all 0.15s ease;
  }
  .ks-action-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
  }
  /* Alta Tam Boy Arama Formu */
  .ks-search-form {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 0 0 !important;
    position: relative;
    display: flex;
    align-items: center;
  }
  .ks-search-input {
    width: 100% !important;
    height: 42px !important;
    font-size: 13.5px !important;
    padding: 0 74px 0 40px !important;
    border-radius: var(--radius-full) !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: none !important;
  }
  .ks-search-input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.12) !important;
  }
  .ks-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
  }
  .ks-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 15px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }
  .ks-search-btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
  }

  /* Mobilde masaüstü navbar'ı gizle - Mobil çekmece (drawer) menü kullanılıyor */
  .ks-navbar {
    display: none !important;
  }

  /* Reusable mobile swipe rail */
  .ks-scroll-rail {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
  }

  .ks-scroll-rail::-webkit-scrollbar {
    display: none;
  }

  .ks-scroll-rail > * {
    scroll-snap-align: start;
  }

  .ks-product-grid {
    gap: 16px !important;
    padding: 4px 0 16px !important;
  }

  .ks-listing-main .ks-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
  }
  .ks-product-grid.ks-scroll-rail .ks-product-card {
    flex: 0 0 calc((100% - 12.8px) / 1.8) !important;
    min-width: calc((100% - 12.8px) / 1.8) !important;
    max-width: calc((100% - 12.8px) / 1.8) !important;
    min-height: 401px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
  }
  .ks-card-image {
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 8px;
  }
  .ks-badge-circle {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .ks-card-brand {
    font-size: 11px;
    margin-bottom: 2px;
  }
  .ks-card-name {
    font-size: 12px;
    height: 32px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .ks-card-price-box {
    margin-bottom: 8px;
    gap: 4px;
  }
  .ks-card-price {
    font-size: 14px;
  }
  .ks-card-old-price {
    font-size: 11px;
  }
  .ks-qty-selector {
    height: 32px;
  }
  .ks-qty-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .ks-qty-input {
    font-size: 11px;
  }
  .ks-btn-cart, .ks-btn-out {
    height: 34px;
    font-size: 12px;
  }

  /* Kategori Üst Çubuk */
  .ks-listing-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ks-listing-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  /* Sepet Sayfası Tablo Kaydırma */
  .ks-cart-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px;
  }
  .ks-cart-table {
    min-width: 520px;
  }

  /* Sepet Çekmecesi */
  .ks-cart-drawer {
    max-width: min(100vw, 380px);
  }

  /* Ürün Detay Aksiyonları - Mobil Hizalama & Kusursuz Oranlar */
  .ks-product-detail-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 14px;
    margin-bottom: 0;
  }
  .ks-product-detail-actions .ks-qty-selector {
    width: 108px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .ks-product-detail-actions .ks-qty-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }
  .ks-product-detail-actions .ks-qty-input {
    width: 36px !important;
    font-size: 13px !important;
  }
  .ks-product-detail-actions .ks-btn-cart,
  .ks-product-detail-actions .ks-btn-out {
    flex: 1 !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    margin: 0 !important;
  }

  /* Mobil Havale / EFT Rozeti */
  .ks-product-havale-badge {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    gap: 6px 8px !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
  }
  .ks-product-havale-badge-main {
    gap: 6px !important;
  }
  .ks-product-havale-price {
    font-size: 14px !important;
  }
  .ks-product-havale-tag {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
  }

  /* Mobil Yorumlar Tabı (Tek Kolon, Ferah Yerleşim) */
  .ks-reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .ks-reviews-form-card {
    padding: 16px !important;
  }
  .ks-review-item {
    padding: 14px !important;
  }
  .ks-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .ks-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .ks-tab-btn {
    flex-shrink: 0;
  }

  /* Reference mobile banner stack */
  .ks-promo-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px !important;
    margin: 0;
  }
  .ks-promo-grid-2 .ks-promo-card {
    width: 100%;
    height: auto !important;
    aspect-ratio: 855 / 495;
    border-radius: 10px;
  }
  .ks-promo-grid-2 .ks-promo-cloud-title {
    font-size: 16px;
  }
  .ks-promo-grid-2 .ks-promo-cloud-btn {
    height: 32px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* Popular category rail */
  .ks-pop-cats-grid {
    gap: 16px !important;
    padding-bottom: 12px !important;
  }
  .ks-pop-cats-grid .ks-pop-cat-item {
    flex: 0 0 112px !important;
    min-width: 112px !important;
    padding: 4px;
  }
  .ks-pop-cat-icon {
    width: 76px !important;
    height: 76px !important;
    margin-bottom: 8px !important;
  }
  .ks-pop-cat-icon img {
    width: 72px !important;
    height: 72px !important;
  }
  .ks-pop-cat-title {
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Blog rail */
  .ks-blog-grid {
    gap: 16px !important;
    padding-bottom: 16px !important;
  }
  .ks-blog-grid .ks-blog-card {
    flex: 0 0 calc((100% - 12.8px) / 1.8) !important;
    min-width: calc((100% - 12.8px) / 1.8) !important;
    max-width: calc((100% - 12.8px) / 1.8) !important;
    height: 235px;
    min-height: 235px;
    padding: 52px 10px 20px !important;
  }
  .ks-blog-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .ks-blog-summary {
    margin-bottom: 16px;
    font-size: 10px;
    line-height: 1.6;
  }
  .ks-blog-link {
    font-size: 12px;
  }
  .ks-blog-date-badge {
    left: 18px;
  }

  /* Reference information-card grid */
  .ks-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .ks-trust-bar .ks-trust-item {
    min-height: 131px;
    gap: 10px;
    padding: 20px;
  }
  .ks-trust-icon {
    width: 40px;
    height: 40px;
  }
  .ks-trust-text h3 {
    line-height: 20px;
  }
  .ks-trust-text p {
    line-height: 15px;
  }
  .ks-newsletter-inner {
    width: 91.6667%;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .ks-newsletter {
    height: 218px;
    padding: 32px 16px;
  }
  .ks-newsletter-text p {
    max-width: none;
  }
  .ks-newsletter-form-wrap {
    width: min(100%, 472px);
    margin: 0 auto;
  }
  .ks-banner-center-content {
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 32px;
  }
  .ks-banner-center-btn {
    width: auto;
    height: 32px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
  }
  .ks-hero-slider {
    height: auto;
    min-height: 0;
  }
  .ks-hero-slider .ks-slide-bg {
    height: 100%;
    object-fit: cover;
  }
  .ks-slider-nav {
    display: none;
  }
  .ks-section {
    padding: 24px 0;
  }
  .ks-section-products-primary {
    padding-bottom: 8px;
  }
  .ks-section-promo-primary {
    padding-top: 8px;
  }
  .ks-section-center-banner {
    padding: 24px 0 32px;
  }
  .ks-brands-strip {
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 8px;
  }
  .ks-brand-pill {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
  }
  .ks-rail-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 0 4px;
    overflow: hidden;
  }
  .ks-rail-pagination-dot {
    width: 16px;
    height: 3px;
    flex: 0 0 16px;
    border-radius: 9999px;
    border: 0;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .ks-rail-pagination-dot.active {
    background: var(--primary);
  }
  .ks-footer-main {
    padding: 24px 0;
  }
  .ks-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ks-footer-col h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ks-footer-col h3::after {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
    transform: rotate(45deg) translateY(-2px);
  }
  .ks-payment-list {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .ks-banner-center {
    aspect-ratio: 1;
  }
}

@media (max-width: 600px) {
  .ks-cart-modal {
    padding: 24px 20px;
  }
  .ks-modal-heading {
    font-size: 16px;
  }
  .ks-popup-item-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .ks-popup-item-thumb {
    width: 72px;
    height: 72px;
  }
  .ks-popup-item-price-col {
    grid-column: 2;
    align-items: flex-start;
    padding-top: 0;
    text-align: left;
  }
}

/* ==========================================================================
   HEADER ACCOUNT DROPDOWN (GİRİŞ YAP / KAYIT OL)
   ========================================================================== */
.ks-account-dropdown-wrapper {
  position: relative;
}

.ks-action-btn.logged-in {
  border-color: var(--primary);
  color: var(--primary);
  background-color: #fffaf5;
}

.ks-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 16px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

.ks-account-dropdown-wrapper:hover .ks-user-menu-dropdown,
.ks-account-dropdown-wrapper.active .ks-user-menu-dropdown,
.ks-user-menu-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Guest header */
.ks-user-menu-guest-header {
  margin-bottom: 12px;
}

.ks-user-menu-guest-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1c3b71;
}

.ks-user-menu-guest-header p {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

/* Actions in dropdown */
.ks-user-menu-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ks-menu-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ks-menu-btn-primary:hover {
  background-color: var(--primary-hover);
}

.ks-menu-btn-outline {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background-color: #f3f4f6;
  color: #374151 !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ks-menu-btn-outline:hover {
  background-color: #e5e7eb;
}

.ks-user-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid #f3f4f6;
  padding-top: 8px;
}

.ks-user-menu-list a,
.ks-menu-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.ks-user-menu-list a:hover,
.ks-menu-sublink:hover {
  background-color: #f9fafb;
  color: var(--primary);
}

.ks-user-menu-list a svg,
.ks-menu-sublink svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.ks-user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 8px;
}

.ks-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #eef3fb;
  color: #1c3b71;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-user-details {
  overflow: hidden;
}

.ks-user-details strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1c3b71;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-user-details span {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-user-menu-list a.ks-menu-logout {
  color: #ef4444;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
  padding-top: 10px;
}

.ks-user-menu-list a.ks-menu-logout:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

/* ==========================================================================
   MEMBER AUTH PAGES (LOGIN & REGISTER)
   ========================================================================== */
.ks-auth-page {
  padding: 40px 0 70px 0;
  background-color: #f2f2f2;
  min-height: calc(100vh - 280px);
}

.ks-auth-shell {
  width: 100%;
  margin: 0 auto;
}

.ks-auth-shell-login {
  max-width: 460px;
}

.ks-auth-shell-register {
  max-width: 680px;
}

.ks-auth-panel {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ks-auth-core {
  padding: 36px 32px 32px 32px;
}

.ks-auth-shell-register .ks-auth-panel {
  padding: 36px 32px;
}

.ks-auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c3b71;
  text-align: center;
  margin: 0 0 24px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ks-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ks-auth-field {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ks-auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(248, 107, 37, 0.15);
}

.ks-auth-input::placeholder {
  color: #9ca3af;
}

.ks-auth-password-field {
  position: relative;
}

.ks-auth-password-field .ks-auth-input {
  padding-right: 42px;
}

.ks-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.ks-password-toggle:hover {
  color: #4b5563;
}

.ks-auth-forgot {
  align-self: flex-end;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  margin-top: -4px;
  transition: color 0.15s ease;
}

.ks-auth-forgot:hover {
  color: var(--primary);
  text-decoration: underline;
}

.ks-auth-submit {
  width: 100%;
  height: 46px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.ks-auth-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(248, 107, 37, 0.3);
}

.ks-auth-submit:active {
  transform: scale(0.99);
}

.ks-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background-color: #f9fafb;
  border-top: 1px solid #eeeeee;
  font-size: 13px;
  color: #6b7280;
}

.ks-auth-switch a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ks-auth-switch a:hover {
  text-decoration: underline;
}

/* Register Fieldsets and Grid */
.ks-register-section {
  border: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-register-section legend {
  font-size: 14px;
  font-weight: 700;
  color: #1c3b71;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  margin-bottom: 6px;
}

.ks-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ks-register-full {
  grid-column: span 2;
}

.ks-auth-select-field select {
  cursor: pointer;
}

.ks-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.ks-auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  accent-color: var(--primary);
  cursor: pointer;
}

.ks-auth-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.ks-password-help {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin: -4px 0 0 0;
}

.ks-notification-permissions {
  background-color: #f9fafb;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 14px;
  margin-top: 4px;
}

.ks-notification-permissions p {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 10px 0;
}

.ks-permission-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ks-auth-agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 8px 0;
}

.ks-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.ks-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.ks-alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ks-alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

@media (max-width: 640px) {
  .ks-register-grid {
    grid-template-columns: 1fr;
  }
  .ks-register-full {
    grid-column: span 1;
  }
  .ks-auth-core,
  .ks-auth-shell-register .ks-auth-panel {
    padding: 24px 18px;
  }
}
}

.ks-auth-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ks-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #fff7ed;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-benefit-text strong {
  display: block;
  font-size: 14px;
  color: #1c3b71;
  margin-bottom: 2px;
}

.ks-benefit-text p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.ks-terms-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ks-terms-group a {
  color: var(--primary);
  text-decoration: underline;
}

.ks-auth-switch {
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}

.ks-auth-switch a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
  text-decoration: none;
}

.ks-auth-switch a:hover {
  text-decoration: underline;
}

/* Alerts */
.ks-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}

.ks-alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ks-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* ==========================================================================
   MEMBER ACCOUNT DASHBOARD & ORDERS
   ========================================================================== */
.ks-account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin: 28px 0 60px 0;
}

.ks-account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ks-user-profile-badge {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ks-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-user-meta strong {
  display: block;
  font-size: 14px;
  color: #1c3b71;
}

.ks-user-meta span {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  word-break: break-all;
}

.ks-account-nav {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ks-account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.15s ease;
}

.ks-account-nav a:last-child {
  border-bottom: none;
}

.ks-account-nav a:hover,
.ks-account-nav a.active {
  background-color: #fff7ed;
  color: var(--primary);
}

.ks-account-nav a.ks-logout-link {
  color: #ef4444;
}

.ks-account-nav a.ks-logout-link:hover {
  background-color: #fef2f2;
}

.ks-account-content {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ks-account-page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
}

.ks-account-page-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1c3b71;
  margin: 0 0 4px 0;
}

.ks-account-page-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Orders List */
.ks-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ks-order-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ks-order-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.ks-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 14px;
}

.ks-order-meta-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ks-order-meta-info .label {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

.ks-order-meta-info strong {
  font-size: 13px;
  color: #1c3b71;
}

.ks-order-meta-info span {
  font-size: 13px;
  color: #374151;
}

.ks-order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.ks-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ks-order-cargo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #fff7ed;
  border-bottom: 1px solid #ffedd5;
  font-size: 12px;
  color: #c2410c;
}

.ks-order-cargo-bar code {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fed7aa;
}

.ks-order-items-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.ks-order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ks-order-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eeeeee;
  background-color: #ffffff;
  padding: 2px;
}

.ks-order-item-desc {
  flex: 1;
}

.ks-order-item-desc h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px 0;
}

.ks-order-item-sku {
  font-size: 11px;
  color: #9ca3af;
}

.ks-order-item-qty {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

.ks-order-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1c3b71;
}

.ks-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.ks-order-address-box {
  font-size: 12px;
  color: #6b7280;
}

.ks-address-label {
  font-weight: 600;
  color: #374151;
  margin-right: 4px;
}

.ks-order-total-box {
  text-align: right;
  font-size: 13px;
  color: #4b5563;
}

.ks-order-total-box strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-left: 6px;
}

.ks-empty-orders-card {
  text-align: center;
  padding: 60px 20px;
}

.ks-empty-orders-card svg {
  margin: 0 auto 16px;
  color: #9ca3af;
}

.ks-empty-orders-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c3b71;
  margin-bottom: 8px;
}

.ks-empty-orders-card p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* Profile Form */
.ks-profile-divider {
  border: 0;
  border-top: 1px solid #f0f0f0;
  margin: 20px 0;
}

.ks-section-subheading {
  font-size: 15px;
  font-weight: 700;
  color: #1c3b71;
  margin: 0 0 14px 0;
}

.ks-profile-form-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .ks-auth-wrapper {
    grid-template-columns: 1fr;
  }
  .ks-account-layout {
    grid-template-columns: 1fr;
  }
  .ks-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT VARIANTS (Ürün Seçenekleri / Beden / Renk / Hacim vb.)
   ========================================================================== */
.ks-product-variants {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.ks-variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-variant-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.ks-variant-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #1e293b;
  font: inherit;
}

.ks-variant-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   VARIANT BADGES (Sepet, Modal, Siparişler, Checkout)
   ========================================================================== */
.ks-cart-item-variants,
.ks-popup-item-variants,
.ks-order-item-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 6px 0;
}

.ks-cart-variant-badge,
.ks-popup-var-tag,
.ks-order-variant-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 7px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  white-space: nowrap;
}

.ks-cart-variant-badge strong,
.ks-popup-var-tag strong,
.ks-order-variant-badge strong {
  color: #0f172a;
  font-weight: 600;
  margin-right: 3px;
}

/* ==========================================================================
   MEGA MENU & FLYOUT MULTI-LEVEL NESTING
   ========================================================================== */
.ks-mega-grand-item {
  position: relative;
}

.ks-mega-grand-link {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  display: inline-block;
  transition: var(--transition);
  text-decoration: none;
}

.ks-mega-grand-link:hover {
  color: var(--primary);
  padding-left: 2px;
}

.ks-mega-nested-list,
.ks-flyout-nested-list {
  list-style: none;
  margin: 4px 0 6px 10px;
  padding: 0 0 0 8px;
  border-left: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-mega-great-link,
.ks-flyout-nested-list a {
  font-size: 11.5px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.ks-mega-great-link:hover,
.ks-flyout-nested-list a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.ks-flyout-grand-item {
  margin-bottom: 4px;
}
