/*
Theme Name: Kly App
Theme URI: https://akademiozalit.com
Author: Akademi Ozalit
Description: 2026 standartlarında, modern, minimalist, monokrom (siyah/beyaz) ve responsive WooCommerce e-ticaret teması.
Version: 2.2.9
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: kly
Tags: ecommerce, woocommerce, responsive, modern, monochrome, clean, minimal
*/

/* ==========================================================================
   CSS Variables (Clean Monochrome & Soft Elevated Contrast)
   ========================================================================== */
:root {
  --kly-white: #ffffff;
  --kly-black: #0f1115;
  --kly-gray-50: #f9fafb;
  --kly-gray-100: #f3f4f6;
  --kly-gray-200: #e5e7eb;
  --kly-gray-300: #d1d5db;
  --kly-gray-400: #9ca3af;
  --kly-gray-500: #6b7280;
  --kly-gray-600: #4b5563;
  --kly-gray-700: #374151;
  --kly-gray-800: #1f2937;
  --kly-gray-900: #111827;

  /* Theme tokens: Pure white background + subtle soft elevation */
  --p-bg: #ffffff;
  --p-surface: #ffffff;
  --p-surface-subtle: #f9fafb;
  --p-white: #ffffff;
  --p-black: #0f1115;
  --p-text: #0f1115;
  --p-text-muted: #5f6672;
  --p-border: #e6e8ec;
  --p-border-dark: #cbd0d8;
  --p-border-focus: #0f1115;
  --p-accent: #0f1115;
  --p-accent-hover: #272c35;
  --p-gray-50: #f9fafb;
  --p-gray-100: #f3f4f6;
  --p-gray-200: #e5e7eb;
  --p-gray-300: #d1d5db;
  --p-gray-400: #9ca3af;
  --p-gray-500: #6b7280;
  --p-gray-600: #4b5563;
  --p-gray-700: #374151;
  --p-gray-800: #1f2937;
  
  /* Geometry */
  --p-radius-sm: 6px;
  --p-radius: 10px;
  --p-radius-lg: 16px;
  --p-radius-pill: 9999px;

  /* Soft Elegant Elevation (Crisp on Pure White) */
  --p-shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
  --p-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --p-shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  /* Typography & Layout */
  --p-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --p-max-width: 1280px;
  --p-header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  margin-top: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--p-font);
  background-color: var(--p-bg);
  color: var(--p-text);
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix WP Admin Bar Gap */
body.admin-bar {
  margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    margin-top: 46px !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--p-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.kly-announcement-bar {
  background-color: #0f1115 !important;
  color: #ffffff !important;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kly-announcement-bar span {
  display: inline-block;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.kly-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--p-border);
  height: var(--p-header-height);
  display: flex;
  align-items: center;
}

.kly-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.kly-header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.kly-header-brand-wrap {
  display: flex;
  align-items: center;
}

.kly-header-logo-img,
.custom-logo {
  max-height: 40px;
  width: auto;
  display: block;
}

.kly-site-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--p-black);
  text-transform: uppercase;
}

.kly-site-brand:hover {
  opacity: 1;
}

/* Desktop Navigation */
.kly-desktop-nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.kly-desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kly-desktop-nav li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-gray-700);
  padding: 8px 0;
  position: relative;
}

.kly-desktop-nav li a:hover,
.kly-desktop-nav li.current-menu-item a {
  color: var(--p-black);
  opacity: 1;
}

.kly-desktop-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--p-black);
  transition: width 0.2s ease;
}

.kly-desktop-nav li a:hover::after,
.kly-desktop-nav li.current-menu-item a::after {
  width: 100%;
}

/* Header Action Icons */
.kly-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kly-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--p-radius-pill);
  color: var(--p-black);
  background: var(--p-white);
  border: 1px solid var(--p-border);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.kly-icon-btn:hover {
  background-color: var(--p-gray-50);
  border-color: var(--p-black);
  box-shadow: var(--p-shadow-sm);
  opacity: 1;
}

