/* -------------------------------------------------
 *  RESET & BASE
 * ------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #111827;
}

/* -------------------------------------------------
 *  MAIN LAYOUT
 * ------------------------------------------------- */
.home-slider-mobile{ display:block; }

.bz-main-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Yan bannerlər */
:root{
  --page-max: 100dvh;
  --ad-w: 27%;
  --ad-gap: -14px;
  --ad-top: 60px;
  --ad-radius: 12px;
}

.side-elanlar {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.side-elanlar .side-elan {
  position: fixed;
  top: var(--ad-top);
  width: var(--ad-w);
  height: var(--page-max);
  pointer-events: auto;
  display: block;
  transform: translateZ(0);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.12));
  overflow: hidden;
}

.side-elanlar .side-elan.left {
  left: calc(34.5% - (var(--page-max)/2) - var(--ad-gap) - var(--ad-w));
}

.side-elanlar .side-elan.right {
  right: calc(34.5% - (var(--page-max)/2) - var(--ad-gap) - var(--ad-w));
}

.side-elanlar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ad-radius);
  background: #f6f6f6;
}

/* -------------------------------------------------
 *  HEADER & TOP MENU
 * ------------------------------------------------- */

.main-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
  /*max-width: 1080px;*/
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 50px;
}

/* Hamburger */
.hamburger-menu {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: #10b981;
  transition: all 0.2s;
  border-radius: 8px;
}

.hamburger-menu:hover {
  background: #f0fdf4;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: 20px;
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.logo-subtitle {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}

/* Header right */
.catalog-btn {
  background: #10b981;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 15px;
}

.catalog-btn i {
  font-size: 18px;
}

.catalog-btn:hover {
  background: #059669;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-link:hover {
  color: #10b981;
}

.header-link i {
  font-size: 18px;
}

.login-btn {
  padding: 8px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.login-btn:hover {
  border-color: #10b981;
  color: #10b981;
}


 .find-btn {
  background: #10b981;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 12px 25px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 0 10px 10px 0;
  width: 101px;
  font-size: 15px;
}

  .elan-flags{
  display: none;
}
.new-elan-btn {

  padding: 12px 24px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-elan-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Side menu (mobil) */
.side-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: none;
}

.side-menu.active {
  display: block;
}

.side-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.side-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  animation: slideInLeft 0.3s ease;
  overflow-y: auto;
}

.side-menu-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.side-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.side-menu-close:hover {
  background: #f3f4f6;
}

.side-menu-body {
  padding: 20px;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h4 {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 600;
}

.menu-link {
  display: block;
  padding: 12px 0;
  color: #1f2937;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.menu-link:hover {
  color: #10b981;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 18px;
}

.social-btn:hover {
  background: #10b981;
  color: #fff;
}

/* -------------------------------------------------
 *  MEGA CATALOG DROPDOWN
 * ------------------------------------------------- */

.catalog-dropdown {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.catalog-dropdown.active {
  display: block;
}

.catalog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1;
}

/* Mega menyu */
.mega-catalog {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 99%;
  max-height: 640px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 360px 360px 1fr;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  z-index: 2;
  pointer-events: auto;
}

.mega-col {
  overflow: auto;
  max-height: 640px;
}

.mega-col-root {
  background: #f8fafc;
  border-right: 1px solid #eef2f7;
}

.mega-col-sub {
  background: #fff;
  border-right: 1px solid #eef2f7;
}

.mega-col-grand {
  background: #fff;
}

.mega-item {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
  border-left: 3px solid transparent;
}

.mega-item:hover {
  background: #f3f4f6;
}

.mega-item > .bi-chevron-right {
  position: absolute;
  right: 15px;
}

.mega-root .mega-ico {
  font-size: 20px;
  width: 26px;
  text-align: center;
  scrollbar-width: thin;
}

.mega-title {
  font-weight: 700;
  font-size: 15px;
  color: #6b7280;
  padding: 12px 16px 6px;
}

.mega-panel {
  display: none;
  padding: 6px 0;
}

.mega-panel.active {
  display: block;
}

.mega-empty {
  padding: 14px 16px;
  color: #9ca3af;
  font-size: 13px;
}

.mega-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 16px 16px;
}

.mega-tag {
  display: inline-block;
  padding: 8px 14px;
  background: #10b981;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.mega-tag:hover {
  background: #059669;
}

.mega-txt {
  font-size: 16px;
  font-weight: 500;
}

.mega-col-root::-webkit-scrollbar{
  width: 6px;
}

/* -------------------------------------------------
 *  PROFILE DROPDOWN
 * ------------------------------------------------- */

.profile-menu {
  position: relative;
}

.profile-trigger{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
}

.profile-trigger .avatar-circle{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f3f4f6;
  font-size:16px;
}

.profile-trigger .caret{
  font-size:12px;
  opacity:.7;
}

.profile-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:280px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  padding:10px;
  display:none;
  z-index:1000;
}

.profile-dropdown.show{
  display:block;
}

.pd-head{
  display:flex;
  gap:10px;
  padding:10px;
}

.pd-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#eef2ff;
  display:grid;
  place-items:center;
  font-size:20px;
  color:#4f46e5;
}

