/* Feed (store/feed.php): top categories + pill filters (Lieferando-like) */
.feed-quickbar{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 18px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
.feed-quickbar-row{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.feed-quickbar-search{
  flex: 1 1 520px;
  min-width: 360px;
}
.feed-quickbar-input{
  width:100%;
}

.feed-service-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background: #f3f4f6;
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 999px;
  padding: 4px;
}
.feed-service-btn{
  appearance:none;
  border:0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  line-height: 1;
}
.feed-service-btn.active{
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feed-chiprow{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.feed-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(17,24,39,0.10);
  background: #f3f4f6;
  color:#111827;
  font-weight:700;
  font-size: 13px;
  cursor:pointer;
}

/* Merchant menu (store/menu.php): Highlights slider (light theme) */
.merchant-highlights{
  margin-top: 10px;
  color: #111827;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  --swiper-navigation-color: #111827;
  --swiper-navigation-size: 18px;
}
.merchant-highlights .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.merchant-highlights .section-title{
  font-weight: 900;
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
  color:#111827;
}
.merchant-highlights .swiper{
  padding-bottom: 6px;
  background: transparent;
  overflow: hidden;
}
.merchant-highlights .swiper-slide{
  width: 320px;
}

.merchant-highlights .highlight-card{
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.merchant-highlights .highlight-card:focus{ outline: none; }
.merchant-highlights .highlight-card:focus-visible{ outline: none; }
.merchant-highlights .highlight-card:focus-visible .highlight-card-inner{
  box-shadow: 0 0 0 3px rgba(203,6,6,0.18), 0 10px 26px rgba(17,24,39,0.12);
}
.merchant-highlights .highlight-card-inner{
  width: 100%;
  height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 14px;
  /* Product "box" (requested): keep slider area background transparent, but card has a subtle container */
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.10);
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.merchant-highlights .highlight-card-inner:hover{
  transform: translateY(-1px);
  border-color: rgba(17,24,39,0.14);
  box-shadow: 0 14px 32px rgba(17,24,39,0.12);
}
.merchant-highlights .highlight-card-inner:active{
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
}

.merchant-highlights .highlight-image{
  width: 112px;
  height: 86px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  background: transparent;
}
.merchant-highlights .highlight-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.merchant-highlights .highlight-badge{
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(22,163,74,0.95);
  border: 1px solid rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

.merchant-highlights .highlight-card-inner.no-image{
  gap: 10px;
}
.merchant-highlights .highlight-content{
  flex: 1;
  min-width: 0;
}
.merchant-highlights .highlight-kicker{
  font-size: 12px;
  font-weight: 800;
  opacity: .70;
  letter-spacing: .2px;
  margin-bottom: 2px;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.merchant-highlights .highlight-title{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color:#111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.merchant-highlights .highlight-meta{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: .72;
}
.merchant-highlights .highlight-price{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  color:#111827;
}
.merchant-highlights .highlight-actions{
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}
.merchant-highlights .highlight-action-btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17,24,39,0.14);
  background: rgba(255,255,255,0.92);
  color: #cb0606;
}
.merchant-highlights .highlight-action-btn i{
  font-size: 18px;
}

.merchant-highlights .swiper-button-next,
.merchant-highlights .swiper-button-prev{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 10px 22px rgba(17,24,39,0.14);
  z-index: 10;
}
.merchant-highlights .swiper-button-next:after,
.merchant-highlights .swiper-button-prev:after{
  display:none;
}

.merchant-highlights .highlights-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.merchant-highlights .highlights-arrow{
  width: 20px;
  height: 20px;
  color: rgba(17,24,39,0.92);
}

/* Merchant menu: About us overlay (info + reviews) */
.merchant-about-trigger{
  appearance:none;
  border: 1px solid rgba(17,24,39,0.14);
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.merchant-about-trigger:hover{
  background: #f3f4f6;
  border-color: rgba(17,24,39,0.18);
}
.merchant-about-trigger:active{
  transform: translateY(1px);
}
.mobile-merchant-details .merchant-about-trigger{
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(17,24,39,0.12);
}
.mobile-merchant-details .merchant-about-trigger:hover{
  background: #f3f4f6;
  border-color: rgba(17,24,39,0.16);
}

body.merchant-about-open{
  overflow:hidden;
}
.merchant-about-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.merchant-about-overlay.is-open{
  display: block;
}
.merchant-about-backdrop{
  position:absolute;
  inset:0;
  background: rgba(17,24,39,0.55);
}
.merchant-about-dialog{
  position: relative;
  width: min(720px, calc(100vw - 28px));
  height: min(86vh, 860px);
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.35);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}
.merchant-about-topbar{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(17,24,39,0.08);
  background: linear-gradient(180deg, rgba(203,6,6,0.06), rgba(255,255,255,0));
}
.merchant-about-titlewrap{
  min-width: 0;
}
.merchant-about-title{
  font-weight: 900;
  font-size: 18px;
  color:#111827;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.merchant-about-rating{
  margin-top: 6px;
  display:flex;
  align-items:center;
  gap:6px;
  font-weight: 900;
  color:#111827;
}
.merchant-about-rating i{
  color: #f4b400;
}
.merchant-about-ratingcount{
  opacity: .65;
  font-weight: 800;
}
.merchant-about-close{
  appearance:none;
  border: 1px solid rgba(17,24,39,0.10);
  background: #fff;
  color:#111827;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
}
.merchant-about-close:hover{
  border-color: rgba(17,24,39,0.18);
}

.merchant-about-tabs{
  display:flex;
  gap:8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17,24,39,0.08);
  background: #fff;
}
.merchant-about-tabbtn{
  appearance:none;
  border: 1px solid rgba(17,24,39,0.10);
  background: #f3f4f6;
  color:#111827;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
}
.merchant-about-tabbtn.is-active{
  background: #111827;
  border-color: #111827;
  color:#fff;
}

.merchant-about-body{
  flex: 1;
  overflow: auto;
  padding: 14px 14px 18px;
}
.merchant-about-tabpanel{ display:none; }
.merchant-about-tabpanel.is-active{ display:block; }

.merchant-about-pane .container{
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.merchant-about-section{
  padding: 14px;
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,0.06);
  margin-bottom: 14px;
}
.merchant-about-section-icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(203,6,6,0.07);
  border: 1px solid rgba(203,6,6,0.12);
}
.merchant-about-section-icon img{
  display:block;
}
.merchant-about-section-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.merchant-about-section-body{
  color:#111827;
}
.merchant-about-richtext{
  line-height: 1.55;
}
/* Keep links brand-consistent inside About overlay */
#merchant-about-overlay .merchant-about-pane a,
#merchant-about-overlay .merchant-about-pane a:visited{
  color:#cb0606 !important;
  text-decoration: underline;
}
#merchant-about-overlay .merchant-about-pane a:hover,
#merchant-about-overlay .merchant-about-pane a:focus{
  color:#cb0606 !important;
  opacity: .85;
  text-decoration: underline;
}