.kly-header-cart-btn {
  gap: 8px;
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.kly-header-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--p-black);
  color: var(--p-white);
  border-radius: var(--p-radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.kly-mobile-toggle {
  display: none;
  border: 1px solid var(--p-border);
  background: var(--p-white);
  border-radius: var(--p-radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--p-black);
}

@media (max-width: 860px) {
  .kly-desktop-nav {
    display: none;
  }
  .kly-mobile-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Header Search (Desktop — primary menünün sağındaki arama inputu)
   ========================================================================== */
.kly-header-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 16px;
  width: 220px;
  max-width: 220px;
  position: relative;
}

.kly-header-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-pill);
  background-color: var(--p-gray-50);
  font-size: 13px;
  color: var(--p-black);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.kly-header-search-input::placeholder {
  color: var(--p-gray-500);
}

.kly-header-search-input:focus {
  outline: none;
  border-color: var(--p-black);
  background-color: var(--p-white);
  box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.08);
}

.kly-header-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--p-gray-600);
  cursor: pointer;
  border-radius: var(--p-radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.kly-header-search-submit:hover {
  color: var(--p-black);
  background-color: var(--p-gray-100);
}

@media (max-width: 860px) {
  .kly-header-search {
    display: none;
  }
}

/* ==========================================================================
   Secondary Nav Bar (Desktop: kategori menüsü + dropdown | Mobil: tam genişlik arama)
   ========================================================================== */
.kly-secondary-nav {
  background-color: var(--p-surface-subtle);
  border-bottom: 1px solid var(--p-border);
  position: sticky;
  top: var(--p-header-height);
  z-index: 99;
}

.kly-secondary-nav .container {
  display: flex;
  align-items: center;
  min-height: 46px;
}

/* Desktop kategori menüsü */
.kly-secondary-nav-desktop {
  display: block;
  flex: 1 1 auto;
  overflow: visible;
}

.kly-secondary-cat-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.kly-secondary-cat-item {
  position: relative;
  flex-shrink: 0;
}

.kly-secondary-cat-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-gray-700);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.kly-secondary-cat-item > a:hover,
.kly-secondary-cat-item.is-active > a {
  color: var(--p-black);
  border-bottom-color: var(--p-black);
}

.kly-secondary-cat-all > a {
  color: var(--p-black);
  font-weight: 700;
}

.kly-secondary-caret {
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.kly-secondary-cat-item.has-children:hover .kly-secondary-caret {
  transform: rotate(180deg);
}

/* Dropdown alt kategoriler */
.kly-secondary-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-width: 320px;
  background-color: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 100;
}

/* Multi-column dropdown — 10 item başına kolon, max 5 */
.kly-secondary-sub-menu.cols-2 {
  max-width: 420px;
  column-count: 2;
  column-gap: 8px;
}

.kly-secondary-sub-menu.cols-3 {
  max-width: 620px;
  column-count: 3;
  column-gap: 8px;
}

.kly-secondary-sub-menu.cols-4 {
  max-width: 820px;
  column-count: 4;
  column-gap: 8px;
}

.kly-secondary-sub-menu.cols-5 {
  max-width: 1020px;
  column-count: 5;
  column-gap: 8px;
}

.kly-secondary-sub-menu.cols-2 li,
.kly-secondary-sub-menu.cols-3 li,
.kly-secondary-sub-menu.cols-4 li,
.kly-secondary-sub-menu.cols-5 li {
  break-inside: avoid;
}

