/* Facefood WooCommerce product cards — Cheezious-like grid */

.elementor-element.elementor-widget-facefood_woo_products,
.elementor-widget-facefood_woo_products,
.elementor-widget-facefood_woo_products > .elementor-widget-container,
.elementor-element.elementor-widget-facefood_product_grid,
.elementor-widget-facefood_product_grid,
.elementor-widget-facefood_product_grid > .elementor-widget-container,
.elementor-element.elementor-widget-facefood_popular_deals,
.elementor-widget-facefood_popular_deals,
.elementor-widget-facefood_popular_deals > .elementor-widget-container {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  background-color: transparent;
}

/*
 * Parent Elementor containers sometimes store a broken gradient
 * (both stops at 100% → solid #000). That paints a black gutter
 * around the product cards. Keep the listing on white.
 */
.elementor .e-con:has(> .elementor-widget-facefood_woo_products),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_woo_products),
.elementor .e-con:has(> .elementor-widget-facefood_product_grid),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_product_grid),
.elementor .e-con:has(> .elementor-widget-facefood_popular_deals),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_popular_deals),
.elementor .e-con:has(> .elementor-widget-facefood_woo_products):not(.elementor-motion-effects-element-type-background),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_woo_products):not(.elementor-motion-effects-element-type-background),
.elementor .e-con:has(> .elementor-widget-facefood_product_grid):not(.elementor-motion-effects-element-type-background),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_product_grid):not(.elementor-motion-effects-element-type-background),
.elementor .e-con:has(> .elementor-widget-facefood_popular_deals):not(.elementor-motion-effects-element-type-background),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-facefood_popular_deals):not(.elementor-motion-effects-element-type-background) {
  background-color: #fff !important;
  background-image: none !important;
}

.elementor .e-con:has(> .elementor-widget-facefood_woo_products) > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor .e-con:has(> .elementor-widget-facefood_product_grid) > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor .e-con:has(> .elementor-widget-facefood_popular_deals) > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor .e-con:has(> .elementor-widget-facefood_woo_products) > .elementor-background-overlay,
.elementor .e-con:has(> .elementor-widget-facefood_product_grid) > .elementor-background-overlay,
.elementor .e-con:has(> .elementor-widget-facefood_popular_deals) > .elementor-background-overlay {
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}

/* Homepage leftovers: empty sibling 30a2477 used the same solid-black gradient. */
.elementor-556 .elementor-element-d903916,
.elementor-556 .elementor-element-d903916:not(.elementor-motion-effects-element-type-background),
.elementor-556 .elementor-element-d903916 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-556 .elementor-element-30a2477,
.elementor-556 .elementor-element-30a2477:not(.elementor-motion-effects-element-type-background),
.elementor-556 .elementor-element-30a2477 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: #fff !important;
  background-image: none !important;
}

.ff-product-grid {
  --ff-card-bg: #f8f8f8;
  --ff-card-price: #f15b25;
  --ff-card-ink: #1a1a1a;
  --ff-card-btn-text: #21201f;
  --ff-card-start: rgba(213, 81, 33, 0.733);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0 10px;
  padding: 0;
  overflow-x: clip;
  font-family: Montserrat, Poppins, system-ui, sans-serif;
  color: var(--ff-card-ink);
}

.ff-product-grid *,
.ff-product-grid *::before,
.ff-product-grid *::after {
  box-sizing: border-box;
}

.ff-product-grid .facefood-empty {
  flex: 1 1 100%;
  margin: 8px 0;
}

.ff-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 190px;
  max-width: calc(50% - 10px);
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0 0 8px;
  background: var(--ff-card-bg);
  border-radius: 20px;
  overflow: hidden;
}

.ff-product-card__media {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
}

.ff-product-card__image-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
}

.ff-product-card__image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
}

.ff-product-card__wish {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ff-product-card__wish-link,
.ff-product-card__wish .woosw-btn,
.ff-product-card__wish a.woosw-btn,
.ff-product-card__wish button.woosw-btn,
.ff-product-card__wish .yith-wcwl-add-to-wishlist,
.ff-product-card__wish .yith-wcwl-add-to-wishlist a,
.ff-product-card__wish .yith-wcwl-add-button a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0;
  text-decoration: none !important;
  cursor: pointer;
}