.pd-lines{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.pd-phone{
  font-weight:600;
}

.pd-id{
  font-size:12px;
  color:#6b7280;
}

.pd-item{
  width:100%;
  display:block;
  padding:10px 12px;
  text-align:left;
  border-radius:10px;
  color:#111827;
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
}

.pd-item:hover{
  background:#f9fafb;
}

.pd-item.danger{
  color:#b91c1c;
}

.pd-sep{
  height:1px;
  background:#f1f5f9;
  margin:6px 0;
}

/* -------------------------------------------------
 *  BANNER & SEARCH
 * ------------------------------------------------- */

.banner-section {
  position: relative;
}

.banner-row {

  margin: 0 auto;
}

.categories-center {
  position: relative;
  border-radius: 12px;
  padding: 0 0px;
}

.searchbar-wrap {
  display: flex;
  justify-content: center;
  margin: 3px 0 1px;
  position: relative;
  z-index: 20;
  margin-left: 273px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);

  width: 100%;
}

.searchbox {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.searchbox i {
  opacity: .6;
  margin-right: 6px;
}

.searchbox input {
  border: 0;
  outline: 0;
  width: 100%;
  height: 44px;
  font-size: 15px;
}

.searchbox .clear-btn{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  font-size:18px;
  line-height:1;
  opacity:.5;
  display:none;
  cursor:pointer;
}

.searchbox.has-value .clear-btn{
  display:block;
}

.divider {
  width: 1px;
  height: 28px;
  background: #e7e7e7;
}

.city-select{
  position:relative;
  display:inline-flex;
  align-items:center;
  background:#fff;
  border-radius:6px;
  padding:0 10px;
  min-width:220px;
  border:1px solid #ddd;
  padding:5px 5px;
}

.city-select > .bi-geo-alt{
  font-size:14px;
  color:#f97316;
  margin-right:4px;
}

.city-select-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:none;
  background:transparent;
  width:100%;
  padding:6px 0;
  font-size:14px;
  color:#4b5563;
  cursor:pointer;
}

.city-select-label{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.city-select .caret{
  font-size:12px;
  color:#6b7280;
  margin-left:6px;
}

.city-select-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  margin-top:4px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(15,23,42,0.12);
  max-height:260px;
  overflow-y:auto;
  padding:6px 0;
  z-index:999;
  display:none;
}

.city-select.open .city-select-dropdown{
  display:block;
}

.city-option{
  width:100%;
  text-align:left;
  background:transparent;
  border:none;
  padding:6px 14px;
  font-size:14px;
  color:#111827;
  cursor:pointer;
}

.city-option:hover{
  background:#f3f4f6;
}

.city-option.is-active{
  background:#fee2e2;
  font-weight:500;
}

/* Nazik scrollbar */
.city-select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.city-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.city-select-dropdown::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* Kateqoriya suggest box (search) */
.suggest-box{
  position:fixed;
  left:0;
  top:0;
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.14);
  padding:8px 0;
  max-height:420px;
  overflow:auto;
  z-index:1000;
}

.suggest-item{
  padding:10px 16px;
  cursor:pointer;
}

.suggest-item + .suggest-item{
  border-top:1px solid #f2f2f2;
}

.suggest-item:hover,
.suggest-item.active{
  background:#f6f7fb;
}

.suggest-title{
  font-weight:700;
  font-size:14px;
  line-height:1.2;
}

.suggest-sub{
  font-size:12px;
  color:#8e8e8e;
  margin-top:2px;
}

/* -------------------------------------------------
 *  CATEGORY SCROLLER
 * ------------------------------------------------- */

.categories-scroller-wrap{
  position: relative;
  /*padding: 10px 0;*/
  background:#fff;
}

.categories-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
}

.categories-scroll::-webkit-scrollbar {
  height: 6px;
}
.categories-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.categories-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 999px;
}
.categories-scroll::-webkit-scrollbar-thumb:hover {
  background: #a2a2a2;
}

.cat-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-decoration:none;
  padding:8px 6px;
  user-select:none;
  transition: transform .18s ease, opacity .18s ease;
  color:#222;
  min-height: 92px;
}

.cat-item:hover{
  transform: translateY(-2px);
}

.cat-icon{
  width:48px; height:48px;
  display:grid; place-items:center;
  margin-bottom:8px;
}

.cat-icon img{
  max-width: 50px;
  max-height: 50px;
  width:48px;
  height:48px;
  object-fit:contain;
  display:block;
}

.mega-icon-img{
  max-width: 50px;
  max-height: 50px;
}

.cat-title{
  text-align:center;
  font-size:.92rem;
  line-height:1.15rem;
  font-weight:500;
  color:#222;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width: 140px;
}
/* Ox düymələri (screenshot kimi xırda) */
.cat-scroll-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:28px;                 /* ✅ xırda */
  height:28px;                /* ✅ xırda */
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.10);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  transition: opacity .15s ease, transform .15s ease;
}

.cat-scroll-btn.left{ left:6px; }
.cat-scroll-btn.right{ right:6px; }

.cat-scroll-btn i{
  font-size:14px;             /* ✅ xırda icon */
  color:#6b7280;
}
.cat-scroll-btn.is-hidden{ display:none !important; }
.edge-mask{ pointer-events:none; } /* mask düyməyə mane olmasın */

