/*
 * cards-pro.css — Pro food-menu card/display variants (FE2 split).
 *
 * Moved verbatim out of wpc-public-pro.css: the Tab Grid, food-tab style 3/4,
 * tab-nav position, food-menu slider, slider-grid-3 and menu-list style 2/4
 * variants. These are overrides on top of the free card primitive
 * (wp-cafe/assets/css/card-core.css), so they must load AFTER it — guaranteed
 * by enqueue order (this handle is enqueued right after wpc-public-pro) and by
 * the widgets that list it in get_style_depends() alongside wpc-card-core.
 *
 * Pure relocation — no rule changed. The hardcoded #e3106e accents here are a
 * known follow-up (convert to var(--wpc-primary-color) in a separate commit so
 * the colour change gets its own visual review).
 */

/*--------------------------
// Tab Grid
----------------------------*/
.wpc-tab-grid .wpc-food-menu-item {
  padding: 0 !important;
  margin-bottom: 30px;
  box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.06);
}
.wpc-tab-grid .wpc-food-menu-item .wpc-food-menu-thumb {
  position: relative;
}
.wpc-tab-grid .wpc-food-menu-item .wpc-food-inner-content {
  padding: 15px;
}
.wpc-tab-grid .wpc-menu-tag-wrap {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
}
.wpc-tab-grid .wpc-menu-tag {
  padding: 0;
}

