@import url("logo-custom.php");

/* C:\xampp\htdocs\balborsasi\style.css?v=47.0 (FAZ 11.1 · toast/katman düzeltmesi) */

:root {
  --primary: #d97706; /* Bal sarısı / Kehribar */
  --primary-hover: #b45309;
  --primary-light: #fef3c7;
  --accent: #f59e0b; /* Altın sarısı */
  --accent-light: #fffbeb;
  --dark: #1e293b; /* Koyu toprak / arduvaz */
  --site-text-color: #000000; /* FAZ 9.6 · genel metin rengi (merkezi) */
  --dark-light: #334155;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --gray: #64748b;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Base radius — overridden dynamically by seo_helper.php */
  --radius: 12px;
  --radius-sm: 6px;     /* ~50%  of base */
  --radius-lg: 18px;    /* ~150% of base */
  --radius-xl: 24px;    /* ~200% of base */
  --radius-pill: 30px;  /* ~250% of base, capped at 50px */
  /* SubNavbar size controls */
  --subnavbar-height: auto;
  --subnavbar-width: 100%;
  /* FAZ 11.1 · Merkezi katman (z-index) ölçeği — çakışmayan katman sırası:
     normal içerik < sticky header < dropdown / mega menü < toast/bildirim < modal.
     Yeni bileşenler bu değişkenleri kullanmalı; rastgele 999999 gibi değerler
     yazılmamalıdır. */
  --bb-z-sticky: 100;    /* Sabit üst alan (.navbar) */
  --bb-z-dropdown: 1000; /* Header içi açılır menüler */
  --bb-z-nav: 1200;      /* Kategori mega menüsü */
  --bb-z-toast: 9000;    /* Sepet/favori/bildirim katmanı (her zaman en üstte) */
  --bb-z-modal: 10000;   /* Modal / çekmece katmanları */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #faf9f6;
  background-image: linear-gradient(rgba(250, 249, 246, 0.80) 0%, rgba(250, 249, 246, 0.80) 100%), url("uploads/honeycomb_bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--site-text-color, #000);
  line-height: 1.6;
}

/* Header & Navbar */
/* FAZ 9.6 · mobil kategori çekmecesi: UA varsayılan (mavi) link rengini engelle.
   ≤992px'teki !important kurallar hover/aktif renklerini korumaya devam eder. */
.drawer-cat-item { color: var(--site-text-color, #000); }
.navbar {
  background: #fbf7ee url('navbar_bg.png?v=20.0') no-repeat center top / 100% 100%;
  /* Üst alan yüksekliği panelden yönetilir (Marka & Tema › Üst Alan). Ayar boşsa mevcut 165px korunur. */
  min-height: var(--bb-header-min-height, 165px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--bb-z-sticky, 100);
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1550px;
  margin: 0 auto;
  /* Üst alan iç boşluğu panelden yönetilir. Ayar boşsa mevcut asimetrik değerler birebir korunur. */
  padding: var(--bb-header-pad-y, 1.4rem) var(--bb-header-pad-x, 2rem) var(--bb-header-pad-yb, 1.2rem) var(--bb-header-pad-x, 2rem);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 3rem;
}

.logo-img {
  /* Admin panelden ayarlanir (Tema > Logo & Kurumsal Kimlik).
     Deger ekranda gorunen yuksekliktir; header logosuna 1.25x buyutme
     uygulandigi icin taban yukseklik 1.25'e bolunur. */
  height: calc(var(--logo-h-desktop, 219px) / 1.25);
  width: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center left;
  transition: transform 0.25s ease;
}

.login-logo-img {
  max-width: 150px;
  width: 35%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.logo-desktop {
  display: block !important;
}

.logo-mobile {
  display: none !important;
}

/* Hide mobile drawer elements & close button on Desktop */
.mobile-menu-toggle-btn,
.mobile-category-drawer,
.mobile-drawer-overlay,
.mobile-dropdown-close-btn {
  display: none !important;
}

.footer-logo-img {
  width: var(--logo-w-footer, 235px);
  height: var(--logo-h-footer, 70px);
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--site-text-color, #000);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* Base style normalization for size alignment */
button, .btn-primary, .btn-outline {
  line-height: 1.25rem;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fffbeb 50%, #fafaf9 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--site-text-color, #000);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--site-text-color, #000);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

/* Filters & Search */
.filters-container {
  padding: 2rem 0;
  max-width: 1550px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  max-width: 550px;
  margin: -25px auto 2rem auto;
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  align-items: center;
}

.search-input {
  border: none;
  outline: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  flex-grow: 1;
  font-family: var(--font-sans);
  border-radius: var(--radius-pill);
}

.region-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: var(--site-text-color, #000);
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 25px;
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  height: 220px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-lab {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--success);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.badge-lab-mobile {
  display: none !important;
}

.badge-region {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-lg);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-vendor {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--site-text-color, #000);
  margin-bottom: 0.5rem;
}

.product-price-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price-original {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-price-final {
  font-size: 1.1rem;
  color: #ef4444;
  font-weight: 800;
  white-space: nowrap;
}

.product-price-normal {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.product-card-form {
  width: 100%;
}

.product-card-form button, .product-card-form a.btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .product-price-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .product-price-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-height: 44px !important;
  }

  .product-price-original {
    font-size: 0.72rem !important;
  }

  .product-price-final {
    font-size: 1.05rem !important;
  }

  .product-price-normal {
    font-size: 1.05rem !important;
  }

  .product-card-form {
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .product-card-form button, .product-card-form a.btn-primary {
    width: auto !important;
    padding: 0.42rem 0.72rem !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-sm) !important;
  }
}

/* Product Detail Page */
.detail-container {
  max-width: 1550px;
  margin: 1rem auto;
  padding: 0 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.detail-img-container {
  background-color: #f8fafc;
  border-radius: var(--radius);
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border);
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-meta {
  display: flex;
  flex-direction: column;
}

.detail-vendor-box {
  background-color: var(--accent-light);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Tabs */
.tabs-headers {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 2rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scroll-margin-top: 180px;
}

.tab-header {
  font-weight: 600;
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.tab-header.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.product-description-content {
  color: var(--site-text-color, #000);
  line-height: 1.7;
  font-size: 0.95rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.product-description-content .TD,
.product-description-content table {
  width: 100% !important;
  max-width: 750px !important;
  margin: 1.2rem 0;
  border-collapse: collapse !important;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0 !important;
}
.product-description-content table tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}
.product-description-content table tr:last-child {
  border-bottom: none;
}
.product-description-content table tr:nth-child(even) {
  background-color: #f8fafc;
}
.product-description-content table tr:hover {
  background-color: #f1f5f9;
}
.product-description-content table td,
.product-description-content table th {
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
}
.product-description-content table td:first-child,
.product-description-content table td.xl65 {
  font-weight: 600 !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  width: 32% !important;
  white-space: nowrap !important;
}
.product-description-content table td:last-child,
.product-description-content table td.xl66,
.product-description-content table td.xl67 {
  color: #475569 !important;
}
.product-description-content p {
  margin-bottom: 0.85rem;
}
.product-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Dashboard / Vendor Panel */
.dashboard-container {
  max-width: 1550px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

.sidebar {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item-link {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--site-text-color, #000);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-item-link:hover, .sidebar-item-link.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.dashboard-main {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0; /* Prevents contents from forcing grid column expansion */
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--site-text-color, #000);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--light);
  transition: all 0.2s ease;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background-color: var(--accent-light);
}

/* Alerts */
.alert-box {
  padding: 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.alert-box.info {
  background-color: var(--accent-light);
  border: 1px solid var(--primary-light);
  color: var(--primary-hover);
}

.alert-box.success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  background-color: var(--light);
  font-weight: 600;
  color: var(--site-text-color, #000);
}

/* Checkout */
.checkout-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.escrow-explanation {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* --- MOBILE RESPONSIVENESS MEDIA QUERIES --- */

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

@media (max-width: 768px) {
  /* Navbar Mobile Layout */
  .navbar-inner {
    flex-direction: column;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-inner > div {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .search-form {
    margin-top: -15px;
    width: 100%;
  }

  /* Swipable Category Filters (AirBnB style) */
  .region-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
  }

  .region-filters::-webkit-scrollbar {
    display: none; /* WebKit */
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
  }

  /* Grid Layouts */
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem 1rem;
    gap: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .detail-img-container {
    height: auto;
  }

  /* Detail Tabs Header Scrollable */
  .tabs-headers {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs-headers::-webkit-scrollbar {
    display: none;
  }

  /* Dashboard Adjustments */
  .dashboard-container {
    padding: 0 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-header a {
    width: 100%;
    justify-content: center;
  }

  .dashboard-main {
    padding: 1.2rem;
  }

  /* Checkout Adjustments */
  .checkout-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .product-img-wrapper {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Yanıp sönen iptal talebi butonu */
@keyframes cancel-alert-pulse {
  0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.5); }
  50%  { opacity: 0.7; box-shadow: 0 0 0 6px rgba(185, 28, 28, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}

.btn-cancel-alert {
  animation: cancel-alert-pulse 1.2s ease-in-out infinite !important;
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
}

.btn-cancel-alert:hover {
  background-color: #991b1b !important;
  transform: none;
}

/* Rating and Stars System */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.stars-container {
  color: #f59e0b; /* Amber gold */
  font-size: 0.95rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
}
.rating-text-muted {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.detail-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background-color: var(--accent-light);
  border: 1px solid rgba(217, 119, 6, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  transition: all 0.2s ease;
  user-select: none;
}
.detail-rating-summary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Header Auth Dropdown Styles */
.header-auth-container {
  position: relative;
  display: inline-block;
}

/* Hover bridge to prevent closing on gap */
.header-auth-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: none;
  z-index: 999;
}

.header-auth-container:hover::after {
  display: block;
}

.header-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-auth-trigger i,
.header-auth-trigger svg {
  color: var(--primary) !important;
  transition: all 0.2s ease;
}

.header-auth-trigger:hover,
.header-auth-container:hover .header-auth-trigger {
  color: #374151 !important;
  background-color: var(--primary-light);
}

.header-auth-trigger:hover i,
.header-auth-trigger:hover svg,
.header-auth-container:hover .header-auth-trigger i,
.header-auth-container:hover .header-auth-trigger svg {
  color: #374151 !important;
}

.header-auth-dropdown {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%) translateY(10px);
  width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  z-index: var(--bb-z-dropdown, 1000);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Upward pointing triangle */
.header-auth-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  z-index: calc(var(--bb-z-dropdown, 1000) + 1);
}

.header-auth-dropdown::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px;
  border-style: solid;
  border-color: transparent transparent var(--border) transparent;
  z-index: var(--bb-z-dropdown, 1000);
}

/* Show on hover */
.header-auth-container:hover .header-auth-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(50%) translateY(5px);
}

.header-auth-dropdown .btn-primary,
.header-auth-dropdown .btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.header-auth-dropdown .btn-primary {
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   ARAMA ÇUBUĞU · REFERANS TASARIM
   [ TURUNCU SOL ALAN (beyaz büyüteç) ] [ BEYAZ INPUT ] [ EĞİMLİ TURUNCU "Ara →" ]
   Eski dağınık override kuralları kaldırıldı; tek tutarlı blok.
   ========================================================================== */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: -25px auto 2.5rem auto;
  z-index: 99;
}

.search-form-new {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 60px;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #f6e3cd;
  border-radius: var(--radius-pill, 30px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form-new:focus-within {
  border-color: #fdba74;
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.15), 0 0 0 3px rgba(251, 146, 60, 0.10);
}

/* SOL: turuncu alan + beyaz büyüteç */
.search-icon-btn {
  flex: 0 0 auto;
  align-self: stretch;
  width: 66px;
  min-width: 66px;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(140deg, #fb923c 0%, #f97316 45%, #e2570b 100%);
  border-radius: var(--radius-pill, 30px) 0 0 var(--radius-pill, 30px);
  transition: filter 0.2s ease;
}

.search-icon-btn:hover { filter: brightness(1.05); }
.search-icon-btn:active { filter: brightness(0.96); }
.search-icon-btn:focus-visible { outline: 2px solid #fdba74; outline-offset: 2px; }

.search-icon-new,
.search-icon-btn svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  stroke: #ffffff;
  stroke-width: 2.4;
  flex-shrink: 0;
}

/* ORTA: beyaz arama alanı */
.search-input-new {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  outline: 0;
  background: #ffffff;
  padding: 0 14px 0 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--site-text-color, #1f2937);
}

.search-input-new::placeholder {
  color: #8c95a8;
  font-weight: 500;
  opacity: 1;
}

.search-clear-btn {
  flex: 0 0 auto;
  align-self: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #cbd5e1;
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background-color 0.2s ease;
}

.search-clear-btn:hover { background-color: #94a3b8; }
.search-clear-btn svg,
.search-clear-btn i {
  width: 10px;
  height: 10px;
  stroke: #ffffff;
  color: #ffffff;
  display: block;
  margin: auto;
}

/* SAĞ: eğimli başlayan turuncu "Ara →" butonu */
.search-submit-btn {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 152px;
  margin: 0;
  padding: 0 28px 0 48px;
  border: 0;
  box-sizing: border-box;
  border-radius: 0 var(--radius-pill, 30px) var(--radius-pill, 30px) 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  z-index: 2;
}

.search-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #e2570b 100%);
  clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--radius-pill, 30px) var(--radius-pill, 30px) 0;
  transition: filter 0.2s ease;
}

.search-submit-btn > * {
  position: relative;
  z-index: 1;
}

.search-submit-btn:hover::before { filter: brightness(1.05); }
.search-submit-btn:active::before { filter: brightness(0.96); }
.search-submit-btn:focus-visible::before { outline: 2px solid #fdba74; outline-offset: 2px; }

.search-submit-arrow {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .search-submit-btn {
    min-width: 92px;
    padding: 0 14px 0 30px;
    font-size: 12.5px;
    gap: 6px;
  }
  .search-submit-arrow { width: 14px; height: 14px; }
  .search-icon-btn { width: 52px; min-width: 52px; }
  .search-icon-new { width: 20px; height: 20px; }
}

.search-suggestions-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  padding: 1.5rem;
  display: none;
  box-sizing: border-box;
}

.suggestions-section {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.suggestions-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.8rem;
}

.clear-history-btn, .view-all-products {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.clear-history-btn:hover, .view-all-products:hover {
  text-decoration: underline;
}

.history-item {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.history-item:hover {
  color: var(--primary);
}

.show-more-history {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pop-product-card {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  min-width: 0 !important;
}

.pop-product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  transform: translateY(-1px);
}

.pop-product-img-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.pop-product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pop-product-info {
  flex-grow: 1;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pop-product-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: normal;
  margin-bottom: 2px;
}

.pop-product-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 3px;
}

.pop-product-badge {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-product-badge.equipment {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pop-product-badge.bal {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.popular-searches-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.search-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.search-tag.fire {
  background-color: #fff7ed;
  color: #ea580c;
}

.search-tag.fire:hover {
  background-color: #ffedd5;
}

/* Navbar Search & Action Layout Overrides (Desktop) */
.nav-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.navbar-inner .search-wrapper {
  margin: 4px 1.5rem 0 1.5rem !important;
  max-width: 720px !important;
  flex-grow: 1 !important;
  position: relative;
}

.navbar-inner .search-form-new {
  height: 60px !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #ffffff !important;
  border: 1px solid #f6e3cd !important;
  border-radius: var(--radius-pill, 30px) !important;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

.navbar-inner .search-form-new:focus-within {
  border-color: #fdba74 !important;
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.15), 0 0 0 3px rgba(251, 146, 60, 0.10) !important;
  transform: none;
}

.navbar-inner .search-wrapper .search-icon-btn {
  width: 66px !important;
  min-width: 66px !important;
  background: linear-gradient(140deg, #fb923c 0%, #f97316 45%, #e2570b 100%) !important;
  border-radius: var(--radius-pill, 30px) 0 0 var(--radius-pill, 30px) !important;
}

.navbar-inner .search-icon-new,
.navbar-inner .search-icon-btn svg {
  width: 24px !important;
  height: 24px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.navbar-inner .search-input-new {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  background: #ffffff !important;
  padding: 0 14px 0 22px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-align: left !important;
  color: var(--site-text-color, #1f2937) !important;
}

.navbar-inner .search-input-new::placeholder {
  color: #8c95a8 !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.navbar-inner .search-submit-btn {
  min-width: 152px !important;
  padding: 0 28px 0 48px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  gap: 9px !important;
}

.navbar-inner .search-suggestions-dropdown {
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
  top: calc(100% + 10px) !important;
  z-index: 1200 !important;
  border-radius: var(--radius-lg, 18px) !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(234, 88, 12, 0.07) !important;
}

.pop-product-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
  min-width: 0 !important;
}

.pop-product-info {
  flex-grow: 1;
  min-width: 0 !important;
}

/* Mega Menu Layout */
.sub-navbar {
  position: relative;
  background: white;
}

.mega-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  z-index: var(--bb-z-nav, 1200);
  padding: 2.5rem 0;
  box-sizing: border-box;
}

.mega-menu-panel:before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

.mega-menu-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.5fr;
  gap: 2.5rem;
  box-sizing: border-box;
}

.mega-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--site-text-color, #000);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-col-list a {
  color: var(--site-text-color, #000);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.mega-col-list a:hover {
  color: var(--primary) !important;
  transform: translateX(4px);
}

.mega-campaign-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
  box-sizing: border-box;
}

/* Header Action Buttons (Giriş Yap & Sepetim) pill container & glow */
.btn-fav-nav,
.header-auth-trigger,
#basket-button-nav {
  height: 42px !important;
  padding: 0 1.25rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  gap: 8px !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.25s ease !important;
}

.btn-fav-nav {
  /* Inherits size, height, and border-radius */
}

.header-auth-trigger {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border: 1.5px solid #f59e0b !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
}

.header-auth-trigger:hover {
  background: #ffffff !important;
  border-color: #d97706 !important;
  color: #ea580c !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.18) !important;
  transform: translateY(-2px);
}

#basket-button-nav {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.18) !important;
  border: 1.5px solid #f59e0b !important;
}

#basket-button-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.28) !important;
}

/* Sub-Navbar Menu Pills & Badges
   Boyut/renk/gölge değerleri dosyanın SONUNDAKİ "ÜST KATEGORİ MENÜSÜ" bölümünde
   --bb-sn-* değişkenleriyle yönetilir (panel: Marka & Tema → Üst Kategori Menüsü Tasarımı). */
.sub-navbar {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.sub-nav-link-btn {
  color: #1e293b !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: clamp(0.68rem, 0.78vw, 0.86rem) !important;
  height: clamp(28px, 2.1vw, 32px) !important;
  padding: 0 clamp(10px, 1vw, 15px) !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.4vw, 6px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sub-nav-link-btn i,
.sub-nav-link-btn svg {
  width: clamp(12px, 1.2vw, 14px) !important;
  height: clamp(12px, 1.2vw, 14px) !important;
}

.sub-nav-link-btn:after {
  display: none !important;
}

.sub-nav-link-btn:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-color: #ea580c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38) !important;
}

.sub-nav-link-btn:hover i,
.sub-nav-link-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* no extra position needed on trigger-container — panel anchors to .sub-navbar */

.mega-menu-trigger-container .sub-nav-link-btn {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.mega-menu-trigger-container .sub-nav-link-btn i,
.mega-menu-trigger-container .sub-nav-link-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.mega-menu-trigger-container:hover .sub-nav-link-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45) !important;
}

.mega-menu-trigger-container:hover .mega-menu-panel,
.mega-menu-trigger-container .mega-menu-panel:hover {
  display: block !important;
  animation: megaMenuFadeIn 0.22s ease-out forwards;
}

/* Transparent bridge between trigger and panel so hover doesn't break */
.mega-menu-trigger-container .mega-menu-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 24px;
  background: transparent;
  display: block;
}

@keyframes megaMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Stories / Honeycomb Highlights Bar (Petek Hücresi & Altıgen Tasarım)
   ========================================================================== */
.stories-wrapper {
  max-width: 1550px;
  margin: 1.5rem auto 0.5rem auto;
  padding: 0 2rem;
  position: relative;
  box-sizing: border-box;
}

.stories-inner-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: relative;
}

.stories-scroll-container {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 18px 12px 14px 12px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.stories-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 104px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  transform-origin: center bottom;
}

.story-hexagon-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.18));
  transition: all 0.3s ease;
}

.story-item:hover {
  transform: translateY(-2px) scale(1.05);
}

.story-item:hover .story-hexagon-wrapper {
  filter: drop-shadow(0 0 3px rgba(217, 119, 6, 0.8)) drop-shadow(0 0 6px rgba(217, 119, 6, 0.32));
}

/* Circular Ring Container (Instagram / Trendyol Story Ring) */
.story-circle-ring {
  width: 90px;
  height: 90px;
  border-radius: 50% !important;
  padding: 3px !important;
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  clip-path: none !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Ring colors according to badge or theme */
.story-circle-ring.ring-orange {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #d97706 100%);
}
.story-circle-ring.ring-red {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #b91c1c 100%);
}
.story-circle-ring.ring-purple {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 50%, #7e22ce 100%);
}
.story-circle-ring.ring-green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #047857 100%);
}
.story-circle-ring.ring-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #1d4ed8 100%);
}

.story-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50% !important;
  background: #ffffff;
  clip-path: none !important;
  overflow: hidden;
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.story-circle-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.story-item:hover .story-circle-inner img {
  transform: scale(1.1);
}

.story-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #ea580c;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  white-space: nowrap;
  letter-spacing: 0.3px;
  z-index: 10;
}

.story-badge.badge-orange { background: #ea580c; }
.story-badge.badge-red { background: #ef4444; }
.story-badge.badge-purple { background: #9333ea; }
.story-badge.badge-green { background: #059669; }
.story-badge.badge-blue { background: #2563eb; }

.story-title {
  margin-top: 8px;
  font-size: 0.80rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  max-width: 104px;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.25;
  min-height: 2.5em;
  max-height: 2.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

.story-item:hover .story-title {
  color: var(--primary);
}

/* Nav arrows for story slider */
.story-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: #334155;
}

.story-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.story-nav-btn.prev {
  left: -14px;
}

.story-nav-btn.next {
  right: -14px;
}

/* Social Media Nav Buttons */
.social-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(3px, 0.35vw, 5px) !important;
  height: clamp(28px, 2.1vw, 32px) !important;
  padding: 0 clamp(10px, 1vw, 15px) !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: clamp(0.64rem, 0.72vw, 0.8rem) !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.social-nav-btn i,
.social-nav-btn svg {
  width: clamp(12px, 1.2vw, 14px) !important;
  height: clamp(12px, 1.2vw, 14px) !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.28) !important;
}

.social-instagram:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.48) !important;
  color: #ffffff !important;
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%) !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.28) !important;
}

.social-facebook:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.48) !important;
  color: #ffffff !important;
}

.social-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.social-whatsapp:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5) !important;
  color: #ffffff !important;
}

.social-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

.social-youtube:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

/* Live Favorite Toast & Badge Bounce */
@keyframes favBadgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.fav-badge-pulse {
  animation: favBadgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-toast-notification {
  /* FAZ 11.1 · position:absolute + scroll ofseti bildirimi viewport dışına
     düşürebiliyordu; artık body altında sabit (fixed) katmanda. */
  position: fixed;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem !important;
  font-weight: 700;
  z-index: var(--bb-z-toast, 9000) !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  transform: translateY(4px);
  white-space: nowrap !important;
}

.fav-toast-notification.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (Does NOT affect desktop >= 993px)
   ========================================================================== */

@media (max-width: 992px) {
  /* Admin & Dashboard Grid Layout */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .sidebar {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  .sidebar-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.6rem !important;
    padding: 0.2rem 0 !important;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none !important;
  }

  .sidebar-menu li {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .sidebar-item-link {
    white-space: nowrap !important;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-pill) !important;
    border: 1.5px solid var(--border) !important;
    background: #ffffff !important;
    color: var(--site-text-color, #000) !important;
    transition: all 0.2s ease !important;
  }

  .sidebar-item-link.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
  }

  .customer-orders-mobile-header {
    display: block !important;
  }
  .mobile-status-tab {
    white-space: nowrap !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-pill) !important;
    border: 1.5px solid var(--border) !important;
    background: #ffffff !important;
    color: var(--site-text-color, #000) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
  }
  .mobile-status-tab.active {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }

  /* Native Mobile App Style Override for customer.php */
  body.page-customer {
    background-color: #f8fafc !important;
    background-image: none !important;
  }
  body.page-customer header.navbar,
  body.page-customer footer,
  body.page-customer .dashboard-header,
  body.page-customer .sidebar {
    display: none !important;
  }
  body.page-customer .dashboard-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
  }
  body.page-customer .dashboard-main {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.8rem !important;
    box-shadow: none !important;
    background-color: #f8fafc !important;
  }
  body.page-customer .mobile-app-header {
    display: flex !important;
  }
  body.page-customer .mobile-sub-navigation {
    display: flex !important;
  }
  .mobile-sub-nav-item {
    white-space: nowrap !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
  }
  .mobile-sub-nav-item.active {
    background: #ea580c !important;
    color: white !important;
  }

  .customer-invoices-table-wrapper {
    display: none !important;
  }
  .customer-invoices-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
  .address-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }



  /* Product Detail Grid Layout */
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .detail-gallery {
    position: static !important;
  }

  /* Table Horizontal Scrolling Wrapper */
  .data-table-wrapper,
  .card table,
  table.data-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .customer-orders-table-wrapper {
    display: none !important;
  }
  .customer-orders-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
}

@media (max-width: 992px) {
  /* CSS Grid & Flex Column Mobile Navbar System */
  .navbar {
    background: #ffffff !important;
    background-image: none !important;
    min-height: auto !important;
    padding: 0.6rem 0.8rem 0.6rem 0.15rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .navbar-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    row-gap: 0.65rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Mobile Top Row Brand Group (Centered Logo + Absolute Left Hamburger) */
  .nav-mobile-brand-group {
    grid-row: 1 !important;
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 34px !important;
  }

  /* Mobile Hamburger Button (Absolute Far Left Edge at 0) */
  .mobile-menu-toggle-btn {
    position: absolute !important;
    left: 0 !important;
    top: 7px !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    color: #1e293b !important;
    z-index: 10 !important;
  }

  .mobile-menu-toggle-btn svg,
  .mobile-menu-toggle-btn i {
    width: 22px !important;
    height: 22px !important;
    stroke: #1e293b !important;
    stroke-width: 2.2px !important;
    pointer-events: none !important;
  }

  /* Slide-Out Category Drawer Overlay */
  .mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: block !important;
    pointer-events: none !important;
  }

  .mobile-drawer-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Slide-Out Category Drawer Panel */
  .mobile-category-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 280px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15) !important;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-category-drawer.active {
    left: 0 !important;
  }

  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.2rem 1.4rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #fffbeb !important;
  }

  .drawer-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #1e293b !important;
  }

  .drawer-close-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
  }

  .drawer-body {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    padding: 1rem 0.8rem !important;
  }

  .drawer-category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .drawer-cat-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius) !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
  }

  .drawer-cat-item i, .drawer-cat-item svg {
    width: 18px !important;
    height: 18px !important;
    color: #f59e0b !important;
    stroke: #f59e0b !important;
  }

  .drawer-cat-item:hover, .drawer-cat-item.active {
    background: #fff7ed !important;
    color: #ea580c !important;
  }

  .drawer-cat-item.highlight {
    background: #fef2f2 !important;
    color: #ef4444 !important;
  }

  .drawer-cat-item.highlight i, .drawer-cat-item.highlight svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
  }

  .navbar-inner .logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    height: 26px !important;
    text-align: center !important;
  }

  .logo-img {
    max-height: var(--logo-h-mobile, 26px) !important;
    height: var(--logo-h-mobile, 26px) !important;
    width: auto !important;
  }

  .login-logo-img {
    max-width: 90px !important;
    width: 25% !important;
    height: auto !important;
  }

  .logo-desktop {
    display: none !important;
  }
  .logo-mobile {
    display: inline-block !important;
    max-height: var(--logo-h-mobile, 26px) !important;
    height: var(--logo-h-mobile, 26px) !important;
    width: auto !important;
    filter: grayscale(100%) opacity(0.85) !important;
  }

  /* Right Column: Action Buttons Group */
  .nav-actions-group,
  .navbar-inner > div:last-child {
    position: absolute !important;
    top: 6px !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    width: auto !important;
    height: 34px !important;
  }

  /* Pure minimalist icons (no heavy backgrounds, no borders) */
  .btn-fav-nav,
  .header-auth-container,
  .header-auth-trigger,
  #basket-button-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155 !important;
    position: relative !important;
    text-decoration: none !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mobile Icon Order: [Üye / Hesabım (Sol)] -> [Favorilerim (Orta)] -> [Sepetim (En Sağ)] */
  .header-auth-container {
    order: 1 !important;
    left: 5px !important;
  }
  .btn-fav-nav {
    order: 2 !important;
  }
  #basket-button-nav {
    order: 3 !important;
  }
  .btn-fav-nav *, #basket-button-nav * {
    pointer-events: none !important;
  }

  .btn-fav-nav i, .btn-fav-nav svg,
  .header-auth-container i, .header-auth-container svg,
  .header-auth-trigger i, .header-auth-trigger svg,
  #basket-button-nav i, #basket-button-nav svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    stroke: #334155 !important;
    stroke-width: 2px !important;
    fill: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Hide all text labels on mobile for clean pure icon look */
  .btn-fav-nav > span:not([id]),
  .header-auth-container span:not([style*="position: absolute"]),
  .header-auth-trigger span,
  #basket-button-nav span:not([style*="position: absolute"]) {
    display: none !important;
  }

  /* Trendyol Red Badge Counter for Cart & Favorites */
  #fav-badge-count-header,
  #basket-button-nav span[style*="position: absolute"] {
    top: -6px !important;
    right: -7px !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  }

  /* Mobil: aynı tasarım dili, küçültülmüş oranlar (yatay taşma yok) */
  .navbar-inner .search-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0.6rem auto 0.1rem auto !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .navbar-inner .search-form-new {
    width: 100% !important;
    height: 46px !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid #f6e3cd !important;
    border-radius: var(--radius-pill, 30px) !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.10) !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .navbar-inner .search-wrapper .search-icon-btn,
  #site-search-wrapper .search-icon-btn {
    width: 50px !important;
    min-width: 50px !important;
    align-self: stretch !important;
    border-radius: var(--radius-pill, 30px) 0 0 var(--radius-pill, 30px) !important;
  }

  .navbar-inner .search-icon-new,
  .navbar-inner .search-icon-btn svg,
  #site-search-wrapper .search-icon-new,
  #site-search-wrapper .search-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
    position: static !important;
    transform: none !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  .navbar-inner .search-input-new,
  #search-input-new {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #18181b !important;
    padding: 0 10px 0 14px !important;
    height: 100% !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .navbar-inner .search-input-new::placeholder,
  #search-input-new::placeholder {
    color: #8c95a8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
  }

  .navbar-inner .search-clear-btn {
    position: static !important;
    align-self: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background-color: #cbd5e1 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transform: none !important;
  }

  .navbar-inner .search-clear-btn:hover { background-color: #94a3b8 !important; }

  .navbar-inner .search-clear-btn svg,
  .navbar-inner .search-clear-btn i {
    width: 9px !important;
    height: 9px !important;
    stroke-width: 3.2 !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
    margin: auto !important;
  }

  .navbar-inner .search-submit-btn,
  #site-search-wrapper .search-submit-btn {
    min-width: 94px !important;
    align-self: stretch !important;
    padding: 0 14px 0 22px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    gap: 6px !important;
    border-radius: 0 var(--radius-pill, 30px) var(--radius-pill, 30px) 0 !important;
  }

  .navbar-inner .search-submit-btn::before,
  #site-search-wrapper .search-submit-btn::before {
    clip-path: polygon(29px 0, 100% 0, 100% 100%, 0 100%) !important;
  }

  .navbar-inner .search-submit-arrow,
  #site-search-wrapper .search-submit-arrow {
    width: 14px !important;
    height: 14px !important;
  }

  .search-suggestions-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 1.2rem !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -5px rgba(0,0,0,0.04) !important;
  }

  .suggestions-section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .suggestions-section:first-of-type .suggestions-section-header {
    margin-top: 0 !important;
    padding-top: 0.1rem !important;
    padding-right: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-dropdown-close-btn {
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #475569 !important;
    cursor: pointer !important;
    z-index: 100 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
  }

  .mobile-dropdown-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  .mobile-dropdown-close-btn svg,
  .mobile-dropdown-close-btn i {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.2px !important;
    stroke: #475569 !important;
  }

  .clear-history-btn,
  #clear-history-btn,
  .suggestions-section-header .clear-history-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 10 !important;
  }

  /* Completely Hide Sub-Navbar Categories Bar on Mobile (Since Categories moved to ☰ Drawer) */
  .sub-navbar {
    display: none !important;
  }

  /* Sub-Navbar Horizontal Scroll */
  .sub-navbar > div {
    padding: 0 1rem !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .sub-navbar > div > div:first-child {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    padding-bottom: 0.3rem !important;
    gap: 1rem !important;
  }

  .header-social-links {
    width: 100% !important;
    justify-content: center !important;
    overflow-x: auto !important;
    padding-bottom: 0.2rem !important;
  }

  /* Completely Hide Banners Section on Mobile */
  .banners-grid-wrapper {
    display: none !important;
  }

  /* Hide 'Yörelerine Göre Keşfedin' heading on mobile */
  .region-section-heading {
    display: none !important;
  }

  /* Stories Section Full Width Zero-Clipping Override (Mobile) */
  .stories-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .stories-inner-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .stories-scroll-container {
    width: 100% !important;
    padding: 0.85rem 1.2rem 0.65rem 1.2rem !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: flex !important;
    gap: 22px !important;
  }

  .story-nav-btn {
    display: none !important;
  }

  .stories-wrapper::-webkit-scrollbar,
  .stories-scroll-container::-webkit-scrollbar,
  .story-container::-webkit-scrollbar {
    display: none !important;
  }

  .story-item {
    flex: 0 0 auto !important;
    width: 94px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .story-hexagon-wrapper {
    width: 78px !important;
    height: 78px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border-radius: 50% !important;
  }

  .story-circle-ring {
    width: 78px !important;
    height: 78px !important;
    border-radius: 50% !important;
    clip-path: none !important;
    padding: 2.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .story-circle-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    clip-path: none !important;
    padding: 0 !important;
    border: 2px solid #ffffff !important;
    overflow: hidden !important;
  }

  .story-title {
    font-size: 0.76rem !important;
    max-width: 94px !important;
    width: 94px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    margin-top: 6px !important;
  }

  .detail-container {
    padding: 0 !important;
    margin: 1.5rem auto !important;
  }

  .fav-header-block {
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  /* Product Card Grid: 2 Columns on Mobile */
  .product-grid,
  .popular-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 0.5rem !important;
  }

  .product-card {
    border-radius: var(--radius) !important;
  }

  .product-img-wrapper {
    height: 150px !important;
  }

  .product-img {
    height: 100% !important;
    object-fit: contain !important;
  }

  .badge-region {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
    max-width: 62px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: var(--radius-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .badge-lab-desktop {
    display: none !important;
  }
  .badge-lab-mobile {
    display: inline-flex !important;
    position: static !important;
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    background-color: rgba(16, 185, 129, 0.85) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: var(--radius-sm) !important;
    align-items: center !important;
    gap: 2px !important;
    margin-bottom: 4px !important;
    width: fit-content !important;
    box-shadow: none !important;
  }

  .badge-region i, .badge-region svg,
  .badge-lab i, .badge-lab svg {
    width: 10px !important;
    height: 10px !important;
  }

  .btn-fav-card {
    top: 8px !important;
    right: 8px !important;
    width: 30px !important;
    height: 30px !important;
  }

  .btn-fav-card svg {
    width: 15px !important;
    height: 15px !important;
  }

  .product-info {
    padding: 0.8rem !important;
  }

  .fav-card-body {
    padding: 0.8rem !important;
  }

  .fav-card-region {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .fav-card-title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    height: 2.6rem !important;
    overflow: hidden !important;
  }

  .fav-card-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
  }

  .fav-card-price-val {
    font-size: 1.1rem !important;
  }

  .fav-card-btn {
    width: 100% !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-sm) !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .product-title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    min-height: 1.3rem !important;
    max-height: 2.6rem !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .product-price {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
  }

  .product-desc {
    display: none !important;
  }

  .product-license {
    display: none !important;
  }

  .product-rating-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0.5rem !important;
  }

  .product-rating-row .stars-container {
    font-size: 0.9rem !important;
    letter-spacing: 0px !important;
  }

  .product-rating-row .rating-text-muted {
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .product-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
    padding-top: 0.6rem !important;
  }

  .product-price-row form {
    width: 100% !important;
    margin: 0 !important;
  }

  .product-price-row .btn-primary {
    width: 100% !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-sm) !important;
    text-align: center !important;
  }

  /* Hero Slider Banner on Mobile */
  .hero-slider,
  .banner-carousel {
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1.5rem !important;
  }

  .banner-card {
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    min-height: auto !important;
  }

  .banner-content {
    max-width: 100% !important;
  }

  .banner-title {
    font-size: 1.5rem !important;
  }

  .banner-subtitle {
    font-size: 0.9rem !important;
  }

  .banner-img-col img {
    max-height: 200px !important;
    width: auto !important;
    margin-top: 1rem !important;
  }

  /* Product Details Page Meta & Title */
  .detail-meta h1 {
    font-size: 1.6rem !important;
  }

  .detail-meta .tabs-headers {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .tab-header {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    flex: 0 0 auto !important;
  }

  /* Cart & Checkout Grid */
  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Phone Optimizations */
  .product-grid,
  .popular-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .product-info {
    padding: 0.6rem !important;
  }

  .product-title {
    font-size: 0.82rem !important;
  }

  .social-nav-btn span {
    display: none !important;
  }

  .social-nav-btn {
    padding: 0.4rem 0.5rem !important;
  }
}

.customer-orders-table-wrapper {
  display: block;
}
.customer-orders-cards-wrapper {
  display: none;
}
.customer-invoices-table-wrapper {
  display: block;
}
.customer-invoices-cards-wrapper {
  display: none;
}
.desktop-only {
  display: block;
}
.mobile-only {
  display: none !important;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* Flash Campaign Styles */
.flash-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.flash-detail-banner {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .flash-card-badge {
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
    font-size: 0.64rem !important;
    padding: 3px 6px !important;
    border-radius: var(--radius-sm) !important;
    z-index: 6 !important;
  }

  .flash-detail-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    padding: 0.8rem 1rem !important;
    text-align: center !important;
  }

  .flash-detail-banner-timer-box {
    text-align: center !important;
  }
}

.mobile-app-header-custom {
  display: none !important;
}

@media (max-width: 992px) {
  .mobile-app-header-custom {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .product-img-wrapper .badge-region {
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
  }

  .product-card .product-img-wrapper {
    height: 200px !important;
  }

  .product-card .product-info {
    padding: 1.2rem !important;
  }

  .product-card .product-title {
    font-size: 1.08rem !important;
    line-height: 1.4 !important;
  }

  .product-card .product-desc {
    display: none !important;
  }
}

.product-license-desktop {
  display: none !important;
}

.product-license-mobile {
  display: none !important;
}

.product-trust-badges {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 3px !important;
  font-size: 0.72rem !important;
  color: #059669 !important;
  font-weight: 600 !important;
  margin: 0 0 0.4rem 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.product-trust-badges .trust-badge-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: 100% !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.product-trust-badges svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

/* Product Detail Trust & Benefits Bar (Photo 2) */
.product-trust-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  background: #f0fdf4 !important;
  border: 1px solid #dcfce7 !important;
  border-radius: var(--radius) !important;
  padding: 12px 18px !important;
  margin-top: 1.2rem !important;
  margin-bottom: 0.5rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.trust-bar-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.trust-bar-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #16a34a !important;
}

.trust-bar-icon svg {
  width: 26px !important;
  height: 26px !important;
  stroke: #16a34a !important;
  flex-shrink: 0 !important;
}

.trust-bar-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}

.trust-bar-title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #15803d !important;
  white-space: nowrap !important;
  letter-spacing: -0.2px !important;
}

