/* ======================================================
   HIDE ASTRA DEFAULT HEADER
====================================================== */
.ast-primary-header-bar.ast-primary-header.main-header-bar.site-primary-header-wrap.site-header-focus-item.ast-builder-grid-row-layout-default.ast-builder-grid-row-tablet-layout-default.ast-builder-grid-row-mobile-layout-default {
  display: none;
}


/* ======================================================
   SEVACAM - FRONT PAGE
====================================================== */


/* ======================================================
   1. WRAPPER
====================================================== */
.home-app {
  display: block;
  min-height: 100vh;
}


/* ======================================================
   2. HEADER APP
====================================================== */
.app-header {
  display: none;
}

@media (max-width: 768px) {
  .app-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1002;
    background: #fff;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #eee;
  }

  .app-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .app-location {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .app-location-icon {
    font-size: 18px;
  }

  .app-location-text {
    display: flex;
    flex-direction: column;
  }

  .app-location-label {
    font-size: 11px;
    color: #888;
  }

  .app-location-city {
    font-size: 14px;
    font-weight: 600;
  }

  .app-actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .app-action {
    font-size: 18px;
  }

  .app-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .app-search {
    margin-top: 10px;
  }

  .app-search-wrapper {
    position: relative;
  }

  .app-search-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 40px;
    border-radius: 999px;
    border: none;
    background: #f1f1f1;
    font-size: 14px;
    box-sizing: border-box;
  }

  .app-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}


/* ======================================================
   3. SEARCH SUGGESTIONS
====================================================== */
.app-search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1005;
}

.app-search-suggestion-item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f1f1;
}

.app-search-suggestion-item:last-child {
  border-bottom: none;
}


/* ======================================================
   4. HERO
====================================================== */
.home-hero {
  background: #fff;
  padding: 0 0 16px;
  border-bottom: 1px solid #eee;
}

@media (min-width: 769px) {
  .home-hero {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 768px) {
  .home-hero {
    position: relative !important;
    backdrop-filter: none !important;
  }
}


/* ======================================================
   5. CATEGORIES
====================================================== */
.home-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 12px;
}

.home-categories::-webkit-scrollbar {
  display: none;
}

.home-cat {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  appearance: none;
}

.home-cat span {
  font-size: 13px;
  margin-top: 6px;
  color: #555;
}

.home-cat.active span {
  color: #ff385c;
  font-weight: 600;
}

.home-icon {
  width: 60px;
  height: 60px;
}

.home-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ======================================================
   6. FILTERS
====================================================== */
.home-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 14px 0;
}

.home-filters::-webkit-scrollbar {
  display: none;
}

.home-filter-chip {
  flex: 0 0 auto;
  border: none;
  background: #f1f1f1;
  color: #333;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.home-filter-chip.active {
  background: linear-gradient(90deg, #ff385c, #ff7a18);
  color: #fff;
}

.home-filter-chip .count {
  margin-left: 4px;
  font-weight: 500;
  opacity: 0.7;
}


/* ======================================================
   7. SECTION HEADERS
====================================================== */
.home-featured {
  padding-top: 18px;
}

.home-featured h2,
.home-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.home-section-head {
  padding: 0 14px;
  margin-bottom: 16px;
}

.home-section-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}


/* ======================================================
   8. GRID
====================================================== */
.home-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px;
}

.home-grid::-webkit-scrollbar {
  display: none;
}


/* ======================================================
   9. CARD
====================================================== */
.home-card {
  flex: 0 0 45%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.home-card-image {
  position: relative;
  overflow: hidden;
}

.home-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.home-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #ff385c, #ff7a18);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}


/* ======================================================
   10. CARD CONTENT
====================================================== */
.home-card-content {
  padding: 12px;
}

.home-card-content h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  min-height: 40px;
}

.home-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}


/* ======================================================
   11. CARD META
   Distance masquée pour le moment
====================================================== */
.home-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  gap: 8px;
}

.home-distance {
  display: none;
}

.home-rating {
  color: #ff9800;
  font-weight: 700;
  white-space: nowrap;
}


/* ======================================================
   12. ICON BADGES
====================================================== */
.badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge-cashback {
  background: #e9f8ef;
  color: #1db954;
}

.badge-loyalty {
  background: #fff4e5;
  color: #ff9800;
}

.badge-offer {
  background: #ffe8e6;
  color: #ff3b30;
}

.badge-promo {
  background: #ffe0e0;
  color: #ff0000;
}


/* ======================================================
   13. OFFRES DU MOMENT
====================================================== */
.home-section-offers {
  padding-top: 18px;
}

.home-grid-offers .home-meta {
  justify-content: flex-end;
}


/* ======================================================
   14. EMPTY STATE
====================================================== */
.home-empty-state {
  padding: 24px 16px;
  text-align: center;
  opacity: 0.8;
}


/* ======================================================
   15. CTA
====================================================== */
.home-cta {
  margin-top: 30px;
  padding: 30px 14px 50px;
}

