:root {
  --brand: #009e8e;
}


input,
textarea,
select {
  font-size: 16px !important;
    transform: translateZ(0);
}
/* =========================
   BASE
========================= */
html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
   -webkit-overflow-scrolling: touch;

}

body {
  background: #f6f7f9;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  padding-top:50px;
}


#appInstallBanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-left img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.title {
  font-weight: 700;
  font-size: 14px;
}

.subtitle {
  font-size: 12px;
  color: #777;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.close {
  cursor: pointer;
  font-size: 16px;
  color: #999;
}
/* =========================
   DESKTOP DROPDOWN CLEAN UI
========================= */

#desktopDropdown {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 1px solid #eee;
}

/* 🔥 search input */
#desktopDropdown input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #eee;
  outline: none;
  font-size: 14px;
  background: #fafafa;
}

/* 🔥 label title */
#desktopDropdown .fw-bold {
  font-size: 13px;
  padding: 10px 14px;
  color: #666;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

/* 🔥 options list */
#desktopDropdown #pickerOptionList {
  max-height: 300px;
  overflow-y: auto;
}

/* 🔥 option */
#desktopDropdown .picker-option {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
  font-size: 14px;
}

/* hover */
#desktopDropdown .picker-option:hover {
  background: #f5f5f5;
}

/* 🔥 selected */
#desktopDropdown .picker-option input:checked + span,
#desktopDropdown .picker-option input:checked {
  color: #ff5a00;
  font-weight: 600;
}

/* 🔥 radio fix */
#desktopDropdown .picker-option input {
  width: 16px;
  height: 16px;
  accent-color: #ff5a00;
  pointer-events: none;
}

/* 🔥 scrollbar */
#desktopDropdown #pickerOptionList::-webkit-scrollbar {
  width: 6px;
}

#desktopDropdown #pickerOptionList::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

/* =========================
   MOBILE PICKER FIX
========================= */

@media (max-width: 768px) {

  /* wrapper */
  .picker-wrap {
    padding: 10px;
  }

  /* title */
  .picker-wrap .fw-bold {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* list */
  #pickerOptionList {
    display: flex;
    flex-direction: column;
  }

  /* item */
  .picker-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    background: #fff;
  }

  /* hover */
  .picker-option:active {
    background: #f5f5f5;
  }

  /* text */
  .picker-option span {
    flex: 1;
  }

  /* radio */
  .picker-option input {
    width: 18px;
    height: 18px;
    accent-color: #ff5a00;
  }

}

.picker-option:has(input:checked) {
  background: #fff3ed;
}

/* =========================
   CLOSE (X) BUTTON
========================= */

.picker-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: #555;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* hover */
.picker-close:hover {
  background: #f5f5f5;
  color: #000;
}

/* active (klik hissi) */
.picker-close:active {
  transform: scale(0.95);
}

/* icon */
.picker-close::before {
  content: "✕";
  font-weight: 600;
}
/* =========================
   🔥 DETAIL BADGES (SEPARATE)
========================= */

