﻿html,
body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container,
#content-wrapper,
#wrapper,
#main,
#content,.page-home,.gwada-homepage,.sv-home {
  min-width: 0;
  max-width: 100%;
}

.sv-home,.sv-home * {
  box-sizing: border-box;
  min-width: 0;
}

/* =========================================================
   SHOP VITRINE - HOME MOBILE FIRST
   Version propre sans doublons
========================================================= */

.sv-home {
  width: 100%;
  min-width: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  overflow-x: hidden;
}

/* ===============================
   HERO
================================ */

.sv-home-hero {
  margin-bottom: 24px;
}

.sv-home-hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  color: #111;
}

.sv-home-hero__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

/* ===============================
   SEARCH BLOCK
================================ */

.sv-home-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-home-search select,
.sv-home-search .sv-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.sv-home-search select {
  appearance: auto;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111;
  padding: 0 16px;
  order: 1;
}

.sv-home-search__actions {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-home-selected-address {
  order: 3;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

#home-clear-map-search {
  order: 4;
}

/* ===============================
   BUTTONS
================================ */

.sv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  border-radius: 14px;
  transition: 0.2s ease;
  cursor: pointer;
}

.sv-btn:hover {
  text-decoration: none;
}

.sv-btn--geo,
.sv-btn--primary {
  background: #ff5a00;
  color: #fff;
  border: none;
}

.sv-btn--geo:hover,
.sv-btn--primary:hover {
  background: #e14d00;
  color: #fff;
}

.sv-btn--map {
  background: #fff7ed;
  color: #ff5a00;
  border: 2px solid #ff5a00;
}

.sv-btn--map:hover {
  background: #ffedd5;
  color: #e14d00;
}

.sv-btn--ghost {
  background: #fff;
  color: #6b7280;
  border: 1px solid #ddd;
}

.sv-btn--ghost:hover {
  background: #f9fafb;
  color: #111827;
}

/* ===============================
   SEARCH STATUS
================================ */

.sv-home-search-status {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  color: #666;
}

/* ===============================
   CHIPS
================================ */

.sv-home-chips {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 4px 0 6px;
  margin-top: 14px;
  flex-wrap: nowrap;
}

.sv-home-chips::-webkit-scrollbar {
  display: none;
}

.sv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff5a00;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sv-chip--icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 56px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: hidden;
}

.sv-chip-img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 112px;
  max-height: 52px;
  object-fit: contain;
}

/* Mobile plus compact */
@media (max-width: 767px) {
  .sv-chip--icon-only {
    min-width: 100px;
    min-height: 50px;
  }

  .sv-chip-img {
    height: 46px;
    max-width: 124px;
    max-height: 58px;
  }
}


/* ===============================
   SECTION HEAD
================================ */

.sv-home-section-head {
  margin-bottom: 12px;
}

.sv-home-section-head h2,
.sv-home-section-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

/* ===============================
   FEATURED SHOP
================================ */

.sv-home-featured {
  margin: 24px 0;
  padding: 18px;
  background: #fff3eb;
  border: 1px solid #ffd8bf;
  border-radius: 18px;
}

.sv-home-featured h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.sv-home-featured__meta {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.sv-home-featured p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.sv-home-featured .sv-btn {
  margin-top: 10px;
  background: #111;
  color: #fff;
}
.sv-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* ===============================
   CATEGORIES
================================ */

.sv-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f7f7f7;
  text-decoration: none;
  color: #111;
  overflow: hidden;
}

.sv-cat--icon-only {
  min-width: 96px;
  min-height: 72px;
  padding: 10px;
}

.sv-cat-img {
  display: block;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.sv-cat-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  white-space: nowrap;
}

/* Modes */
.sv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff5a00;
  text-decoration: none;
  overflow: hidden;
}

.sv-chip--icon-only {
  padding: 8px 12px;
  min-width: 86px;
}

.sv-chip-img {
  display: block;
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
}

/* =========================================================
   HOME RESTAURANT CARDS - inspired by /shops
========================================================= */

.sv-list--home-restaurants {
  display: grid;
  gap: 16px;
}

.sv-home-shop-card2 {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: #fffaf5;
  border: 1px solid #f3d7bf;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sv-home-shop-card2__top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.sv-home-shop-card2__logo {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-home-shop-card2__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-home-shop-card2__placeholder {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
}

.sv-home-shop-card2__meta {
  min-width: 0;
}

.sv-home-shop-card2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sv-home-shop-card2__head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  color: #111;
}

.sv-home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sv-home-badge--open {
  background: #dcfce7;
  color: #166534;
}

.sv-home-badge--soon {
  background: #fef3c7;
  color: #92400e;
}

.sv-home-badge--closed {
  background: #fee2e2;
  color: #991b1b;
}