.kly-secondary-cat-item.has-children:hover .kly-secondary-sub-menu,
.kly-secondary-cat-item.has-children:focus-within .kly-secondary-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kly-secondary-sub-menu li a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p-gray-700);
  border-radius: var(--p-radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kly-secondary-sub-menu li a:hover,
.kly-secondary-sub-menu li.is-active > a {
  background-color: var(--p-gray-50);
  color: var(--p-black);
}

/* Mobil tam genişlik arama (secondary nav içinde) */
.kly-secondary-search-mobile {
  display: none;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 8px 0;
}

.kly-secondary-search-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-pill);
  background-color: var(--p-gray-50);
  font-size: 14px;
  color: var(--p-black);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.kly-secondary-search-input::placeholder {
  color: var(--p-gray-500);
}

.kly-secondary-search-input:focus {
  outline: none;
  border-color: var(--p-black);
  background-color: var(--p-white);
  box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.08);
}

.kly-secondary-search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--p-gray-600);
  cursor: pointer;
  border-radius: var(--p-radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.kly-secondary-search-submit:hover {
  color: var(--p-black);
  background-color: var(--p-gray-100);
}

/* Mobil: desktop kategori menüsünü gizle, tam genişlik aramayı göster */
@media (max-width: 860px) {
  .kly-secondary-nav-desktop {
    display: none;
  }
  .kly-secondary-search-mobile {
    display: flex;
  }
  .kly-secondary-nav {
    position: static;
  }
}

/* ==========================================================================
   Mobile Offcanvas Drawer (Clean & No Shadow Leak)
   ========================================================================== */
.kly-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px);
  z-index: 99998 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kly-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kly-offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background-color: #ffffff !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
  visibility: hidden;
  pointer-events: none;
}

.kly-offcanvas-drawer.is-active {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.22) !important;
  visibility: visible;
  pointer-events: auto;
}

.kly-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--p-border);
  background-color: #ffffff;
}

.kly-drawer-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kly-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--p-gray-700);
  cursor: pointer;
  padding: 4px;
}

.kly-drawer-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  background-color: #ffffff;
}

.kly-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--p-border);
  font-size: 12px;
  color: var(--p-text-muted);
  background-color: #ffffff;
}

/* ==========================================================================
   2-Tab Component (Mobile Drawer)
   ========================================================================== */
.kly-tabs-component {
  display: flex;
  flex-direction: column;
}

.kly-tab-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background-color: var(--p-gray-100);
  padding: 4px;
  border-radius: var(--p-radius-sm);
  margin-bottom: 20px;
}

.kly-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: var(--p-radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--p-gray-600);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kly-tab-btn.is-active {
  background-color: var(--p-white) !important;
  color: var(--p-black) !important;
  box-shadow: var(--p-shadow-sm);
}

.kly-tab-content {
  display: none;
}

.kly-tab-content.is-active {
  display: block !important;
}

.kly-tab-section {
  margin-bottom: 20px;
}

/* Sayfalar Listesi */
.kly-sidebar-pages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kly-sidebar-pages-list li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--p-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--p-gray-800);
  border: 1px solid var(--p-border);
  background-color: var(--p-white);
  box-shadow: var(--p-shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kly-sidebar-pages-list li a:hover {
  border-color: var(--p-black);
  color: var(--p-black);
  opacity: 1;
}

/* ==========================================================================
   Hierarchical Categories (Tree / Subcategories - Used in Shop & Drawer)
   ========================================================================== */
.kly-hierarchical-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kly-hierarchical-cat-list .cat-item-all a {
  display: block;
  padding: 10px 14px;
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--p-black);
  box-shadow: var(--p-shadow-sm);
}

.kly-hierarchical-cat-list .cat-item-all.is-active a {
  background-color: var(--p-black);
  color: var(--p-white);
  border-color: var(--p-black);
}

.kly-parent-cat-item {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background-color: var(--p-white);
  overflow: hidden;
  box-shadow: var(--p-shadow-sm);
}

.kly-parent-cat-item.is-active {
  border-color: var(--p-black);
}

.kly-parent-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--p-white);
}

.kly-parent-cat-row a.kly-cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--p-black);
}