.badge-detail-wrap {
  position: absolute;
  top: 5px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

/* VIP */
.badge-detail-vip {
  background: linear-gradient(135deg, #ff2d2d, #d90000);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255,0,0,0.5);
}

/* PREMIUM */
.badge-detail-premium {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #000;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
}

.badge-vip {
  background: red;
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 6px;
}

.badge-premium {
  background: gold;
  color: #000;
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 6px;
}


.all-cat-card {
  border: 2px dashed #009e8e;
  background: #f0f9f8;
}

.all-cat-card .category-modern-image-wrap {
  background: linear-gradient(135deg, #009e8e, #00bfa5);
}

.all-cat-card .category-modern-image {
  filter: brightness(0) invert(1);
}

.all-cat-card .category-modern-title {
  color: #009e8e;
  font-weight: 700;
}

/* =========================
   DRAWER
========================= */

.cat-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: none;
  flex-direction: column;
}

.cat-drawer.active {
  display: flex;
}

.cat-drawer-header {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.cat-drawer-back {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cat-drawer-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}

.cat-drawer-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.cat-drawer-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.cat-drawer-sub {
  font-size: 13px;
  color: #777;
  margin-top: 3px;
}

/* mesaj qutusu */

.chat-user {
  display:flex;
  flex-direction:column;
  font-size:14px;
}

.chat-actions {
  display:flex;
  gap:10px;
  font-size:18px;
}

.chat-listing {
  display:flex;
  gap:10px;
  padding:10px;
  background:#fff;
  border-bottom:1px solid #eee;
}

.chat-listing img {
  width:50px;
  height:50px;
  border-radius:10px;
  object-fit:cover;
}


.msg {
  animation: fadeIn .2s ease;
}

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

.badge {
  background:red;
  color:#fff;
  font-size:11px;
  padding:3px 6px;
  border-radius:10px;
}


.chat-tabs {
  display:flex;
  gap:6px;
  padding:10px;
}

.chat-tabs button {
  flex:1;
  border:none;
  padding:8px;
  border-radius:10px;
  background:#f1f1f1;
}

.chat-tabs .active {
  background:#009e8e;
  color:#fff;
}

.chat-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
}

/* HEADER */
.chat-header {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

/* LISTING */
.chat-listing {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.chat-listing img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

/* MESSAGES */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.msg {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  font-size: 14px;
}

.msg.left {
  background: #fff;
}

.msg.right {
  background: #009e8e;
  color: #fff;
  margin-left: auto;
}

/* INPUT */
.chat-input {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  border-radius: 20px;
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.chat-input button {
  background: #009e8e;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
}

/* IMAGE BTN */
.upload-btn {
  display: flex;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
}

/*  add fields  */
.field-sheet{
  position: fixed;
  bottom: -100%;
  left:0;
  right:0;
  background:#fff;
  border-radius:16px 16px 0 0;
  padding:16px;
  z-index:2000;
  transition:.3s;
  max-height:80vh;
  overflow:auto;
}

.field-sheet.active{
  bottom:0;
}





/* =========================
   MOBILE FIELD BUTTON
========================= */
.mobile-select-trigger {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  transition: 0.2s;
}

.mobile-select-trigger:hover {
  border-color: #009e8e;
}

.mobile-select-text {
  color: #111;
  font-weight: 500;
}

/* =========================
   BOTTOM SHEET
========================= */
.field-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  height: 70%;
  background: #fff;
  z-index: 9999;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.field-sheet.active {
  bottom: 0;
}

.sheet-header {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

#sheetContent {
  padding: 14px;
  overflow-y: auto;
}

/* =========================
   SIDE FILTER (FULL SCREEN)
========================= */
.side-filter {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 9999;
  transition: 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.side-filter.active {
  right: 0;
}

.side-header {
  padding: 14px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
}

#sideContent {
  padding: 14px;
  overflow-y: auto;
}

/* =========================
   PICKER (RADIO LIST)
========================= */
.picker-wrap {
  width: 100%;
}

.picker-option {
  font-size: 15px;
  padding: 14px 10px;
  border-bottom: 1px solid #f1f1f1;
  transition: 0.2s;
}

.picker-option:hover {
  background: #f9f9f9;
}

.picker-option input {
  accent-color: #009e8e;
  transform: scale(1.2);
}

/* =========================
   SEARCH INPUT
========================= */
#pickerSearchInput {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  font-size: 14px;
}

#pickerSearchInput:focus {
  border-color: #009e8e;
  outline: none;
}

/* =========================
   SELECTED FILTER BADGES
========================= */
#selectedFilters .badge {
  font-size: 12px;
  border-radius: 10px;
  padding: 6px 10px;
}

/* =========================
   ANIMATION IMPROVE
========================= */
.field-sheet,
.side-filter {
  will-change: transform;
}

/* =========================
   MOBILE SAFE AREA (IPHONE)
========================= */
.field-sheet {
  padding-bottom: env(safe-area-inset-bottom);
}

/* =========================
   SCROLL FIX
========================= */
#sheetContent::-webkit-scrollbar,
#sideContent::-webkit-scrollbar {
  width: 6px;
}

#sheetContent::-webkit-scrollbar-thumb,
#sideContent::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}
/* =========================
   BRAND
========================= */
.brand-text { color: var(--brand); }
.brand-bg { background: var(--brand); }

.navbar-brand {
  font-weight: 800;
  letter-spacing: .2px;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
}

.btn-brand:hover {
  filter: brightness(.95);
  color: #fff;
}

.add-btn-red {
  background: #ff3b30;
  color: #fff;
  border: none;
  font-weight: 600;
}

.add-btn-red:hover {
  background: #e03228;
  color: #fff;
}
/* =========================
  footer
========================= */
 .site-footer {
  background: #009e8e;
  color: #fff;
  margin-top: 40px;
  padding-top: 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 20px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  color: #fff;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  font-size: 13px;
  padding: 15px 0;
  color: #fff;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }
}

/* =========================
   LIST GRID
========================= */

.btn-clear {
  background: none;
  border: none;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  padding: 0;
}

.btn-clear:hover {
  color: #e53935;
  text-decoration: underline;
}


/* 🔥 CATEGORY SIDEBAR COMPACT */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px; /* ⬅️ azaldıldı */
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  background: #f7f7f7;
  transition: .2s;
}

.cat-item:hover {
  background: #eee;
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 8px; /* ⬅️ azaldıldı */
}

.cat-left img {
  width: 26px;   /* ⬅️ əvvəl 32 idi */
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
}

.cat-left span {
  font-size: 14px;   /* ⬅️ daha kompakt */
  font-weight: 500;
}

.cat-arrow {
  font-size: 16px;  /* ⬅️ kiçildi */
  color: #999;
}

