/* =========================================================
   Redesigned /menu (categories landing) page
   ========================================================= */

.menu-landing {
  padding: 55px 0 90px;
  background: #ffffff;
}

@media (max-width: 768px) {
  .menu-landing {
    padding: 55px 0 60px;
  }
}

.menu-landing__title {
  text-align: center;
  font-family: "Jost", sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 30px;
}

/* ----- Quick tabs ----- */
.menu-landing__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.menu-landing__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #f0f0f0;
  border-radius: 10px;
  text-decoration: none;
  color: #000000;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.menu-landing__tab:hover,
.menu-landing__tab--active {
  background-color: #000000;
  color: #ffffff;
}

.menu-landing__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.menu-landing__tab-icon img,
.menu-landing__tab-icon svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.menu-landing__tab-icon--svg svg,
.menu-landing__tab-icon--svg svg path,
.menu-landing__tab-icon--svg svg g {
  fill: #e90000 !important;
}

/* ----- Category grid (black cards) ----- */
.categories--landing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 7px;
  margin-top: 0;
  margin-bottom: 70px;
}

.categories.categories--landing {
  padding: 0 7px;
}

@media (max-width: 1100px) {
  .categories--landing {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories--landing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .categories--landing {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.categories--landing .categories-link {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 14px 18px;
  min-height: 74px;
  gap: 14px;
}

.categories--landing .categories-link:hover,
.categories--landing .categories-link:focus {
  background-color: #e90000;
}

.categories--landing .categories-image-wrapper {
  background-color: #ffffff;
  border-radius: 10px;
  min-width: 48px;
  width: 48px;
  height: 48px;
}

.categories--landing .categories-image-wrapper svg {
  width: 28px;
  fill: #000000;
}

.categories--landing .categories-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* ----- Section headings ----- */
.menu-section {
  margin-bottom: 60px;
}

.menu-section__title {
  text-align: center;
  font-family: "Jost", sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 30px;
}

/* ----- Bestsellers use homepage product cards ----- */
.menu-section--bestsellers .top-products-grid {
  margin-bottom: 0;
}

/* ----- Custom "Mr.Pizza choice" slider ----- */
.menu-choice-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-choice-viewport {
  flex: 1;
  overflow: hidden;
  margin: 0 60px;
}

.menu-choice-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.menu-choice-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.menu-choice-slide .top-product-item {
  height: 100%;
}

.menu-choice-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #e90000;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.menu-choice-arrow:hover {
  background-color: #c00000;
}

.menu-choice-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.menu-choice-arrow svg {
  width: 22px;
  height: 22px;
}

.menu-choice-arrow--prev {
  left: 0;
}

.menu-choice-arrow--next {
  right: 0;
}

/* ----- Combo banners ----- */
.combo-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.combo-banner {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.combo-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.combo-banner:hover img {
  transform: scale(1.05);
}

.combo-banner--placeholder {
  min-height: 240px;
  background: linear-gradient(135deg, #e90000, #b00000);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
  .menu-landing__tabs {
    gap: 15px;
  }

  .menu-landing__tab {
    font-size: 14px;
    padding: 12px 14px;
  }
}

@media (max-width: 992px) {
  .menu-landing__tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-choice-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .menu-landing {
    padding: 55px 0 60px;
  }

  .menu-landing__title {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .menu-section__title {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .menu-choice-viewport {
    margin: 0 42px;
  }

  .menu-choice-arrow {
    display: flex;
    width: 36px;
    height: 36px;
  }

  .menu-choice-arrow svg {
    width: 18px;
    height: 18px;
  }

  .menu-choice-slide {
    flex: 0 0 calc(100% - 16px);
  }

  .combo-banners {
    grid-template-columns: 1fr;
  }

  /* Mobile category cards – black buttons, white icon/text, 2-col grid */
  .categories--landing {
    gap: 12px;
  }

  .categories--landing .categories-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 14px 10px;
    min-height: auto;
  }

  .categories--landing .categories-link:hover,
  .categories--landing .categories-link:focus {
    background-color: #e90000;
  }

  .categories--landing .categories-image-wrapper {
    min-width: 28px;
    width: 28px;
    height: 28px;
    background-color: transparent;
    border-radius: 0;
  }

  .categories--landing .categories-image-wrapper svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
  }

  .categories--landing .categories-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .menu-landing__tabs {
    grid-template-columns: 1fr;
  }

  .menu-choice-track {
    gap: 12px;
  }

  .menu-choice-slide {
    flex: 0 0 calc(100% - 16px);
  }
}

/* Client visual corrections (2026-09): no slide peeking out, arrows centered on image */
@media (max-width: 768px) {
  .menu-choice-slide {
    flex: 0 0 100%;
  }
  .menu-choice-arrow {
    top: calc((100vw - 114px) * 0.375);
  }
}
@media (max-width: 576px) {
  .menu-choice-arrow {
    top: calc((100vw - 114px) / 2);
  }
}
