/* site-style.css
   v3.2 - Genişlik/Yükseklik sabitleme için nihai düzeltme
*/

/* ---------------------------
   0. Reset / Normalize
   --------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--brand-red);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus {
  outline: none;
}

/* --------------------------------
   1. Tema Değişkenleri
   -------------------------------- */
:root {
  --brand-red: #c81919;
  --brand-red-600: #a71313;
  --brand-dark: #0a2e52;
  --brand-dark-600: #08233f;
  --muted: #6c757d;
  --bg: #f9fafc;
  --surface: #ffffff;
  --soft: #f4f6f9;
  --border-color: #e6e9ee;
  --glass: rgba(255, 255, 255, 0.8);
  --text: #222529;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 6px 18px rgba(10, 30, 60, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 30, 60, 0.08);
  --ease-short: cubic-bezier(.2, .9, .3, 1);
  --container: 1200px;
  --transition: 300ms var(--ease-short);
}

/* Dark mode (body.dark) ... */
body.dark {
  --bg: #0b1220;
  --surface: #09101a;
  --soft: #071021;
  --text: #e7eefb;
  --muted: #a0a8b1;
  --glass: rgba(9, 16, 26, 0.8);
  --border-color: #2a3441;
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.65);
}

/* -------------------------
   2. Tipografi ve Konteyner
   ------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap');

html {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  margin: 0 0 .6rem 0;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.9rem;
}

p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------
   3. Utility & Helpers
   ------------------------- */
.content-section {
  padding-top: 3.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* Buton stilleri */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  transition: var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-brand {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 25, 25, 0.18);
}

.btn-brand:hover {
  background: var(--brand-red-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 25, 25, 0.22);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark);
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-small {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--text);
}