.kly-parent-cat-row a.kly-cat-link .count {
  font-size: 12px;
  color: var(--p-gray-500);
  font-weight: 500;
}

.kly-cat-toggle-btn {
  background: var(--p-gray-50);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--p-gray-700);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.kly-parent-cat-item.is-expanded .kly-cat-toggle-btn {
  background-color: var(--p-black);
  color: var(--p-white);
  border-color: var(--p-black);
}

.kly-parent-cat-item.is-expanded .kly-cat-toggle-btn svg {
  transform: rotate(180deg);
}

.kly-child-cat-list {
  list-style: none;
  background-color: var(--p-gray-50);
  border-top: 1px solid var(--p-border);
  padding: 6px 0;
}

.kly-child-cat-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p-gray-700);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.kly-child-cat-item a:hover,
.kly-child-cat-item.is-active a {
  color: var(--p-black);
  font-weight: 700;
  background-color: var(--p-gray-200);
  opacity: 1;
}

.kly-child-cat-item .sub-arrow {
  color: var(--p-gray-400);
  font-size: 11px;
}

.kly-child-cat-item .sub-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--p-gray-500);
}

.kly-clear-filters-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border: 1px dashed var(--p-gray-400);
  border-radius: var(--p-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--p-gray-700);
  background-color: var(--p-white);
  box-shadow: var(--p-shadow-sm);
  transition: background-color 0.15s ease;
}

.kly-clear-filters-btn:hover {
  border-color: var(--p-black);
  color: var(--p-black);
  opacity: 1;
}

/* ==========================================================================
   Breadcrumbs Component
   ========================================================================== */
.kly-breadcrumbs {
  font-size: 13px;
  color: var(--p-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 20px;
}

.kly-breadcrumbs a {
  color: var(--p-gray-700);
}

.kly-breadcrumbs a:hover {
  color: var(--p-black);
}

.kly-bc-sep {
  color: var(--p-gray-400);
  font-size: 11px;
}

.kly-bc-item:last-child {
  color: var(--p-black);
  font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.kly-hero {
  padding: 24px 0 40px;
}

.kly-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 56px 48px;
  box-shadow: var(--p-shadow);
}

.kly-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-gray-600);
  margin-bottom: 12px;
}

.kly-hero__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--p-black);
  margin: 0 0 16px;
}

.kly-hero__text {
  font-size: 16px;
  color: var(--p-text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 480px;
}

.kly-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--p-black);
  color: var(--p-white);
  padding: 13px 26px;
  border-radius: var(--p-radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.kly-hero__btn:hover {
  background-color: var(--p-accent-hover);
  color: var(--p-white);
  transform: translateY(-1px);
  opacity: 1;
}

.kly-hero__media {
  border-radius: var(--p-radius);
  overflow: hidden;
  background-color: var(--p-gray-100);
  border: 1px solid var(--p-border);
  aspect-ratio: 4 / 3;
}

.kly-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .kly-hero__grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 24px;
  }
}

/* ==========================================================================
   Features / Trust Badges Bar
   ========================================================================== */
.kly-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  margin-bottom: 48px;
  box-shadow: var(--p-shadow-sm);
}

.kly-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kly-feature-icon {
  color: var(--p-black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--p-radius-sm);
  background-color: var(--p-gray-50);
  border: 1px solid var(--p-border);
}

.kly-feature-text {
  display: flex;
  flex-direction: column;
}

.kly-feature-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--p-black);
}

.kly-feature-text span {
  font-size: 12px;
  color: var(--p-gray-600);
}

@media (max-width: 900px) {
  .kly-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 540px) {
  .kly-features-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Promo Banner Section
   ========================================================================== */
.kly-promo-banner {
  margin: 56px 0;
}

.kly-promo-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  box-shadow: var(--p-shadow);
}

.kly-promo-banner__content {
  padding: 48px 56px;
}

.kly-promo-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-gray-600);
  margin-bottom: 8px;
}