.ff-product-card__wish .woosw-btn-text,
.ff-product-card__wish .woosw-btn-icon,
.ff-product-card__wish .yith-wcwl-icon,
.ff-product-card__wish .feedback,
.ff-product-card__wish .yith-wcwl-add-to-wishlist-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ff-product-card__wish-link svg,
.ff-product-card__heart {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.ff-product-card__wish .woosw-btn::before,
.ff-product-card__wish a.woosw-btn::before,
.ff-product-card__wish button.woosw-btn::before,
.ff-product-card__wish .yith-wcwl-add-to-wishlist a::before {
  content: "";
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15B25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6c-1.8-1.9-4.7-1.9-6.5 0L12 7.9l-2.3-2.3c-1.8-1.9-4.7-1.9-6.5 0s-1.8 5 0 6.9L12 21l8.8-8.5c1.8-1.9 1.8-5 0-6.9z'/%3E%3C/svg%3E");
}

.ff-product-card__wish .woosw-btn.woosw-added::before,
.ff-product-card__wish .exists a::before,
.ff-product-card__wish .yith-wcwl-wishlistexistsbrowse a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F15B25' stroke='%23F15B25' stroke-width='1.5'%3E%3Cpath d='M20.8 5.6c-1.8-1.9-4.7-1.9-6.5 0L12 7.9l-2.3-2.3c-1.8-1.9-4.7-1.9-6.5 0s-1.8 5 0 6.9L12 21l8.8-8.5c1.8-1.9 1.8-5 0-6.9z'/%3E%3C/svg%3E");
}

html body .ff-product-grid h3.ff-product-card__title,
.ff-product-card__title {
  align-self: flex-start;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 0 12px !important;
  font-family: Montserrat, Poppins, system-ui, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.15px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  color: var(--ff-card-ink) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.ff-product-card__title a,
.ff-product-card__title-btn {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ff-product-card__desc {
  align-self: flex-start;
  width: 100%;
  margin: 8px 0;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15px;
  line-height: 20px;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-transform: capitalize;
  color: #5c6574;
}

.ff-product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0 12px;
  color: var(--ff-card-price);
}

.ff-product-card__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ff-card-price);
  white-space: nowrap;
}

.ff-product-card__starting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 16px;
  background: var(--ff-card-start);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body .ff-product-grid .ff-product-card__cart,
.ff-product-card__cart {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  height: 35px;
  margin: 0.8rem auto;
  padding: 9px 19px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ff-card-btn-text);
  font-family: Montserrat, Poppins, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.37px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ff-product-card__cart:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ff-product-card__cart.is-added {
  background: var(--ff-card-price);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .ff-product-card__cart:hover {
    background: #f15b25;
    color: #fff;
    text-decoration: none;
  }
}

@media (hover: none) {
  .ff-product-card__cart:hover,
  .ff-product-card__cart:focus {
    background: #fff;
    color: var(--ff-card-btn-text);
  }
}

@media (max-width: 400px) {
  .ff-product-card {
    width: 160px;
  }

  .ff-product-card__image {
    height: 180px;
  }
}

@media (max-width: 350px) {
  .ff-product-card {
    width: 140px;
  }

  .ff-product-card__image {
    height: 180px;
  }
}

@media (min-width: 600px) {
  .ff-product-grid {
    justify-content: flex-start;
  }

  .ff-product-card {
    width: 259px;
    max-width: 259px;
  }

  .ff-product-card__image {
    height: 260px;
  }

  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title,
  .ff-product-card__desc,
  .ff-product-card__price-row {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .ff-product-card__cart {
    width: 214px;
    height: 52px;
    margin-top: 0.7rem;
    padding: 10px 20px;
  }
}

@media (min-width: 900px) {
  .ff-product-grid {
    justify-content: center;
  }

  .ff-product-card {
    height: auto;
  }

  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title,
  .ff-product-card__desc,
  .ff-product-card__price-row {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (min-width: 1200px) {
  .ff-product-grid {
    justify-content: flex-start;
  }

  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title,
  .ff-product-card__desc,
  .ff-product-card__price-row {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 1535px) {
  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title {
    font-size: 1.0625rem !important;
  }

  .ff-product-card__desc {
    font-size: 0.75rem;
  }

  .ff-product-card__price {
    font-size: 1.25rem;
  }

  html body .ff-product-grid .ff-product-card__cart,
  .ff-product-card__cart {
    font-size: 0.875rem;
  }
}

@media (max-width: 1199px) {
  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title {
    font-size: 1rem !important;
  }

  .ff-product-card__desc {
    font-size: 0.75rem;
  }

  .ff-product-card__price {
    font-size: 1.125rem;
  }

  html body .ff-product-grid .ff-product-card__cart,
  .ff-product-card__cart {
    font-size: 0.8125rem;
  }
}

@media (max-width: 899px) {
  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title {
    font-size: 0.9375rem !important;
  }

  .ff-product-card__desc,
  html body .ff-product-grid .ff-product-card__cart,
  .ff-product-card__cart {
    font-size: 0.75rem;
  }

  .ff-product-card__price {
    font-size: 1rem;
  }
}

@media (max-width: 599px) {
  html body .ff-product-grid h3.ff-product-card__title,
  .ff-product-card__title {
    font-size: 0.9375rem !important;
  }

  .ff-product-card__desc {
    font-size: 0.6875rem;
  }

  .ff-product-card__price {
    font-size: 0.875rem;
  }

  html body .ff-product-grid .ff-product-card__cart,
  .ff-product-card__cart {
    font-size: 0.75rem;
  }
}

@media (min-width: 960px) {
  .ff-product-card__cart {
    padding: 10px 20px;
  }
}

@media (min-width: 1280px) {
  .ff-product-card__cart {
    padding: 13px 26px;
  }
}