.btn-small.primary {
  background: var(--brand-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(200, 25, 25, 0.12);
}

.btn-small:hover {
  transform: translateY(-3px);
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
}

.btn-small.primary:hover {
  background: var(--brand-red-600);
}

/* Sepete Ekle Butonu */
.btn-small.cart-btn {
  background: var(--brand-dark);
  color: #fff;
  border-color: transparent;
  padding: .45rem .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-small.cart-btn:hover {
  background: var(--brand-dark-600);
  transform: translateY(-3px);
}

.add-to-cart-form {
  margin: 0;
  display: inline;
}

.add-to-cart-form button {
  cursor: pointer;
}

/* Sepete ekleme animation */
@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-added {
  animation: cartBounce 0.3s ease;
  background: #2e7d32 !important;
}


/* ---------------------------------
   4. HEADER / NAVBAR
   --------------------------------- */

.top-bar {
  background: var(--brand-dark-600);
  color: rgba(255, 255, 255, 0.7);
  padding: .5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .top-info {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.top-bar .top-info svg {
  fill: rgba(255, 255, 255, 0.7);
}

.top-bar .social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar .social-icons a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.top-bar .social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.navbar {
  background: linear-gradient(90deg, var(--surface), var(--glass));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: .5rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  display: flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: "Playfair Display", serif;
}

.navbar .brand .logo {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  object-fit: contain;
}

.navbar .nav-wrapper {
  display: flex;
}

.navbar .nav {
  display: flex;
  gap: .35rem;
  align-items: center;
}

.nav>li>a {
  padding: 1rem .9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  display: block;
  position: relative;
}

.nav>li>a:hover,
.nav>li>a:focus,
.nav-item-dropdown:hover>a {
  background: var(--soft);
  color: var(--brand-dark);
}

.nav .nav-cta {
  background: var(--brand-red);
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(200, 25, 25, 0.14);
  margin-left: .5rem;
}

.nav .nav-cta:hover {
  background: var(--brand-red-600);
  transform: translateY(-2px);
}

.nav-item-dropdown {
  position: relative;
  /* Default dropdown relative */
}

.mega-parent {
  position: static;
  /* Let the mega menu expand full width of navbar container */
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: .5em;
  opacity: .7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  min-width: 220px;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-item-dropdown:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: .6rem 1.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.dropdown-menu li a:hover {
  background: var(--soft);
  color: var(--brand-red);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: .5rem 0;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 2.5rem 0;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-item-dropdown:hover>.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.mega-menu-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-col h5 a {
  color: var(--muted);
  transition: var(--transition);
}

.mega-menu-col h5 a:hover {
  color: var(--brand-red);
}

.mega-menu-sublist li a {
  display: block;
  padding: .5rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.mega-menu-sublist li a:hover {
  color: var(--brand-red);
  transform: translateX(4px);
}

/* Mega-menu alt kategori açılır/kapanır */
.mega-sub-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  padding: .3rem 0;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-red);
  transition: var(--transition);
}
.mega-sub-toggle:hover { color: var(--brand-red-600); }
.mega-sub-toggle svg { transition: transform .2s; }
.mega-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega-sub-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mega-menu-col .mega-menu-sublist:not(.mega-sub-collapsed) {
  max-height: 600px;
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: .5rem .6rem;
  cursor: pointer;
}

.navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 300ms;
}


/* -------------------------
   5. HERO
   ------------------------- */
.hero {
  padding: 80px 0 80px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-600));
  color: #fff;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  position: relative;
  overflow: hidden;
}

.hero .inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.hero .left {
  max-width: 54%;
}

.hero h1 {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: .8rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 550px;
}

.hero .actions {
  display: flex;
  gap: 1rem;
}

.hero .right img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}


/* ----------------------------------
   6. Filtreleme Bölümü
   ---------------------------------- */
.filter-section {
  background: var(--surface);
  padding: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: 0 1.5rem;
}

.filter-bar+.filter-bar,
.filter-bar+.subcategory-filters {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.filter-bar .filter-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  margin-right: .5rem;
}

.filter-bar a {
  padding: .5rem 1rem;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.filter-bar a:hover {
  color: var(--brand-red);
  border-color: rgba(200, 25, 25, 0.2);
}

.filter-bar a.active {
  background: transparent;
  color: var(--brand-red);
  font-weight: 700;
  border-bottom: 3px solid var(--brand-red);
  border-radius: 0;
  box-shadow: none;
}

.subcategory-filters {
  padding: 0 1.5rem;
  display: none;
  /* JS ile açılacak */
}

.subcategory-filters.is-active {
  display: block;
}

.subcategory-filters .filter-bar a {
  background: #fff;
  border-color: var(--border-color);
  color: var(--text);
}

.subcategory-filters .filter-bar a:hover {
  background: var(--soft);
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.subcategory-filters .filter-bar a.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}


/* ----------------------------------
   7. Product Grid (NİHAİ DÜZELTME)
   ---------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

/* Isotope Layout Özel Izgara (Masonry için) */
.isotope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.isotope-grid .isotope-item {
  width: 100% !important;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .isotope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .isotope-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

/* Resim Alanı (Dikey - Üstte) */
.product-card .media {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--soft);
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .media img {
  transform: scale(1.05);
}

/* İçerik Alanı (Dikey - Altta) */
.product-card .body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.product-card .firm {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .25rem;
}

/* Başlık (En fazla 2 satır) */
.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: var(--text);
  line-height: 1.4;
  max-height: 3.22em;
  /* 1.15 * 1.4 * 2 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  /* uzun tek kelimeleri kırar */
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  text-decoration: underline;
}

.product-card .weight {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .75rem;
}

.product-card .price-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Butonları kartın dibine iter */
  margin-top: auto;
  gap: 1rem;
}

.product-card .price {
  color: var(--brand-red);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0;
}

.product-card .actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}

.product-card .actions form {
  margin: 0;
}


/* -------------------------
   8. Promo / Banner
   ------------------------- */
.promo {
  background: linear-gradient(180deg, var(--soft), rgba(255, 255, 255, 0.8));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.promo .left {
  flex: 1;
}

.promo .left h3 {
  font-size: 1.6rem;
}

.promo .cta {
  align-self: flex-start;
  margin-top: 1rem;
}

.promo .right img {
  width: 100%;
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}


/* -------------------------
   9. Markalar Alanı
   ------------------------- */
.brands-section {
  padding: 3rem 0;
  background: var(--surface);
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.brands-section h5 {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2rem;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

/* Products Page Sidebar & Layout */
.page-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.page-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.page-content {
  flex-grow: 1;
  min-width: 0;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--brand-dark);
  font-size: .95rem;
}

.filter-group select,
.search-box input {
  width: 100%;
  padding: .65rem .95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  transition: var(--transition);
}

.filter-group select:focus,
.search-box input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200, 25, 25, 0.1);
}