.kly-promo-banner__content h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--p-black);
}

.kly-promo-banner__content p {
  font-size: 15px;
  color: var(--p-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.kly-btn-dark {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--p-black);
  color: var(--p-white);
  border-radius: var(--p-radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.kly-btn-dark:hover {
  background-color: var(--p-accent-hover);
  color: var(--p-white);
  opacity: 1;
}

.kly-promo-banner__media {
  height: 100%;
  min-height: 280px;
}

.kly-promo-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .kly-promo-banner__grid {
    grid-template-columns: 1fr;
  }
  .kly-promo-banner__content {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   Section Headers & Category Highlights
   ========================================================================== */
.kly-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--p-border);
}

.kly-section-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--p-black);
}

.kly-section-header a {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-black);
}

.kly-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.kly-category-card {
  position: relative;
  border-radius: var(--p-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  display: block;
}

.kly-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kly-category-card:hover img {
  transform: scale(1.04);
}

.kly-category-card__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(15,17,21,0.85) 0%, transparent 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .kly-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Markalar Grid (5'li 2 satır)
   ========================================================================== */
.kly-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.kly-brand-card {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-white);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 120px;
}

.kly-brand-card:hover {
  border-color: var(--p-text);
  box-shadow: var(--p-shadow-sm);
  transform: translateY(-2px);
}

.kly-brand-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.kly-brand-card img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.kly-brand-card:hover img {
  opacity: 1;
}

.kly-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-text);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .kly-brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .kly-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Home Banner Alanları
   ========================================================================== */
.kly-home-banner {
  margin: 32px 0 48px;
  border-radius: var(--p-radius);
  overflow: hidden;
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
}

.kly-home-banner a {
  display: block;
  line-height: 0;
}

.kly-home-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.kly-home-banner:hover img {
  transform: scale(1.01);
}

/* Banner 1 — doğal oran, yükseklik auto */
.kly-home-banner--2-1 {
  aspect-ratio: auto;
}

.kly-home-banner--2-1 img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner 2 — tam genişlik (doğal oran, yükseklik auto) */

/* ==========================================================================
   Newsletter Form (shared — used inside footer)
   ========================================================================== */
.kly-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.kly-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background-color: var(--p-white);
  font-size: 14px;
}

.kly-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--p-black);
  background-color: var(--p-white);
}

.kly-newsletter-form button {
  padding: 12px 24px;
  background-color: var(--p-black);
  color: var(--p-white);
  border: none;
  border-radius: var(--p-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.kly-newsletter-form button:hover {
  background-color: var(--p-accent-hover);
}

@media (max-width: 540px) {
  .kly-newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.kly-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: var(--p-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.kly-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #ffffff;
  opacity: 1;
}

.kly-whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background-color: var(--p-black);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--p-radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kly-whatsapp-float:hover .kly-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Standard Page / Account / General Layouts
   ========================================================================== */
.kly-page-box {
  background-color: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 36px;
  margin: 24px 0 64px;
  box-shadow: var(--p-shadow);
}

.kly-page-box h1.entry-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* WooCommerce blok sayfaları (sepet/ödeme) — kutu stilini kullanma,
   blok kendi layout'unu yönetir */
.kly-wc-block-page {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 24px 0 64px;
  box-shadow: none;
}

.kly-wc-block-page .entry-content {
  margin: 0;
  padding: 0;
}

.kly-wc-block-page .wp-block-woocommerce-cart.alignwide,
.kly-wc-block-page .wp-block-woocommerce-checkout.alignwide {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ==========================================================================
   Footer Component — Contrasting dark with geometric dot pattern
   ========================================================================== */
.kly-site-footer {
  position: relative;
  background-color: #0f1115;
  color: #e5e7eb;
  margin-top: 80px;
  padding: 0 0 32px;
  overflow: hidden;
}

/* Geometric dot pattern overlay */
.kly-footer-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.kly-site-footer > .container {
  position: relative;
  z-index: 1;
}

/* Newsletter section inside footer */
.kly-footer-newsletter {
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kly-footer-newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}

.kly-footer-newsletter-inner h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #ffffff;
}

.kly-footer-newsletter-inner p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 24px;
}

.kly-footer-newsletter .kly-newsletter-form input[type="email"] {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.kly-footer-newsletter .kly-newsletter-form input[type="email"]::placeholder {
  color: #6b7280;
}

.kly-footer-newsletter .kly-newsletter-form input[type="email"]:focus {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.kly-footer-newsletter .kly-newsletter-form button {
  background-color: #ffffff;
  color: #0f1115;
}

.kly-footer-newsletter .kly-newsletter-form button:hover {
  background-color: #e5e7eb;
}

/* Footer link grid */
.kly-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
  margin-bottom: 0;
}

.kly-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 16px;
}

.kly-footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
}

/* Footer logo — oval köşeli beyaz zemin */
.kly-footer-logo-wrap {
  display: inline-block;
  margin-bottom: 16px;
}

.kly-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 8px 20px;
  min-height: 48px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kly-footer-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.kly-footer-logo-img {
  max-height: 32px;
  width: auto;
  display: block;
}

.kly-footer-logo-link img.custom-logo {
  max-height: 32px !important;
  width: auto !important;
  display: block;
}

.kly-footer-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #0f1115;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kly-footer-logo-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.kly-footer-desc {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 320px;
}

