/* ============================================================
   IRMACAR — STYLESHEET  v2.1
   Architecture :
    1.  RESET & VARIABLES
    2.  BASE
    3.  TOPBAR
    4.  HEADER
    5.  MOBILE MENU
    6.  LAYOUT
    7.  SIDEBAR
    8.  HERO BANNER
    9.  SECTION HEADERS
   10.  SLIDER SYSTEM
   11.  AD CARD
   12.  FILTER CHIPS
   13.  CATEGORY BLOCKS
   14.  STORE CARDS
   15.  PROMO BANNERS
   16.  SPONSORED ADS SECTION
   17.  INLINE PUB
   18.  FOOTER
   19.  PAGE : CATEGORIE DETAILS
   20.  PAGE : ANNONCE DETAILS
   21.  PAGE : BOUTIQUE DETAILS
   22.  RESPONSIVE (1024 · 768 · 480)
   23.  PAGE : RÉSULTATS DE RECHERCHE
   ============================================================ */


/* ============================================================
   1. RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #073980;
  --blue-dark:   #2572a8;
  --blue-darker: #1a5a8a;
  --blue-light:  #4fa3d4;
  --blue-pale:   #e8f4fc;
  --blue-pale2:  #d0e9f7;
  --orange:      #e64308;
  --orange-light:#ff9800;
  --red:         #d32f2f;
  --green:       #2e7d32;
  --green-light: #e8f5e9;
  --text:        #1a2332;
  --text-sec:    #4a5568;
  --text-light:  #8a9ab0;
  --border:      #dde5ef;
  --bg:          #f0f5fa;
  --white:       #ffffff;
  --shadow-sm:   0 1px 4px rgba(54,140,195,.08);
  --shadow-md:   0 3px 12px rgba(54,140,195,.13);
  --shadow-lg:   0 6px 24px rgba(54,140,195,.18);
  --radius:      8px;
  --radius-lg:   12px;
}


/* ============================================================
   2. BASE
   ============================================================ */
body {
  font-family: 'Cairo','Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ============================================================
   3. TOPBAR
   ============================================================ */
.topbar {
  background: var(--blue); color: var(--bg);
  font-size: 12px; padding: 5px 0;
}
.topbar-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar a {
  color: rgba(255,255,255,.85); transition: color .15s;
  display: flex; align-items: center; gap: 5px;
}
.topbar a:hover { color: #fff; }
.topbar-links   { display: flex; gap: 20px; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,.25); }


/* ============================================================
   4. HEADER
   ============================================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(54,140,195,.12);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 48px; width: auto; object-fit: contain; }
.logo-fallback { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 42px; height: 42px; background: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
}
.logo-text { font-size: 22px; font-weight: 900; color: var(--blue); letter-spacing: -.5px; }
.logo-text span { color: var(--orange); }

/* Search form */
.search-form {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; height: 44px;
  transition: border-color .2s;
}
.search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54,140,195,.12);
}
.search-category,
.search-location {
  border: none; background: white;
  padding: 0 10px; font-family: inherit; font-size: 13px;
  color: var(--text); height: 100%; cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23368cc3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.search-category { border-right: 1px solid var(--border); min-width: 148px; }
.search-location  { border-left:  1px solid var(--border); min-width: 128px; }
.search-input {
  flex: 1; border: none; outline: none;
  padding: 0 14px; font-family: inherit; font-size: 14px;
  color: var(--text); background: transparent; height: 100%;
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--blue); border: none; color: white;
  height: 100%; padding: 0 20px; font-size: 15px;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.search-btn span { font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 700; }
.search-btn:hover { background: var(--blue-dark); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-login {
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
  padding: 7px 14px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.btn-login:hover { background: var(--blue); color: white; }
.btn-post {
  background: var(--orange); color: white; border: none;
  padding: 9px 16px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .1s;
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.btn-post:hover { background: var(--orange-light); transform: translateY(-1px); }

/* BURGER BUTTON */
.menu-toggle {
  display: none;
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-pale2);
  color: var(--blue);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
  order: -1;
}
.menu-toggle:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* User chip (connecté) */
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .15s;
}
.user-chip:hover { border-color: var(--blue); background: var(--blue-pale); }
.user-chip-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
  font-family: 'Cairo', sans-serif; flex-shrink: 0;
}
.user-chip-name  { font-size: 13.5px; font-weight: 700; color: var(--text); }
.user-chip-arrow { font-size: 10px; color: var(--text-light); transition: transform .2s; }
.user-chip-arrow.open { transform: rotate(180deg); }

/* Dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 240px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; z-index: 500;
  animation: dropIn .15s ease;
}
.user-dropdown.open { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.dropdown-avatar {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white; font-family: 'Cairo', sans-serif;
}
.dropdown-name  { font-size: 13.5px; font-weight: 700; color: var(--text); }
.dropdown-email {
  font-size: 11.5px; color: var(--text-light); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 155px;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 2px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-sec);
  text-decoration: none; transition: background .12s;
  width: 100%; background: none; border: none;
  cursor: pointer; font-family: inherit; text-align: left;
}
.dropdown-item i { width: 16px; text-align: center; font-size: 12px; color: var(--text-light); }
.dropdown-item:hover { background: var(--bg); color: var(--text); }
.dropdown-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.dropdown-logout     { color: var(--red) !important; }
.dropdown-logout i   { color: var(--red) !important; }
.dropdown-logout:hover { background: #fff5f5 !important; }

/* Mobile user card */
.mobile-user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin: 8px 12px;
  background: var(--blue-pale); border: 1px solid var(--blue-pale2);
  border-radius: var(--radius-lg);
}
.mobile-user-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white; font-family: 'Cairo', sans-serif;
}
.mobile-user-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.mobile-user-email { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.mobile-logout       { color: var(--red) !important; }
.mobile-logout:hover { background: #fff5f5 !important; }


/* ============================================================
   5. MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.mobile-menu.open { display: block; }

.mobile-menu-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(3px);
  animation: fadeIn .22s ease;
}

.mobile-menu-inner {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 300px;
  background: white;
  display: flex; flex-direction: column;
  box-shadow: 6px 0 32px rgba(0, 0, 0, .2);
  animation: slideIn .28s cubic-bezier(.25, .8, .25, 1);
  z-index: 1;
  overflow: hidden;
}

.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--blue-darker), var(--blue));
  flex-shrink: 0;
}
.mobile-menu-title {
  color: white; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.mobile-menu-title i { font-size: 18px; }
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .18); color: white; font-size: 17px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .2s;
}
.mobile-menu-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }

.mobile-menu-body {
  flex: 1; overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-pale2) transparent;
}
.mobile-menu-body::-webkit-scrollbar { width: 4px; }
.mobile-menu-body::-webkit-scrollbar-track { background: transparent; }
.mobile-menu-body::-webkit-scrollbar-thumb { background: var(--blue-pale2); border-radius: 4px; }

.mobile-menu-section-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 5px;
  font-size: 10.5px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px;
}
.mobile-menu-section-label i { color: var(--blue); font-size: 11px; }

.mobile-menu-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 600; color: var(--text-sec);
  text-decoration: none;
  transition: background .15s, color .15s;
  border-bottom: 1px solid var(--bg);
  width: 100%; background: none; border-left: none; border-right: none; border-top: none;
  cursor: pointer; font-family: inherit; text-align: left;
}
.mobile-menu-item i {
  color: var(--blue); width: 20px; font-size: 14px;
  flex-shrink: 0; text-align: center;
}
.mobile-menu-item:hover { background: var(--blue-pale); color: var(--blue); }
.mobile-menu-item:hover i { color: var(--blue-dark); }

.mobile-menu-item--sub {
  padding-left: 32px;
  font-size: 13.5px;
  color: var(--text-sec);
}
.mobile-menu-item--sub i { font-size: 10px; color: var(--blue-light); }

.mobile-menu-sep {
  height: 8px;
  background: var(--bg);
  margin: 4px 0;
}

.mobile-auth-row {
  display: flex; gap: 8px;
  padding: 10px 12px 4px;
}
.mobile-btn-login {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
  padding: 9px 10px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.mobile-btn-login:hover { background: var(--blue); color: white; }
.mobile-btn-register {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue-pale); color: var(--blue); border: 2px solid var(--blue-pale2);
  padding: 9px 10px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.mobile-btn-register:hover { background: var(--blue-pale2); }

.mobile-btn-post {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: white; border: none; border-radius: var(--radius-lg);
  padding: 13px; font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: background .2s, transform .15s;
  text-decoration: none; width: 100%;
}
.mobile-btn-post:hover { background: var(--orange-light); transform: translateY(-1px); }

.mobile-logout { color: var(--red) !important; }
.mobile-logout i { color: var(--red) !important; }
.mobile-logout:hover { background: #fff5f5 !important; color: var(--red) !important; }

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ============================================================
   6. LAYOUT
   ============================================================ */
.main {
  max-width: 1300px; margin: 0 auto; padding: 22px 20px;
  display: grid; grid-template-columns: 242px 1fr; gap: 20px;
}
.content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.section-block { display: flex; flex-direction: column; gap: 0; }
.section-desc { font-size: 13px; color: var(--text-light); margin-top: -8px; margin-bottom: 12px; }


/* ============================================================
   7. SIDEBAR
   ============================================================ */
.sidebar {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 80px; align-self: start;
  max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--blue); color: white;
  padding: 10px 15px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.sidebar-cat-list { padding: 5px 0; }
.sidebar-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; cursor: pointer; transition: background .15s;
  font-size: 13px; color: var(--text-sec); flex-wrap: wrap;
}
.sidebar-cat-item:hover { background: var(--blue-pale); color: var(--blue); }
.sidebar-cat-item .cat-left {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; flex: 1; min-width: 0;
}

.cat-img-wrap {
  width: 30px; height: 30px; border-radius: 7px;
  overflow: hidden; flex-shrink: 0; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
}
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-img-wrap i   { font-size: 13px; color: var(--blue); }
.sidebar-cat-item:hover .cat-img-wrap { background: var(--blue); }
.sidebar-cat-item:hover .cat-img-wrap i { color: white; }

.cat-count {
  font-size: 11px; color: var(--text-light);
  background: var(--bg); padding: 2px 8px;
  border-radius: 20px; font-weight: 600; flex-shrink: 0;
}

.sidebar-subcat-list {
  list-style: none; margin: 0; padding: 0;
  overflow: hidden; max-height: 0;
  transition: max-height .28s ease;
  width: 100%;
}
.sidebar-subcat-list.open { max-height: 600px; }

.sidebar-subcat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px 5px 38px;
  text-decoration: none; color: inherit;
  transition: background .15s; border-radius: 6px;
}
.sidebar-subcat-item:hover { background: var(--blue-pale); }

