/*
 * Podil Food mobile home, stage 04B.
 * Approved sequence: kitchen tiles -> OpenCart banner -> combo -> six kitchens.
 * All selectors are scoped to the mobile homepage.
 */
.pf-kitchen-tiles,
.pf-home-sections {
  display: none;
}

@media (max-width: 767.98px) {
  html.pf-home-tiles-ready body.common-home #category_top {
    display: none !important;
  }

  body.common-home .pf-kitchen-tiles {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 7px;
    padding: 0 0 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.common-home .pf-kitchen-tiles::-webkit-scrollbar {
    display: none;
  }

  body.common-home .pf-kitchen-tile {
    display: block;
    flex: 0 0 76px;
    width: 76px;
    min-width: 76px;
    color: #3e3c3c;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
  }

  body.common-home .pf-kitchen-tile__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(62, 60, 60, 0.2);
    border-radius: 12px;
    background: #f2e6c9;
  }

  body.common-home .pf-kitchen-tile__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  body.common-home .pf-kitchen-tile__title {
    display: -webkit-box;
    min-height: 22px;
    margin-top: 6px;
    overflow: hidden;
    color: #3e3c3c;
    font-size: 10px;
    font-weight: 800;
    line-height: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.common-home .carousel-advertising,
  body.common-home .banner-container {
    margin-top: 0 !important;
  }

  body.common-home .pf-home-featured-heading,
  body.common-home #future-module.pf-home-featured {
    display: none !important;
  }

  body.common-home .pf-home-sections {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
  }

  body.common-home .pf-menu-section {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
  }

  body.common-home .pf-menu-section:last-child {
    margin-bottom: 6px;
  }

  body.common-home .pf-menu-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
  }

  body.common-home .pf-menu-section__title {
    min-width: 0;
    margin: 0;
    color: #171717;
    font-size: 18px;
    font-weight: 900;
    line-height: 23px;
    letter-spacing: -0.025em;
  }

  body.common-home .pf-menu-section__all {
    flex: 0 0 auto;
    color: #bc2722;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-decoration: none;
    white-space: nowrap;
  }

  body.common-home .pf-product-track {
    display: grid;
    grid-auto-columns: calc((100% - 4px) / 2);
    grid-auto-flow: column;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0 0 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.common-home .pf-product-track::-webkit-scrollbar {
    display: none;
  }

  body.common-home .pf-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 216px;
    overflow: hidden;
    border: 1px solid rgba(62, 60, 60, 0.18);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
  }

  body.common-home .pf-product-card__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(#ffffff, #f7f7f7);
  }

  body.common-home .pf-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.common-home .pf-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  body.common-home .pf-product-card__discount {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ff2448;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    line-height: 13px;
  }

  body.common-home .pf-product-card__stock {
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(62, 60, 60, 0.86);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    line-height: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.common-home .pf-product-card__favorite {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(62, 60, 60, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #bc2722;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  }

  body.common-home .pf-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 9px 9px 10px;
  }

  body.common-home .pf-product-card__name {
    display: -webkit-box;
    min-height: 28px;
    overflow: hidden;
    color: #171717;
    font-size: 12px;
    font-weight: 900;
    line-height: 14px;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.common-home .pf-product-card__meta {
    min-height: 14px;
    margin-top: 3px;
    overflow: hidden;
    color: #777777;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.common-home .pf-product-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
  }

  body.common-home .pf-product-card__price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: #171717;
    font-size: 16px;
    font-weight: 900;
    line-height: 18px;
  }

  body.common-home .pf-product-card__old-price {
    color: #888888;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-decoration: line-through;
  }

  body.common-home .pf-product-card__new-price {
    color: #bc2722;
  }

  body.common-home .pf-product-card__cart {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(62, 60, 60, 0.2);
    border-radius: 50%;
    background: #f2e6c9;
    color: #bc2722;
  }

  body.common-home .pf-product-card--unavailable .pf-product-card__image img {
    opacity: 0.52;
    filter: grayscale(0.25);
  }

  body.common-home .pf-product-card__cart--disabled {
    border-color: rgba(62, 60, 60, 0.12);
    background: #eeeeee;
    color: #9a9a9a;
    cursor: not-allowed;
    opacity: 1;
  }

  body.common-home .pf-menu-section__empty {
    padding: 16px;
    border: 1px dashed rgba(62, 60, 60, 0.2);
    border-radius: 12px;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 359.98px) {
  body.common-home .pf-kitchen-tiles {
    gap: 9px;
  }

  body.common-home .pf-kitchen-tile {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
  }

  body.common-home .pf-kitchen-tile__image {
    border-radius: 10px;
  }

  body.common-home .pf-kitchen-tile__title {
    font-size: 9.5px;
    line-height: 10.5px;
  }

  body.common-home .pf-product-card {
    min-height: 208px;
  }
}