/* ✅ SOLDADIRSA SOL OX GİZLƏNSİN, SAĞDADIRSA SAĞ OX GİZLƏNSİN */
.cat-scroll-btn.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateY(-50%) scale(.92);
}

/* mask-lar buttonları “boğmasın” */
.edge-mask{
  position:absolute;
  top:0; bottom:0;
  width:42px;
  z-index:2;
  pointer-events:none;
}
.edge-mask.left{ left:0; }
.edge-mask.right{ right:0; }

/* -------------------------------------------------
 *  SLIDER
 * ------------------------------------------------- */

.slider-container {
  max-width:1065px;
  margin: 5px auto 5px;
  padding: 0;
}

.home-slider {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 0px;
  height: 300px;
}

.slider-wrapper {
  display:flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide-item {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  height: 400px;
}

.slide-overlay {
  position:absolute;
  left:20px;
  bottom:20px;
  background: rgba(0,0,0,0.35);
  padding:16px;
  border-radius:8px;
  max-width:60%;
}

.slide-title {
  font-size:22px;
  margin:0 0 6px 0;
  font-weight:700;
}

.slide-subtitle {
  margin:0;
  font-size:14px;
  opacity:0.95;
}

/* Slider nav buttons */
.slider-btn {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.45);
  border:none;
  color:#fff;
  font-size:22px;
  padding:10px 14px;
  cursor:pointer;
  border-radius:6px;
  z-index:20;
}

.slider-btn.prev { left:12px; }
.slider-btn.next { right:12px; }

/* dots */
.slider-dots {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:10px;
  display:flex;
  gap:8px;
  z-index:20;
}

.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,0.4);
  border:none;
  cursor:pointer;
}

.dot.active {
  background:rgba(255,255,255,0.95);
}

/* -------------------------------------------------
 *  ADS LISTING
 * ------------------------------------------------- */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: #e8e8e8;
  padding: 10px 0px;
  margin-top: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-all {
  color: #374151;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}

.ads-section {
  padding: 10px 30px;
}

.elan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

/* Premium */
.premium-section {
  /*max-width: 1320px;*/
}

/* Ad card */
.elan-card {
  background: #fff;
  border-radius:15px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  padding:5px;

}

.elan-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.elan-image-container {
  position: relative;
}

.elan-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f3f4f6;
  border-radius:12px;
}

.elan-badges {
  position: absolute;
  top: -8px;
  right: 3px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.badge-group {
  display: flex;
  gap: 0;
}

.badge {
  background:none;
  padding: 4px 0;
  border-radius: 6px;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-vip,
.badge-premium {
  background: none;
  color: #fff;
}
.not-active {
  background: #43434300 !important;

}
/* Favorite */
.favorite-btn {
  background: none;
  color: #fff !important;
  width: 25px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 23px;
  color: #6a6a6aed !important;
  box-shadow: none;
  margin-top: 19px;
  margin-right: 5px;
}

.icon-heart-outline {
  text-shadow: none;
}

.favorite-btn.active i {
  color: #ef4444!important;
  text-shadow: none;
}

.elan-content {
  padding: 4px 5px;
  padding-top: 0;
}

.elan-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.elan-price {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.elan-title {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
  color:#000;
  height: 40px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.elan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.elan-meta i {
  font-size: 10px;
}

.elan-meta-line {
  font-size: 14px;
  color: #6b7280;
}

/* Store pill */
.elan-store-pill{
  display: inline-block;
  height: 21px;
  width: auto;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  line-height: 15px;
  padding: 3px 7px;
  border-radius: 3px;
  background: #9b30ff;
}

.store-badge{
  position: absolute;
  right: 2px;
  bottom: 8px;
  margin:4px;
}

/* VIP / Premium kiçik flag */
.elan-flags {
  display: flex;
  gap: 0;
  position: absolute;
  z-index: 9;
  left: 2px;
  bottom: 8px;
  background: #fff;
  width: auto;
  height: 22px;
  border-radius: 4px;
  margin: 4px;
}

.elan-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  font-size: 11px;
  border-radius: 4px;
}

.elan-flag-vip {
  color: #fff;
}

.elan-flag-premium {
  width: 27px;
  color: #92400e;
}

/* -------------------------------------------------
 *  MOBILE BOTTOM NAV
 * ------------------------------------------------- */

.mobile-bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 1100;
}

.mb-nav-item{
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
}

.mb-nav-item i{
  font-size: 20px;
}

.mb-nav-item.is-active{
  color: #10b981;
}
.mb-nav-item.is-active i{
  color: #10b981;
}

.mb-nav-center{
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: translateY(-22px);
  cursor: pointer;
}

.mb-nav-center i{
  font-size: 28px;
}

/* -------------------------------------------------
 *  ANIMATIONS
 * ------------------------------------------------- */

@keyframes slideInLeft{
  from{transform:translateX(-100%)}
  to{transform:translateX(0)}
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

/* -------------------------------------------------
 *  RESPONSIVE BREAKPOINTS
 * ------------------------------------------------- */

/* <= 1200px */
@media (max-width: 1200px) {
  .categories-grid {
    gap: 12px;
  }
  .category-item {
    min-width: 100px;
  }
  .elan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap:0px;
    padding: 0px 7px;
  }
  .gallery-zoom-icon{
    display: none;
  }
  .side-elanlar {
    display:none;
  }
}

/* <= 1024px (tablet) */
@media (max-width: 1024px){
  .header-link span{
    display:none;
  }
  .header-right{
    gap:12px;
  }
  .mega-catalog{
    grid-template-columns:1fr;
    max-height:70vh;
  }
  .mega-col{
    max-height:unset;
  }
  .mega-col-sub,
  .mega-col-grand{
    display:none;
  }
}

/* <= 768px (mobil əsas) */
@media (max-width: 768px){
  body{
    padding-bottom: 80px; /* mobil bottom nav üçün boşluq */
  }
    .new-elan-btn{
    display:none;
  }
.searchbar-wrap{
  display: none;
}
.cat-item{
  padding: 0px;
}
.slider-btn {
    display: none;
}
  .header-container {
    padding: 0 10px;
    gap: 12px;
  }
.elan-card{
  border: none;
    border-right: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    border-radius: 0;
    margin: 3px;
    gap: 0px !important;
    border-radius: 10px;
}

  .catalog-btn span{
    display:none;
  }
.suggest-box{
    width:calc(100vw - 40px)!important;
    left:20px!important;
}
  .find-btn {
  background: #10b981;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 12px 25px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 0 10px 10px 0;
  width: 101px;
  font-size: 17px;
}
  .header-link{
    display:none;
  }

  .new-elan-btn{
    padding:10px 16px;
    font-size:14px;
  }

  .side-menu-content{
    width:280px;
  }

  .searchbar {
    margin:0 8px;
  }

  .categories-center {
    padding: 0;
  }
.catalog-btn{
  display: none;
}
  .categories-scroller-wrap{
    padding: 8px 40px;
  }

  .categories-scroll{
    gap:6px;
    padding: 10px 0px;
    grid-auto-columns: minmax(96px, 1fr);
  }
/* ✅ categoriesScrollMobile: scrollbar gizli, scroll aktiv */
#categoriesScrollMobile{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;  /* iOS smooth */
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;          /* old Edge/IE */
}

#categoriesScrollMobile::-webkit-scrollbar{
  height: 0;
  display: none;                     /* Chrome/Safari */
}

  .cat-icon{
    width:42px;
    height:42px;
  }

  .cat-icon img{
    width:42px;
    height:42px;
  }

  .cat-title{
    font-size:13px;
  }

  .ads-section{
  padding:0px 3px;
  }

  .elan-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }

  .section-header{
    padding: 8px 8px;
  }

  .slider-container{
    padding: 0 0;
    margin: 0;
  }

  .slide-overlay{
    max-width: 90%;
    left:12px;
    right:12px;
    bottom:12px;
    padding:10px;
  }

  .slide-title{
    font-size:18px;
  }

  .mobile-bottom-nav{
    display:flex;
  }


  .home-slider {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 0px;
  height: 170px;
}