/* 🔥 HOVER EFFECT */

.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  background: #f7f7f7;
  transition: all 0.25s ease;
  position: relative;
}

.cat-item:hover {
  background: #fff;
  transform: translateX(4px); /* 👉 sağa yüngül hərəkət */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ICON animasiya */
.cat-item:hover .cat-left img {
  transform: scale(1.08);
}

.cat-left img {
  transition: 0.25s;
}

/* TEXT rəng dəyişimi */
.cat-item:hover .cat-left span {
  color: var(--brand);
}

/* ARROW animasiya */
.cat-arrow {
  transition: 0.25s;
}

.cat-item:hover .cat-arrow {
  transform: translateX(4px);
  color: var(--brand);
}


.back-link {
  display: block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  margin-bottom: 4px;
  transition: .2s;
}

.back-link:hover {
  color: var(--brand);
  transform: translateX(-2px);
}

.price-filter {
  margin-bottom: 12px;
}

.price-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 🔥 container */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 🔥 input */
.price-inputs input {
  width: 100%;
  padding: 10px 12px;

  border: 1px solid #e3e7ee;
  border-radius: 10px;

  font-size: 14px;
  background: #fff;

  transition: 0.2s;
}

/* focus effect */
.price-inputs input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0,128,96,0.1);
  outline: none;
}

/* ortadakı xətt */
.price-separator {
  font-size: 3px;
  color: #999;
}



.list-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.img-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.price {
  font-weight: bold;
  color: #009e8e;
}
.profile-list-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.profile-list-grid .list-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .profile-list-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .profile-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .profile-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .profile-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}






/* =========================
  home --- bar
========================= */
/* DEFAULT (MOBILE) */


.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 16px;
}

/* X düyməsi */
.nav-header button {
  border: none;
  background: #f1f3f5;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.nav-header button:hover {
  background: #e9ecef;
}


.nav-itemsol {
  display: block;
  padding: 12px 18px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  border-radius: 10px;
  transition: .2s;
}

.nav-itemsol:hover {
  background: #f5f7fa;
  transform: translateX(2px);
}
.nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transition: .3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* active */
.nav-menu.active {
  left: 0;
}

/* DESKTOP */
@media (min-width: 768px) {

  .nav-menu {
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0 0 20px 20px;
  }

  .nav-menu.active {
    top: 60px;
  }

  .nav-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 25px;
  }

}

  .nav-itemsol {
    border: none;
    padding: 10px 0;
  }




.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* 🔥 qaranlıq */
  backdrop-filter: blur(2px);      /* 🔥 blur effekti */
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   listing web filter ads
========================= */

.listing-layout{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:16px;
  align-items:start;
}

.listing-sidebar{
  position:sticky;
  top:90px;
}

.listing-filter-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:14px;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.listing-content{
  min-width:0;
}

.list-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 1399px){
  .list-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px){
  .listing-layout{
    display:block;
  }

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


.skeleton-card {
  border-radius: 14px;
  background: #f2f2f2;
  overflow: hidden;
}

.skeleton-img {
  height: 140px;
  background: linear-gradient(90deg, #eee, #ddd, #eee);
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 12px;
  margin: 10px;
  background: linear-gradient(90deg, #eee, #ddd, #eee);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.filter-badge {
  display:inline-block;
  background:#eef6f5;
  color:#0f766e;
  padding:6px 10px;
  border-radius:20px;
  margin:4px;
  font-size:13px;
}

/* =========================
   SUB CATEGORY MODERN
========================= */

.subcat-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .subcat-modern-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }
}


/* =========================
   MOBILE SEARCH UI
========================= */

.mobile-search-box {
  position: relative;
}

.mobile-search-box input {
  width: 100%;
  height: 52px;
  border-radius: 30px;
  border: none;
  padding: 0 60px 0 18px;
  font-size: 15px;
  background: #f1f3f5;
  outline: none;
}

.mobile-search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: var(--brand);
  color: #fff;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
  listing mobile filtre
========================= */


.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;

  width: 100%;
 
  height: 100%;

  background: #fff;
  z-index: 9999;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

.filter-drawer.active {
  transform: translateY(0);
}
.filter-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-weight: bold;

  flex-shrink: 0; /* 🔥 əlavə */
}

.filter-body {
  padding: 15px;
  overflow-y: auto;

  flex: 1; /* 🔥 əsas fix */
  height: auto; /* 🔥 əvvəlkini sil */
  -webkit-overflow-scrolling: touch; /* 🔥 smooth scroll */
}

.filter-footer {
  /* ❌ bunları sil */
  /* position: absolute; */
  /* bottom: 0; */

  width: 100%;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;

  flex-shrink: 0; /* 🔥 əlavə */
}
.form-check-input {
  cursor: pointer;
}

.toggle-group {
  display: flex;
  gap: 6px;
}

.toggle-group input {
  display: none;
}