.sidebar-subcat-left {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-sec); flex: 1;
}
.sidebar-subcat-left img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.sidebar-subcat-left i   { font-size: 7px; color: var(--blue-light); }

.sidebar-subcat-count {
  font-size: 11px; color: var(--text-light);
  background: var(--bg); padding: 1px 6px;
  border-radius: 10px; flex-shrink: 0;
}

.cat-toggle-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 11px; padding: 2px 4px;
  transition: transform .25s, color .15s; flex-shrink: 0;
}
.cat-toggle-btn.open { transform: rotate(180deg); color: var(--blue); }

.sidebar-pub-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm);
}
.sidebar-pub-label {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 7px 14px; font-size: 10.5px; font-weight: 700;
  color: var(--text-light); letter-spacing: .4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.sidebar-pub-slot { padding: 14px; }
.sidebar-pub-inner {
  border-radius: var(--radius); padding: 20px 16px 18px;
  text-align: center; position: relative; overflow: hidden;
}
.sidebar-pub-inner .pub-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.sidebar-pub-inner h4 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 6px; }
.sidebar-pub-inner p  { font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 14px; line-height: 1.5; }
.sidebar-pub-cta {
  display: inline-block; background: white; border-radius: 6px;
  padding: 7px 18px; font-size: 12px; font-weight: 800;
  cursor: pointer; transition: opacity .2s;
}
.sidebar-pub-cta:hover { opacity: .9; }
.sidebar-pub-link {
  display: block; text-align: center; padding: 8px;
  border-top: 1px solid var(--border); font-size: 11.5px;
  color: var(--blue); font-weight: 700; transition: background .15s;
}
.sidebar-pub-link:hover { background: var(--blue-pale); }

.sidebar-store-list { padding: 5px 0; }
.sidebar-store-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  cursor: pointer; transition: background .15s; border-bottom: 1px solid var(--bg);
}
.sidebar-store-item:last-child { border-bottom: none; }
.sidebar-store-item:hover { background: var(--blue-pale); }
.sidebar-store-avatar { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: white; flex-shrink: 0; font-weight: 700; }
.sidebar-store-info { flex: 1; min-width: 0; }
.sidebar-store-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-store-meta { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.sidebar-store-meta i { font-size: 10px; color: var(--orange); }
.sidebar-store-badge { font-size: 9.5px; background: var(--green-light); color: var(--green); padding: 2px 7px; border-radius: 10px; font-weight: 700; flex-shrink: 0; }


/* ============================================================
   8. HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative; width: 100%; height: 500px; overflow: hidden;
}
.hero-video {
  position: absolute; top: 50%; left: 50%;
  width: auto; height: 100%; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); object-fit: cover;
}


/* ============================================================
   9. SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.section-title {
  font-size: 16px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--blue); border-radius: 2px;
}
.section-header-right { display: flex; align-items: center; gap: 10px; }
.see-all {
  font-size: 12.5px; color: var(--blue); font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--blue-pale2);
  transition: all .2s; white-space: nowrap;
}
.see-all:hover { background: var(--blue); color: white; border-color: var(--blue); }


/* ============================================================
   10. SLIDER SYSTEM
   ============================================================ */
.slider-nav-group { display: flex; gap: 6px; align-items: center; }
.slider-nav-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--blue-pale2); background: white; color: var(--blue);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.slider-nav-btn:hover       { background: var(--blue); color: white; border-color: var(--blue); box-shadow: var(--shadow-md); }
.slider-nav-btn:disabled    { opacity: .35; cursor: not-allowed; }
.slider-nav-btn:disabled:hover { background: white; color: var(--blue); border-color: var(--blue-pale2); box-shadow: none; }