/* Footer Contact Info — logonun altında */
.kly-footer-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kly-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.kly-footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.kly-footer-contact-item a {
  color: #9ca3af;
  text-decoration: none;
}

.kly-footer-contact-item a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

.kly-footer-contact-item span {
  word-break: break-word;
}

/* ==========================================================================
   İletişim Sayfası Şablonu — Modern, Monokrom
   ========================================================================== */
.kly-contact-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

/* Hero */
.kly-contact-hero {
  text-align: center;
  margin-bottom: 44px;
}

.kly-contact-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #0f1115;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.kly-contact-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  color: #0f1115;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 12px;
}

.kly-contact-intro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

/* İki kolonlu layout: koyu bilgi paneli + form kartı */
.kly-contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Sol — koyu bilgi paneli */
.kly-contact-info {
  background: #0f1115;
  color: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.kly-contact-info__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kly-contact-info__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kly-contact-info__item:last-of-type {
  border-bottom: none;
}

.kly-contact-info__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kly-contact-info__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.kly-contact-info__value {
  font-size: 14.5px;
  line-height: 1.65;
  color: #fff;
  margin: 0;
}

.kly-contact-info__value a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.kly-contact-info__value a:hover {
  opacity: 0.7;
}

/* WhatsApp CTA — panel altında */
.kly-contact-info__wa {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #0f1115;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kly-contact-info__wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Sağ — form kartı */
.kly-contact-form-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(15, 17, 21, 0.05);
}

.kly-contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f1115;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.kly-contact-form-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 22px;
  line-height: 1.6;
}

.kly-contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kly-contact-form-field {
  margin-bottom: 16px;
}

.kly-contact-form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #374151;
  margin-bottom: 7px;
}

.kly-contact-form-field input,
.kly-contact-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kly-contact-form-field input:focus,
.kly-contact-form-field textarea:focus {
  outline: none;
  border-color: #0f1115;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.08);
}

.kly-contact-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f1115;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kly-contact-form-submit svg {
  transition: transform 0.15s ease;
}

.kly-contact-form-submit:hover {
  background: #272c35;
  box-shadow: 0 8px 20px rgba(15, 17, 21, 0.18);
}

.kly-contact-form-submit:hover svg {
  transform: translateX(3px);
}