.toggle-group label {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

/* ACTIVE */
.toggle-group input:checked + label {
  background: #009e8e;
  color: #fff;
}


/* =========================
  mobil filter cesidle 
========================= */
/* =========================
   SORT DRAWER (BOTTOM → TOP)
========================= */
#sortDrawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  background: #fff;
  z-index: 9999;

  border-radius: 16px 16px 0 0;

  transform: translateY(100%);
  transition: transform 0.3s ease;

  width: 100%;
 

  display: flex;
  flex-direction: column;
}

#sortDrawer.active {
  transform: translateY(50%);
}
/* iç scroll */
#sortDrawer .filter-body {
  overflow-y: auto;
  flex: 1;
}


.mobile-actions {
  gap: 8px;
}

.mobile-tab {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 12px;
  background: #f2f3f5;
  font-weight: 600;
}

.mobile-tab.active {
  background: #0aa;
  color: #fff;
}

.sort-item {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.sort-item:active {
  background: #f2f3f5;
}


.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 9998;
}
.drawer-overlay {
  transform: translateZ(0);
}

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


.drawer-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 3px;
  margin: 8px auto;
}

.filter-body {
  overflow-y: auto;
  padding: 10px;
}

.sort-item {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.mobile-filter-count {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  padding-left: 4px;
}
/* =========================
  listing subcat
========================= */

.inline-ad {
  margin: 16px 0;
}

.inline-ad img {
  width: 100%;
  border-radius: 14px;
}


.sidebar-left,
.sidebar-right {
  position: fixed;
  top: 120px;
  width: 120px;
}

.sidebar-left { left: 10px; }
.sidebar-right { right: 10px; }

.sidebar-left img,
.sidebar-right img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
}

@media(max-width:1200px){
  .sidebar-left,
  .sidebar-right {
    display:none;
  }
}



/* =========================
   MOBILE FILTER CATEGORY (NEW)
========================= */

.mcat-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.mcat-drawer.active {
  display: flex;
}

.mcat-header {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mcat-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.mcat-main {
  width: 45%;
  border-right: 1px solid #eee;
  overflow-y: auto;
  background: #fafafa;
}

.mcat-sub {
  width: 55%;
  overflow-y: auto;
  background: #fff;
}

.mcat-item {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.mcat-item.active {
  background: rgba(0,158,142,0.1);
  color: var(--brand);
  font-weight: 600;
}

/* =========================
  MOBILE CATEGORY (SAFE)
========================= */

.mcat-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 10000;
  display: none;
  flex-direction: column;
}

.mcat-drawer.active {
  display: flex;
}

.mcat-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.mcat-main {
  width: 45%;
  border-right: 1px solid #eee;
  overflow-y: auto;
  background: #fafafa;
}

.mcat-sub {
  width: 55%;
  overflow-y: auto;
  background: #fff;
}

.mcat-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.mcat-item img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.mcat-item:active {
  background: #eef7f6;
}

@media (max-width: 768px) {

  .mobile-actions {
    gap: 10px;
  }

  .mobile-tab {
    flex: 1;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
  }




  .drawer-handle {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: #d8d8d8;
    margin: 10px auto 6px;
    flex: 0 0 auto;
  }

  .filter-header,
  .cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    flex: 0 0 auto;
  }

  .filter-header button,
  .cat-header button {
    border: 0;
    background: transparent;
    font-size: 20px;
  }

  .filter-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-cat-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    border-radius: 12px;
  }

  .mobile-cat-trigger strong {
    margin-left: 10px;
    color: #222;
    font-weight: 600;
  }

  .cat-drawer {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    display: none;
    flex-direction: column;
  }

  .cat-drawer.active {
    display: flex;
  }

  .cat-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }

  .cat-main,
  .cat-sub {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  .cat-main {
    width: 46%;
    border-right: 1px solid #eee;
    background: #fafafa;
  }

  .cat-sub {
    width: 54%;
    background: #fff;
  }

  .cat-item {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .cat-item.active {
    background: #eef7f6;
    font-weight: 700;
    color: #009e8e;
  }

  .price-filter {
    margin-bottom: 12px;
  }

  .price-header,
  .filter-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .price-inputs input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 12px;
  }

  .filter-toggle {
    margin-bottom: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
  }

  .toggle-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .toggle-group input {
    display: none;
  }

  .toggle-group label {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
  }

  .toggle-group input:checked + label {
    background: #009e8e;
    border-color: #009e8e;
    color: #fff;
  }

  .filter-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
  }

  .sort-item {
    padding: 14px 4px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
  }

  .mobile-filter-count {
    padding: 0 16px 8px;
    color: #666;
    font-size: 13px;
  }
}




/* CARD */
.subcat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
  min-width: 80px;
  width:120px;
  height:120px;
  aspect-ratio: 16/6; /* 🔥 bunu əlavə et */
}