.slider-wrapper {
  overflow: hidden; border-radius: var(--radius-lg);
  margin-right: -6px; padding-right: 6px; cursor: grab;
}
.slider-wrapper.dragging { cursor: grabbing; }
.slider-track {
  display: flex; gap: 14px;
  transition: transform .38s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}
.slider-track .ad-card    { flex: 0 0 calc(25%     - 11px); min-width: 0; }
.slider-track .store-card { flex: 0 0 calc(25%     - 11px); min-width: 0; }
.slider-track .pub-card   { flex: 0 0 calc(33.333% - 10px); min-width: 0; }
.slider-track .cat-block  { flex: 0 0 calc(16.666% - 12px); min-width: 90px; }

.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: all .2s; border: none; padding: 0;
}
.slider-dot.active { width: 22px; border-radius: 4px; background: var(--blue); }
.slider-dot:hover  { background: var(--blue-light); }


/* ============================================================
   11. AD CARD
   ============================================================ */
.ad-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .2s;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.ad-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--blue-pale2);
}
.ad-card.hidden-cat    { display: none !important; }
.ad-card.hidden-subcat { display: none !important; }

.ad-img-wrap {
  position: relative; height: 160px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.ad-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.ad-img-icon {
  font-size: 58px; opacity: .38; color: var(--blue);
  transition: transform .3s ease, opacity .3s;
}
.ad-card:hover .ad-img-icon { opacity: .55; transform: scale(1.08); }

.ad-badge {
  position: absolute; top: 10px; left: 10px; color: white;
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  letter-spacing: .3px; text-transform: uppercase;
}
.ad-badge.blue      { background: var(--blue); }
.ad-badge.pro       { background: var(--orange); }
.ad-badge.urgent    { background: var(--red); }
.ad-badge.sponsored { background: linear-gradient(135deg,#e65100,#f57c00); }

.ad-favorite {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.88); border: none; cursor: pointer;
  color: var(--text-light); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; backdrop-filter: blur(4px);
}
.ad-favorite:hover { color: var(--red); background: white; }
.ad-favorite.liked { color: var(--red); }

.ad-body  { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45; min-height: 38px;
}
.ad-price { font-size: 17px; font-weight: 900; color: var(--blue); margin-top: 2px; }
.ad-price .currency { font-size: 12px; font-weight: 600; color: var(--blue-light); margin-left: 2px; }
.ad-divider { height: 1px; background: var(--border); margin: 2px 0; }
.ad-meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-light); font-size: 11.5px; flex-wrap: wrap;
}
.ad-meta i { font-size: 10px; color: var(--blue-light); }
.ad-meta-sep { width: 3px; height: 3px; background: var(--border); border-radius: 50%; flex-shrink: 0; }


/* ============================================================
   12. FILTER CHIPS
   ============================================================ */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-chip {
  border: 1.5px solid var(--border); background: white;
  padding: 5px 13px; border-radius: 20px; font-size: 12.5px;
  font-family: inherit; cursor: pointer; transition: all .15s;
  color: var(--text-sec); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.filter-chip.active,
.filter-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }


/* ============================================================
   13. CATEGORY BLOCKS
   ============================================================ */
.cat-block {
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 18px 10px; text-align: center; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; display: block;
}
.cat-block:hover {
  border-color: var(--blue); background: var(--blue-pale);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.cat-block .icon-wrap {
  width: 72px; height: 72px; border-radius: 16px;
  overflow: hidden; margin: 0 auto 8px; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 28px; transition: all .2s;
}
.cat-block .icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-block .icon-wrap i   { font-size: 28px; color: var(--blue); }
.cat-block:hover .icon-wrap { background: var(--blue); }
.cat-block:hover .icon-wrap i { color: white; }
.cat-block .name  { font-size: 12px; font-weight: 700; color: var(--text-sec); }
.cat-block .count { font-size: 11px; color: var(--text-light); margin-top: 3px; }


/* ============================================================
   14. STORE CARDS
   ============================================================ */
.store-card {
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer;
  transition: all .22s ease; display: flex; flex-direction: column;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale2); }

/* Banner : hauteur fixe, overflow hidden, flex centré */
.store-card-banner {
  height: 90px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Image banner : couvre parfaitement sans pixeliser */
.store-card-banner .store-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay sombre pour lisibilité du logo */
.store-card-banner .store-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(0,0,0,.04));
}

