/*
 * Podil Food mobile homepage, stage 02.
 *
 * This stylesheet is scoped to the existing OpenCart featured module on the
 * mobile homepage. Product ids, names, images, prices, stock, supplier
 * selection and cart handlers remain dynamic and are not replaced here.
 */
@media (max-width: 767.98px) {
  body.common-home #content > .pf-home-featured-heading {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 18px 0 10px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.common-home .pf-home-featured-heading .heading__top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
  }

  body.common-home .pf-home-featured-heading .heading__title {
    display: block !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    color: #151515 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    letter-spacing: -0.02em !important;
  }

  body.common-home .pf-home-featured-heading .heading__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(21, 21, 21, 0.12) !important;
    border-radius: 9px !important;
    background: #f2e6c9 !important;
    color: #151515 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  body.common-home #future-module.pf-home-featured {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 0 12px !important;
    overflow: hidden !important;
  }

  body.common-home #future-module .category-carousel__wrapper {
    align-items: stretch !important;
  }

  body.common-home #future-module .category-carousel__item.product-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(21, 21, 21, 0.09) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.055) !important;
  }

  body.common-home #future-module .product-item__image {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 0 8px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f5f5f5 !important;
  }

  body.common-home #future-module .product-item__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  body.common-home #future-module .product-item__stock-status {
    min-height: 14px !important;
    margin: 0 0 4px !important;
    color: #6e6e6e !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.common-home #future-module .product-item__cod {
    display: none !important;
  }

  body.common-home #future-module .product-item__name {
    display: -webkit-box !important;
    flex: 0 0 auto !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 0 8px !important;
    overflow: hidden !important;
    color: #151515 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 18px !important;
    letter-spacing: -0.01em !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.common-home #future-module .product-item__name a {
    color: inherit !important;
    text-decoration: none !important;
  }

  body.common-home #future-module .supplier-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 0 8px !important;
  }

  body.common-home #future-module .supplier_title {
    display: none !important;
  }

  body.common-home #future-module .supplier-switch {
    width: 100% !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 4px 24px 4px 8px !important;
    border: 1px solid rgba(21, 21, 21, 0.12) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #4d4d4d !important;
    font-size: 11px !important;
    line-height: 20px !important;
  }

  body.common-home #future-module .product-item__price {
    flex: 0 0 auto !important;
    min-height: 23px !important;
    margin: 0 0 8px !important;
    color: #151515 !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    line-height: 23px !important;
  }

  body.common-home #future-module .supplier-price .product-item__price {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  body.common-home #future-module .product-item__price .price-old {
    display: inline !important;
    margin: 0 5px 0 0 !important;
    color: #858585 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
  }

  body.common-home #future-module .product-item__price .price-new {
    color: #bc2722 !important;
  }

  body.common-home #future-module .product-item__bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: auto !important;
  }

  body.common-home #future-module .product-item__quantity {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.common-home #future-module .quantity_div {
    display: grid !important;
    grid-template-columns: 28px minmax(24px, 1fr) 28px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 94px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(21, 21, 21, 0.14) !important;
    border-radius: 10px !important;
    background: #f8f4e8 !important;
  }

  body.common-home #future-module .quantity_div .minus,
  body.common-home #future-module .quantity_div .plus {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 38px !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  body.common-home #future-module .quantity_div .quantity_input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #151515 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 38px !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  body.common-home #future-module .product-item__buy {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
  }

  body.common-home #future-module .product-item__button.buy-button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #f69029 !important;
    border-radius: 11px !important;
    background: #f69029 !important;
    box-shadow: none !important;
  }

  body.common-home #future-module .product-item__button.buy-button svg {
    width: 21px !important;
    height: 21px !important;
  }

  body.common-home #future-module .product-item__button.buy-button svg path {
    fill: #ffffff !important;
  }

  body.common-home #future-module .product-item__button.button--heart {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 3 !important;
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(21, 21, 21, 0.1) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  body.common-home #future-module .product-item__button.button--heart svg {
    width: 17px !important;
    height: 16px !important;
  }

  body.common-home #future-module .product-item__button.button--heart svg path {
    fill: none !important;
    stroke: #151515 !important;
  }

  body.common-home #future-module .product-item__sale {
    top: 14px !important;
    left: 14px !important;
  }

  body.common-home #future-module .product-item__sale-item {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    background: #bc2722 !important;
    font-size: 7px !important;
    line-height: 10px !important;
  }

  body.common-home #future-module .pf-product-unavailable .product-item__image img {
    filter: grayscale(0.35) !important;
    opacity: 0.68 !important;
  }

  body.common-home #future-module .pf-product-unavailable .product-item__stock-status {
    color: #bc2722 !important;
  }

  body.common-home #future-module .pf-product-unavailable .product-item__button.buy-button {
    border-color: #c9c9c9 !important;
    background: #c9c9c9 !important;
    cursor: not-allowed !important;
  }

  body.common-home #future-module .category-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 6px !important;
    margin: 10px 0 0 !important;
    gap: 5px !important;
  }

  body.common-home #future-module .category-pagination .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    background: #cfcfcf !important;
    opacity: 1 !important;
  }

  body.common-home #future-module .category-pagination .swiper-pagination-bullet-active {
    background: #f69029 !important;
  }
}

@media (max-width: 359.98px) {
  body.common-home #future-module .category-carousel__item.product-item {
    padding: 7px !important;
  }

  body.common-home #future-module .quantity_div {
    grid-template-columns: 24px minmax(22px, 1fr) 24px !important;
    max-width: 82px !important;
  }

  body.common-home #future-module .quantity_div .minus,
  body.common-home #future-module .quantity_div .plus {
    width: 24px !important;
  }

  body.common-home #future-module .product-item__buy,
  body.common-home #future-module .product-item__button.buy-button {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}