/* IMAGE */
.subcat-image-wrap {
  position: absolute;
  inset: 0;
}
.subcat-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 ƏN VACİB */
}

/* DARK OVERLAY */
.subcat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.3) 40%,
    transparent 70%
  );
}
/* TEXT */
.subcat-title {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;

  text-shadow: 0 1px 4px rgba(0,0,0,0.5); /* 🔥 əlavə et */
}

.subcat-card:hover .subcat-image {
  transform: scale(1.05);
}

.subcat-image {
  transition: transform 0.3s ease;
}

.subcat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;

  scroll-snap-type: x mandatory; /* 🔥 smooth scroll */
}

.subcat-scroll::-webkit-scrollbar {
  display: none;
}

.subcat-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


@media (max-width: 768px) {

  .subcat-card {
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 12px;

    flex: 0 0 auto;
    scroll-snap-align: start; /* 🔥 snap */
  }

  .subcat-title {
    font-size: 10px;
    bottom: 6px;
    left: 6px;
    right: 6px;
  }

}
/* =========================
  home
========================= */


.home-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.home-card:hover {
  transform: translateY(-3px);
}

.home-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}


.mobile-ad {
  display: flex;
  justify-content: center; /* ortada olsun */
}

.mobile-ad .home-card {
  width: 100%;
  max-width: 260px; /* kart boyu */
}

/* image fix */
.mobile-ad img {
  width: 100%;
  height: 150px; /* home-card ilə eyni */
  object-fit: cover;
}

@media(min-width:768px){
  .mobile-ad { display:none; }
}

.ad-card {
  border: 2px dashed #ddd;
  background: #fff;
}

.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-card .meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.vip-ad {
  border: 1px solid rgba(255, 193, 7, 0.4);
  background: #fffdf5;
}

.badge-vip-ad {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(45deg, gold, orange);
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}


/* IMAGE WRAP lazımdır */
.img-wrap {
  position: relative;
}

/* ❤️ BUTTON */
.fav-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: 0.2s;
}

.fav-btn.active {
  color: red;
  transform: scale(1.1);
}

/* hover */
.fav-btn:hover {
  transform: scale(1.1);
}

/* 🔥 ACTIVE (dolmuş heart) */
.fav-btn.active {
  background: #ffeded;
  color: red;
}
.fav-btn.active i {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: red;
}

.fav-btn.active {
  animation: favPop 0.3s ease;
}

@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}


.fav-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: #111;
  color: #fff;
  padding: 10px 16px;

  border-radius: 10px;
  font-size: 14px;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
  z-index: 9999;
}

.fav-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/*  add load   */

.btn-loading{
  opacity:0.7;
  pointer-events:none;
}
 /* =========================
  home catagory
========================= */
/* =========================
  HOME CATEGORY
========================= */

.category-modern-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.category-modern-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  transition: 0.2s ease;

  display: flex;
  flex-direction: column;
}

.category-modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 🔥 IMAGE BÖYÜK OLSUN */
.category-modern-image-wrap {
  width: 100%;
  height: 100px; /* 🔥 böyütdük */
  background: #f5f5f5;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 IMAGE TAM GÖRÜNSÜN */
.category-modern-image {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 🔥 KƏSİLMƏSİN */
  object-position: center;
}

/* 🔥 TITLE ALTDA */
.category-modern-title {
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
  TABLET
========================= */

@media (max-width: 992px) {
  .category-modern-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .category-modern-image-wrap {
    height: 100px;
  }
}

/* =========================
  MOBILE
========================= */

@media (max-width: 768px) {

  .category-modern-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .category-modern-grid::-webkit-scrollbar {
    display: none;
  }

  .category-modern-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .category-modern-card {
    min-width: 110px;
    max-width: 110px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .category-modern-image-wrap {
    height: 90px;
  }

  .category-modern-title {
    font-size: 12px;
    padding: 6px;
  }
}

/* =========================
  SMALL MOBILE
========================= */

@media (max-width: 420px) {

  .category-modern-card {
    min-width: 95px;
    max-width: 95px;
  }

  .category-modern-image-wrap {
    height: 80px;
  }

  .category-modern-title {
    font-size: 11px;
  }
}
  .category-modern-title {
    font-size: 11px;
  }
}
/* =========================
  vip grid
========================= */



.img-wrap {
  position: relative;
}



/* =========================
   LIST GRID
========================= */


.list-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.list-card:hover {
  transform: translateY(-3px);
}



/* 🔥 STATUS */
.badge-status {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 5px;
}

.badge-status.pending {
  background: orange;
  color: #fff;
}

.badge-status.expired {
  background: #999;
  color: #fff;
}

.img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.price {
  font-weight: bold;
  color: #009e8e;
}

.title {
  font-weight: 600;
}

.meta {
  font-size: 12px;
  color: #777;
}

/* ACTIONS */
.card-actions {
  display: flex;
  gap: 5px;
  padding: 8px;
}

.btn-edit {
  flex: 1;
  background: #ffc107;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
}

.btn-delete {
  flex: 1;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
}


.list-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

@media(min-width:768px){
  .list-grid { grid-template-columns: repeat(3,1fr); }
}
@media(min-width:992px){
  .list-grid { grid-template-columns: repeat(4,1fr); }
}
@media(min-width:1200px){
  .list-grid { grid-template-columns: repeat(5,1fr); }
}

.list-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.list-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e9ecef;
}

.list-card .p {
  padding: 10px 12px;
}

.price {
  font-weight: 800;
}

.small-muted {
  color: #6c757d;
  font-size: 12px;
}

/* lsiting in */.listing-gallery {
  width: 100%;
}

.listing-main-image-wrap {
  width: 100%;
  background: #f2f4f7;
  border-radius: 18px;
  overflow: hidden;
}

.listing-main-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.listing-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.listing-thumb-btn {
  border: 2px solid transparent;
  background: #fff;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  cursor: pointer;
}

.listing-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-thumb-btn.active {
  border-color: var(--brand);
}

.listing-price {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.listing-side-card {
  border-radius: 18px;
}

.listing-seller-box {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 14px;
}

.listing-seller-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.listing-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #495057;
}

.listing-spec-card {
  background: #f8f9fb;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  padding: 12px;
  height: 100%;
}

.listing-spec-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 6px;
}