/*--------------------------
// tab grid slider
----------------------------*/
.wpc-tab-grid-style2 .wpc-food-menu-item {
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border: 1px solid #f2efef;
  border-radius: 12px;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-food-menu-thumb {
  width: 64%;
  height: 90%;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
  overflow: hidden;
  margin: auto auto 25px;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-food-menu-thumb img {
  height: 100%;
  object-fit: cover;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-add-to-cart {
  position: relative;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-add-to-cart a {
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  margin: auto;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-food-inner-content p {
  padding-right: 0;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-feautre-thumb-area {
  position: relative;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-menu-tag-wrap {
  position: absolute;
  left: 6px;
  top: 6px;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-price {
  position: absolute;
  left: 60%;
  bottom: -10px;
  min-width: 90px;
  min-height: 90px;
  background: #bc906b;
  border-radius: 50%;
  text-align: center;
  border: 7px solid #fff;
  padding: 22px 0;
  color: #fff;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 130px;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-price .woocommerce-price-suffix {
  display: none;
}
.wpc-tab-grid-style2 .wpc-food-menu-item .wpc-price del {
  display: none;
}

/*--------------------------
// wpc food tab style 3
----------------------------*/
.wpc-food-tab-style3 .wpc-food-menu-thumb {
  overflow: hidden;
}
.wpc-food-tab-style3 .wpc-food-menu-thumb img {
  height: 100%;
  object-fit: cover;
}

/*--------------------------
// wpc food tab style 4
----------------------------*/
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-menu-thumb,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-menu-thumb {
  margin-bottom: 0;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-menu-thumb:before,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-menu-thumb:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  content: "";
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-menu-tag,
.wpc-food-tab-style4.wpc-food-menu-item .wpc-product-labels,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-menu-tag,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-product-labels {
  z-index: 1;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-add-to-cart,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-add-to-cart {
  position: relative;
  bottom: 0;
  margin-top: 10px;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-add-to-cart a,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-add-to-cart a {
  margin: auto;
}
.wpc-food-tab-style4.wpc-food-menu-item span.wpc-menu-currency,
.wpc-slider-grid-3 .wpc-food-menu-item span.wpc-menu-currency {
  right: 15px;
  top: 12px;
  position: absolute;
  background: #e3106e;
  padding: 12px 9px;
  border-radius: 50%;
  color: #fff;
  z-index: 1;
  min-width: 60px;
  min-height: 60px;
  text-align: center;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-inner-content,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-inner-content {
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 2;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-inner-content .wpc-post-title a,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-inner-content .wpc-post-title a {
  color: #fff;
  background-color: transparent;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-inner-content p,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-inner-content p {
  color: #fff;
  padding: 0;
}
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-menu-thumb:before,
.wpc-food-tab-style4.wpc-food-menu-item .wpc-menu-tag,
.wpc-food-tab-style4.wpc-food-menu-item .wpc-product-labels,
.wpc-food-tab-style4.wpc-food-menu-item .wpc-add-to-cart,
.wpc-food-tab-style4.wpc-food-menu-item .wpc-food-inner-content,
.wpc-food-tab-style4.wpc-food-menu-item span.wpc-menu-currency,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-menu-thumb:before,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-menu-tag,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-product-labels,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-add-to-cart,
.wpc-slider-grid-3 .wpc-food-menu-item .wpc-food-inner-content,
.wpc-slider-grid-3 .wpc-food-menu-item span.wpc-menu-currency {
  transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  opacity: 0;
}
.wpc-food-tab-style4.wpc-food-menu-item:hover .wpc-food-menu-thumb:before,
.wpc-food-tab-style4.wpc-food-menu-item:hover .wpc-menu-tag,
.wpc-food-tab-style4.wpc-food-menu-item:hover .wpc-product-labels,
.wpc-food-tab-style4.wpc-food-menu-item:hover .wpc-add-to-cart,
.wpc-food-tab-style4.wpc-food-menu-item:hover .wpc-food-inner-content,
.wpc-food-tab-style4.wpc-food-menu-item:hover span.wpc-menu-currency,
.wpc-slider-grid-3 .wpc-food-menu-item:hover .wpc-food-menu-thumb:before,
.wpc-slider-grid-3 .wpc-food-menu-item:hover .wpc-menu-tag,
.wpc-slider-grid-3 .wpc-food-menu-item:hover .wpc-product-labels,
.wpc-slider-grid-3 .wpc-food-menu-item:hover .wpc-add-to-cart,
.wpc-slider-grid-3 .wpc-food-menu-item:hover .wpc-food-inner-content,
.wpc-slider-grid-3 .wpc-food-menu-item:hover span.wpc-menu-currency {
  transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  opacity: 1;
}

.wpc-food-tab-style4 .wpc_pro_food_time li {
  color: #fff;
}
.wpc-food-tab-style4 .wpc_pro_food_time li .wpc_preparing_time {
  float: none;
  margin-left: 15px;
}

.wpc-tab-grid-style2 .wpc_pro_food_time li .wpc_preparing_time {
  float: none;
  margin-left: 15px;
}

/*--------------------------
// wpc food menu tab nav possition
----------------------------*/
@media (min-width: 768px) {
  .nav-position-right,
  .nav-position-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .nav-position-right .wpc-nav,
  .nav-position-left .wpc-nav {
    flex-basis: 30%;
    margin-right: 20px;
  }
  .nav-position-right .wpc-nav li,
  .nav-position-left .wpc-nav li {
    display: block;
    width: 100%;
  }
  .nav-position-right .wpc-nav li a,
  .nav-position-left .wpc-nav li a {
    border: 1px dashed #eaeaea;
    padding: 15px 15px;
    bottom: 0;
  }
  .nav-position-right .wpc-nav li a.wpc-active,
  .nav-position-left .wpc-nav li a.wpc-active {
    background-color: #e3106e;
    color: #fff;
    border-color: #e3106e;
  }
  .nav-position-right .wpc-tab-content.wpc-widget-wrapper,
  .nav-position-left .wpc-tab-content.wpc-widget-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .nav-position-left .wpc-nav li a {
    border-bottom: 0;
  }
  .nav-position-left .wpc-nav li a:after {
    left: auto;
    top: 0;
    transform: rotate(-90deg);
    right: -15px;
  }
  .nav-position-right .wpc-nav {
    order: 1;
    margin-right: 0;
    margin-left: 20px;
  }
  .nav-position-right .wpc-nav li a {
    border-bottom: 0;
  }
  .nav-position-right .wpc-nav li a:after {
    right: auto;
    top: 0;
    transform: rotate(90deg);
    left: -15px;
  }
}
/*--------------------------
// wpc food menu slider
----------------------------*/
.wpc-food-menu-slider .wpc-food-menu-thumb {
  margin-bottom: 15px;
}
.wpc-food-menu-slider .wpc-post-meta-info:after {
  clear: both;
  display: table;
  content: "";
}
.wpc-food-menu-slider .wpc-post-meta-info .wpc-menu-tag {
  float: left;
}

.wpc-tab-with-slider,
.wpc-food-menu-slider {
  overflow: hidden;
  position: relative;
}
.wpc-tab-with-slider .wpc-food-menu-item,
.wpc-food-menu-slider .wpc-food-menu-item {
  margin-bottom: 40px;
}

.wpc-tab-with-slider .wpc-food-menu-item .wpc-food-inner-content .wpc-post-title a {
  display: block;
  padding-right: 0;
}
.wpc-tab-with-slider .wpc-food-menu-item .wpc-food-inner-content .wpc-menu-currency {
  float: none;
  display: block;
  margin-top: 6px;
  padding-left: 0;
}
.wpc-tab-with-slider .wpc-food-menu-item .wpc-food-inner-content p {
  padding-right: 0;
}

.wpc-tab-with-slider .wpc-single-original-price {
  margin-right: 7px;
  opacity: 0.6;
}
.wpc-tab-with-slider .wpc-single-discount-savings {
  font-size: 12px;
}
.wpc-tab-with-slider .swiper-button-next,
.wpc-tab-with-slider .swiper-button-prev,
.wpc-food-menu-slider .swiper-button-next,
.wpc-food-menu-slider .swiper-button-prev {
  background-image: none;
  background-color: #e3106e;
  color: #fff;
  line-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
  text-align: center;
  font-size: 14px;
  transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}
.wpc-tab-with-slider .swiper-button-next:after,
.wpc-tab-with-slider .swiper-button-prev:after,
.wpc-food-menu-slider .swiper-button-next:after,
.wpc-food-menu-slider .swiper-button-prev:after {
  display: none;
}
.wpc-tab-with-slider .swiper-button-next,
.wpc-food-menu-slider .swiper-button-next {
  right: 15px;
}
.wpc-tab-with-slider .swiper-button-prev,
.wpc-food-menu-slider .swiper-button-prev {
  left: 15px;
}
.wpc-tab-with-slider .swiper-pagination-bullets,
.wpc-tab-with-slider .swiper-pagination-custom,
.wpc-tab-with-slider .swiper-pagination-fraction,
.wpc-food-menu-slider .swiper-pagination-bullets,
.wpc-food-menu-slider .swiper-pagination-custom,
.wpc-food-menu-slider .swiper-pagination-fraction {
  bottom: 0;
}
.wpc-tab-with-slider:hover .swiper-button-next,
.wpc-tab-with-slider:hover .swiper-button-prev,
.wpc-food-menu-slider:hover .swiper-button-next,
.wpc-food-menu-slider:hover .swiper-button-prev {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

/*--------------------------
//  wpc slider  grid 3
----------------------------*/
.wpc-slider-grid-3,
.wpc-menu-list-style2,
.wpc-food-slider1 {
  overflow: hidden;
}
.wpc-slider-grid-3 .wpc-menu-tag-wrap,
.wpc-menu-list-style2 .wpc-menu-tag-wrap,
.wpc-food-slider1 .wpc-menu-tag-wrap {
  position: absolute;
  top: 15px;
  left: 15px;
}
.wpc-slider-grid-3 .wpc-menu-tag,
.wpc-menu-list-style2 .wpc-menu-tag,
.wpc-food-slider1 .wpc-menu-tag {
  padding: 0;
}

.wpc-slider-grid-3 .wpc_pro_food_time li {
  color: #fff;
}
.wpc-slider-grid-3 .wpc_pro_food_time li .wpc_preparing_time {
  float: none;
  margin-left: 10px;
}

.wpc-menu-list-style1 .wpc-food-menu-thumb {
  overflow: hidden;
}

.wpc-menu-list-style2 .wpc-food-menu-thumb {
  margin-bottom: 15px;
}
/* .wpc-menu-list-style2 .wpc-food-menu-item {
  padding: 0 !important;
} */

.content-style-5 {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
}
.content-style-5 .wpc-food-menu-item {
  overflow: hidden;
}
.content-style-5 .wpc-menu-tag-wrap .wpc-menu-tag li {
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  background-color: transparent;
  color: #000;
}
.content-style-5 .wpc-menu-tag-wrap .wpc-menu-tag li:nth-child(3n+1) {
  background: #cef5ff;
}
.content-style-5 .wpc-menu-tag-wrap .wpc-menu-tag li:nth-child(3n+2) {
  background: #ffd7e7;
}
.content-style-5 .wpc-menu-tag-wrap .wpc-menu-tag li:nth-child(3n+3) {
  background: #fcefd2;
}

.wpc-food-menu-item.content-style-5 .wpc-add-to-cart {
  position: relative;
  right: auto;
  left: 0;
  bottom: 0;
}
.content-style-5 .wpc-add-to-cart a {
  line-height: 30px;
  margin-right: 20px;
  border-radius: 5px;
}
.content-style-5 .wpc-add-to-cart a.cart-text-added {
  padding: 1px 15px 3px 0;
}
.content-style-5 .wpc-food-inner-content p {
  min-height: auto;
  margin-bottom: 15px;
}
.content-style-5 .wpc-menu-footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.content-style-5 .wpc-food-inner-content p {
  padding-right: 0;
}
.content-style-5 .wpc-menu-currency {
  font-size: 20px;
  font-weight: 600;
}

/*--------------------------
// wpc_pro_food_menu_list-style2
----------------------------*/
.wpc-menu-list-style2 .wpc-food-menu-item {
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}
.wpc-menu-list-style2 .wpc-food-menu-item .wpc-food-menu-thumb a {
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
}
.wpc-menu-list-style2 .wpc-food-menu-item .wpc-food-inner-content {
    margin: 0 auto;
    padding: 0 20px;
}
.wpc-menu-list-style2 .wpc-food-menu-item .wpc-food-inner-content .wpc-post-title{
    font-size: 20px;
}
.wpc-menu-list-style2 .wpc-food-menu-item .wpc-food-inner-content .wpc-menu-footer .wpc-add-to-cart {
    bottom: -28px;
}
/*--------------------------
// wpc-menu-list-style4
----------------------------*/
.wpc-menu-list-style4 {
  margin-left: 0;
  margin-right: 0;
}
.wpc-menu-list-style4 .wpc-food-menu-item {
  padding: 0 !important;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-inner-content {
  text-align: center;
  padding: 30px;
  position: relative;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-inner-content .wpc-menu-currency {
  float: none;
  display: block;
  padding-left: 0;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-inner-content p {
  padding-right: 0;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-inner-content .wpc-add-to-cart {
  position: relative;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-inner-content .wpc-add-to-cart a {
  margin: auto;
}

/* Tag + Label overlay on thumb (style-4) */
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb {
  position: relative;
  overflow: hidden;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-menu-tag-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-menu-tag-wrap > * {
  pointer-events: auto;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-product-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  order: 1;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-product-labels .wpc-product-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-product-labels .wpc-product-label__icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-menu-tag {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  order: 2;
  margin-left: auto;
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-menu-tag li {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  background-color: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  text-transform: capitalize;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.wpc-menu-list-style4 .wpc-food-menu-item .wpc-food-menu-thumb .wpc-menu-tag.wpc-discount-offer li {
  background-color: var(--wpc-filter-primary, #e7272d);
  color: #fff;
}

.wpc-stockout a {
  cursor: no-drop;
  background-color: #ccc !important;
}