.trust-bar-sub {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  .product-trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 14px !important;
    padding: 12px 14px !important;
  }
}

@media (max-width: 480px) {
  .product-trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 8px !important;
    padding: 10px 10px !important;
  }
  .trust-bar-title {
    font-size: 0.74rem !important;
  }
  .trust-bar-sub {
    font-size: 0.66rem !important;
  }
  .trust-bar-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
}


@media (max-width: 640px) {
  .product-trust-badges {
    font-size: 0.69rem !important;
    gap: 2px !important;
    margin-bottom: 0.35rem !important;
  }
  .product-trust-badges svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Product Short Summary (Under Title/Rating, Above Price) */
.product-short-summary {
  position: relative;
  margin: 0.45rem 0 0.85rem 0;
  line-height: 1.55;
  background-color: transparent;
}

.product-short-summary-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-short-summary-more {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 24%, #ffffff 100%);
  padding-left: 26px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary, #ea580c);
  text-decoration: none;
  line-height: 1.55;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.product-short-summary-more:hover {
  color: var(--primary-hover, #c2410c);
  text-decoration: underline;
}

.product-short-summary.has-overflow .product-short-summary-more {
  display: inline-flex;
  align-items: center;
}

/* ========================================================
   Product Detail Gallery - Left Vertical Thumbnails & Zoom
   ======================================================== */
.detail-img-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 480px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  position: relative !important;
}

/* Left Thumbnails Column */
.gallery-thumbnails-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 72px !important;
  max-height: 480px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex-shrink: 0 !important;
  padding: 2px 2px 2px 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.gallery-thumbnails-col::-webkit-scrollbar {
  width: 4px !important;
}
.gallery-thumbnails-col::-webkit-scrollbar-track {
  background: transparent !important;
}
.gallery-thumbnails-col::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}

/* Thumbnail Item */
.gallery-thumb-item {
  width: 68px !important;
  height: 68px !important;
  border-radius: var(--radius-sm, var(--radius)) !important;
  border: 1.5px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  padding: 3px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.gallery-thumb-item:hover {
  border-color: #ea580c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

.gallery-thumb-item.active {
  border-color: #ea580c !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 1px #ea580c, 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

.gallery-thumb-item .gallery-thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: var(--radius-sm, var(--radius)) !important;
  display: block !important;
  pointer-events: none !important;
}

/* Main Image Wrapper */
.detail-main-img-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 480px !important;
  position: relative !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.detail-main-img-wrapper .detail-img,
.detail-main-img-wrapper .product-main-image-element {
  width: 100% !important;
  height: 100% !important;
  max-height: 440px !important;
  object-fit: contain !important;
  cursor: zoom-in !important;
  transition: transform 0.3s ease !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.detail-main-img-wrapper:hover .detail-img,
.detail-main-img-wrapper:hover .product-main-image-element {
  transform: scale(1.015) !important;
}

/* Zoom / Expand Button */
.detail-zoom-btn {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-sm, var(--radius)) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 8 !important;
  padding: 0 !important;
}

.detail-zoom-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #475569 !important;
  transition: stroke 0.2s ease, transform 0.2s ease !important;
}

.detail-zoom-btn:hover {
  background: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(234, 88, 12, 0.35) !important;
}

.detail-zoom-btn:hover svg {
  stroke: #ea580c !important;
  transform: scale(1.05) !important;
}

/* Responsive (Tablet & Mobile) */
@media (max-width: 768px) {
  .detail-img-container {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    min-height: auto !important;
  }

  .gallery-thumbnails-col {
    flex-direction: row !important;
    width: 100% !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px !important;
    padding-top: 2px !important;
  }

  .gallery-thumb-item {
    width: 60px !important;
    height: 60px !important;
  }

  .detail-main-img-wrapper {
    height: 360px !important;
    width: 100% !important;
  }

  .detail-main-img-wrapper .detail-img {
    max-height: 330px !important;
  }

  .detail-zoom-btn {
    width: 38px !important;
    height: 38px !important;
    right: 10px !important;
    bottom: 10px !important;
  }
}


.stars-container {
  color: #fbbf24; /* Beautiful Gold */
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.stars-container-empty-desktop {
  color: #cbd5e1; /* Light Gray */
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: none;
}

.rating-text-muted-desktop {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  display: none;
}

.rating-text-muted-mobile {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  display: inline;
}

.product-discount-badge {
  background-color: #fee2e2;
  color: #ef4444;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
  display: none;
  white-space: nowrap !important;
}

.product-card-region-inline {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin-bottom: 0.3rem !important;
}

.flash-card-badge-inline {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.72rem !important;
  color: #ea580c !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

@media (min-width: 992px) {
  .product-license-desktop {
    display: flex !important;
  }
  .product-license-mobile {
    display: none !important;
  }

  .product-card .product-vendor {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
  }

  .stars-container-empty-desktop {
    display: inline !important;
  }

  .rating-text-muted-desktop {
    display: inline !important;
  }

  .rating-text-muted-mobile {
    display: none !important;
  }

  .product-discount-badge {
    display: inline-block !important;
  }

  /* Price and Button Side-by-Side Sizing */
  .product-price-original {
    font-size: 0.78rem !important;
  }
  .product-price-final {
    font-size: 1.02rem !important;
  }
  .product-price-normal {
    font-size: 1.02rem !important;
  }
  .product-card .btn-primary {
    padding: 0.48rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap !important;
  }
  .product-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: auto !important;
  }
  .product-price-container {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* Hide mobile badge on desktop */
  .product-img-wrapper .flash-card-badge {
    display: none !important;
  }

  .product-license-desktop {
    margin-bottom: 0.4rem !important;
  }

  .product-card-region-inline {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }

  .product-card-delivery-inline {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }

  .flash-card-badge-inline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.76rem !important;
    color: #ea580c !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
  }
}

/* Hide tahlil badge on desktop image wrapper */
@media (min-width: 992px) {
  .badge-lab {
    display: none !important;
  }
}

/* Product image slot adjustments for Desktop (to prevent cropping and show full product labels) */
@media (min-width: 992px) {
  .img-slot-card {
    height: 120px !important;
    background: #f8fafc !important;
  }
  .img-slot-card img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
  }
  
  #edit-image-preview-grid img,
  #inline-image-preview-grid img,
  #modal-image-preview-grid img {
    height: 120px !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
  }
}

/* Admin Comment Form Visibility Rules */
@media (max-width: 991px) {
  .admin-desktop-review-form {
    display: none !important;
  }
  .admin-mobile-review-warning {
    display: flex !important;
  }
  .product-card .product-vendor {
    margin-bottom: 0.15rem !important;
  }
  .product-card .product-title {
    margin-bottom: 0.2rem !important;
  }
  .product-card .product-rating-row {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
  }
}
@media (min-width: 992px) {
  .admin-mobile-review-warning {
    display: none !important;
  }
  .admin-badge {
    display: none !important;
  }
}

/* ==========================================================================
   PROFESSIONAL ROW-BASED ORDER LIST SYSTEM (PRO-ROW LIST)
   ========================================================================== */
.pro-orders-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 2rem;
}