.listing-spec-value {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
}

.listing-description {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.7;
  color: #212529;
}

.is-invalid {
  border: 1px solid #dc3545 !important;
}

.input-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 991.98px) {
  .listing-main-image {
    height: 360px;
  }

  .listing-price {
    font-size: 32px;
  }
}

@media (max-width: 575.98px) {
  .listing-main-image {
    height: 280px;
    border-radius: 14px;
  }

  .listing-thumb-btn {
    width: 72px;
    height: 72px;
  }

  .listing-price {
    font-size: 28px;
  }
}
@media (max-width: 768px) {

  .listing-spec-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .listing-spec-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
  }

  .listing-spec-value {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
  }

}
@media (max-width: 768px) {

  .listing-spec-card {
    border: none;
  }

}


.fav-detail-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-weight: 600;
}

.fav-detail-btn.active {
  background: #ff4d6d;
  border-color: #ff4d6d;
  color: #fff;
}
#shareModal .btn {
  min-width: 100px;
  font-weight: 600;
}

/* sekil */

.image-uploader-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.image-card{
  position:relative;
  width:120px;
}

.image-thumb-wrap{
  width:120px;
  height:120px;
  border-radius:14px;
  overflow:hidden;
  background:#f1f3f5;
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.image-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  user-select:none;
  pointer-events:none;
}

.image-badge{
  position:absolute;
  top:8px;
  left:8px;
  background:rgba(0,0,0,.7);
  color:#fff;
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
}

.image-actions{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
  margin-top:8px;
}

.image-btn{
  border:none;
  border-radius:10px;
  padding:7px 8px;
  font-size:12px;
  background:#f2f4f7;
  cursor:pointer;
}

.image-btn:hover{
  background:#e9ecef;
}

.image-btn.delete{
  background:#ffe3e3;
}

.image-btn.delete:hover{
  background:#ffc9c9;
}

.uploader{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.upload-box{
  width:110px;
  height:110px;
  border-radius:16px;
  border:2px dashed #ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#fafafa;
}

.upload-inner{
  text-align:center;
  font-size:13px;
  color:#666;
}

.upload-inner .icon{
  font-size:24px;
}

.img-card{
  position:relative;
  width:110px;
  height:110px;
  border-radius:16px;
  overflow:hidden;
  background:#eee;
}

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

.img-actions{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px;
}

.img-btn{
  background:rgba(0,0,0,0.6);
  color:#fff;
  border:none;
  border-radius:50%;
  width:26px;
  height:26px;
  font-size:12px;
  cursor:pointer;
}

.img-delete{
  position:absolute;
  top:6px;
  right:6px;
}

.img-loading{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

/* =========================
   PREMIUM CATEGORY SLIDER
========================= */
.cat-back {
  padding: 14px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

/* =========================
   CATEGORY OVERLAY - MOBILE FULL FIX
========================= */
@media (max-width: 768px) {

  .cat-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: none;
    z-index: 999999;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    margin: 0;
    border-radius: 0;
  }

  .cat-overlay.active {
    display: flex;
  }

  .cat-box {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;

    display: flex;
    flex-direction: column !important;
    overflow: hidden;
    background: #fff;
  }

  .cat-header {
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 0;
  }

  /* əgər səndə .cat-box-body varsa */
  .cat-box-body {
    display: block !important;
    width: 100%;
    height: calc(100vh - 56px);
    overflow: hidden;
  }

  #catMain {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 56px) !important;
    border-right: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }

  #catSub {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  .cat-item {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
  }

  .cat-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

.cat-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* scrollbar gizlə */
.cat-slider::-webkit-scrollbar {
  display: none;
}

/* CARD */
.cat-card {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
  text-decoration: none;
  color: #111;
  scroll-snap-align: start;
}

/* ICON BOX */
.cat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 6px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;

  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: .2s;
}