.slider-wrapper {
  display:flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide-item {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  height: 170px;
}

}

/* <= 576px (kiçik mobil) */
@media (max-width: 576px){
  .bz-main-content{
    padding: 0 0px;
  }

  .logo-subtitle{
    display:none;
  }

  .categories-scroller-wrap{
    padding: 0px;
  }

  .edge-mask.left{ left:32px; }
  .edge-mask.right{ right:32px; }

  /* 🔥 burada da 2 kart yan-yana qalır */
  .elan-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .elan-price{
    font-size:18px;
  }

  .elan-title{
    font-size:14px;
    height:auto;
  }

  .city-select{
    min-width: 0;
    flex:1;
  }

  .searchbar{
    border-radius: 10px;
  }
}

/* Desktop-only (bottom nav gizlə) */
@media (min-width: 769px){
  .mobile-bottom-nav{
    display:none;
  }

}


/* ---------------- MOBİL SEARCH OVERLAY ---------------- */

.mobile-search-overlay{
  position:fixed;
  inset:0;
  background:#ffffff;
  z-index:10020;
  display:none; /* default: görünmür */
}

.mobile-search-overlay.active{
  display:block;
}

.ms-page{
  height:100%;
  display:flex;
  flex-direction:column;
  background:#ffffff;
}

/* Topbar + search */
.ms-topbar{
  display:flex;
  align-items:flex-start;
  padding:calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  border-bottom:1px solid #e5e7eb;
}

.ms-back-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  margin-right:4px;
}

.ms-search-wrap{
  flex:1;
}

.ms-search-form{
  display:flex;
  align-items:center;
  gap:4px;
}

.ms-search-form input{
  flex:1;
  height:40px;
  border-radius:4px;
  border:1px solid #d1d5db;
  padding:0 10px;
  font-size:14px;
  outline:none;
}

.ms-search-form input:focus{
  border-color:#10b981;
  box-shadow:0 0 0 1px rgba(59,130,246,0.25);
}

.ms-search-btn{
  width:40px;
  height:40px;
  border-radius:4px;
  border:none;
  background:#10b981;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

/* hint */
.ms-hint{
  font-size:12px;
  color:#6b7280;
  margin-top:6px;
}

/* Body */
.ms-body{
  flex:1;
  overflow-y:auto;
  padding:10px 12px 20px;
  background:#ffffff;
}

/* location pill */
.ms-location-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:6px;
  background:#f3e8ff;
  border:1px solid #e9d5ff;
  margin-bottom:14px;
}