.pro-orders-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pro-order-row-header {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.3fr 1.2fr 1.5fr 1fr;
  background-color: #f8fafc;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
  color: #475569;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pro-order-row-header > div {
  text-align: center;
}

.pro-order-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.3fr 1.2fr 1.5fr 1fr;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

.pro-order-row:last-child {
  border-bottom: none;
}

.pro-order-row:hover {
  background-color: #fcfdfc;
  box-shadow: inset 4px 0 0 #ea580c;
}

.pro-order-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.88rem;
  width: 100%;
}

.pro-order-cell.action-cell {
  align-items: center;
}

.pro-order-code {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.pro-order-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.pro-order-products-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.pro-order-product-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background-color: #fafafa;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}

.pro-order-product-thumb:hover {
  transform: scale(1.1);
  z-index: 10;
}

.pro-order-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-order-products-more {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.pro-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

/* Payment badges */
.badge-pay-cc { background-color: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-pay-transfer { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-pay-cod { background-color: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }

/* Status badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}

.status-pill-pending { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-pill-preparing { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-pill-shipped { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-pill-completed { background-color: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-pill-cancelled { background-color: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.pro-order-price-val {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* Actions */
.btn-pro-action {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  width: fit-content;
}

.btn-pro-action:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-pro-action-primary {
  background-color: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

.btn-pro-action-primary:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

/* Responsive adjust for Pro-Row */
@media (max-width: 992px) {
  .pro-order-row-header {
    display: none;
  }
  
  .pro-order-row {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 0.85rem;
    border-bottom: 4px solid #f1f5f9;
  }
  
  .pro-order-cell {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
  }
  
  .pro-order-cell::before {
    content: attr(data-label);
    font-weight: 700;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-right: 1rem;
  }
  
  /* Reset for values that don't need label side-by-side */
  .pro-order-cell.no-label-mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .pro-order-cell.no-label-mobile::before {
    display: none;
  }
  
  .pro-order-cell.action-mobile {
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #e2e8f0;
  }
  
  .pro-order-cell.action-mobile::before {
    display: none;
  }
  
  .btn-pro-action {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }
}

/* Product Detail Zoom and Responsive Fixes */
.product-main-image-element {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.product-actions-wrapper {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .product-main-image-element {
    height: 340px;
    max-height: 340px;
  }
}

@media (max-width: 480px) {
  .product-actions-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .product-actions-wrapper button {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* Sub-Navbar Desktop Zoom & Layout Alignment */
.sub-navbar > div {
  width: 100% !important;
  max-width: 1550px !important;
  margin: 0 auto !important;
  padding: 0 clamp(0.5rem, 1.5vw, 2rem) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.sub-navbar > div > div:first-child {
  display: flex !important;
  gap: clamp(0.35rem, 0.7vw, 0.9rem) !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin-right: auto !important;
}

.sub-navbar > div > .header-social-links {
  display: flex !important;
  gap: clamp(0.25rem, 0.4vw, 0.5rem) !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
}

/* Tablet (993px - 1250px) Header Responsive Scaling */
@media (min-width: 993px) and (max-width: 1250px) {
  .navbar-inner .search-wrapper {
    max-width: 500px !important;
    margin: 4px 1rem 0 1rem !important;
  }
  .navbar-inner .search-submit-btn {
    min-width: 122px !important;
    padding: 0 22px 0 28px !important;
    font-size: 13px !important;
    gap: 8px !important;
  }
  .navbar-inner .search-submit-arrow { width: 15px !important; height: 15px !important; }
  .navbar-inner .search-wrapper .search-icon-btn { width: 58px !important; min-width: 58px !important; }
  .navbar-inner .search-icon-new { width: 22px !important; height: 22px !important; }
  .nav-actions-group {
    gap: 0.45rem !important;
  }
  .btn-fav-nav,
  .header-auth-trigger,
  #basket-button-nav {
    border-radius: var(--radius-sm) !important;
    gap: 4px !important;
  }
}

/* Dynamic Theme Radius for Banners */
.banners-grid-wrapper .banner-box,
.banner-box.left-banner,
.banner-box.right-banner {
  border-radius: var(--radius-xl, var(--radius, 16px)) !important;
}

.banner-box.left-banner .left-slide-item {
  border-radius: var(--radius-xl, var(--radius, 16px));
}

.banner-box .btn-primary,
.banner-box a.btn-primary,
.banner-box button.btn-primary {
  border-radius: var(--radius-sm, var(--radius, 8px)) !important;
}

.banner-box #rightProductsSlider > div {
  border-radius: var(--radius, 12px) !important;
}

.banner-box #rightProductsSlider img,
.banner-box #rightProductsSlider > div > div:first-child {
  border-radius: var(--radius-sm, 8px) !important;
}

/* Dynamic Slide-Out Cart Drawer Layout */
.cart-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  justify-content: flex-end !important;
  pointer-events: none !important;
}

.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer {
  width: 420px !important;
  max-width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0) !important;
}

.cart-drawer-header {
  padding: 1.5rem !important;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #ffffff !important;
}

.cart-drawer-title {
  margin: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--site-text-color, #000) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.cart-drawer-close {
  background: transparent !important;
  border: none !important;
  font-size: 2rem !important;
  color: var(--gray, #64748b) !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

.cart-drawer-close:hover {
  color: var(--primary, #d97706) !important;
}

.cart-drawer-body {
  padding: 1.5rem !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.cart-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4rem 1.5rem !important;
  text-align: center !important;
  color: var(--gray, #64748b) !important;
  margin: auto !important;
}

.cart-items-list-new {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.cart-item-card-new {
  display: flex !important;
  gap: 1rem !important;
  border-bottom: 1px solid var(--border, #f1f5f9) !important;
  padding-bottom: 1.25rem !important;
  position: relative !important;
}

.cart-item-img-new {
  width: 76px !important;
  height: 76px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid var(--border, #e2e8f0) !important;
}

.cart-item-info-new {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.cart-item-title-new {
  margin: 0 0 4px 0 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--site-text-color, #000) !important;
  line-height: 1.3 !important;
  padding-right: 20px !important;
}

.cart-item-meta-new {
  font-size: 0.8rem !important;
  color: var(--gray, #64748b) !important;
  margin-bottom: 2px !important;
}

.cart-item-remove-new {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: var(--gray, #94a3b8) !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

.cart-item-remove-new:hover {
  color: #ef4444 !important;
}

.cart-summary-box-new {
  margin-top: auto !important;
  border-top: 1px solid var(--border, #e2e8f0) !important;
  padding-top: 1.5rem !important;
}

/* Browser-native search & clear/cancel buttons removal */
input::-ms-clear,
input::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}

/* Tabbed Mega Menu Styles */
.mega-menu-panel {
  padding: 1rem 0;
  border-top: 3px solid var(--primary, #d97706);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.mega-menu-panel.force-closed,
.mega-menu-trigger-container:hover .mega-menu-panel.force-closed,
.mega-menu-trigger-container .mega-menu-panel.force-closed:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

.mega-menu-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.mega-menu-close-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: rotate(90deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.mega-menu-close-btn:active {
  transform: scale(0.92);
}

.mega-menu-close-btn:focus-visible {
  outline: 2px solid var(--primary, #d97706);
  outline-offset: 2px;
}

.mega-menu-tabs-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  height: 520px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
}

.mega-menu-tabs-sidebar {
  width: 320px;
  flex-shrink: 0;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.mega-sidebar-search-box {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mega-sidebar-search-box input {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
  color: #1e293b;
  box-sizing: border-box;
}

.mega-sidebar-search-box input:focus {
  border-color: var(--primary, #d97706);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.mega-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.mega-sidebar-list::-webkit-scrollbar {
  width: 5px;
}
.mega-sidebar-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.mega-tab-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  margin-bottom: 2px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  box-sizing: border-box;
}

.mega-tab-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mega-tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease;
}

.mega-tab-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-tab-btn-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mega-cat-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

.mega-cat-pill.sub {
  background: #e0f2fe;
  color: var(--site-text-color, #000);
}

.mega-tab-arrow {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mega-tab-btn:hover {
  background-color: #ffffff;
  color: var(--primary, #d97706);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.mega-tab-btn:hover .mega-tab-icon {
  color: var(--primary, #d97706);
}

.mega-tab-btn:hover .mega-tab-arrow {
  color: var(--primary, #d97706);
  transform: translateX(2px);
}

.mega-tab-btn.active {
  background-color: #ffffff;
  color: var(--primary, #d97706);
  font-weight: 700;
  border-left-color: var(--primary, #d97706);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mega-tab-btn.active .mega-tab-icon {
  color: var(--primary, #d97706);
}

.mega-tab-btn.active .mega-cat-pill {
  background: #fef3c7;
  color: #b45309;
}

.mega-tab-btn.active .mega-tab-arrow {
  color: var(--primary, #d97706);
}

.mega-menu-tabs-content {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.mega-tab-pane {
  display: none;
  animation: megaPaneFadeIn 0.18s ease-out;
}

.mega-tab-pane.active {
  display: block;
}

.mega-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  padding-right: 48px;
  margin-bottom: 1.25rem;
}

.mega-pane-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mega-pane-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #d97706);
}

.mega-pane-icon-badge i,
.mega-pane-icon-badge svg {
  width: 22px;
  height: 22px;
}

.mega-pane-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.mega-pane-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

.mega-pane-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--primary, #d97706) 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
}

.mega-pane-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  color: #ffffff !important;
}

.mega-pane-body.has-subcategories {
  display: flex;
  gap: 2rem;
}

.mega-sub-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  align-content: start;
}

.mega-sub-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  transition: all 0.2s ease;
}

.mega-sub-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.mega-group-title {
  margin: 0 0 0.6rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.mega-group-title a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.mega-group-title a:hover {
  color: var(--primary, #d97706);
}

.mega-group-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mega-group-item {
  color: #64748b;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  padding: 2px 0;
}

.mega-group-item:hover {
  color: var(--primary, #d97706);
  padding-left: 3px;
}

.mega-group-item.direct-view {
  color: var(--primary, #d97706);
  font-weight: 600;
  font-size: 0.8rem;
}

.mega-pane-side-products {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid #f1f5f9;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-side-shelf-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-side-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-mini-product-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-mini-product-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.mega-mini-img-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mega-mini-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.mega-mini-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega-mini-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-mini-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary, #d97706);
}

.mega-direct-grid-header {
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 1rem;
}

.mega-direct-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mega-direct-prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mega-direct-prod-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.mega-direct-img-box {
  height: 135px;
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.mega-direct-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.mega-direct-prod-card:hover .mega-direct-img-box img {
  transform: scale(1.05);
}

.mega-direct-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.mega-direct-prod-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.mega-direct-prod-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.2rem;
}

.mega-direct-prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.mega-direct-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary, #d97706);
}

.mega-direct-link-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  transition: color 0.15s ease;
}

.mega-direct-prod-card:hover .mega-direct-link-btn {
  color: var(--primary, #d97706);
}

.mega-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.mega-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.mega-trust-item i,
.mega-trust-item svg {
  flex-shrink: 0;
}

.mega-empty-nice-box {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

@keyframes megaPaneFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Popüler Aramalar Şeridi (Footer Üstü) ===== */
.popular-searches-strip {
  background: linear-gradient(135deg, #fffaf0 0%, #fef3c7 100%);
  border-top: 2px solid #f0c36d;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(217, 119, 6, 0.06);
}

.popular-searches-strip .strip-label {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #b45309;
  background: #ffedd5;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid #fdba74;
}

.tags-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d97706 #fef3c7;
  flex: 1;
  padding: 4px 0;
}

.tags-scroll::-webkit-scrollbar {
  height: 4px;
}

.tags-scroll::-webkit-scrollbar-track {
  background: #fef3c7;
  border-radius: 10px;
}

.tags-scroll::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 10px;
}

/* Şerit içindeki search-tag'ler için özelleştirme */
.popular-searches-strip .search-tag {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .popular-searches-strip {
    padding: 10px 14px;
    gap: 10px;
  }

  .popular-searches-strip .strip-label {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}

/* ===== Kategori Filtresi (Alt Navbar / Footer Üstü) ===== */
.footer-cat-filters {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b rgba(255,255,255,0.15);
  padding: 0.6rem 1.5rem;
  background: rgba(30, 41, 59, 0.97);
  border-top: 2px solid rgba(245, 158, 11, 0.35);
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  min-height: 52px;
}

.footer-cat-filters::-webkit-scrollbar {
  height: 3px;
}
.footer-cat-filters::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.footer-cat-filters::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 10px;
}

.footer-cat-filters .filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1 !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.footer-cat-filters .filter-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.footer-cat-filters .filter-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

@media (max-width: 768px) {
  .footer-cat-filters {
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    min-height: 46px;
  }
  .footer-cat-filters .filter-btn {
    font-size: 0.75rem;
    padding: 0.28rem 0.7rem;
  }
}

/* ============================================================================
   ÜST KATEGORİ MENÜSÜ (.sub-navbar) — YÖNETİM PANELİ DEĞİŞKENLERİ
   ----------------------------------------------------------------------------
   Panel: Pazarlama & İçerik › Marka & Tema › "Üst Kategori Menüsü Tasarımı"

   KURAL: Her var() çağrısının yedeği (fallback) BUGÜNKÜ tasarımın birebir
   aynısıdır. Panelden hiçbir değer girilmezse görünüm değişmez; yalnızca
   kullanıcı bir alanı doldurduğunda --bb-sn-* değişkeni devreye girer.
   ============================================================================ */

.sub-navbar {
  background: var(--bb-sn-bg, rgba(255, 255, 255, 0.88)) !important;
  border-top: var(--bb-sn-bt, 1px solid rgba(245, 158, 11, 0.25)) !important;
  border-bottom: var(--bb-sn-bb, 0 none transparent) !important;
  border-left: var(--bb-sn-bl, 0 none transparent) !important;
  border-right: var(--bb-sn-br, 0 none transparent) !important;
  border-radius: var(--bb-sn-radius, 0) !important;
  box-shadow: 0 var(--bb-sn-sh-y, 4px) var(--bb-sn-sh-blur, 15px) var(--bb-sn-sh-color, rgba(217, 119, 6, 0.08)) !important;
  /* Kenarlık dahil toplam yükseklik (box-sizing: border-box) */
  height: var(--subnavbar-height, 50px) !important;
  min-height: var(--bb-sn-min-h, var(--subnavbar-height, 50px)) !important;
  max-height: var(--bb-sn-max-h, none) !important;
  width: var(--subnavbar-width, 100%) !important;
  padding: var(--bb-sn-pad-y, 0) 0 !important;
  margin: var(--bb-sn-margin-y, 0) var(--bb-sn-margin-x, 0) !important;
  /* DİKKAT: display/flex-direction/justify-content burada YAZILMAZ.
     Mobil (≤992px) gizleme kuralı bu dosyada daha ÖNCE tanımlıdır ve bu blok
     onu geçersiz kılmamalıdır. Yerleşim kuralları yukarıdaki .sub-navbar bloğunda. */
}

.sub-navbar > div {
  max-width: var(--bb-sn-content-max, 1550px) !important;
  padding: 0 var(--bb-sn-pad-x, clamp(0.5rem, 1.5vw, 2rem)) !important;
  justify-content: var(--bb-sn-justify, space-between) !important;
  align-items: var(--bb-sn-align, center) !important;
}

/* ---- Kategoriler butonu (mega menü tetikleyicisi)
   Bu düğmenin renk/ölçü kuralları panelden değer girildiğinde storefront tarafından
   (seo_helper.php → bb_subnav_css) üretilir; ayar boşsa mevcut tasarım aynen korunur. */

/* ---- Açılır kategori paneli */
.sub-navbar .mega-menu-panel {
  width: var(--bb-sn-panel-w, 100%) !important;
  max-height: var(--bb-sn-panel-max-h, none) !important;
  background: var(--bb-sn-panel-bg, #ffffff) !important;
  border-top: var(--bb-sn-panel-border, 3px solid var(--primary, #d97706)) !important;
  border-radius: var(--bb-sn-panel-radius, 0) !important;
  box-shadow: 0 var(--bb-sn-panel-sh-y, 20px) var(--bb-sn-panel-sh-blur, 40px) var(--bb-sn-panel-sh-color, rgba(0, 0, 0, 0.12)) !important;
  padding: var(--bb-sn-panel-pad, 16px) 0 !important;
}

.sub-navbar .mega-menu-tabs-container,
.sub-navbar .mega-menu-tabs-content {
  background: var(--bb-sn-panel-bg, #ffffff) !important;
}

.sub-navbar .mega-tab-btn {
  color: var(--bb-sn-panel-link, #334155) !important;
  min-height: var(--bb-sn-row-h, 0) !important;
}

.sub-navbar .mega-tab-btn:hover,
.sub-navbar .mega-tab-btn.active {
  color: var(--bb-sn-panel-link-hover, #ea580c) !important;
}

.sub-navbar .mega-tab-btn:hover .mega-tab-icon,
.sub-navbar .mega-tab-btn.active .mega-tab-icon,
.sub-navbar .mega-tab-btn:hover .mega-tab-arrow,
.sub-navbar .mega-tab-btn.active .mega-tab-arrow {
  color: var(--bb-sn-panel-link-hover, #ea580c) !important;
}

.sub-navbar .mega-pane-title {
  color: var(--bb-sn-panel-text, #0f172a) !important;
}

/* HOVER ALANI (panel kapanma hatası düzeltmesi)
   Kategoriler butonunun kapsayıcısı, çubuğun TAM yüksekliğini kaplar. Böylece fare
   butondan aşağı, açılır panele inerken arada "ölü bölge" kalmaz; panel açık kalır.
   Panel bu kapsayıcının ÇOCUĞU olduğu için kapsayıcıdaki :hover panelde de geçerlidir.
   Konum/yükseklik tamamen CSS değişkeninden geldiği için 30–100px tüm değerlerde çalışır. */
/* Yükseklik yüzde yerine doğrudan CSS değişkeninden hesaplanır (her değerde kesin). */
.sub-navbar > div {
  min-height: calc(var(--subnavbar-height, 50px) - 1px) !important;
}

.sub-navbar .mega-menu-trigger-container {
  align-self: stretch !important;
  min-height: calc(var(--subnavbar-height, 50px) - 1px) !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* KÜÇÜK YÜKSEKLİKLER: buton ve pill'ler çubuktan taşmasın.
   Yalnız GÖRÜNEN yükseklik sınırlanır; panelde kayıtlı buton yüksekliği DEĞİŞMEZ,
   çubuk yeniden büyütüldüğünde buton kayıtlı yüksekliğine döner. */
.sub-navbar .mega-menu-trigger-container .sub-nav-link-btn,
.sub-navbar > div > div:first-child > a.sub-nav-link-btn,
.sub-navbar .social-nav-btn {
  max-height: calc(var(--subnavbar-height, 50px) - 1px) !important;
}

/* ============================================================================
   FAZ 10.2 · LOGO BAĞIMSIZ ÖLÇEKLENDİRME
   Amaç: --logo-h-desktop değeri değiştiğinde header yüksekliği, arama kutusu ve
   kategori menüsü (.sub-navbar) konumu DEĞİŞMEZ. Logo yalnızca kendi görünümünü
   etkiler. Hiçbir ayar girilmezse bugünkü görünüm birebir korunur:
   logo 90px görünür · header iç satırı 22.4px + 19.2px + 72px = 113.6px.
   ============================================================================ */
@media (min-width: 993px) {
  /* Logo satırının (header iç bölümü) yüksekliği sabit bir tasarım değişkeninden
     gelir; panel "Üst Alan iç boşluğu" değişirse satır yüksekliği de onunla
     birlikte değişir. Bugünkü değer 113.6px'dir (mevcut görünümle aynı). */
  .navbar-inner {
    height: calc(var(--bb-header-pad-y, 1.4rem) + var(--bb-header-pad-yb, 1.2rem) + var(--bb-header-logo-row-h, 72px));
  }

  /* Logo dikeyde ortalanır; kapsayıcı yüksekliği artık logo görselinden bağımsızdır. */
  .navbar .nav-mobile-brand-group { height: 100%; align-items: center; }
  .navbar .logo { height: 100%; align-items: center; }

  /* --logo-h-desktop artık GÖRÜNEN logo yüksekliğidir.
     Eskiden: height = değer / 1.25 + transform: scale(1.25) → yerleşim kutusu da
     büyüdüğü için header uzuyordu.
     Üst sınır = header iç yüksekliği − 8px güvenlik payı. Böylece logo header'ı
     büyütemez, üstündeki duyuru şeridine ve altındaki kategori çubuğuna taşamaz.
     (Header iç boşluğu panelden artırılırsa bu sınır da otomatik büyür.) */
  .navbar .logo-img.logo-desktop {
    height: min(var(--logo-h-desktop, 219px),
                var(--bb-logo-desktop-max,
                    calc(var(--bb-header-pad-y, 1.4rem) + var(--bb-header-pad-yb, 1.2rem)
                         + var(--bb-header-logo-row-h, 72px) - 8px)));
    width: auto;
    max-width: 100%;
    transform: none;
    object-fit: contain;
    transition: height 0.25s ease;
  }
}

/* Mobil / tablet (≤992px): logo satırı (marka grubu) 34px'dir ve mobil logoda
   temel .logo-img kuralındaki 1.25× büyütme geçerlidir. Panel değeri büyük
   girilse bile logo bu alanı aşmaz, arama satırının üzerine binmez. */
@media (max-width: 992px) {
  .navbar .logo-img.logo-mobile,
  .navbar .logo-img.logo-desktop {
    max-height: calc(var(--bb-logo-h-mobile-max, 34px) / 1.25) !important;
  }
}

/* ==========================================================================
   FAZ 11.1 · MERKEZİ TOAST / BİLDİRİM KATMANI
   --------------------------------------------------------------------------
   Kapsam: "Sepete eklendi" (showCartPopover), "Favorilere eklendi /
   Favoriden çıkarıldı" (showFavNotificationToast) ve kategori/arama
   sayfalarındaki "Sepete eklendi / Favorilere eklendi / hata" bildirimleri
   (#notification-toast). Hepsi tek merkezden yönetilir.

   KÖK NEDEN (eski durum):
   "Sepete eklendi" bildirimi JS ile `#basket-button-nav` (sepet butonu) İÇİNE
   ekleniyordu. Buton `<header class="navbar">` içinde ve header
   `position: sticky; z-index: 100` ile kendi STACKING CONTEXT'ini oluşturuyor.
   Bu yüzden bildirime verilen `z-index: 99999` yalnızca header'ın İÇİNDE
   geçerliydi; header'ın alt kenarını aşan kısmı sayfa içeriğinin (arama
   kutusu, stories şeridi, ürün kartları) arkasında kalıyordu.
   `.fav-toast-notification` ise `position: absolute` olduğu için kaydırmada
   viewport dışına düşebiliyordu.

   ÇÖZÜM: Bildirimler <body> altında, `position: fixed` ve merkezi
   `--bb-z-toast` katmanında yaşar. Hiçbir elemanın arkasında kalmaz,
   kaydırmadan etkilenmez ve boştayken tıklamayı engellemez.
   ========================================================================== */
#cart-success-popover,
#notification-toast,
.fav-toast-notification {
  position: fixed !important;
  z-index: var(--bb-z-toast, 9000) !important;
  pointer-events: none !important; /* Bildirim tıklamaları engellemez. */
}

/* Küçük ekranlarda yatay taşma olmaz. */
#cart-success-popover,
#notification-toast {
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
}