.sv-home-shop-card2__address {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.sv-home-shop-card2__status {
  margin-top: 8px;
}

.sv-home-shop-card2__acceptance {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.sv-home-shop-card2__acceptance.is-ok {
  color: #166534;
}

.sv-home-shop-card2__acceptance.is-ko {
  color: #b91c1c;
}

.sv-home-shop-card2__infos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sv-home-shop-card2__infos span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0dcc8;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.sv-home-shop-card2__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-home-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  padding: 0 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee3d7;
  overflow: hidden;
}

.sv-home-service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sv-home-service-icon span {
  font-size: 13px;
  font-weight: 700;
  color: #404040;
}

.sv-home-shop-card2__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.sv-home-shop-card2__footer {
  margin-top: 4px;
}

.sv-home-shop-card2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

.sv-home-shop-card2__cta:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .sv-list--home-restaurants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sv-home-shop-card2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
  }
}

@media (min-width: 1100px) {
  .sv-list--home-restaurants {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sv-home-shop-card2 {
    padding: 16px;
    border-radius: 24px;
  }

  .sv-home-shop-card2__top {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .sv-home-shop-card2__logo {
    width: 68px;
    min-width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .sv-home-shop-card2__head {
    display: grid;
    gap: 8px;
    justify-content: start;
  }

  .sv-home-shop-card2__head h3 {
    font-size: 17px;
  }

  .sv-home-service-icon {
    min-width: 96px;
    height: 38px;
  }

  .sv-home-pill {
    min-height: 36px;
    font-size: 13px;
  }

  .sv-home-shop-card2__cta {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 16px;
  }
}

/* ===============================
   FEATURES
================================ */

.sv-home-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.sv-feature-box {
  padding: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
}

.sv-feature-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.sv-feature-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

/* ===============================
   MAP MODAL
================================ */

.gwada-map-modal[hidden] {
  display: none !important;
}

.gwada-map-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gwada-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
}

.gwada-map-modal__dialog {
  position: relative;
  z-index: 2;
  width: calc(100% - 24px);
  max-width: 760px;
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 16px;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
}

.gwada-map-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gwada-map-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ff5a00;
  text-transform: uppercase;
}

.gwada-map-modal__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.gwada-map-modal__close {
  border: none;
  background: #f3f4f6;
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
}

.gwada-map-modal__search {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.gwada-map-modal__search input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
}

.gwada-map-canvas {
  width: 100%;
  height: 46vh;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.gwada-map-selection-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: #666;
}

.gwada-map-modal__actions {
  margin-top: 12px;
}

.gwada-address-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.gwada-address-suggestion {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   TABLET / DESKTOP
================================ */

@media (min-width: 768px) {
  .sv-home {
    max-width: 1100px;
    padding: 24px;
  }

  .sv-home-hero {
    margin-bottom: 28px;
  }

  .sv-home-hero h1 {
    max-width: 720px;
    font-size: 42px;
  }

  .sv-home-hero__lead {
    max-width: 720px;
    font-size: 18px;
  }

  .sv-home-search {
    display: grid;
    grid-template-columns: 1fr 180px 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  .sv-home-search select {
    order: initial;
  }

  .sv-home-search__actions {
    order: initial;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    grid-column: span 2;
  }

  .sv-home-selected-address,
  #home-clear-map-search {
    grid-column: 1 / -1;
  }

  .sv-home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .sv-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gwada-map-modal__search {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .sv-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ===============================
   MODE IMAGES
================================ */

.sv-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 90px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff5a00;
}

.sv-chip-img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}
/* ===============================
   CATEGORIES : slide horizontal sans bloc blanc
================================ */

.sv-home-categories {
  margin: 24px 0;
}

.sv-scroll-x--cats {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 4px 0 8px;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
}

.sv-scroll-x--cats::-webkit-scrollbar {
  display: none;
}

.sv-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  scroll-snap-align: start;
}

.sv-cat--icon-only {
  min-width: 88px;
  min-height: 88px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.sv-cat-img {
  display: block;
  width: auto;
  height: 72px;
  max-width: 88px;
  max-height: 72px;
  object-fit: contain;
}

.sv-cat-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff5a00;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* EmpÃªche l'ancien style bloc blanc de reprendre la main */
.sv-scroll-x--cats .sv-cat,
.sv-scroll-x--cats .sv-cat--icon-only {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Mobile fin */
@media (max-width: 767px) {
     .sv-chip-img {
    height: 40px;
    max-width: 120px;
    max-height: 50px;
  }

  .sv-cat-img {
    height: 64px;
    max-width: 80px;
  }

  .sv-cat--icon-only {
    min-width: 80px;
    min-height: 80px;
  }
}



/* FINAL MOBILE SAFETY - HOME CATEGORIES */
.sv-home-categories {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 24px 0;
  overflow: hidden;
}

.sv-scroll-x--cats {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 4px 0 8px;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.sv-scroll-x--cats::-webkit-scrollbar {
  display: none;
}

.sv-scroll-x--cats .sv-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.sv-scroll-x--cats .sv-cat--icon-only {
  min-width: 80px;
  min-height: 80px;
  padding: 0;
  border-radius: 0;
}

.sv-scroll-x--cats .sv-cat-img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 80px;
  max-height: 64px;
  object-fit: contain;
}

.sv-scroll-x--cats .sv-cat-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff5a00;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sv-scroll-x--cats .sv-cat--icon-only {
    min-width: 88px;
    min-height: 88px;
  }

  .sv-scroll-x--cats .sv-cat-img {
    height: 72px;
    max-width: 88px;
    max-height: 72px;
  }
}