.kly-contact-form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.kly-contact-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* Harita — monokrom filtre */
.kly-contact-map {
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.kly-contact-map iframe {
  width: 100%;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 900px) {
  .kly-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kly-contact-page {
    padding: 28px 0 48px;
  }
  .kly-contact-form-row {
    grid-template-columns: 1fr;
  }
  .kly-contact-form-wrap {
    padding: 24px 20px;
  }
  .kly-contact-info {
    padding: 26px 22px;
  }
  .kly-contact-map iframe {
    height: 280px;
  }
}

/* ==========================================================================
   Dil Değiştirici — Polylang
   ========================================================================== */
.kly-lang-switch {
  position: relative;
}

.kly-lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kly-lang-switch__btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.kly-lang-switch__chevron {
  opacity: 0.5;
}

.kly-lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

.kly-lang-switch.is-open .kly-lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kly-lang-switch__menu li a,
.kly-lang-switch__menu li .kly-lang-switch__disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.12s ease;
}

.kly-lang-switch__menu li a:hover {
  background: #f3f4f6;
}

.kly-lang-switch__menu li.is-current a {
  background: #f0fdf4;
  color: #0f766e;
  font-weight: 600;
}

.kly-lang-switch__menu li.is-current a svg {
  margin-left: auto;
}

.kly-lang-switch__flag {
  font-size: 14px;
  line-height: 1;
}

.kly-lang-switch__name {
  flex: 1;
}

/* Mobil drawer içinde — header satırında kompakt */
.kly-drawer-header .kly-lang-switch {
  margin-left: auto;
  margin-right: 8px;
}

.kly-drawer-header .kly-lang-switch__menu {
  right: auto;
  left: 0;
}

/* Logo yanı switch — sadece mobilde görünür */
.kly-lang-switch--brand {
  display: none;
}

/* Mobilde header'daki switch gizle — logo yanındaki yeterli */
@media (max-width: 768px) {
  .kly-header-actions .kly-lang-switch {
    display: none;
  }

  /* Logo yanı kompakt switch */
  .kly-lang-switch--brand {
    display: inline-flex;
    margin-left: 6px;
  }

  .kly-lang-switch--brand .kly-lang-switch__btn {
    padding: 4px 7px;
    font-size: 11px;
    gap: 3px;
    border-radius: 5px;
  }

  .kly-lang-switch--brand .kly-lang-switch__btn svg:first-child {
    display: none; /* globe ikonunu gizle — sadece TR/EN kodu */
  }

  .kly-lang-switch--brand .kly-lang-switch__chevron {
    width: 8px;
    height: 8px;
  }

  .kly-lang-switch--brand .kly-lang-switch__menu {
    left: 0;
    right: auto;
    min-width: 130px;
  }

  /* Logo küçült — switch yanına sığsın */
  .kly-header-logo-img,
  .kly-header-brand-wrap .custom-logo {
    max-height: 30px;
  }

  .kly-site-brand {
    font-size: 17px;
  }

  .kly-header-brand-wrap {
    gap: 4px;
  }
}