/* ICON IMAGE */
.cat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* NAME */
.cat-name {
  font-size: 12px;
  line-height: 1.2;
}

/* HOVER */
.cat-card:active .cat-icon {
  transform: scale(.95);
  background: var(--brand);
  color: #fff;
}


/* =========================
   CATEGORY OVERLAY (FINAL FIX)
========================= */
.cat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45); /* 🔥 qaranlıq fon */
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;
}

.cat-overlay {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.cat-overlay.active {
  display: flex;
}

/* HEADER */
.cat-header {
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-weight: 600;
}

/* BODY */
.cat-box {
  width: 1000px;
  max-width: 95%;
  height: 90vh;

  background: #fff;
  border-radius: 14px;

  display: flex;
  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}


.cat-box-body {
  display: flex;
  flex: 1;
  height: 100%;
}

/* LEFT */
#catMain {
  width: 40%;
  border-right: 1px solid #eee;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* RIGHT */
#catSub {
  width: 60%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



/* =========================
   CATEGORY ITEM (MODERN)
========================= */
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  cursor: pointer;

  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: all .2s ease;
}

/* LEFT SIDE */
.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ICON */
.cat-left img {
  width: 36px;
  height: 36px;
  object-fit: cover;

  border-radius: 10px;
  background: #f2f3f5;
  padding: 4px;
}

/* TEXT */
.cat-left span {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* RIGHT ARROW */
.cat-arrow {
  font-size: 16px;
  color: #aaa;
  transition: 0.2s;
}

/* HOVER */
.cat-item:hover {
  background: #f7f9fa;
}

.cat-item:hover .cat-arrow {
  transform: translateX(3px);
  color: #009e8e;
}

/* ACTIVE */
.cat-item.active {
  background: rgba(0,158,142,.08);
}

.cat-item.active .cat-left span {
  color: #009e8e;
  font-weight: 600;
}

.cat-item.active .cat-arrow {
  color: #009e8e;
}

/* search auto complete */

.search-wrapper {
  position: relative;
  
}

/* SUGGEST BOX */
.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 0px;
  margin-top: 6px;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  z-index: 9999;
  overflow: hidden;
  display: none;
}

/* ITEM */
.search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.search-item:hover {
  background: #f7f7f7;
}

.search-item strong {
  display: block;
  font-size: 14px;
}

.search-item small {
  color: #777;
  font-size: 12px;
}

/* OVERLAY */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  display: none;
}

/* MOBILE */
@media(max-width:768px){
  .search-suggest{
    border-radius: 12px;
  }
}


#mobileSearchSuggest {
  position: absolute;
  width: 100%;
  background: #fff;
  z-index: 999;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

#mobileSearchOverlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  top: 130px; /* 🔥 BURDA əsas fix */

  background: rgba(0,0,0,.4);
  z-index: 998;
  display: none;
}
.search-overlay {
  top: calc(70px + env(safe-area-inset-top));
}
.search-overlay {
  backdrop-filter: blur(3px);
}

.mobile-search-box input {
  width: 100%;
  height: 52px;
  border-radius: 30px;
  border: none;
  padding: 0 60px 0 18px;
  font-size: 15px;
  border: 1px solid #e3e7ee;
  background: #fff; /* 🔥 BURANI DƏYİŞDİK */
  color: #111;

  outline: none;
}

/* STICKY SEARCH */
.sticky-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 12px;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);

  box-shadow: 0 4px 20px rgba(0,0,0,.08);

  transform: translateY(-100%);
  opacity: 0;
  transition: all .3s ease;

  z-index: 9999;
}

.sticky-search.active {
  transform: translateY(0);
  opacity: 1;
}

/* INPUT */
.sticky-search input {
  flex: 1;
  height: 36px;
  border-radius: 20px;
  border: 2px solid #009e8e;
  padding: 0 12px;
  font-size: 14px;
  outline: none; /* 🔥 əlavə et */
}

.sticky-search input:focus {
  border: 2px solid #009e8e;
  outline: none; /* 🔥 əlavə et */
  box-shadow: none; /* 🔥 əlavə et */
}

 .search-suggest {
  position: fixed;
  top: 45px;
  right: 10px;
  background: #fff;
  border-radius: 0px;
  display: none;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-overlay {
  position: fixed;
  inset: 0;
  top:55px;
  background: rgba(0,0,0,0.25);
  display: none;
  z-index: 9998;
}

.search-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.search-item:hover {
  background: #f5f5f5;
}           

.search-inner input {
  width: 100%;
  padding-left: 38px; /* 🔥 icon üçün yer */
  height: 42px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

/* 🔥 icon */
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
}
.search-inner input:focus {
  border-color: #009e8e;
  box-shadow: 0 0 0 2px rgba(0,158,142,0.15);
  outline: none;
}
.search-inner {
  position: relative;
  flex: 1;
}

.search-inner input {
  width: 100%;
  padding-left: 38px; /* 🔥 icon üçün yer */
  height: 42px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

/* 🔥 icon */
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
}

/* BUTTONS */
.menu-btn,
.add-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f2f2f2;
  border-radius: 10px;
  font-size: 18px;
}