.search-box {
  display: flex;
  gap: .5rem;
}

.search-box button {
  border: none;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--brand-red-600);
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-row h1 {
  margin: 0;
  font-size: 2rem;
}

.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination a {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.brands-grid:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.brands-grid img {
  max-height: 45px;
  width: auto;
}

/* -------------------------
   10. Footer
   ------------------------- */
.footer {
  background: var(--brand-dark);
  color: #e9f0fb;
  padding: 60px 0 30px;
}

.footer .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer h5 {
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: .88rem;
  text-align: center;
}


/* -----------------------------
   11. Mobil Uyumluluk
   ----------------------------- */

/* ---- Mobil menü overlay + çekmece kapatma ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-short), visibility 300ms;
  z-index: 90;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.drawer-close {
  display: none;
}

/* Mobil cekmece ekstraları masaüstünde gizli */
.drawer-search,
.drawer-call {
  display: none;
}

/* Tablet & Küçük Laptop */
@media (max-width: 1024px) {

  .drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--soft);
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
  }

  .drawer-close:hover {
    background: var(--brand-red);
    color: #fff;
  }

  /* Mobil menüyü göster */
  .navbar-toggler {
    display: block;
    z-index: 101;
  }

  .navbar-toggler.active .icon-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar-toggler.active .icon-bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggler.active .icon-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 90vw);
    height: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 4rem 1.1rem 2.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 400ms cubic-bezier(.2, .9, .3, 1);
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* --- Mobil akordeon menü (basit ve büyük) --- */
  .navbar .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .nav > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav > li > a {
    padding: 1rem .25rem;
    font-size: 1.1rem;
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  /* Ürünler/Firmalar açılır ok */
  .dropdown-toggle::after {
    margin-left: auto;
    transition: transform 250ms var(--ease-short);
    border-top-width: 6px;
  }

  .nav-item-dropdown.open > .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Açılır paneller: sadece .open'da görünür (akordeon) */
  .dropdown-menu,
  .mega-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    width: 100%;
    background: transparent;
  }

  .nav-item-dropdown.open > .dropdown-menu,
  .nav-item-dropdown.open > .mega-menu {
    display: block;
  }

  .mega-menu .container {
    padding: 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-menu-col {
    padding: 0;
  }

  .mega-menu-col h5 {
    margin: .35rem 0 .25rem;
    border: none;
    padding: 0;
    font-size: 1rem;
  }

  .mega-menu-col h5 a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .6rem .75rem;
    font-size: 1rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    background: var(--soft);
    margin-bottom: .35rem;
  }

  .mega-menu-col h5 a::after {
    content: '›';
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--brand-red);
  }

  /* Alt kategoriler her zaman açık - teknoloji bilmeyen kullanıcı için sade */
  .mega-sub-toggle {
    display: none;
  }

  .mega-menu-col .mega-menu-sublist.mega-sub-collapsed {
    max-height: none;
  }

  .mega-menu-sublist li a {
    padding: .65rem 1.25rem;
    font-size: .95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .dropdown-menu li a {
    padding: .85rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .dropdown-divider {
    margin: .5rem 0;
  }

  /* Sepet linki vurgulu */
  .nav .nav-cta,
  .nav > li > a[href*="cart_add"] {
    color: var(--brand-red);
    font-weight: 700;
  }

  .nav .nav-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* Açılan çekmece */
  .navbar .nav-wrapper.is-active {
    right: 0;
  }

  /* Mobil menü dropdown'ları */
  .nav-item-dropdown {
    width: 100%;
  }

  /* --- Çekmece içi arama (basit) --- */
  .drawer-search {
    display: flex;
    gap: .5rem;
    margin: 1.25rem 0 0;
  }

  .drawer-search input {
    flex: 1;
    min-height: 50px;
    padding: .7rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--soft);
    color: var(--text);
    font-size: 16px;
  }

  .drawer-search input:focus {
    border-color: var(--brand-red);
    outline: none;
    background: #fff;
  }

  .drawer-search button {
    min-width: 52px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Çekmece altı: Hemen Ara butonu --- */
  .drawer-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
  }

  .drawer-call svg {
    flex-shrink: 0;
    fill: currentColor;
  }
}

/* Isotope Animasyonları */
.isotope-item {
  transition: all 0.4s var(--ease-short);
}