/* Hero map + address chip */
.merchant-about-hero{
  margin-bottom: 14px;
}
.merchant-about-mapframe{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,0.10);
  background: #f3f4f6;
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
}
.merchant-about-mapimg{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display:block;
}
.merchant-about-mapplaceholder{
  height: 260px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color: rgba(17,24,39,0.70);
  font-weight: 800;
}
.merchant-about-mapplaceholder i{
  font-size: 20px;
  color:#cb0606;
}
.merchant-about-addresschip{
  position:absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  padding: 12px 12px 10px;
  backdrop-filter: blur(6px);
}
.merchant-about-chiptitle{
  font-weight: 900;
  color:#111827;
  margin-bottom: 4px;
}
.merchant-about-chipbody{
  color:#111827;
  font-weight: 700;
  line-height: 1.35;
}
.merchant-about-chipline{
  margin-top: 2px;
}
.merchant-about-chipmuted{
  opacity: .72;
  font-weight: 800;
}
.merchant-about-chiplink{
  display:inline-block;
  margin-top: 8px;
  font-weight: 900;
  font-size: 13px;
}

/* Business details key/value */
.merchant-about-kv{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.merchant-about-kvrow{
  display:flex;
  gap: 12px;
}
.merchant-about-kvkey{
  width: 34%;
  min-width: 140px;
  font-weight: 900;
  color: rgba(17,24,39,0.78);
}
.merchant-about-kvval{
  flex: 1;
  font-weight: 800;
  color:#111827;
}
.merchant-about-hours-table td{
  vertical-align: top;
}
.merchant-about-hours-day{
  width: 36%;
  opacity: .85;
  font-weight: 800;
}
.merchant-about-hours-slots{
  font-weight: 800;
}

@media (max-width: 576px){
  .merchant-about-dialog{
    width: calc(100vw - 16px);
    height: 92vh;
    margin: 4vh auto 0;
    border-radius: 14px;
  }
  .merchant-about-body{
    padding: 12px 10px 14px;
  }
  .merchant-about-mapimg,
  .merchant-about-mapplaceholder{
    height: 220px;
  }
  .merchant-about-addresschip{
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  .merchant-about-kvrow{
    flex-direction: column;
    gap: 4px;
  }
  .merchant-about-kvkey{
    width: auto;
    min-width: 0;
  }
}

/* Defensive responsive visibility for merchant header (in case Bootstrap utilities are missing/overridden) */
@media (max-width: 991.98px){
  .merchant-top-header--desktop{
    display:none !important;
  }

  /* Extra safety: if any merchant header slips into mobile view, hide name + meta line. */
  .merchant-top-header--desktop h2,
  .merchant-top-header--desktop .list-inline{
    display:none !important;
  }
  .merchant-top-header.merchant-popup h2,
  .merchant-top-header.merchant-popup .list-inline{
    display:none !important;
  }
}
@media (min-width: 992px){
  .merchant-top-header--mobile{
    display:none !important;
  }
}

/* If Swiper JS fails to load, keep it usable via horizontal scroll */
.merchant-highlights .swiper:not(.swiper-initialized){
  overflow: hidden;
}
.merchant-highlights .swiper:not(.swiper-initialized) .swiper-wrapper{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  gap: 16px;
  scrollbar-width: none;
}
.merchant-highlights .swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar{
  width: 0;
  height: 0;
}
.merchant-highlights .swiper:not(.swiper-initialized) .swiper-slide{
  scroll-snap-align: start;
}
.merchant-highlights .swiper:not(.swiper-initialized) .swiper-button-next,
.merchant-highlights .swiper:not(.swiper-initialized) .swiper-button-prev{
  display:none;
}

@media (max-width: 576px){
  .merchant-highlights .swiper-slide{ width: 280px; }
  .merchant-highlights .highlight-card-inner{ height: 114px; padding: 12px; }
  .merchant-highlights .highlight-image{ width: 104px; height: 82px; }
}
.feed-chip:hover{
  background:#eef2f7;
}
.feed-chip-select{
  cursor: default;
  padding: 0;
  overflow:hidden;
}
.feed-chip-select > span{
  padding: 10px 10px 10px 14px;
  color:#111827;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}
.feed-chip-select select{
  border:0;
  background: transparent;
  padding: 10px 14px 10px 0;
  font-weight: 700;
  font-size: 13px;
  color:#111827;
  cursor:pointer;
  outline:none;
}
.feed-chip-select select:focus{
  outline:none;
}

.feed-categorybar{
  margin-top: 12px;
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.feed-categorybar::-webkit-scrollbar{
  height: 8px;
}
.feed-categorybar::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,0.15);
  border-radius: 999px;
}
.feed-catbtn{
  scroll-snap-align: start;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(17,24,39,0.10);
  background: #ffffff;
  color:#111827;
  font-weight:700;
  font-size: 13px;
  cursor:pointer;
  white-space:nowrap;
}
.feed-catbtn.active{
  background:#111827;
  color:#ffffff;
  border-color:#111827;
}

@media (max-width: 992px){
  .feed-quickbar-search{
    min-width: 0;
  }
}

/* Merchant menu layout improvements (3-column) */
.controller-menu.action-menu .section-menu--merchant,
.controller-store.action-menu .section-menu--merchant{
  margin-top: 36px;
  padding-top: 14px;
}
.controller-menu.action-menu .container-fluid--menu,
.controller-store.action-menu .container-fluid--menu{
  padding-left: 34px !important;
  padding-right: 34px !important;
}
@media (min-width: 1200px){
  .controller-menu.action-menu .container-fluid--menu,
  .controller-store.action-menu .container-fluid--menu{
    padding-left: 44px !important;
    padding-right: 44px !important;
  }
}
@media (min-width: 992px){
  .controller-menu.action-menu .menu-main-row,
  .controller-store.action-menu .menu-main-row{
    align-items: stretch;
  }
  .controller-menu.action-menu .menu-left,
  .controller-store.action-menu .menu-left{
    padding-left: 10px;
    padding-right: 14px;
    padding-top: 10px;
  }
  .controller-menu.action-menu .menu-center,
  .controller-store.action-menu .menu-center{
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
  }
  .controller-menu.action-menu .menu-right,
  .controller-store.action-menu .menu-right{
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
  }

  .controller-menu.action-menu #vue-cart.sticky-cart,
  .controller-store.action-menu #vue-cart.sticky-cart{
    position: sticky;
    top: 14px;
    height: calc(100vh - 14px);
    overflow: auto;
    /* Basket panel (Lieferando-like): a real "box" */
    background: #f4f5f7 !important;
    border: 1px solid rgba(17,24,39,0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(17,24,39,0.10) !important;
    padding: 16px !important;
  }
}

/* Left category menu typography + active state */
.controller-menu.action-menu #menu-category.menu-category li,
.controller-store.action-menu #menu-category.menu-category li{
  position: relative;
}
.controller-menu.action-menu #menu-category.menu-category,
.controller-store.action-menu #menu-category.menu-category{
  padding-left: 10px;
  padding-right: 10px;
}
.controller-menu.action-menu #vue-merchant-category h5,
.controller-store.action-menu #vue-merchant-category h5{
  padding-left: 10px;
}
.controller-menu.action-menu #menu-category.menu-category a.nav-link,
.controller-menu.action-menu #menu-category.menu-category a,
.controller-store.action-menu #menu-category.menu-category a.nav-link,
.controller-store.action-menu #menu-category.menu-category a{
  color: #9ca3af;
  font-weight: 600;
  padding: 6px 0;
}
.controller-menu.action-menu #menu-category.menu-category a:hover,
.controller-store.action-menu #menu-category.menu-category a:hover{
  color: #6b7280;
}
.controller-menu.action-menu .menu-category li.active a,
.controller-menu.action-menu .menu-category li a.active,
.controller-store.action-menu .menu-category li.active a,
.controller-store.action-menu .menu-category li a.active{
  color: #cb0606;
  font-weight: 800;
}
.controller-menu.action-menu .menu-category li.active a:after,
.controller-menu.action-menu .menu-category li a.active:after,
.controller-store.action-menu .menu-category li.active a:after,
.controller-store.action-menu .menu-category li a.active:after{
  border-left: 2px solid #cb0606 !important;
}