.kly-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kly-footer-links li a {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.kly-footer-links li a:hover {
  color: #ffffff;
  opacity: 1;
}

.kly-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .kly-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .kly-footer-grid {
    grid-template-columns: 1fr;
  }

  .kly-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============== Coupon Banner — Kırmızı 3D Bant ============== */
.kly-coupon-banner {
  margin: 0 0 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.kly-coupon-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  border-radius: var(--p-radius-sm, 6px);
  box-shadow:
    0 4px 0 #7f1d1d,
    0 6px 14px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.kly-coupon-banner__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: kly-coupon-shine 3s ease-in-out infinite;
}

@keyframes kly-coupon-shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.kly-coupon-banner__inner:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #7f1d1d,
    0 10px 20px rgba(220, 38, 38, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kly-coupon-banner__icon {
  font-size: 24px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kly-coupon-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.kly-coupon-banner__text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.kly-coupon-banner__code {
  font-size: 18px;
  font-weight: 800;
  font-family: monospace, monospace;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.kly-coupon-banner__discount {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: var(--p-radius-sm, 6px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .kly-coupon-banner__inner {
    flex-wrap: wrap;
    padding: 12px 14px;
    font-size: 13px;
    gap: 8px;
  }
  .kly-coupon-banner__code {
    font-size: 15px;
  }
  .kly-coupon-banner__discount {
    font-size: 13px;
    padding: 4px 8px;
  }
  .kly-coupon-banner__icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

/* ============== AI Search Results ============== */
.kly-ai-search-results {
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--p-gray-200, #e5e7eb);
}

.kly-ai-search-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--p-gray-900, #111827);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kly-ai-search-title svg {
  color: var(--p-accent, #111827);
}

.kly-ai-search-desc {
  font-size: 13px;
  color: var(--p-gray-500, #6b7280);
  margin: 0 0 20px;
}

.kly-ai-search-grid {
  /* ul.products olarak WC grid stillerini miras alır */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.kly-ai-search-grid li.product {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  display: flex;
  flex-direction: column;
}

.kly-ai-search-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--p-gray-500, #6b7280);
  font-size: 14px;
}

.kly-ai-search-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--p-gray-200, #e5e7eb);
  border-top-color: var(--p-accent, #111827);
  border-radius: 50%;
  animation: kly-ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes kly-ai-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .kly-ai-search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   Blog / Posts Page
   ========================================================================== */
.kly-blog-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.kly-blog-header {
  margin-bottom: 32px;
  text-align: center;
}

.kly-blog-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.kly-blog-description {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.kly-blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kly-blog-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.kly-blog-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}

.kly-blog-item__thumb {
  flex: 0 0 240px;
  display: block;
  overflow: hidden;
}

.kly-blog-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.kly-blog-item:hover .kly-blog-item__thumb img {
  transform: scale(1.05);
}

.kly-blog-item__content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.kly-blog-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.kly-blog-item__title a {
  color: inherit;
  text-decoration: none;
}

.kly-blog-item__title a:hover {
  color: #0f766e;
}

.kly-blog-item__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.kly-blog-item__cat {
  color: #0f766e;
  font-weight: 600;
}

.kly-blog-item__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 12px;
  flex: 1;
}

.kly-blog-item__readmore {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
  align-self: flex-start;
}

.kly-blog-item__readmore:hover {
  text-decoration: underline;
}

/* Blog — no thumbnail */
.kly-blog-item:not(:has(.kly-blog-item__thumb)) {
  padding: 0;
}

.kly-blog-item:not(:has(.kly-blog-item__thumb)) .kly-blog-item__content {
  padding: 24px;
}

@media (max-width: 768px) {
  .kly-blog-item {
    flex-direction: column;
  }
  .kly-blog-item__thumb {
    flex: none;
    width: 100%;
    height: 200px;
  }
  .kly-blog-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Blog AI Products — makale ortasında 5+5 ürün
   ========================================================================== */
.kly-blog-products {
  margin: 32px 0;
  padding: 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.kly-blog-products__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kly-blog-products__header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.kly-blog-products__all {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
  white-space: nowrap;
}

.kly-blog-products__all:hover {
  text-decoration: underline;
}

/* Blog ürün grid'i — shop kartlarıyla tam aynı CSS'i kullanır.
   ul.products.columns-5 selector'ları woocommerce.css'de tanımlı. */
.kly-blog-products ul.products {
  margin: 0 !important;
}

/* ==========================================================================
   Ürün Detay — Açıklama Sonu SEO Görsel
   ========================================================================== */
.kly-product-seo-image-wrap {
  margin: 32px 0 16px;
  text-align: center;
}

.kly-product-seo-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: var(--kly-radius, 8px);
  display: inline-block;
}

@media (max-width: 768px) {
  .kly-product-seo-image {
    max-width: 100%;
  }
}