/* Logo / avatar centré sur le banner */
.store-avatar {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  overflow: hidden;
  flex-shrink: 0;
}
.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Body */
.store-card-body { padding: 14px 14px 14px; text-align: center; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.store-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-category { font-size: 11px; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: 4px; }
.store-category i { font-size: 10px; color: var(--blue); }
.store-rating { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--orange); margin-top: 2px; }
.store-rating span { color: var(--text-sec); font-weight: 600; font-size: 11px; }
.store-verified { display: inline-flex; align-items: center; gap: 4px; background: var(--green-light); color: var(--green); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; margin: 4px auto 0; width: fit-content; }
.store-stats { display: flex; justify-content: center; gap: 14px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.store-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.store-stat-val { font-size: 13px; font-weight: 800; color: var(--blue); }
.store-stat-lbl { font-size: 10px; color: var(--text-light); }
.store-btn {
  margin: 8px 14px 14px; display: block; text-align: center;
  background: var(--blue-pale); color: var(--blue); border: 1.5px solid var(--blue-pale2);
  border-radius: var(--radius); padding: 7px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.store-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }


/* ============================================================
   15. PROMO BANNERS
   ============================================================ */
.promo-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--blue-darker), var(--blue), var(--blue-light));
  padding: 22px 28px; display: flex; align-items: center; gap: 20px;
  color: white; box-shadow: var(--shadow-lg);
}
.promo-icon { font-size: 40px; flex-shrink: 0; opacity: .9; }
.promo-text h3 { font-size: 18px; font-weight: 900; }
.promo-text p  { font-size: 13px; opacity: .85; margin-top: 4px; }
.promo-btn {
  background: white; color: var(--blue); padding: 10px 22px;
  border-radius: var(--radius); font-weight: 800; font-size: 14px;
  cursor: pointer; flex-shrink: 0; margin-left: auto;
  transition: transform .2s; display: flex; align-items: center; gap: 7px;
  font-family: inherit; border: none; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.promo-btn:hover { transform: scale(1.04); }

.pub-banner-full {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer; transition: box-shadow .2s;
}
.pub-banner-full:hover { box-shadow: var(--shadow-lg); }
.pub-banner-inner {
  display: flex; align-items: center; gap: 28px; padding: 24px 36px;
  position: relative; overflow: hidden; min-height: 110px;
}
.pub-banner-inner::after  { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.pub-banner-inner::before { content: ''; position: absolute; right: 80px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.pub-banner-icon { font-size: 52px; color: white; opacity: .9; flex-shrink: 0; position: relative; z-index: 1; }
.pub-banner-text { flex: 1; position: relative; z-index: 1; }
.pub-banner-tag {
  display: inline-block; background: rgba(255,255,255,.2); color: white;
  font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px;
}
.pub-banner-text h3 { font-size: 20px; font-weight: 900; color: white; }
.pub-banner-text p  { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 4px; }
.pub-banner-cta {
  background: white; border-radius: 10px; padding: 11px 26px;
  font-size: 13.5px; font-weight: 800; flex-shrink: 0;
  cursor: pointer; transition: transform .2s; position: relative; z-index: 1;
  white-space: nowrap; border: none; font-family: inherit;
}
.pub-banner-cta:hover { transform: scale(1.04); }


/* ============================================================
   16. SPONSORED ADS SECTION
   ============================================================ */
.pub-section {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden;
}
.pub-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
}
.pub-section-label {
  font-size: 11.5px; font-weight: 700; color: var(--text-light);
  letter-spacing: .4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.pub-section .slider-wrapper { margin: 14px; border-radius: var(--radius); }

.pub-card {
  border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border);
  cursor: pointer; transition: box-shadow .2s, transform .2s;
  position: relative; display: flex; flex-direction: column; background: white;
}
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pub-card-img {
  height: 110px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: white; position: relative; flex-shrink: 0;
}
.pub-card-sponsored {
  position: absolute; top: 7px; right: 7px;
  background: rgba(0,0,0,.45); color: white; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .3px;
}
.pub-card-body { padding: 10px 12px 12px; background: white; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pub-card-cat   { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; }
.pub-card-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.pub-card-desc  { font-size: 11.5px; color: var(--text-light); line-height: 1.4; margin-top: 2px; flex: 1; }
.pub-card-cta {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  background: var(--blue); color: white; font-size: 11.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 6px; align-self: flex-start; transition: background .15s;
}
.pub-card-cta:hover { background: var(--blue-dark); }


/* ============================================================
   17. INLINE PUB
   ============================================================ */
.pub-inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pub-inline-card {
  border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden;
  cursor: pointer; transition: box-shadow .2s, transform .2s;
  display: flex; background: white; box-shadow: var(--shadow-sm);
}
.pub-inline-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pub-inline-img  { width: 100px; display: flex; align-items: center; justify-content: center; font-size: 38px; color: white; flex-shrink: 0; }
.pub-inline-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pub-inline-tag  { font-size: 9.5px; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; display: flex; align-items: center; gap: 4px; }
.pub-inline-title { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.35; }
.pub-inline-desc  { font-size: 12px; color: var(--text-light); line-height: 1.45; flex: 1; }
.pub-inline-cta   { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--blue); cursor: pointer; transition: gap .15s; }
.pub-inline-cta:hover { gap: 8px; }


/* ============================================================
   18. FOOTER
   ============================================================ */
.footer { background:#073980; color: white; margin-top: 40px; padding: 40px 0 0; }
.footer-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo      { height: 44px; width: auto; object-fit: contain; margin-bottom: 10px; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 26px; color: white; font-weight: 900; }
.footer-logo-text span { color: var(--orange-light); }
.footer-brand p   { font-size: 13px; color: white; margin-top: 8px; line-height: 1.7; }
.footer-apps      { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app-badge {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: white; cursor: pointer; transition: background .2s;
}
.app-badge i { font-size: 16px; }
.app-badge:hover { background: rgba(255,255,255,.18); }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: white; font-size: 13px; transition: color .15s; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a i { font-size: 11px; width: 14px; color: white; }
.footer-col ul li a:hover { color: rgba(255,255,255,.75); }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-btn {
  background: rgba(255,255,255,.1); border-radius: 8px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; cursor: pointer;
  transition: background .2s; border: 1px solid rgba(255,255,255,.1);
}
.social-btn:hover { background: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; margin-top: 30px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12px; color: #6aabce;
}


/* ============================================================
   19. PAGE : CATEGORIE DETAILS
   ============================================================ */

.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 9px 0; }
.breadcrumb-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: wrap;
}
.breadcrumb-inner a { font-size: 12.5px; color: var(--text-light); display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.breadcrumb-inner a:hover { color: var(--blue); }
.bc-sep     { font-size: 9px; color: var(--border); }
.bc-current { font-size: 12.5px; color: var(--text-sec); font-weight: 600; }
.breadcrumb-count { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.breadcrumb-count i { color: var(--blue); }

.cat-hero {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue) 60%, var(--blue-light) 100%);
  border-radius: var(--radius-lg); padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; box-shadow: var(--shadow-lg);
}
.cat-hero-left { display: flex; align-items: center; gap: 18px; }
.cat-hero-img {
  width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-img i   { font-size: 26px; color: white; }
.cat-hero-title { font-size: 24px; font-weight: 900; color: white; }
.cat-hero-sub   { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-hero-sep   { color: rgba(255,255,255,.35); }
.cat-hero-post  {
  background: var(--orange); color: white; border-radius: 10px; padding: 11px 22px;
  font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s; white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.cat-hero-post:hover { background: var(--orange-light); transform: translateY(-2px); }

.subcat-card {
  flex: 0 0 calc(16.666% - 12px); min-width: 90px;
  background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border);
  padding: 14px 8px 12px; text-align: center; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.subcat-card:hover,
.subcat-card.active {
  border-color: var(--blue); background: var(--blue-pale);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.subcat-name  { font-size: 11.5px; font-weight: 700; color: var(--text-sec); line-height: 1.3; }
.subcat-count { font-size: 10px; color: var(--text-light); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 11px 18px; box-shadow: var(--shadow-sm); gap: 14px; flex-wrap: wrap;
}
.results-count { font-size: 14px; color: var(--text-sec); display: flex; align-items: center; gap: 8px; }
.results-count i { color: var(--blue); }
.results-count strong { color: var(--blue); font-size: 16px; }
.results-controls { display: flex; align-items: center; gap: 10px; }

.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-btn {
  width: 34px; height: 34px; background: white; border: none; cursor: pointer;
  color: var(--text-light); font-size: 14px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.view-btn.active             { background: var(--blue); color: white; }
.view-btn:hover:not(.active) { background: var(--blue-pale); color: var(--blue); }

.sort-select {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 7px 30px 7px 12px; font-family: inherit; font-size: 13px;
  color: var(--text); background: white; cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23368cc3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.sort-select:focus { border-color: var(--blue); }

.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ads-grid.list-view { grid-template-columns: 1fr !important; }
.ads-grid.list-view .ad-card     { flex-direction: row; }
.ads-grid.list-view .ad-img-wrap { width: 190px; height: auto; min-height: 140px; flex-shrink: 0; }
.ads-grid.list-view .ad-body     { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; }
.ads-grid.list-view .ad-title    { flex: 1 1 100%; min-height: auto; font-size: 15px; }
.ads-grid.list-view .ad-price    { font-size: 20px; margin-right: auto; }
.ads-grid.list-view .ad-divider  { display: none; }
.ads-grid.list-view .ad-meta     { margin-left: auto; }
.ads-grid.list-view .ad-favorite { position: static; width: 34px; height: 34px; border: 1.5px solid var(--border); }

.ads-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-sec);
  margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.ads-section-label i { color: var(--blue); }

.cat-detail-main { max-width: 1300px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: 242px 1fr; gap: 20px; }

.filter-reset-btn {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.75); font-size: 11px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color .15s;
  text-decoration: none;
}
.filter-reset-btn:hover { color: white; }

.filter-group { padding: 13px 16px; border-bottom: 1px solid var(--bg); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.filter-group-title i { color: var(--blue); font-size: 11px; }

.filter-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.filter-price-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 7px 10px; font-family: inherit; font-size: 13px;
  color: var(--text); outline: none; transition: border-color .15s; width: 100%;
}
.filter-price-input:focus { border-color: var(--blue); }
.filter-price-sep { color: var(--text-light); font-size: 12px; flex-shrink: 0; }

.filter-search-wrap { position: relative; margin-bottom: 8px; }
.filter-search-wrap i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-light); }
.filter-search-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px 6px 28px; font-family: inherit; font-size: 12.5px;
  outline: none; transition: border-color .15s;
}
.filter-search-input:focus { border-color: var(--blue); }

.filter-checkboxes {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 185px; overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: var(--blue-pale2) transparent;
}
.filter-check {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 7px; cursor: pointer;
  transition: background .12s; font-size: 13px; color: var(--text-sec);
}
.filter-check:hover { background: var(--blue-pale); }
.filter-check input[type="checkbox"] { accent-color: var(--blue); width: 14px; height: 14px; cursor: pointer; }
.filter-check span  { flex: 1; }
.filter-check small { font-size: 11px; color: var(--text-light); }

.filter-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-radio {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 20px; border: 1.5px solid var(--border);
  cursor: pointer; font-size: 12.5px; color: var(--text-sec);
  transition: all .15s; background: white;
}
.filter-radio input { display: none; }
.filter-radio:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); font-weight: 700; }

.filter-apply-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 14px 16px 16px;
  background: var(--blue); color: white; border: none; border-radius: var(--radius);
  padding: 11px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .15s;
}
.filter-apply-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 18px;
  border-radius: var(--radius); border: 1.5px solid var(--border); background: white;
  color: var(--blue); font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.page-btn:hover:not(:disabled) { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-numbers { display: flex; gap: 6px; align-items: center; }
.page-num {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: white; color: var(--text-sec);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.page-num:hover  { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.page-num.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-ellipsis   { color: var(--text-light); font-size: 14px; padding: 0 4px; }

.ads-loading { text-align: center; padding: 40px 0; display: none; color: var(--text-light); }
.ads-loading i { font-size: 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   20. PAGE : ANNONCE DETAILS
   ============================================================ */
.detail-main { max-width: 1300px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.detail-left  { display: flex; flex-direction: column; gap: 20px; }
.detail-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }

.gallery-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-main { position: relative; height: 420px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main-placeholder { font-size: 120px; color: var(--blue); opacity: .22; }
.gallery-badge-wrap { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.gallery-count { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,.55); color: white; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; font-size: 16px; color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: background .15s; backdrop-filter: blur(4px); }
.gallery-btn:hover { background: white; }
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex-shrink: 0; width: 76px; height: 60px; border-radius: 8px; border: 2.5px solid transparent; background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; transition: border-color .15s; font-size: 26px; color: var(--blue); opacity: .5; }
.gallery-thumb.active { border-color: var(--blue); opacity: 1; }
.gallery-thumb:hover  { border-color: var(--blue-light); opacity: .85; }

.title-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.title-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ad-title-main { font-size: 20px; font-weight: 900; color: var(--text); line-height: 1.3; flex: 1; }
.title-actions { display: flex; gap: 8px; flex-shrink: 0; }
.action-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: white; cursor: pointer; color: var(--text-light); font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.action-btn:hover { border-color: var(--blue); color: var(--blue); }
.action-btn.liked { color: var(--red); border-color: var(--red); }
.price-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.price-main { font-size: 28px; font-weight: 900; color: var(--blue); }
.price-main .currency { font-size: 16px; color: var(--blue-light); margin-left: 4px; font-weight: 600; }
.price-neg { display: inline-flex; align-items: center; gap: 5px; background: var(--green-light); color: var(--green); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.title-meta { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.title-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-light); }
.title-meta-item i { font-size: 11px; color: var(--blue-light); }
.title-meta-item a { color: var(--blue); font-weight: 600; }

.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 9px; }
.card-header::before { content: ''; display: block; width: 4px; height: 18px; background: var(--blue); border-radius: 2px; }

.specs-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.spec-item  { display: flex; flex-direction: column; gap: 3px; padding: 14px 20px; border-bottom: 1px solid var(--bg); }
.spec-item:nth-child(odd) { border-right: 1px solid var(--bg); }
.spec-label { font-size: 11.5px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.spec-value { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.spec-value i { color: var(--blue); font-size: 13px; }

.desc-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.desc-body { padding: 18px 20px; font-size: 14px; color: var(--text-sec); line-height: 1.75; }
.desc-body p { margin-bottom: 10px; }
.desc-body p:last-child { margin-bottom: 0; }
.desc-show-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--blue); cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none; font-family: inherit; width: 100%; transition: background .15s; }
.desc-show-more:hover { background: var(--blue-pale); }

.tips-card  { background: #fffbf0; border: 1px solid #ffe082; border-radius: var(--radius-lg); padding: 16px 20px; }
.tips-title { font-size: 13.5px; font-weight: 800; color: #b8860b; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tips-list  { display: flex; flex-direction: column; gap: 7px; }
.tips-list li { font-size: 12.5px; color: #7a6200; display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.tips-list li i { font-size: 11px; color: #b8860b; margin-top: 2px; flex-shrink: 0; }

.similar-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.similar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }

.seller-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.seller-header { background: linear-gradient(135deg, var(--blue-darker), var(--blue)); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.seller-avatar { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.2); border: 2.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: white; flex-shrink: 0; }
.seller-info { flex: 1; min-width: 0; }
.seller-name { font-size: 15px; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-type { font-size: 11.5px; color: rgba(255,255,255,.75); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.seller-type i { font-size: 10px; }
.seller-verified { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; }
.seller-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.seller-stat-row { display: flex; justify-content: space-between; }
.seller-stat     { text-align: center; }
.seller-stat-val { font-size: 16px; font-weight: 900; color: var(--blue); }
.seller-stat-lbl { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.seller-rating-row   { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seller-stars        { color: var(--orange); font-size: 13px; display: flex; gap: 2px; }
.seller-rating-val   { font-size: 14px; font-weight: 700; color: var(--text); }
.seller-rating-count { font-size: 12px; color: var(--text-light); }
.seller-member { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

.btn-call { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue); color: white; border: none; border-radius: var(--radius); padding: 13px; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s, transform .15s; width: 100%; }
.btn-call:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-call .phone-hidden { font-size: 13px; opacity: .75; margin-left: 4px; }
.btn-msg { display: flex; align-items: center; justify-content: center; gap: 9px; background: white; color: var(--blue); border: 2px solid var(--blue); border-radius: var(--radius); padding: 11px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; width: 100%; margin-top: 8px; }
.btn-msg:hover { background: var(--blue-pale); }
.seller-profile-link { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--blue); font-weight: 700; padding: 10px; border-top: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.seller-profile-link:hover { background: var(--blue-pale); }

.location-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.location-map  { height: 160px; background: linear-gradient(135deg, #dde5ef, #c5d8ed); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.location-map-placeholder { font-size: 52px; color: var(--blue); opacity: .3; }
.location-map-pin { position: absolute; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(54,140,195,.4); }
.location-map-pin i { transform: rotate(45deg); color: white; font-size: 14px; }
.location-body { padding: 14px 16px; }
.location-name { font-size: 14px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 7px; }
.location-name i { color: var(--blue); }
.location-sub  { font-size: 12.5px; color: var(--text-light); margin-top: 4px; display: flex; align-items: center; gap: 5px; }

.detail-pub { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-pub-label { background: var(--bg); border-bottom: 1px solid var(--border); padding: 6px 14px; font-size: 10.5px; font-weight: 700; color: var(--text-light); letter-spacing: .4px; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.detail-pub-inner { padding: 14px; }
.detail-pub-slot  { border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.detail-pub-slot h4 { font-size: 14px; font-weight: 800; color: white; margin: 10px 0 6px; }
.detail-pub-slot p  { font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 14px; line-height: 1.5; }
.detail-pub-slot .pub-cta-btn { display: inline-block; background: white; border-radius: 6px; padding: 7px 18px; font-size: 12px; font-weight: 800; cursor: pointer; }

.report-btn { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--text-light); background: none; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 9px; cursor: pointer; font-family: inherit; width: 100%; transition: all .15s; }
.report-btn:hover { color: var(--red); border-color: var(--red); }


/* ============================================================
   21. PAGE : BOUTIQUE DETAILS
   ============================================================ */
.store-hero { background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue) 55%, var(--blue-light) 100%); position: relative; overflow: hidden; }
.store-hero-banner { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; }
.store-hero-banner-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 12px); }
.store-hero-cover-icon { font-size: 90px; color: rgba(255,255,255,.08); z-index: 1; }
.store-hero-bottom { max-width: 1300px; margin: 0 auto; padding: 0 20px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.store-hero-left { display: flex; align-items: flex-end; gap: 20px; }
.store-hero-avatar { width: 96px; height: 96px; border-radius: 20px; background: white; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 900; color: var(--blue-darker); border: 4px solid white; box-shadow: 0 4px 20px rgba(0,0,0,.2); flex-shrink: 0; margin-bottom: -12px; position: relative; z-index: 2; }
.store-hero-info { padding-bottom: 4px; }
.store-hero-name { font-size: 24px; font-weight: 900; color: white; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.store-hero-verified { background: rgba(255,255,255,.18); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.store-hero-cat { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.store-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.store-action-btn { display: flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: var(--radius); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
.store-action-btn.primary { background: white; color: var(--blue-darker); border: none; }
.store-action-btn.primary:hover { background: var(--blue-pale); }
.store-action-btn.outline { background: rgba(255,255,255,.12); color: white; border: 1.5px solid rgba(255,255,255,.35); }
.store-action-btn.outline:hover { background: rgba(255,255,255,.22); }

.store-stats-bar { background: white; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.store-stats-inner { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; }
.store-stat-item { display: flex; flex-direction: column; align-items: center; padding: 14px 28px; border-right: 1px solid var(--border); gap: 3px; min-width: 110px; }
.store-stat-item:last-child { border-right: none; }
.store-stat-val    { font-size: 20px; font-weight: 900; color: var(--blue); }
.store-stat-lbl    { font-size: 11.5px; color: var(--text-light); }
.store-stat-stars  { color: var(--orange); font-size: 13px; display: flex; gap: 2px; margin-bottom: 2px; }
.store-stat-member { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; padding: 14px 28px; margin-left: auto; }

.store-nav { background: white; border-bottom: 2px solid var(--border); position: sticky; top: 68px; z-index: 90; }
.store-nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; overflow-x: auto; scrollbar-width: none; }
.store-nav-inner::-webkit-scrollbar { display: none; }
.store-tab { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-light); background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: all .15s; white-space: nowrap; margin-bottom: -2px; }
.store-tab:hover  { color: var(--blue); }
.store-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 800; }
.store-tab .tab-count { background: var(--blue-pale); color: var(--blue); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

.store-main { max-width: 1300px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.store-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 130px; }
.store-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.sidebar-widget { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-header  { background: var(--blue); color: white; padding: 10px 16px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.about-body { padding: 16px; }
.about-body p { font-size: 13px; color: var(--text-sec); line-height: 1.65; }
.about-info { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--bg); }
.about-info-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-sec); }
.about-info-item i { color: var(--blue); width: 16px; font-size: 12px; flex-shrink: 0; }
.about-info-item a { color: var(--blue); font-weight: 600; }

.similar-store { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .15s; border-bottom: 1px solid var(--bg); }
.similar-store:last-child { border-bottom: none; }
.similar-store:hover { background: var(--blue-pale); }
.similar-store-avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: white; flex-shrink: 0; }
.similar-store-name { font-size: 13px; font-weight: 700; color: var(--text); }
.similar-store-cat  { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

.store-pub-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.store-pub-banner-inner { display: flex; align-items: center; gap: 24px; padding: 20px 28px; position: relative; overflow: hidden; }
.store-pub-banner-inner::after { content: ''; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.07); }
.store-pub-icon { font-size: 42px; color: white; opacity: .9; flex-shrink: 0; z-index: 1; }
.store-pub-text { flex: 1; z-index: 1; }
.store-pub-text h3 { font-size: 18px; font-weight: 900; color: white; }
.store-pub-text p  { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 4px; }
.store-pub-cta { background: white; border-radius: 10px; padding: 10px 22px; font-size: 13px; font-weight: 800; flex-shrink: 0; cursor: pointer; border: none; font-family: inherit; z-index: 1; transition: transform .15s; }
.store-pub-cta:hover { transform: scale(1.04); }

.review-summary   { display: flex; align-items: center; gap: 28px; padding: 20px; background: var(--bg); border-radius: var(--radius-lg); margin-bottom: 4px; flex-wrap: wrap; }
.review-big-score { text-align: center; }
.review-big-num   { font-size: 52px; font-weight: 900; color: var(--blue); line-height: 1; }
.review-big-stars { color: var(--orange); font-size: 18px; display: flex; gap: 3px; justify-content: center; margin: 6px 0 4px; }
.review-big-count { font-size: 12px; color: var(--text-light); }
.review-bars      { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 200px; }
.review-bar-row   { display: flex; align-items: center; gap: 10px; }
.review-bar-label { font-size: 12px; color: var(--text-light); width: 50px; text-align: right; flex-shrink: 0; display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.review-bar-label i { color: var(--orange); font-size: 10px; }
.review-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.review-bar-fill  { height: 100%; background: var(--orange); border-radius: 4px; }
.review-bar-count { font-size: 12px; color: var(--text-light); width: 28px; flex-shrink: 0; }

.review-card   { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.review-author { font-size: 14px; font-weight: 700; color: var(--text); }
.review-date   { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.review-stars  { color: var(--orange); font-size: 13px; display: flex; gap: 2px; margin-left: auto; }
.review-text   { font-size: 13.5px; color: var(--text-sec); line-height: 1.65; }


/* ============================================================
   22. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .header-inner    { gap: 12px; height: 62px; }
  .search-category { min-width: 120px; }
  .search-location { display: none; }
  .btn-login       { display: none; }
  .menu-toggle { display: flex; }
  .main              { grid-template-columns: 210px 1fr; gap: 14px; padding: 16px; }
  .cat-detail-main   { grid-template-columns: 210px 1fr; gap: 14px; padding: 16px; }
  .slider-track .ad-card    { flex: 0 0 calc(33.333% - 10px); }
  .slider-track .store-card { flex: 0 0 calc(33.333% - 10px); }
  .slider-track .pub-card   { flex: 0 0 calc(50% - 7px); }
  .slider-track .cat-block  { flex: 0 0 calc(25% - 11px); }
  .ads-grid  { grid-template-columns: repeat(3, 1fr); }
  .pub-inline-row { grid-template-columns: 1fr; }
  .hero-banner { height: 380px; }
  .subcat-card { flex: 0 0 calc(25% - 11px); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .detail-main  { grid-template-columns: 1fr 300px; gap: 16px; }
  .gallery-main { height: 340px; }
  .store-main      { grid-template-columns: 240px 1fr; gap: 16px; }
  .store-stat-item { padding: 14px 18px; min-width: 90px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .logo img     { height: 38px; }
  .menu-toggle  { display: flex; }
  .btn-login    { display: none; }
  .search-form  { order: 3; width: 100%; flex: none; height: 40px; }
  .search-category { min-width: 110px; font-size: 12px; }
  .search-location { display: none; }
  .search-btn span { display: none; }
  .search-btn  { padding: 0 14px; }
  .btn-post .btn-label { display: none; }
  .btn-post    { padding: 7px 10px; }
  .main    { grid-template-columns: 1fr; padding: 12px 14px; gap: 14px; }
  .main .sidebar { display: none; }
  .cat-detail-main { grid-template-columns: 1fr; padding: 12px 14px; gap: 12px; }
  .cat-detail-main .sidebar { display: flex; position: static; max-height: none; }
  .slider-track .ad-card    { flex: 0 0 calc(50% - 7px); }
  .slider-track .store-card { flex: 0 0 calc(50% - 7px); }
  .slider-track .pub-card   { flex: 0 0 100%; }
  .slider-track .cat-block  { flex: 0 0 calc(33.333% - 10px); min-width: 80px; }
  .slider-nav-btn { width: 28px; height: 28px; font-size: 11px; }
  .ad-img-wrap { height: 130px; }
  .ad-img-icon { font-size: 46px; }
  .ad-body  { padding: 9px 10px 11px; gap: 4px; }
  .ad-title { font-size: 12.5px; min-height: 34px; }
  .ad-price { font-size: 14px; }
  .ad-meta  { font-size: 10.5px; gap: 4px; }
  .cat-block .icon-wrap { width: 48px; height: 48px; font-size: 20px; }
  .cat-block .name  { font-size: 11px; }
  .cat-block .count { display: none; }
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ads-grid.list-view .ad-card     { flex-direction: column; }
  .ads-grid.list-view .ad-img-wrap { width: 100%; }
  .ads-grid.list-view .ad-body     { flex-direction: column; }
  .hero-banner { height: 220px; }
  .cat-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 16px; }
  .cat-hero-title { font-size: 18px; }
  .cat-hero-post  { width: 100%; justify-content: center; }
  .breadcrumb-bar { display: none; }
  .results-bar      { flex-direction: column; align-items: flex-start; gap: 10px; }
  .results-controls { width: 100%; justify-content: space-between; }
  .sort-select      { flex: 1; }
  .subcat-card { flex: 0 0 calc(33.333% - 10px); }
  .pub-inline-row { grid-template-columns: 1fr; }
  .pub-banner-inner { flex-direction: column; text-align: center; padding: 20px 18px; gap: 14px; }
  .pub-banner-cta   { width: 100%; justify-content: center; }
  .promo-banner { flex-direction: column; text-align: center; padding: 20px 18px; gap: 12px; }
  .promo-icon   { font-size: 32px; }
  .promo-btn    { margin-left: 0; width: 100%; justify-content: center; }
  .footer-inner  { grid-template-columns: 1fr; gap: 22px; padding: 0 14px; }
  .footer-brand  { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 4px; padding: 14px; text-align: center; }
  .detail-main  { grid-template-columns: 1fr; padding: 12px 14px; }
  .detail-right { position: static; }
  .gallery-main { height: 260px; }
  .gallery-main-placeholder { font-size: 80px; }
  .specs-grid   { grid-template-columns: 1fr; }
  .spec-item:nth-child(odd) { border-right: none; }
  .similar-grid { grid-template-columns: 1fr; }
  .ad-title-main { font-size: 17px; }
  .price-main    { font-size: 22px; }
  .store-hero-bottom  { flex-direction: column; align-items: flex-start; }
  .store-hero-name    { font-size: 20px; }
  .store-hero-avatar  { width: 76px; height: 76px; font-size: 28px; }
  .store-stats-inner  { overflow-x: auto; scrollbar-width: none; }
  .store-stats-inner::-webkit-scrollbar { display: none; }
  .store-tab          { padding: 12px 14px; font-size: 13px; }
  .store-main         { grid-template-columns: 1fr; padding: 12px 14px; }
  .store-sidebar      { display: none; }
  .store-pub-banner-inner { flex-direction: column; text-align: center; gap: 14px; }
  .store-pub-cta      { width: 100%; }
}

@media (max-width: 480px) {
  .search-category { min-width: 90px; font-size: 11px; }
  .slider-track .ad-card    { flex: 0 0 100%; }
  .slider-track .store-card { flex: 0 0 calc(50% - 7px); }
  .slider-track .cat-block  { flex: 0 0 calc(50% - 7px); }
  .ads-grid    { grid-template-columns: 1fr; }
  .subcat-card { flex: 0 0 calc(50% - 7px); }
  .hero-banner { height: 170px; }
  .cat-hero-title { font-size: 16px; }
  .page-btn  { padding: 8px 12px; font-size: 12px; }
  .page-num  { width: 32px; height: 32px; font-size: 12px; }
  .gallery-main { height: 220px; }
  .gallery-thumbs { gap: 6px; }
  .gallery-thumb  { width: 60px; height: 48px; }
  .similar-grid { grid-template-columns: 1fr; }
  .store-stat-item { padding: 12px 14px; min-width: 80px; }
  .mobile-menu-inner { width: 100%; max-width: 340px; }
}


/* ============================================================
   23. PAGE : RÉSULTATS DE RECHERCHE
   ============================================================ */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12.5px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i.fa-chevron-right { font-size: 9px; color: var(--border); }
.breadcrumb span { color: var(--text-sec); font-weight: 600; }

.mobile-filter-btn {
  display: none;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
.mobile-filter-btn:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}
.mobile-filter-btn span { display: flex; align-items: center; gap: 8px; }
.mobile-filter-btn i.fa-chevron-down { font-size: 12px; color: var(--text-light); transition: transform .25s; }

.search-page {
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 40px;
}

.search-page .sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(250vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.search-page .sidebar::-webkit-scrollbar { display: none; }

.filter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.filter-head {
  background: var(--blue);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-head h3 {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset-sm {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-reset-sm:hover { background: rgba(255,255,255,.28); color: #fff; }

.filter-body { padding: 4px 0 6px; }

.filter-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 7px;
}

.filter-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.filter-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54,140,195,.1);
}
.filter-input::placeholder { color: var(--text-light); }

.filter-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 30px 8px 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23368cc3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54,140,195,.1);
}
.filter-select:disabled { opacity: .5; cursor: not-allowed; }

.btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 14px 16px 8px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-apply:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-reset:hover { color: var(--red); border-color: var(--red); background: #fff5f5; }

.results-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
}
.active-filters:empty { display: none; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-pale2);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s;
}
.filter-tag i { font-size: 10px; opacity: .7; }
.filter-tag:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  gap: 14px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 14px;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 6px;
}
.results-count strong {
  font-size: 17px;
  font-weight: 900;
  color: var(--blue);
}

.results-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.pagination-wrap nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  transition: all .15s;
  text-decoration: none;
}
.pagination-wrap a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.pagination-wrap span[aria-current="page"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  font-weight: 700;
}
.pagination-wrap span.dots {
  border: none;
  background: transparent;
  color: var(--text-light);
  min-width: auto;
  padding: 0 4px;
}

@media (max-width: 1024px) {
  .search-page { grid-template-columns: 220px 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .search-page { grid-template-columns: 1fr; gap: 14px; }
  .mobile-filter-btn { display: flex; }
  .search-page .sidebar {
    display: none;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .results-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .results-header-right { width: 100%; justify-content: space-between; }
  .sort-select { flex: 1; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .breadcrumb { display: none; }
  .search-loading { padding: 40px 16px; }
}


/* ============================================================
   ANNONCE DETAILS — styles spécifiques
   ============================================================ */

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  inset: 0;
}
.gallery-main-img.active { display: block; }

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-main { position: relative; }

.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
}
.gallery-overlay.open { display: flex; }

.gallery-overlay-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.gallery-overlay-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.gallery-overlay-close:hover { background: rgba(255, 255, 255, .25); }

.gallery-overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.gallery-overlay-nav:hover { background: rgba(255, 255, 255, .25); }
.gallery-overlay-nav.prev { left: 18px; }
.gallery-overlay-nav.next { right: 18px; }

.gallery-overlay-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, .4);
  padding: 4px 14px;
  border-radius: 20px;
}

.share-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .5);
  align-items: center;
  justify-content: center;
}
.share-modal.open { display: flex; }

.share-modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  width: 380px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}

.share-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.share-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-url-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-sec);
  outline: none;
  background: var(--bg);
}

.share-copy-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.share-copy-btn:hover { background: var(--blue-dark); }

.share-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
.share-social-btn:hover { opacity: .85; }

.share-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
}

.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    box-sizing: border-box;
  }

  .mobile-cta-bar .btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
  }

  .mobile-cta-bar .btn-call i { flex: 0 0 auto; }

  .detail-right .btn-call,
  .detail-right .btn-msg { display: none; }

  body { padding-bottom: 88px; }
}

@media (max-width: 480px) {
  .mobile-cta-bar { padding: 10px; }
  .mobile-cta-bar .btn-call { font-size: 13px; padding: 12px 10px; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-item:nth-child(odd) { border-right: none; }
}


/* ============================================================
   SHOP BANNER SLIDER
   ============================================================ */
.shop-banner-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 18px 0;
  aspect-ratio: 4 / 1;
  background: #111;
  box-shadow: 0 4px 24px rgba(0,0,0,.13);
}

.shop-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.shop-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.shop-banner-slide img {
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.shop-banner-slide:hover img { transform: scale(1.02); }

.shop-banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: #1a5a8a;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
}

.shop-banner-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.shop-banner-btn.prev { left: 12px; }
.shop-banner-btn.next { right: 12px; }

.shop-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.shop-banner-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
  padding: 0;
}

.shop-banner-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

.subcat-card .subcat-img {
  width: 52px; height: 52px; border-radius: 12px;
  overflow: hidden; margin: 0 auto 6px;
  background: #f0f4f8;
  display: flex; align-items: center; justify-content: center;
}
.subcat-card .subcat-img img { width: 100%; height: 100%; object-fit: cover; }
.subcat-card .subcat-img i   { font-size: 22px; color: #1a73e8; }
.subcat-card.active { border-color: var(--blue, #1a73e8); background: #e8f0fe; }
.ad-img-wrap img.ad-main-img { width: 100%; height: 100%; object-fit: cover; }
.ad-card.hidden-subcat { display: none !important; }
.cat-hero-img {
  width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden; background: #e8f0fe;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-img i   { font-size: 26px; color: var(--blue, #1a73e8); }
.ads-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #555;
  margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #eee;
}
.ads-section-label i { color: #1a73e8; }
.ads-loading { text-align:center; padding:40px 0; display:none; color:#888; }
.ads-loading i { font-size:24px; animation: spin 1s linear infinite; }

.filter-group-commune { display: none; }
.filter-group-commune.visible { display: block; }