/* Front styles for Menu Products */
.mp-container {
  font-family: inherit;
}
.mp-topcats-bar {
  background: #e11d48;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.mp-topcats {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mp-topcats::-webkit-scrollbar {
  height: 6px;
}
.mp-topcats::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}
.mp-topcat {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.mp-topcat.is-active {
  background: rgba(255, 255, 255, 0.15);
}

.mp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.mp-row-left {
  flex: 0 0 auto;
}
.mp-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f2f2;
}
.mp-thumb.placeholder {
  background: repeating-linear-gradient(
    45deg,
    #eee,
    #eee 10px,
    #f8f8f8 10px,
    #f8f8f8 20px
  );
}
.mp-row-center {
  flex: 1 1 auto;
  min-width: 0;
}
.mp-row-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #111;
}
.mp-row-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-badge {
  color: #eab308;
}
.mp-row-price {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.mp-currency {
  opacity: 0.8;
  margin-left: 2px;
}

/* Drawer */
/* Stray empty p from themes inside the topcats bar */
.mp-topcats-bar > p:empty {
  display: none;
}
.mp-topcats-bar p:empty {
  display: none;
}

.mp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 9998;
}
.mp-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transform: translateY(100%);
  transition: transform 0.3s;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}
.mp-drawer[aria-hidden="false"] {
  transform: translateY(0);
}
.mp-drawer[aria-hidden="false"] + .mp-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.mp-drawer-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.mp-drawer-content {
  padding: 18px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Carousel */
.mp-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.mp-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}
.mp-carousel-slide {
  flex: 0 0 100%;
}
.mp-carousel-slide img,
.mp-carousel-img-fixed {
  width: 380px !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.mp-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}
.mp-carousel-prev {
  left: 8px;
}
.mp-carousel-next {
  right: 8px;
}

/* Responsive */
@media (min-width: 768px) {
  .mp-row {
    padding: 14px 18px;
  }
  .mp-topcats {
    gap: 12px;
  }
}