.home-cta-box {
  background: #fff;
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.home-cta-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 16px 24px;
  border-radius: 40px;
  background: linear-gradient(90deg, #ff385c, #ff7a18);
  color: #fff;
  text-decoration: none;
}


/* ======================================================
   16. BOTTOM NAV
====================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 1001;
}

.app-bottom-nav a {
  font-size: 11px;
  color: #777;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-bottom-nav a.active {
  color: #ff385c;
}


/* ======================================================
   17. DESKTOP
====================================================== */
@media (min-width: 1024px) {
  .home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .home-card {
    width: 100%;
  }

  .app-bottom-nav {
    display: none;
  }
}


/* ======================================================
   DESIGN UPGRADE - HOME
====================================================== */
body {
  background: #f4f6f8;
}

.home-app {
  background: #f4f6f8;
}

@media (max-width: 768px) {
  .app-header {
    padding: 14px 14px 12px;
    border-bottom: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    border-radius: 0 0 18px 18px;
  }

  .app-search {
    margin-top: 12px;
  }

  .app-search-wrapper input {
    background: #f3f4f6;
    height: 48px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: #111827;
  }
}

.home-featured,
.home-section-offers {
  padding-top: 20px;
}

.home-section-head,
.home-featured > .home-section-head {
  margin-bottom: 14px;
}

.home-featured h2,
.home-section-head h2 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-section-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.home-filters {
  gap: 10px;
  padding: 14px 14px 4px;
}

.home-filter-chip {
  background: #ffffff;
  color: #374151;
  border: 1px solid #eceff3;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.home-filter-chip.active {
  background: linear-gradient(90deg, #ff5a5f, #ff7a18);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 90, 95, 0.22);
}

.home-grid {
  gap: 10px;
  padding: 0 0 0 14px;
}

.home-card {
  flex: 0 0 46%;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.home-card-image {
  border-radius: 22px 22px 0 0;
}

.home-card img {
  height: 168px;
}

.home-overlay {
  background: linear-gradient(to top, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.02));
}

.home-badge {
  top: 12px;
  left: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(255, 59, 48, 0.2);
}

.premium-badge {
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(255, 90, 95, 0.2);
}

.home-card-content {
  padding: 14px 14px 12px;
}

.home-card-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 800;
  color: #111827;
  min-height: 42px;
}

.home-card-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  margin-bottom: 10px;
}

.badge {
  width: 28px;
  height: 28px;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.home-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
}

.home-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff7df;
  color: #d48a00;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.home-distance {
  display: none !important;
}

.home-section-offers .home-card {
  background: #ffffff;
}

.home-section-offers {
  margin-top: 2px;
}

.home-featured + .home-featured,
.home-section-offers + .home-featured {
  margin-top: 4px;
}

.home-cta {
  margin-top: 26px;
  padding: 20px 14px 56px;
}

.home-cta-box {
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.home-cta-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.home-cta-box p {
  color: #4b5563;
}

.home-cta-btn {
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 90, 95, 0.2);
}

.app-bottom-nav {
  height: 74px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.04);
}

.app-bottom-nav a {
  font-size: 11px;
  gap: 4px;
}

.app-bottom-nav a.active {
  color: #ff5a5f;
  font-weight: 700;
}

@media (max-width: 480px) {
  .home-card {
    flex: 0 0 46%;
  }

  .home-card img {
    height: 156px;
  }

  .home-card-content {
    padding: 12px 12px 12px;
  }

  .home-card-content h3 {
    font-size: 15px;
    min-height: 40px;
  }

  .badge {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0 14px;
  }

  .home-card {
    width: 100%;
    flex: initial;
  }
}


/* ======================================================
   CARD HEIGHT + TITLE CLAMP
====================================================== */
.home-card {
  display: flex;
  flex-direction: column;
}

.home-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 116px;
}

.home-card-content h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.32em * 2);
  letter-spacing: -0.01em;
}

.home-card-badges {
  min-height: 28px;
}

.home-meta {
  min-height: 32px;
}


/* ======================================================
   OFFRES DU MOMENT - STYLE PREMIUM
====================================================== */
.home-grid-offers .home-card {
  flex: 0 0 68%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.home-grid-offers .home-card img {
  height: 220px;
  object-fit: cover;
}

.home-grid-offers .home-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.15),
    transparent
  );
}

.home-grid-offers .home-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  color: #fff;
  min-height: auto;
}

.home-grid-offers .home-card-content h3 {
  color: #fff;
  font-size: 16px;
}

.home-grid-offers .home-card-badges {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: auto;
}

.home-grid-offers .badge {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.home-grid-offers .home-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  min-height: auto;
}

.home-grid-offers .home-rating {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}

.home-grid-offers .home-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.home-grid-offers .premium-badge {
  font-size: 11px;
  border-radius: 999px;
}

.home-grid-offers {
  padding-left: 14px;
  gap: 14px;
}

@media (max-width: 480px) {
  .home-grid-offers .home-card {
    flex: 0 0 78%;
  }

  .home-grid-offers .home-card img {
    height: 200px;
  }
}

/* ======================================================
   AUTOUR DE VOUS
====================================================== */

.home-section-near {
  padding-top: 20px;
}

/* cards un peu plus compactes */
.home-grid-near .home-card {
  flex: 0 0 42%;
}

/* meta alignée */
.home-grid-near .home-meta {
  justify-content: space-between;
}

/* distance visible ici uniquement */
.home-grid-near .home-distance {
  display: inline-flex !important;
  background: #f3f4f6;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
/* distance masquée partout par défaut */
.home-distance {
  display: none;
}

/* distance visible dans la rangée Autour de vous */
.home-grid-near .home-distance {
  display: inline-flex !important;
  align-items: center;
  background: #f3f4f6;
  color: #555;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}