.ms-location-left{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.ms-location-left i{
  font-size:18px;
  color:#4f46e5;
  margin-top:2px;
}

.ms-location-text{
  display:flex;
  flex-direction:column;
}

.ms-location-main{
  font-size:13px;
  font-weight:600;
  color:#1f2937;
}

.ms-location-sub{
  font-size:11px;
  color:#6b7280;
}

.ms-location-close{
  width:26px;
  height:26px;
  border-radius:50%;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  color:#4b5563;
}

/* sections */
.ms-section{
  margin-top:10px;
}

.ms-section-title{
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  margin-bottom:4px;
  text-transform:uppercase;
}

.ms-empty{
  font-size:13px;
  color:#9ca3af;
}

/* city list */
.ms-city-list{
  list-style:none;
  margin:0;
  padding:0;
}

.ms-city-list li + li{
  margin-top:4px;
}

.ms-city-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 0;
  border:none;
  background:transparent;
  text-align:left;
  font-size:14px;
  cursor:pointer;
}

.ms-city-btn i{
  font-size:16px;
  color:#f97316;
}

/* ---------------- HEADER BUTTON DESIGN ---------------- */

/* Sağ tərəf konteyner */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop actions (auksion, mağaza, sevimli, mesaj, yeni elan) */
.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Link-tipli düymələr */
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  padding: 6px 10px;

  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}

.header-link i {
  font-size: 16px;
  color: #6b7280;
}

.header-link:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(16,185,129,0.18);
}

/* Yeni elan düyməsi */
.new-elan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(34,197,94,0.35);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.new-elan-btn i {
  font-size: 18px;
}

.new-elan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,163,74,0.45);
  opacity: .95;
}

/* Mobil actions (search + filter icon) */
.header-actions-mobile {
  display: none; /* desktopda gizli */
  align-items: center;
  gap: 8px;
}

/* Bütün mobil ikon düymələrinin bazası */
.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
background-color: #10b981;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.header-icon-btn i {
  line-height: 1;
}

/* konkret rənglər */
.header-icon-btn-search {
  background: #2563eb;   /* mavi – screenshotdakı kimi search */
}

.header-icon-btn-filter {
  background: #10b981;   /* yaşıl – filter */
}

/* tap effect */
.header-icon-btn:active {
  transform: translateY(1px) scale(.97);
  box-shadow: 0 1px 6px rgba(15,23,42,0.3);
  opacity: 0.9;
}

/* --------- RESPONSIVE --------- */

/* Mobil: yalnız iconlar görünsün, desktop düymələri gizlənir */
@media (max-width: 768px){
  .header-actions-desktop{
    display: none;
  }
  .header-actions-mobile{
    display: flex;
  }

  /* mobildə header linklər (əgər haradasa qalıbsa) daha kompakt olsun */
  .header-link{
    padding: 6px 8px;
    font-size: 13px;
  }
}

/* Desktop: mobil iconları gizli saxla (zaten default display:none amma safe üçün) */
@media (min-width: 769px){
  .header-actions-mobile{
    display: none !important;
  }
}

/* ======================================================
   ✅ MOBILE SUGGEST (ms-suggest-box / ms-suggest-item)
   Tap.az style
   ====================================================== */

.ms-suggest-box{
  background:#fff;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}

/* hər sətir */
.ms-suggest-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  background:#fff;
}

/* aradakı xətt */
.ms-suggest-item + .ms-suggest-item{
  border-top:1px solid #f1f5f9;
}

/* hover */
.ms-suggest-item:hover{
  background:#f8fafc;
}

/* sol blok: icon + text */
.ms-suggest-left{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}

/* icon */
.ms-suggest-ico{
  width:26px;
  height:26px;
  border-radius:8px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color:#6b7280;
  font-size:14px;
  margin-top:2px;
}

/* title + sub */
.ms-suggest-title{
  font-size:15px;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ms-suggest-sub{
  font-size:12px;
  color:#6b7280;
  margin-top:3px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* sağ ox */
.ms-suggest-arrow{
  flex:0 0 auto;
  color:#9ca3af;
  font-size:18px;
  margin-left:8px;
}



/* =========================================================
   THEME VARIABLES (Light / Dark) - bütün sayt üçün
   ========================================================= */
:root{
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft: #f3f4f6;
  --shadow: 0 8px 24px rgba(0,0,0,.10);
  --green: #10b981;
}

html[data-theme="dark"]{
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255,255,255,.10);
  --soft: rgba(255,255,255,.06);
  --shadow: 0 10px 26px rgba(0,0,0,.45);
}

/* bütün səhifələrə tətbiq */
body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* mövcud ağ blokları dark-da uyğunlaşdır */
.main-header{ background: var(--card) !important; border-bottom: 1px solid var(--border) !important; }
.searchbar, .filters, .elan-card, .elan-main-content, .seller-card, .elan-meta-card{
  background: var(--card) !important;
}
.section-header{ background: var(--soft) !important; }
.elan-title, .elan-price, .elan-price-main, .elan-title-main, .spec-value{ color: var(--text) !important; }
.spec-label, .elan-meta, .elan-meta-line{ color: var(--muted) !important; }
.border-bottom, .divider{ border-color: var(--border) !important; }

/* =========================================================
   ✅ SIDE MENU (MOBILE DRAWER)
   ========================================================= */
.sm-drawer{
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
}
.sm-drawer.active{ display:block; }

.sm-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
}