/* =========================
   MOBILE (FULL SCREEN)
========================= */
.cat-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
}

/* HEADER */
.cat-header {
  height: 50px;
  flex-shrink: 0;
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* BODY */
.cat-box-body {
  display: flex;
  flex: 1;
  height: calc(100vh - 50px);
}

/* LEFT */
#catMain {
  width: 40%;
  border-right: 1px solid #eee;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* RIGHT */
#catSub {
  width: 60%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



/* =========================
   DESKTOP MODE
========================= */
@media (min-width: 768px) {

  .cat-box {
    width: 80%;
    height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }

  .cat-box-body {
    height: calc(100% - 50px);
  }

}


/* =========================
   CATEGORY SCROLL (HOME)
========================= */
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cat-pill {
  white-space: nowrap;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.cat-pill:active {
  transform: scale(.98);
}

/* =========================
   FORM
========================= */
.form-card {
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.form-control,
.form-select {
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0,158,142,.5);
  box-shadow: 0 0 0 .2rem rgba(0,158,142,.12);
}

/* =========================
   IMAGE PREVIEW
========================= */
#imagePreview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin: 5px;
}

/* =========================
   BOTTOM NAV
========================= */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 1030;
}

.bottom-nav a {
  font-size: 12px;
  color: #111;
}

.bottom-nav a.active {
  color: var(--brand);
}

/* 🔥 ƏN VACİB FIX */
.main-with-bottomnav {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* NAV WRAP */
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;

  height: 60px; /* 🔥 artırdıq */
  padding: 0 0; /* 🔥 balans */
}

/* ITEM */
.nav-item {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #777;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 2px;
}

/* ICON */
.nav-item span {
  font-size: 20px; /* 🔥 bir az böyütdük */
  line-height: 1;
}

/* ACTIVE */
.nav-item.active {
  color: #009e8e;
}

/* 🔥 CENTER BUTTON */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom:30px;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  /* 🔥 QIRMIZI GRADIENT */
  background: linear-gradient(135deg, #ff3b30, #d90429);

  color: #fff; /* ➕ ağ */

  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px; /* 40 çox böyük idi, bu daha balanslı */
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(255, 59, 48, 0.45);
}

/* 🔥 hover effect */
.nav-center:hover {
  background: linear-gradient(135deg, #ff2d20, #c4001d);
  transform: translateX(-50%) scale(1.05);
  color: #fff;
}

/* 🔥 HOVER (optional) */
.nav-center:active {
    color:#ffff;
  transform: translateX(-50%) scale(0.95);
}


/* 🔥 NEW ADD BUTTON (BOTTOM NAV) */
.nav-center-add {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -22px;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;

  border-radius: 999px;

  background: linear-gradient(135deg, #ff3b30, #d90429);
  color: #fff;

  font-weight: 700;
  font-size: 14px;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(255, 59, 48, 0.45);
}



/* ➕ icon */
.nav-center-add .plus {
  font-size: 18px;
  font-weight: 900;
}

.nav-item small {
  margin-top: 5px; /* 🔥 yazını aşağı salır */
}
.nav-center-item small {
  margin-top: 25px;
}

/* text */
.nav-center-add .text {
  white-space: nowrap;
}

/* hover */
.nav-center-add:hover {
  transform: translateX(-50%) scale(1.05);
  background: linear-gradient(135deg, #ff2d20, #c4001d);
  color: #fff;
}
/* 🔥 NAV BAR özü */
.bottom-nav {
  background: #fff;
  border-top: 1px solid #eee;

  border-radius: 18px 18px 0 0; /* 🔥 premium */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05); /* 🔥 yumşaq kölgə */
}
/* əlavə təhlükəsizlik */
form.card {
  margin-bottom: 120px;
}



.main-with-bottomnav {
  padding-bottom: 100px;
}

/* =========================
   GLOBAL WIDTH FIX
========================= */
.containerhome {
  max-width: 1100px !important;
  margin-left: auto;
  margin-right: auto;
}

/* daha səliqəli padding */
@media (min-width: 1100px) {
  .containerhome {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* daha səliqəli padding */
@media (min-width: 360px) {
  .containerhome {
    padding-left: 5px;
    padding-right: 5px;
  }
}


.container {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* daha səliqəli padding */
@media (min-width: 1200px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