.isotope-grid .isotope-item {
  opacity: 1;
  transform: scale(1);
}

.isotope-grid .isotope-item.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Filtreleme aktifken - kırmızı alt çizgi */
.filter-bar a.active {
  background: transparent !important;
  color: var(--brand-red) !important;
  border-color: transparent !important;
  border-bottom: 3px solid var(--brand-red) !important;
  font-weight: 700;
  box-shadow: none !important;
}

/* Ürün kartı hover */
.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Mobil */
@media (max-width: 768px) {
  /* Alt menü için yer aç */
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  /* Ust menu tamamen iptal — sadece ortada logo bandı */
  .navbar {
    position: static;
    box-shadow: none;
    padding: .35rem 0;
  }

  .navbar .container {
    justify-content: center;
  }

  .navbar .brand span {
    display: none;
  }

  .navbar .brand .logo {
    width: 64px;
    height: 64px;
  }

  .navbar .nav-wrapper,
  .navbar-toggler,
  .nav-overlay {
    display: none !important;
  }

  /* Hero */
  .hero {
    padding: 44px 0 48px;
    border-radius: 0 0 32px 32px;
  }

  .hero .inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 0 16px;
  }

  .hero .left {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero .actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero .actions .btn {
    min-height: 48px;
    padding: .8rem 1.4rem;
  }

  .hero .right {
    display: none;
  }

  /* Filtreler: yatay kaydırmalı çipler */
  .filter-section {
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    padding: 1rem 0;
  }

  .filter-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: .5rem;
    padding: 0 1rem .35rem;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-bar .filter-label {
    flex: 0 0 auto;
    font-size: .85rem;
    margin-right: .25rem;
  }

  .filter-bar a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .45rem .95rem;
    font-size: .92rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--soft);
  }

  .filter-bar a.active {
    background: rgba(200, 25, 25, 0.08) !important;
    border-color: var(--brand-red) !important;
    border-bottom: 1px solid var(--brand-red) !important;
  }

  .filter-bar+.filter-bar,
  .filter-bar+.subcategory-filters {
    margin-top: .75rem;
    padding-top: .75rem;
  }

  .subcategory-filters {
    padding: 0 1rem;
  }

  /* İçerik boşlukları */
  .container {
    padding: 0 16px;
  }

  .content-section {
    padding-top: 2rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  /* Promo */
  .promo {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .promo .cta {
    align-self: center;
  }

  /* Sidebar sayfaları */
  .page-layout {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .page-sidebar {
    width: 100%;
    padding: 1rem;
  }

  /* Formlar - iOS zoom engeli */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .filter-group select,
  .search-box input {
    padding: .7rem .85rem;
  }

  .btn {
    min-height: 44px;
  }

  /* Üst bar gizli (telefon mobil menude "Ara" butonunda) */
  .top-bar {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer .inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0 16px;
  }

  .footer .inner>div {
    width: 100%;
  }

  .footer .installAppBtn {
    max-width: 260px;
    margin: 0 auto;
  }

  /* Mobil alt menü (CTA bar) */
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(10, 30, 60, 0.12);
    z-index: 80;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-cta a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: .5rem 0 .45rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    position: relative;
  }

  .mobile-cta a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-cta a svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
  }

  .mobile-cta .cta-cart {
    background: var(--brand-red);
    color: #fff;
  }

  .mobile-cta .cta-cart .badge {
    position: absolute;
    top: 6px;
    right: 14px;
    background: var(--brand-dark);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
}

/* Tablet genişlik: ürün gridi 2 kolon */
@media (max-width: 992px) and (min-width: 641px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .isotope-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    height: auto;
    min-height: 0;
  }
}

/* Küçük telefonlar */
@media (max-width: 640px) {
  .products-grid,
  .isotope-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .page-header-row h1 {
    font-size: 1.6rem;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Ürün kartı (dikey stil) mobilde */
  .product-card .price-actions-row {
    flex-wrap: wrap;
    gap: .6rem;
  }

  .product-card .actions {
    justify-content: flex-start;
    width: 100%;
  }

  .product-card .actions .btn-small,
  .product-card .actions form,
  .product-card .actions button {
    flex-grow: 1;
    text-align: center;
  }
}

/* -------------------------
   12. Accessibility
   ------------------------- */
:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}