.sm-panel{
  position:absolute; top:0; left:0; bottom:0;
  width: 320px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow-y:auto;
  transform: translateX(-100%);
  transition: transform .22s ease;
  border-right: 1px solid var(--border);
}

.sm-drawer.active .sm-panel{ transform: translateX(0); }

.sm-top{
  display:flex;
  justify-content:flex-end;
  padding: 12px 12px 6px;
  border-bottom: 1px solid var(--border);
}

.sm-close{
right: 2px;
    width: 28px;
    height: 28px;
    position: absolute;
    border: 0;
    /* background: transparent; */
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 15px;
    top: 0;
}
.sm-close:hover{ background: var(--soft); color: var(--text); }

/* profile header */
.sm-profile{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.sm-profile-link{
  display:flex; gap: 12px;
  text-decoration:none;
  color: var(--text);
  align-items:center;
}
.sm-avatar{
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow:hidden;
  background: var(--soft);
  display:grid; place-items:center;
  flex: 0 0 auto;
}
.sm-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.sm-avatar-fallback{
  font-size: 22px;
  color: var(--muted);
}
.sm-profile-lines{ display:flex; flex-direction:column; line-height:1.15; }
.sm-profile-name{ font-weight: 800; font-size: 18px; }
.sm-profile-sub{ font-size: 13px; color: var(--muted); margin-top: 2px; }

/* menu items */
.sm-nav{ padding: 6px 0 14px; }
.sm-item{
  width:100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration:none;
  color: var(--text);
  border:0;
  background: transparent;
  font-size: 15px;
  cursor:pointer;
}
.sm-item i{ font-size: 18px; color: var(--muted); width: 22px; text-align:center; }

.sm-item:hover{ background: var(--soft); }
.sm-item:active{ transform: translateY(1px); }

.sm-form{ margin:0; }

.sm-item-btn{
  text-align:left;
}

/* accordion */
.sm-acc{ justify-content: space-between; }
.sm-acc > span{ margin-right:auto; }
.sm-chevron{ margin-left: auto; color: var(--muted); transition: transform .18s ease; }
.sm-acc[aria-expanded="true"] .sm-chevron{ transform: rotate(90deg); }

.sm-sub{
  padding: 4px 0 10px 50px;
}
.sm-sub-item{
  display:block;
  padding: 10px 10px;
  text-decoration:none;
  color: var(--text);
  font-size: 14px;
  border-left: 2px solid var(--border);
}
.sm-sub-item:hover{ background: var(--soft); border-left-color: var(--green); }

/* divider */
.sm-divider{
  height:1px;
  background: var(--border);
  margin: 8px 0;
}

/* dark toggle */
.sm-dark{
  justify-content: space-between;
  padding-right: 20px;
}
.sm-dark-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.sm-switch{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  padding: 0;
  margin-left: 16px;
  transition: background .18s ease, border-color .18s ease;
}

.sm-knob{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform .18s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
}

html[data-theme="dark"] .sm-switch{
  background: rgba(16,185,129,.34);
  border-color: rgba(16,185,129,.5);
}

html[data-theme="dark"] .sm-knob{
  transform: translate(20px, -50%);
}

.catalog-btn-mobile{
    padding-left:0px;
     display:none;
}

/* responsive */
@media (max-width: 768px){
  .sm-panel{ width: 280px; }
.cat-scroll-btn{
    display:none;
}
.catalog-btn-mobile{
    padding-left:0px;
     display:flex;
}
}




.sm-flag{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  margin-right: 2px;
}



/* ================================
   ✅ MOBILE CATEGORIES POPUP (mcat)
   Şəkildəki dizayn kimi
   ================================ */

/* default: desktopda gizlə */
.mcat{ display:none; }

/* yalnız mobil: göstər */
@media (max-width: 992px){
  .mcat{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    background:#f7faf8;
  }
  .mcat.is-open{ display:block; }

  .mcat__backdrop{
    position:absolute;
    inset:0;
    background: rgba(15,23,42,.18);
  }

  .mcat__panel{
    position:absolute;
    inset:0;
    background:#f7faf8;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .mcat__head{
    min-height:58px;
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 8px;
    background:#f7faf8;
  }
  .mcat__back{
    width:40px;height:40px;
    border:0;
    background:transparent;
    border-radius:10px;
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .mcat__back i{ font-size:20px; color:#111827; }
  .mcat__title{
    text-align:center;
    font-weight:800;
    font-size:20px;
    color:#111827;
  }
  .mcat__head-spacer{ width:40px; height:40px; }

  .mcat__search{
    margin:4px 14px 14px;
    border:1px solid #e8edf2;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 15px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,23,42,.06);
  }
  .mcat__search i{ color:#94a3b8; font-size:18px; }
  .mcat__search input{
    border:0;
    outline:0;
    background:transparent;
    width:100%;
    font-size:15px;
    color:#334155;
  }

  .mcat__grid{
    padding:0 14px 22px;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;
    overflow:auto;
    align-content:start;
  }
  .mcat__grid::-webkit-scrollbar{ width:4px; }
  .mcat__grid::-webkit-scrollbar-thumb{ background:#d1d5db; border-radius:999px; }
  .mcat__grid::-webkit-scrollbar-track{ background:transparent; }

  .mcat__item{
    text-decoration:none;
    color:#1f2937;
    background:#fff;
    border:1px solid #e7f3eb;
    border-radius:20px;
    padding:0 0 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    min-height:168px;
    box-shadow:0 14px 28px rgba(15,23,42,.06);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow:hidden;
  }
  .mcat__item:hover,
  .mcat__item:focus-visible{
    background:#fff;
    border-color:#c8ead8;
    box-shadow:0 18px 30px rgba(16,185,129,.12);
    transform:translateY(-2px);
    outline:none;
  }

  .mcat__icon{
    width:100%;
    height:118px;
    border-radius:0;
    background:#eefbf3;
    border:0;
    display:grid;
    place-items:center;
    overflow:hidden;
    flex:0 0 auto;
  }
  .mcat__icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    padding:8px;
  }
  .mcat__icon i{
    font-size:32px;
    color:#5b8b72;
  }

  .mcat__name{
    display:block;
    overflow:hidden;
    text-align:center;
    font-size:14px;
    line-height:1.25;
    font-weight:600;
    color:inherit;
    width:100%;
    padding:0 10px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    min-height:35px;
  }

  .mcat__empty{
    margin:8px 14px 22px;
    padding:18px 16px;
    border-radius:18px;
    background:#fff;
    color:#64748b;
    text-align:center;
    font-size:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
  }

  @media (max-width: 360px){
    .mcat__grid{
      gap:10px;
    }
    .mcat__item{
      min-height:138px;
      padding:0 0 12px;
    }
    .mcat__icon{
      width:100%;
      height:84px;
    }
    .mcat__name{
      font-size:13px;
      padding:0 8px;
    }
  }
}

.categories-scroll{
  overflow-y:hidden;
  overflow-x:auto;       /* ✅ auto olmalıdır */
}

.catalogue-svg-img{
        background-color: #10b981;
    color: #fff;
    height: 100%;
    WIDTH: 100%;
    border-radius: 10px;
    padding: 7px;
}

.elan-meta-bottom{ margin-top:8px; }

.elan-publisher{
  display:grid;
  grid-template-columns: 28px 1fr;
  column-gap:8px;
  align-items:start;
  min-width:0;
  text-decoration:none;
  color:#111827;
}

.elan-publisher-avatar{
  width:28px;height:28px;border-radius:999px;object-fit:cover;background:#f3f4f6;
}

.elan-publisher-top{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  margin-top:1px;
}

.elan-publisher-name{
  font-size:13px;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:160px;
}

.elan-pro-badge{
  font-size:10px;font-weight:700;
  padding:2px 6px;border-radius:6px;
  background:#ef4444;color:#fff;line-height:1;
  transform: translateY(1px);
}

/* ŞƏHƏR + TARİX: eyni sətr */
.elan-publisher-bottom{
  margin-top:2px;
  display:flex;
  align-items:center;
  justify-content:space-between; /* city solda, tarix sağda */
  gap:10px;
}

.elan-publisher-city{
  font-size:12px;color:#6b7280;font-weight:600;line-height:1.1;
}

.elan-date{
  font-size:12px;color:#6b7280;
  white-space:nowrap;
  line-height:1.1;
}


.elan-content{
  display:flex;
  flex-direction:column;
  min-height:115px; /* istəsən 110-130 arası oynada bilərsən */
}

.elan-main{
  /* yuxarı kontent */
}

.elan-meta-bottom{
  margin-top:auto;      /* əsas trik: həmişə aşağı itələyir */
  padding-top:8px;      /* title ilə arada nəfəs */
}

/* =========================
   DESKTOP HERO (sol list + slider + sağ banner)
   ========================= */
.home-hero{ display:none; }

@media (min-width: 992px){
  .slider-container{ display:none; } /* desktop-da altdakı tək slideri gizlət */

  .home-hero {
    display: grid;
    grid-template-columns: 272px 1fr 320px;
    gap: 0px;
    align-items: stretch;
    margin: 4px 0px 0px;
  }

  /* sol kateqoriya panel */
  .hero-left{
    background:#fff;
    border-radius:12px;
    overflow:visible; /* ✅ CRITICAL: Changed from hidden to visible */
    position:relative;
    margin-top:-48px;
  }
  .hero-left-head{
    display:flex;
    align-items:center;
    gap:10px;
    height:44px;
    padding:0 12px;
    background:#10b981;
    color:#fff;
    font-weight:800;
    font-size:14px;
    border-radius:12px 12px 0 0;
  }
  .hero-left-head i{ font-size:18px; }

  .hero-cat{
    height:calc(421px - 44px);
    overflow:auto;
    border-radius:0 0 12px 12px;
    background:#fff;   }
  .hero-cat-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    text-decoration:none;
    color:#1f2937;
    border-bottom:1px solid #f6f7fb;
    border-radius:14px;
    margin:2px 8px;
    transition:background 0.15s ease, color 0.15s ease;
  }
  .hero-cat-item:hover{ background:#f3f6fb; }
  .hero-cat-item.is-active{ 
    background:#f3f6fb;
    color:#f97316;
  }

  .hero-cat-ico{
    width:40px;height:40px;
    display:grid;place-items:center;
    flex:0 0 auto;
  }
  .hero-cat-ico img{ width:40px;height:40px; object-fit:contain; display:block; }
  .hero-cat-name{
    font-size:13px;
    font-weight:500;
    color:inherit;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    flex:1;
  }
  .hero-cat-arrow{ margin-left:auto; color:#c0c8d4; font-size:18px; flex-shrink:0; }

  /* ✅ FLYOUT (sub+grand) — slideri sıxmır */
  .hero-flyout{
    position:absolute;
    top:44px;                 /* head hündürlüyü */
    left:calc(100% + 0px);    /* paneldən sağa */
    width:660px;              /* 330 + 330 */
    height:calc(430px - 44px);             /* 380 - 44 */
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow:0 18px 40px rgba(15,23,42,.12);
    overflow:hidden;
    display:none; /* ✅ Hidden by default */
    z-index:50;
    transition:opacity 0.2s ease;
  }
  .hero-flyout.is-open{ 
    display:block;
    opacity:1;
  }

  .hero-flyout-inner{
    display:grid;
    grid-template-columns: 330px 330px;
    height:100%;
  }

  .hero-sub{
    border-right:1px solid #e5e7eb;
    height:100%;
    overflow:auto;
    padding:8px 0;
    background:#fff;
  }

  .hero-grand{
    height:100%;
    overflow:auto;
    padding:8px 0;
    background:#fff;
  }

  /* ✅ CRITICAL: Panel visibility */
  .hero-sub-panel, .hero-grand-panel{ 
    display:none;
  }
  .hero-sub-panel.active, .hero-grand-panel.active{ 
    display:block;
  }

  .hero-sub-item, .hero-grand-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 14px;
    text-decoration:none;
    color:#111827;
    border-radius:10px;
    margin:0 8px 4px;
    transition:background 0.15s ease;
    font-size:13px;
  }
  .hero-sub-item:hover, .hero-grand-item:hover{ background:#f8fafc; }
  .hero-sub-item.is-active{ 
    background:#f3f4f6;
    font-weight:600;
  }
  
  .hero-sub-name{
    font-weight:500;
  }
  .hero-sub-arrow{
    color:#9ca3af;
    font-size:12px;
  }

  /* orta slider konteyner */
  .hero-center{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
  }
  .hero-center .home-slider{ height:380px; }
  .hero-center .slide-item{ height:380px; }

  /* sağ bannerlər */
  .hero-right{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .hero-promo{
    display:block;
    height:184px;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
  }
  .hero-promo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }

  /* scroll bar incə */
  .hero-cat, .hero-sub, .hero-grand{
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .hero-cat::-webkit-scrollbar,
  .hero-sub::-webkit-scrollbar,
  .hero-grand::-webkit-scrollbar{ width:6px; }
  .hero-cat::-webkit-scrollbar-thumb,
  .hero-sub::-webkit-scrollbar-thumb,
  .hero-grand::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:999px; }
  .hero-cat::-webkit-scrollbar-track,
  .hero-sub::-webkit-scrollbar-track,
  .hero-grand::-webkit-scrollbar-track{ background:transparent; }
  
  /* ✅ grand yoxdursa flyout 1 sütun olsun */
  .hero-flyout.no-grand{
    width:330px;
  }
  .hero-flyout.no-grand .hero-flyout-inner{
    grid-template-columns: 1fr;
  }
  .hero-flyout.no-grand #heroGrandCol{
    display:none;
  }

  /* grand sütunu olanda əvvəlki kimi */
  .hero-flyout.has-grand{
    width:660px;
  }
}

/* =========================
   Z-INDEX HIERARCHY (ən vacib düzəliş)
   ========================= */

/* ✅ 1. Slider və digər adi elementlər - ən aşağı */
.hero-center,
.home-slider,
.slide-item,
.slider-btn{ 
  position: relative;
  z-index: 1; 
}

/* ✅ 2. Backdrop - ortada */
.suggest-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.suggest-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* ✅ 3. Banner section və searchbar - backdrop-dan yuxarı */
.banner-section{
  position: relative;
  z-index: 1060;
}

.searchbar-wrap{
  position: relative;
  z-index: 1060;
}

/* ✅ 4. Searchbox (input parent) - daha yuxarı */
.searchbox{
  position: relative;
  z-index: 1065;
}
.suggest-box{
  position: fixed;
  z-index: 1070;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  overflow:hidden;
}



/* ✅ Slider buttonlarını aşağı salmaq */
.home-slider .slider-btn,
.slider-btn.prev,
.slider-btn.next{
  z-index: 2 !important; /* suggest box-dan aşağı */
}

/* =========================
   categories scroller — screenshot kimi ağ panel hissi
   ========================= */
.categories-scroller-wrap{
  background:#fff;
  border-top:1px solid #e5e7eb;
  border-bottom:1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px){
  .categories-scroller-wrap{
    margin: 0 0px 10px;
    border:1px solid #e5e7eb;
    border-radius:12px;
  }
}
