/* ================================================================
   REPOSE CAFE — Frontend Redesign v4
   /wp-content/plugins/woocommerce-food/css/repose-modern-grid.css
   ================================================================ */

:root {
  --rp-teal:      #029A87;
  --rp-deep:      #073B3A;
  --rp-pink:      #ED8D8B;
  --rp-espresso:  #482728;
  --rp-yellow:    #F4E285;
  --rp-coral:     #F87060;
  --rp-cream:     #F8F5F0;
  --rp-card:      #FFFFFF;
  --rp-border:    rgba(7,59,58,0.08);
  --rp-shadow-sm: 0 2px 12px rgba(7,59,58,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --rp-shadow-lg: 0 16px 40px rgba(7,59,58,0.14), 0 4px 16px rgba(0,0,0,0.06);
  --rp-radius:    18px;
  --rp-ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   QUANTITY STEPPER — fully restored on all product cards
   ================================================================ */
.ex-fdlist .exbt-inline .exwoofood-woocommerce.woocommerce .quantity {
  display: block !important;
}
.ex-fdlist .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number] {
  border-radius: 8px !important;
  border: 2px solid rgba(7,59,58,0.12) !important;
  text-align: center !important;
}

/* ================================================================
   GRID CARD SPACING
   ================================================================ */
.ex-fdlist.style-1 .item-grid,
.ex-fdlist.style-2 .item-grid,
.ex-fdlist.style-3 .item-grid,
.ex-fdlist.style-4 .item-grid,
.ex-fdlist.style-5 .item-grid,
.ex-fdlist.style-6 .item-grid {
  padding: 8px !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
}

.ex-fdlist.style-1 .item-grid {
  border-right: none !important;
  border-bottom: none !important;
}
.ex-fdlist.style-1 .parent_grid { background: transparent !important; }
.ex-fdlist.style-1 .ctgrid,
.ex-fdlist.style-2 .ctgrid { margin: -8px !important; }

/* ================================================================
   MOBILE GRID — 2 columns always (even for 3/4/5-col shortcodes)
   ================================================================ */
@media screen and (max-width: 767px) {
  .ex-fdlist:not(.list-layout) .ctgrid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: -6px !important;
  }
  .ex-fdlist:not(.list-layout) .item-grid {
    width: 50% !important;
    padding: 6px !important;
    display: block !important;
    box-sizing: border-box !important;
    float: none !important;
  }
}
@media screen and (max-width: 380px) {
  .ex-fdlist:not(.list-layout) .item-grid {
    width: 50% !important;
  }
}

/* ================================================================
   GRID STYLE 1 — 1:1 image, elegant card
   ================================================================ */
.ex-fdlist .exstyle-1 {
  background: var(--rp-card) !important;
  border-radius: var(--rp-radius) !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.35s var(--rp-ease), transform 0.35s var(--rp-ease) !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  position: relative !important;
  border: 1px solid var(--rp-border) !important;
}
.ex-fdlist .exstyle-1:hover {
  box-shadow: var(--rp-shadow-lg) !important;
  transform: translateY(-5px) !important;
}

.ex-fdlist .exstyle-1 .exstyle-1-image {
  background: var(--rp-cream) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}
.ex-fdlist .exstyle-1 .exstyle-1-image a {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
}
.ex-fdlist .exstyle-1 .exstyle-1-image img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center !important;
  display: block !important; border: none !important;
  border-radius: 0 !important;
  transition: transform 0.55s var(--rp-ease) !important;
}
.ex-fdlist .exstyle-1:hover .exstyle-1-image img { transform: scale(1.06) !important; }

.ex-fdlist .exstyle-1 figcaption {
  padding: 14px 16px 70px !important;
  margin-bottom: 0 !important;
  flex: 1 !important;
  text-align: center !important;
  position: relative !important;
}

/* Title — bigger */
.ex-fdlist .exstyle-1 figcaption h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--rp-deep) !important;
  text-align: center !important;
}
.ex-fdlist .exstyle-1 figcaption h3 a {
  text-align: center !important;
  color: var(--rp-deep) !important;
  text-decoration: none !important;
}

/* Price */
.ex-fdlist .exstyle-1 figcaption h5 {
  font-size: 18px !important; font-weight: 800 !important;
  color: var(--rp-teal) !important; padding: 0 0 8px !important;
  margin: 0 0 8px !important; line-height: 1 !important;
}
.ex-fdlist .exstyle-1 figcaption h5 p {
  width: auto !important; border: none !important;
  margin: 0 !important; padding: 0 !important;
  text-align: left !important; background: transparent !important;
}
.ex-fdlist .exstyle-1 figcaption h5 p > span {
  position: static !important; background: transparent !important;
  padding: 0 !important; bottom: auto !important;
}

/* Allergen gap */
.ex-fdlist .exstyle-1 figcaption .rp-allergens { margin: 10px 0 12px !important; }

/* Button area */
.ex-fdlist .exstyle-1 figcaption .exbt-inline {
  position: absolute !important;
  bottom: 14px !important; left: 10px !important; right: 10px !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

/* WooCommerce form: auto width so it doesn't stretch edge-to-edge */
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce form.cart {
  display: inline-flex !important;
  align-items: stretch !important;
  flex-direction: row !important;
  gap: 8px !important;
  width: auto !important;
  justify-content: center !important;
  background: var(--rp-cream) !important;
  border-radius: 14px !important;
  padding: 4px 6px !important;
  box-shadow: 0 2px 10px rgba(7,59,58,0.10) !important;
}

/* Button — natural width, pill shape left side */
.ex-fdlist .exstyle-1 figcaption .exstyle-1-button,
.ex-fdlist[id^=ex] .exstyle-1 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"] {
  background: var(--rp-teal) !important;
  border-radius: 11px !important;
  padding: 11px 22px !important;
  font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 0.5px !important; text-transform: uppercase !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(2,154,135,0.28) !important;
  transition: all 0.25s var(--rp-ease) !important;
  width: auto !important; flex: none !important;
  white-space: nowrap !important;
  text-align: center !important; color: #fff !important; cursor: pointer !important;
  position: relative !important; left: auto !important; bottom: auto !important;
  transform: none !important;
}
.ex-fdlist .exstyle-1 figcaption .exstyle-1-button:hover,
.ex-fdlist[id^=ex] .exstyle-1 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:hover {
  background: var(--rp-pink) !important;
  box-shadow: 0 6px 18px rgba(237,141,139,0.45) !important;
}

/* Quantity stepper: RIGHT side of button, inside the pill */
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity,
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce div.quantity {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  order: 2 !important;
  margin: 0 !important;
  float: none !important;
  padding-left: 6px !important;
}
/* Fix digit hidden behind spin arrows: use box sizing + enough width */
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number] {
  width: 52px !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(7,59,58,0.15) !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  /* Padding: 0 on left, leave space on right for native up/down arrows */
  padding: 0 18px 0 4px !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield !important;
  color: var(--rp-deep) !important;
  background: #fff !important;
}
/* Show native spinners clearly */
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number]::-webkit-inner-spin-button {
  opacity: 1 !important;
  cursor: pointer !important;
  margin-right: 2px !important;
}
.ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number]::-webkit-outer-spin-button {
  opacity: 1 !important;
}

/* ================================================================
   GRID STYLE 2 — 1:1 image
   ================================================================ */
.ex-fdlist .exstyle-2 {
  background: var(--rp-card) !important; border-radius: var(--rp-radius) !important;
  overflow: hidden !important; padding: 0 !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.35s var(--rp-ease), transform 0.35s var(--rp-ease) !important;
  border: 1px solid var(--rp-border) !important;
  display: flex !important; flex-direction: column !important; height: 100% !important;
}
.ex-fdlist .exstyle-2:hover { box-shadow: var(--rp-shadow-lg) !important; transform: translateY(-5px) !important; }

.ex-fdlist .exstyle-2 .exstyle-2-image {
  aspect-ratio: 1 / 1 !important; overflow: hidden !important;
  background: var(--rp-cream) !important; flex-shrink: 0 !important;
}
.ex-fdlist .exstyle-2 .exstyle-2-image img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  display: block !important; transition: transform 0.55s var(--rp-ease) !important;
}
.ex-fdlist .exstyle-2:hover .exstyle-2-image img { transform: scale(1.06) !important; }

.ex-fdlist .exstyle-2 figcaption {
  border: none !important; background: var(--rp-card) !important;
  padding: 14px 16px 70px !important; position: relative !important;
  margin: 0 !important; flex: 1 !important;
}
.ex-fdlist .exstyle-2 figcaption h3 {
  padding: 0 0 6px !important; font-size: 17px !important; font-weight: 700 !important;
  color: var(--rp-deep) !important;
}
.ex-fdlist .exstyle-2 figcaption h3 a { color: var(--rp-deep) !important; }
.ex-fdlist .exstyle-2 figcaption h5 {
  font-size: 18px !important; font-weight: 800 !important; color: var(--rp-teal) !important;
  border-bottom: none !important; margin: 0 0 8px !important; padding: 0 0 8px !important;
}
.ex-fdlist .exstyle-2 figcaption h5 > span { position: static !important; bottom: auto !important; background: transparent !important; padding: 0 !important; }
.ex-fdlist .exstyle-2 figcaption .rp-allergens { margin: 10px 0 12px !important; }

.ex-fdlist .exstyle-2 figcaption .exbt-inline {
  position: absolute !important; bottom: 14px !important;
  left: 10px !important; right: 10px !important; transform: none !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; gap: 0 !important;
}
.ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce form.cart {
  display: inline-flex !important; align-items: stretch !important;
  flex-direction: row !important; gap: 0 !important;
  width: auto !important; justify-content: center !important;
  background: var(--rp-cream) !important;
  border-radius: 14px !important; padding: 3px !important;
  box-shadow: 0 2px 10px rgba(7,59,58,0.10) !important;
}
.ex-fdlist .exstyle-2 figcaption .exstyle-2-button,
.ex-fdlist .exstyle-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"] {
  background: var(--rp-teal) !important; border-radius: 11px !important;
  padding: 11px 22px !important; font-weight: 700 !important; font-size: 12px !important;
  letter-spacing: 0.5px !important; text-transform: uppercase !important;
  box-shadow: 0 3px 10px rgba(2,154,135,0.28) !important;
  transition: all 0.25s var(--rp-ease) !important;
  width: auto !important; flex: none !important; white-space: nowrap !important;
  text-align: center !important; color: #fff !important;
  position: relative !important; left: auto !important; bottom: auto !important;
  transform: none !important;
}
.ex-fdlist .exstyle-2 figcaption .exstyle-2-button:hover,
.ex-fdlist .exstyle-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:hover {
  background: var(--rp-pink) !important; box-shadow: 0 6px 18px rgba(237,141,139,0.45) !important;
}
.ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity,
.ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce div.quantity {
  display: flex !important; align-items: center !important;
  flex-shrink: 0 !important; order: 2 !important;
  margin: 0 !important; float: none !important; padding-left: 6px !important;
}
.ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number] {
  width: 52px !important; height: 38px !important; border-radius: 8px !important;
  border: 2px solid rgba(7,59,58,0.15) !important; text-align: center !important;
  font-size: 15px !important; font-weight: 700 !important;
  padding: 0 18px 0 4px !important; box-sizing: border-box !important;
  -moz-appearance: textfield !important; color: var(--rp-deep) !important; background: #fff !important;
}
.ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number]::-webkit-inner-spin-button {
  opacity: 1 !important; cursor: pointer !important; margin-right: 2px !important;
}

/* ================================================================
   GRID STYLE 3
   ================================================================ */
.ex-fdlist .exstyle-3 {
  border-radius: var(--rp-radius) !important; overflow: hidden !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.35s var(--rp-ease), transform 0.35s var(--rp-ease) !important;
  border: 1px solid var(--rp-border) !important;
}
.ex-fdlist .exstyle-3:hover { box-shadow: var(--rp-shadow-lg) !important; transform: translateY(-4px) !important; }
.ex-fdlist .exstyle-3:hover .exstyle-3-image img { transform: scale(1.08) !important; }
.ex-fdlist .exstyle-3 figcaption { background: linear-gradient(160deg, var(--rp-deep) 0%, var(--rp-teal) 100%) !important; }
.ex-fdlist .exstyle-3 figcaption h3 { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.ex-fdlist .exstyle-3 figcaption h5 { color: var(--rp-yellow) !important; font-size: 17px !important; font-weight: 800 !important; }

/* ================================================================
   GRID STYLE 4/5/6 — 1:1 image, plus button
   ================================================================ */
.ex-fdlist .exstyle-4 {
  background: var(--rp-card) !important; border-radius: var(--rp-radius) !important;
  overflow: hidden !important; box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.35s var(--rp-ease), transform 0.35s var(--rp-ease) !important;
  border: 1px solid var(--rp-border) !important;
  display: flex !important; flex-direction: column !important; height: 100% !important;
}
.ex-fdlist .exstyle-4:hover { box-shadow: var(--rp-shadow-lg) !important; transform: translateY(-5px) !important; }

.ex-fdlist .exstyle-4 .exstyle-4-image {
  aspect-ratio: 1 / 1 !important; overflow: hidden !important;
  background: var(--rp-cream) !important; flex-shrink: 0 !important;
}
.ex-fdlist .exstyle-4 .exstyle-4-image img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  display: block !important; transition: transform 0.55s var(--rp-ease) !important;
}
.ex-fdlist .exstyle-4:hover .exstyle-4-image img { transform: scale(1.06) !important; }

.ex-fdlist .exstyle-4 figcaption {
  border-top: 3px solid var(--rp-teal) !important;
  background: var(--rp-card) !important; padding: 14px 16px 56px !important;
  border-radius: 0 !important; flex: 1 !important; position: relative !important;
}
.ex-fdlist .exstyle-4 figcaption h3 {
  font-size: 16px !important; font-weight: 700 !important; color: var(--rp-deep) !important; margin-bottom: 6px !important;
}
.ex-fdlist .exstyle-4 figcaption h3 a { color: var(--rp-deep) !important; }
.ex-fdlist .exstyle-4 figcaption h5 {
  font-size: 17px !important; font-weight: 800 !important;
  color: var(--rp-teal) !important; background: transparent !important; margin-bottom: 8px !important;
}
.ex-fdlist .exstyle-4 figcaption .rp-allergens { margin: 10px 0 12px !important; }

.ex-fdlist .exstyle-4 figcaption .exstyle-4-button.exfd-choice {
  position: absolute !important; bottom: 14px !important; right: 14px !important;
  width: 40px !important; height: 40px !important; border-radius: 50% !important;
  background: var(--rp-teal) !important; border: none !important;
  box-shadow: 0 4px 14px rgba(2,154,135,0.4) !important;
  transition: all 0.25s var(--rp-ease) !important; cursor: pointer !important;
}
.ex-fdlist .exstyle-4 figcaption .exstyle-4-button.exfd-choice:hover {
  background: var(--rp-deep) !important; transform: scale(1.14) !important;
}
.ex-fdlist .exstyle-4 .exfd-icon-plus:before,
.ex-fdlist .exstyle-4 .exfd-icon-plus:after { background-color: #fff !important; }

/* ================================================================
   SALE RIBBON
   ================================================================ */
.exfd-ribbon { border-radius: 0 0 10px 0 !important; }
.exfd-ribbon span {
  background: var(--rp-coral) !important; font-weight: 700 !important;
  font-size: 10px !important; letter-spacing: 0.6px !important; padding: 4px 10px !important;
}

/* ================================================================
   CATEGORY FILTER — ICON STYLE
   Desktop: 2-row flex-wrap. Mobile: 3-column grid.
   ================================================================ */

/* Container */
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 0 16px !important;
  border-bottom: none !important;
  margin: 0 0 16px !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Each icon tab — text below image, text wraps */
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list a {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 14px 12px 12px !important;
  border-radius: 16px !important;
  border: 2px solid #e0dbd5 !important;
  background: #fff !important;
  color: var(--rp-espresso) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  text-transform: uppercase !important;
  transition: all 0.22s var(--rp-ease) !important;
  min-width: 90px !important;
  max-width: 130px !important;
  float: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list a:hover {
  border-color: var(--rp-teal) !important; color: var(--rp-teal) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(2,154,135,0.2) !important;
}

/* Active state */
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list .ex-menu-item-active {
  background: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(2,154,135,0.35) !important;
}
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list .ex-menu-item-active:not(.exfd-child-click):after {
  display: none !important;
}

/* ACTIVE: DO NOT invert/greyscale images — fix Issue #2 */
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list .ex-menu-item-active .exwf-caticon img {
  filter: none !important;   /* no greyscale, no inversion */
  opacity: 1 !important;
}
/* Only invert icon-font icons (not real images) */
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list .ex-menu-item-active .exwf-caticon.exwf-iconsc {
  filter: brightness(0) invert(1) !important;
}

/* Icon image — desktop size */
.ex-fdlist .exwf-caticon {
  display: flex !important; align-items: center !important;
  justify-content: center !important; margin: 0 !important;
}
.ex-fdlist .exwf-caticon img {
  width: 80px !important; height: 80px !important; max-width: 80px !important;
  object-fit: contain !important; display: block !important;
  transition: transform 0.25s var(--rp-ease) !important;
}
.ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list a:hover .exwf-caticon img {
  transform: scale(1.08) !important;
}
.ex-fdlist .exwf-caticon.exwf-iconsc {
  font-size: 80px !important; line-height: 1 !important;
}

/* ── MOBILE: 3-column grid for categories ───────────────────────── */
@media screen and (max-width: 768px) {

  /* Use CSS Grid for exact 3 columns */
  .ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    justify-content: unset !important;
    overflow-x: visible !important;
    overflow: visible !important;
  }

  .ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list a {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 10px 8px 10px !important;
    font-size: 11px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .ex-fdlist .exwf-caticon img {
    width: 52px !important; height: 52px !important; max-width: 52px !important;
  }
  .ex-fdlist .exwf-caticon.exwf-iconsc { font-size: 52px !important; }

  /* Native select: hide it — visual list handles the filtering */
  .ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-select {
    display: none !important;
  }
}

/* ================================================================
   STANDARD TEXT-ONLY CATEGORY TABS (no icon)
   ================================================================ */
.ex-fdlist .exfd-filter:not(.exwf-fticon-style) .exfd-filter-group .ex-menu-list a {
  border-radius: 25px !important;
  border: 2px solid #e0dbd5 !important;
  padding: 9px 20px !important;
  font-size: 13px !important; font-weight: 600 !important;
  margin: 0 4px 8px !important; background: #fff !important;
  color: var(--rp-espresso) !important; transition: all 0.2s var(--rp-ease) !important;
}
.ex-fdlist .exfd-filter:not(.exwf-fticon-style) .exfd-filter-group .ex-menu-list a:hover {
  border-color: var(--rp-teal) !important; color: var(--rp-teal) !important;
}
.ex-fdlist .exfd-filter:not(.exwf-fticon-style) .exfd-filter-group .ex-menu-list .ex-menu-item-active {
  background: var(--rp-teal) !important; border-color: var(--rp-teal) !important; color: #fff !important;
}
.ex-fdlist .exfd-filter .exfd-filter-group .ex-menu-list .ex-menu-item-active:not(.exfd-child-click):after {
  display: none !important;
}


/* ================================================================
   LIST VIEW — Restored to original plugin layout
   Only card aesthetics changed (shadow, border, radius, colors).
   All positioning is the plugin's original float/flex structure.
   ================================================================ */

/* Row spacing */
.list-style-1 .fditem-list.item-grid,
.list-style-2 .fditem-list.item-grid,
.list-style-3 .fditem-list.item-grid,
.list-style-4 .fditem-list.item-grid,
.list-style-5 .fditem-list.item-grid {
  margin-bottom: 14px !important;
  position: relative !important;
}

/* ── fdstyle-list-1: original float layout + modern card shell ── */
.fdstyle-list-1 {
  width: 100% !important;
  position: relative !important;
  display: block !important;           /* original: block, NOT grid */
  background: var(--rp-card) !important;
  border-radius: 14px !important;
  border: 1px solid var(--rp-border) !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.28s var(--rp-ease), transform 0.28s var(--rp-ease) !important;
  overflow: hidden !important;         /* keep image inside rounded corners */
  float: none !important;
  padding: 12px 14px 12px 0 !important; /* space for the floated image */
}
.fdstyle-list-1:hover {
  box-shadow: var(--rp-shadow-lg) !important;
  transform: translateY(-2px) !important;
}

/* Image: original float-left */
.fdstyle-list-1 > a.exfd_modal_click {
  display: block !important;
  float: left !important;
  margin-right: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: none !important;
}
.fdstyle-list-1 .exf-img,
.ctlist .fdstyle-list-1 .exf-img,
.ctlist .exf-img {
  float: left !important;
  margin-right: 16px !important;
  width: 90px !important;
  max-width: 90px !important;
  height: 90px !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: var(--rp-cream) !important;
  flex-shrink: 0 !important;
}
.fdstyle-list-1 .exf-img img,
.ctlist .fdstyle-list-1 .exf-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 10px !important;
  max-width: none !important;
  transition: transform 0.35s var(--rp-ease) !important;
}
.fdstyle-list-1:hover .exf-img img { transform: scale(1.06) !important; }

/* Detail: original block flow after float */
.fdstyle-list-1 .fdlist_1_detail {
  display: block !important;
  overflow: hidden !important;         /* BFC to sit beside float */
  padding: 0 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

/* Title bar: original flex + dashed bottom */
.fdstyle-list-1 .fdlist_1_title {
  display: flex !important;
  border-bottom: 1px dashed rgba(7,59,58,0.15) !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
}
.fdstyle-list-1 .fdlist_1_title::after {
  content: "" !important;
  flex-grow: 1 !important;
  order: 2 !important;
  display: block !important;
}

.fdstyle-list-1 .fdlist_1_title .fdlist_1_name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--rp-deep) !important;
  line-height: 1.25 !important;
  margin-bottom: 0 !important;
  order: 1 !important;
  flex-shrink: 0 !important;
}
.fdstyle-list-1 .fdlist_1_title .fdlist_1_name a {
  color: var(--rp-deep) !important;
  text-decoration: none !important;
}
.fdstyle-list-1 .fdlist_1_title .fdlist_1_price {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--rp-teal) !important;
  white-space: nowrap !important;
  order: 3 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Description area: original block flow */
.fdstyle-list-1 .fdlist_1_des {
  display: block !important;
  width: 100% !important;
  position: static !important;         /* NOT absolute — restore original */
  padding: 0 44px 0 0 !important;     /* right pad for the + button */
  grid-column: unset !important;
  grid-row: unset !important;
}
.fdstyle-list-1 .fdlist_1_des .exwf-sdes p {
  font-size: 13px !important;
  color: #7a6f6a !important;
  line-height: 1.5 !important;
  margin: 0 0 4px !important;
}

/* ── Allergen strip: below the description, full width, separated ── */
.fdstyle-list-1 .fdlist_1_des .rp-allergens {
  position: static !important;         /* NOT absolute — flow naturally */
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  margin: 8px -14px -12px -14px !important; /* flush edges */
  padding: 6px 14px 8px !important;
  background: rgba(248,245,240,0.9) !important;
  border-top: 1px solid rgba(7,59,58,0.09) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 0 14px 14px !important;
  backdrop-filter: none !important;
}

/* + order button */
.fdstyle-list-1 .fdlist_1_des button.exfd-choice {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  background: var(--rp-teal) !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(2,154,135,0.3) !important;
  transition: all 0.22s var(--rp-ease) !important;
  cursor: pointer !important;
}
.fdstyle-list-1 .fdlist_1_des button.exfd-choice:hover {
  background: var(--rp-pink) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.fdstyle-list-1 .exfd-icon-plus:before,
.fdstyle-list-1 .exfd-icon-plus:after { background-color: #fff !important; }

/* Clearfix after float */
.fdstyle-list-1::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* ── fdstyle-list-2 modern styling ────────────────────────────── */
.fdstyle-list-2 {
  background: var(--rp-card) !important;
  border-radius: 14px !important;
  border: 1px solid var(--rp-border) !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.28s var(--rp-ease), transform 0.28s var(--rp-ease) !important;
  position: relative !important;
  overflow: visible !important;
}
.fdstyle-list-2:hover { box-shadow: var(--rp-shadow-lg) !important; transform: translateY(-2px) !important; }
.fdstyle-list-2 .fdlist_2_name a { color: var(--rp-deep) !important; font-weight: 700 !important; }
.fdstyle-list-2 .fdlist_2_price { color: var(--rp-teal) !important; font-weight: 800 !important; }
/* Allergen below list-2 */
.fdstyle-list-2 .rp-allergens {
  position: static !important;
  margin: 6px -16px -16px -16px !important;
  padding: 6px 16px 8px !important;
  background: rgba(248,245,240,0.9) !important;
  border-top: 1px solid rgba(7,59,58,0.09) !important;
  border-bottom: none !important; border-left: none !important; border-right: none !important;
  border-radius: 0 !important;
}

/* ── fdstyle-list-3 modern styling ────────────────────────────── */
.fdstyle-list-3 {
  background: var(--rp-card) !important;
  border-radius: 14px !important;
  border: 1px solid var(--rp-border) !important;
  box-shadow: var(--rp-shadow-sm) !important;
  transition: box-shadow 0.28s var(--rp-ease), transform 0.28s var(--rp-ease) !important;
  position: relative !important;
  overflow: visible !important;
}
.fdstyle-list-3:hover { box-shadow: var(--rp-shadow-lg) !important; transform: translateY(-2px) !important; }
.fdstyle-list-3 .fdlist_3_title h3 a { color: var(--rp-deep) !important; font-weight: 700 !important; }
.fdlist_3_price span { color: var(--rp-teal) !important; font-weight: 800 !important; }
.fdstyle-list-3 .rp-allergens {
  position: static !important;
  margin: 6px -16px -14px -16px !important;
  padding: 6px 16px 8px !important;
  background: rgba(248,245,240,0.9) !important;
  border-top: 1px solid rgba(7,59,58,0.09) !important;
  border-bottom: none !important; border-left: none !important; border-right: none !important;
  border-radius: 0 !important;
}

/* ================================================================
   LOAD MORE BUTTON
   ================================================================ */
.ex-loadmore .loadmore-exfood {
  border-radius: 25px !important; font-weight: 700 !important;
  padding: 12px 36px !important; border-color: var(--rp-teal) !important;
  color: var(--rp-teal) !important; transition: all 0.25s var(--rp-ease) !important;
}
.ex-loadmore .loadmore-exfood:hover {
  background: var(--rp-teal) !important; color: #fff !important;
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media screen and (max-width: 767px) {

  /* ── Grid: 2 columns always ─────────────────────────────────── */
  .ex-fdlist:not(.list-layout) .ctgrid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: -5px !important;
  }
  .ex-fdlist:not(.list-layout) .item-grid {
    width: 50% !important;
    padding: 5px !important;
    display: block !important;
    box-sizing: border-box !important;
    float: none !important;
    vertical-align: top !important;
  }

  /* ── Grid cards on mobile ───────────────────────────────────── */
  .ex-fdlist .exstyle-1,
  .ex-fdlist .exstyle-2,
  .ex-fdlist .exstyle-4 { border-radius: 12px !important; }

  .ex-fdlist .exstyle-1 figcaption,
  .ex-fdlist .exstyle-2 figcaption {
    padding: 10px 10px 72px !important;  /* extra bottom for btn+stepper */
  }

  /* Title: slightly smaller on mobile */
  .ex-fdlist .exstyle-1 figcaption h3,
  .ex-fdlist .exstyle-2 figcaption h3,
  .ex-fdlist .exstyle-4 figcaption h3 {
    font-size: 13px !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }
  .ex-fdlist .exstyle-1 figcaption h5,
  .ex-fdlist .exstyle-2 figcaption h5,
  .ex-fdlist .exstyle-4 figcaption h5 {
    font-size: 14px !important;
    text-align: center !important;
  }

  /* ── Mobile button + stepper: smaller so they fit in 2-col card ── */
  /* Move them to BELOW the allergen section using a tighter bottom */
  .ex-fdlist .exstyle-1 figcaption .exbt-inline,
  .ex-fdlist .exstyle-2 figcaption .exbt-inline {
    bottom: 10px !important;
    left: 6px !important;
    right: 6px !important;
  }

  /* Form pill: smaller padding */
  .ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce form.cart,
  .ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce form.cart {
    padding: 3px !important;
    gap: 5px !important;
    border-radius: 10px !important;
  }

  /* Add to cart button: compact on mobile */
  .ex-fdlist .exstyle-1 figcaption .exstyle-1-button,
  .ex-fdlist[id^=ex] .exstyle-1 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"],
  .ex-fdlist .exstyle-2 figcaption .exstyle-2-button,
  .ex-fdlist .exstyle-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"] {
    padding: 9px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.2px !important;
    border-radius: 8px !important;
  }

  /* Stepper input: smaller on mobile */
  .ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number],
  .ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity input[type=number] {
    width: 38px !important;
    height: 32px !important;
    font-size: 12px !important;
    padding: 0 14px 0 3px !important;
    border-radius: 6px !important;
  }
  .ex-fdlist .exstyle-1 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity,
  .ex-fdlist .exstyle-2 figcaption .exbt-inline .exwoofood-woocommerce.woocommerce .quantity {
    padding-left: 4px !important;
  }

  /* Allergens on mobile grid: small icons */
  .ex-fdlist .exstyle-1 figcaption .rp-allergens,
  .ex-fdlist .exstyle-2 figcaption .rp-allergens { margin-bottom: 8px !important; }

  /* ── List view on mobile: keep float but stack image smaller ─── */
  .fdstyle-list-1 { padding: 10px 10px 10px 0 !important; }
  .fdstyle-list-1 .exf-img,
  .ctlist .fdstyle-list-1 .exf-img,
  .ctlist .exf-img {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    margin-right: 12px !important;
    border-radius: 8px !important;
  }
  .fdstyle-list-1 .fdlist_1_title .fdlist_1_name { font-size: 14px !important; }
  .fdstyle-list-1 .fdlist_1_title .fdlist_1_price { font-size: 14px !important; }
  .fdstyle-list-1 .fdlist_1_des .rp-allergens {
    margin: 8px -10px -10px -10px !important;
    padding: 5px 10px 7px !important;
    border-radius: 0 0 14px 14px !important;
  }
}

/* ================================================================
   NO HOVER LIFT ON TOUCH DEVICES
   ================================================================ */
@media (hover: none) {
  .ex-fdlist .exstyle-1:hover,
  .ex-fdlist .exstyle-2:hover,
  .ex-fdlist .exstyle-3:hover,
  .ex-fdlist .exstyle-4:hover,
  .fdstyle-list-1:hover,
  .fdstyle-list-2:hover,
  .fdstyle-list-3:hover { transform: none !important; }
}

/* ================================================================
   CARD CONTENT — CENTER ALIGNED (grid only, not list)
   ================================================================ */
.ex-fdlist .exstyle-1 figcaption,
.ex-fdlist .exstyle-2 figcaption {
  text-align: center !important;
}
.ex-fdlist .exstyle-1 figcaption h3,
.ex-fdlist .exstyle-1 figcaption h3 a,
.ex-fdlist .exstyle-2 figcaption h3,
.ex-fdlist .exstyle-2 figcaption h3 a {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}
.ex-fdlist .exstyle-1 figcaption h5,
.ex-fdlist .exstyle-2 figcaption h5 {
  text-align: center !important;
}
.ex-fdlist .exstyle-1 figcaption h5 p {
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.ex-fdlist .exstyle-1 figcaption .exwf-shdes,
.ex-fdlist .exstyle-2 figcaption .exwf-shdes,
.ex-fdlist .exstyle-1 figcaption .exwf-shdes p,
.ex-fdlist .exstyle-2 figcaption .exwf-shdes p {
  text-align: center !important;
}
.ex-fdlist .exstyle-1 figcaption .rp-allergens-icons,
.ex-fdlist .exstyle-2 figcaption .rp-allergens-icons {
  justify-content: center !important;
}

/* ================================================================
   BUTTON HOVER — pink brand color
   ================================================================ */
.ex-fdlist .exstyle-1 figcaption .exstyle-1-button:hover,
.ex-fdlist .exstyle-1 figcaption .exstyle-1-button:active,
.ex-fdlist[id^=ex] .exstyle-1 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:hover,
.ex-fdlist[id^=ex] .exstyle-1 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:active,
.ex-fdlist .exstyle-2 figcaption .exstyle-2-button:hover,
.ex-fdlist .exstyle-2 figcaption .exstyle-2-button:active,
.ex-fdlist .exstyle-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:hover,
.ex-fdlist .exstyle-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:active {
  background: var(--rp-pink) !important;
  box-shadow: 0 6px 20px rgba(237,141,139,0.48) !important;
  color: #fff !important;
}

/* ================================================================
   RTL SUPPORT
   ================================================================ */
[dir="rtl"] .ex-fdlist .exstyle-1 figcaption,
[dir="rtl"] .ex-fdlist .exstyle-2 figcaption,
[dir="rtl"] .ex-fdlist .exstyle-4 figcaption { text-align: right !important; }

[dir="rtl"] .fdstyle-list-1 > a.exfd_modal_click { float: right !important; }
[dir="rtl"] .fdstyle-list-1 .exf-img,
[dir="rtl"] .ctlist .exf-img {
  float: right !important;
  margin-right: 0 !important;
  margin-left: 16px !important;
}
[dir="rtl"] .fdstyle-list-1 .fdlist_1_des { padding: 0 0 0 44px !important; }
[dir="rtl"] .fdstyle-list-1 .fdlist_1_des button.exfd-choice { right: auto !important; left: 14px !important; transform: translateY(-50%) !important; }

[dir="rtl"] .ex-fdlist .exfd-filter.exwf-fticon-style .exfd-filter-group .ex-menu-list {
  direction: rtl !important;
}

/* ================================================================
   TABLE VIEW — Modern Repose Cafe Redesign
   Applies to both .exfd-table-1 and .exfd-table-2
   ================================================================ */

/* ── TABLE WRAPPER ─────────────────────────────────────────────── */
.exfd-table-1,
.exfd-table-2 {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* ── HEADER ROW ────────────────────────────────────────────────── */
.exfd-table-1 thead th,
.exfd-table-2 thead th {
  background: var(--rp-deep) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 14px 16px !important;
  border: none !important;
  white-space: nowrap !important;
}
.exfd-table-1 thead th:first-child {
  border-radius: 14px 0 0 0 !important;
}
.exfd-table-1 thead th:last-child {
  border-radius: 0 14px 0 0 !important;
}

/* ── PRODUCT ROW ───────────────────────────────────────────────── */
.exfd-table-1 tbody tr.rp-table-row,
.exfd-table-2 tbody tr.rp-table-row {
  background: var(--rp-card) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease !important;
}
.exfd-table-1 tbody tr.rp-table-row:hover,
.exfd-table-2 tbody tr.rp-table-row:hover {
  background: #f0faf8 !important;
  box-shadow: inset 0 0 0 2px rgba(2,154,135,0.15) !important;
}

/* Alternate row tint */
.exfd-table-1 tbody tr.rp-table-row:nth-child(4n+1),
.exfd-table-1 tbody tr.rp-table-row:nth-child(4n+2) {
  background: var(--rp-cream) !important;
}
.exfd-table-1 tbody tr.rp-table-row:nth-child(4n+1):hover,
.exfd-table-1 tbody tr.rp-table-row:nth-child(4n+2):hover {
  background: #edf6f5 !important;
}

/* ── ALL TD ────────────────────────────────────────────────────── */
.exfd-table-1 tbody td,
.exfd-table-2 tbody td {
  border: none !important;
  border-bottom: 1px solid rgba(7,59,58,0.06) !important;
  padding: 14px 16px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  color: #3d3d3d !important;
}

/* ── IMAGE CELL ────────────────────────────────────────────────── */
.exfd-table-1 .rp-td-image,
.exfd-table-2 .rp-td-image {
  width: 88px !important;
  padding: 10px !important;
}
.exfd-table-1 .rp-img-link,
.exfd-table-2 .rp-img-link {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: var(--rp-cream) !important;
  flex-shrink: 0 !important;
}
.exfd-table-1 .rp-img-link img,
.exfd-table-2 .rp-img-link img {
  width: 68px !important;
  height: 68px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 10px !important;
  transition: transform 0.35s var(--rp-ease) !important;
}
.rp-table-row:hover .rp-img-link img {
  transform: scale(1.08) !important;
}

/* ── TITLE ─────────────────────────────────────────────────────── */
.exfd-table-1 .rp-item-title,
.exfd-table-2 .rp-item-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--rp-deep) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}
.exfd-table-1 .rp-item-title a,
.exfd-table-2 .rp-item-title a {
  color: var(--rp-deep) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  transition: color 0.18s ease !important;
}
.exfd-table-1 .rp-item-title a:hover,
.exfd-table-2 .rp-item-title a:hover {
  color: var(--rp-teal) !important;
}

/* ── EXCERPT ───────────────────────────────────────────────────── */
.exfd-table-1 .rp-excerpt,
.exfd-table-2 .rp-excerpt,
.exfd-table-1 .rp-excerpt-wrap p,
.exfd-table-2 .rp-excerpt-wrap p {
  font-size: 12px !important;
  color: #7a7a7a !important;
  line-height: 1.5 !important;
  margin: 4px 0 0 !important;
}

/* ── MOBILE PRICE (collapsed columns) ─────────────────────────── */
.exfd-table-1 .rp-mobile-price,
.exfd-table-2 .rp-mobile-price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--rp-teal) !important;
  margin: 4px 0 0 !important;
}

/* ── PRICE COLUMN ──────────────────────────────────────────────── */
.exfd-table-1 .rp-td-price,
.exfd-table-2 .rp-td-price {
  white-space: nowrap !important;
}
.exfd-table-1 .rp-price-val,
.exfd-table-2 .rp-price-val {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--rp-teal) !important;
  font-family: inherit !important;
}

/* ── CATEGORY BADGES ───────────────────────────────────────────── */
.rp-cat-badge {
  display: inline-block !important;
  background: rgba(2,154,135,0.08) !important;
  color: var(--rp-teal) !important;
  border: 1px solid rgba(2,154,135,0.2) !important;
  border-radius: 20px !important;
  padding: 2px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin: 2px 3px 2px 0 !important;
  white-space: nowrap !important;
}
.rp-tablet-cat .rp-cat-badge { font-size: 10px !important; }

/* ── ORDER CELL ────────────────────────────────────────────────── */
.exfd-table-1 .rp-td-order,
.exfd-table-2 .rp-td-order {
  text-align: center !important;
  width: 60px !important;
  padding: 10px !important;
}

/* + button */
.exfd-table-1 .rp-order-btn,
.exfd-table-2 .rp-order-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: var(--rp-teal) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(2,154,135,0.35) !important;
  cursor: pointer !important;
  transition: all 0.22s var(--rp-ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.exfd-table-1 .rp-order-btn:hover,
.exfd-table-2 .rp-order-btn:hover {
  background: var(--rp-pink) !important;
  box-shadow: 0 6px 18px rgba(237,141,139,0.45) !important;
  transform: scale(1.1) !important;
}
.exfd-table-1 .rp-order-btn .exfd-icon-plus:before,
.exfd-table-1 .rp-order-btn .exfd-icon-plus:after,
.exfd-table-2 .rp-order-btn .exfd-icon-plus:before,
.exfd-table-2 .rp-order-btn .exfd-icon-plus:after {
  background-color: #fff !important;
}

/* Sold out */
.rp-soldout {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--rp-coral) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* ── ALLERGEN ROW ──────────────────────────────────────────────── */
.exfd-table-1 tbody tr.rp-allergen-row,
.exfd-table-2 tbody tr.rp-allergen-row {
  background: rgba(248,245,240,0.7) !important;
}
.exfd-table-1 tbody tr.rp-allergen-row:hover,
.exfd-table-2 tbody tr.rp-allergen-row:hover {
  background: rgba(248,245,240,0.9) !important;
  box-shadow: none !important;
}

.rp-allergen-cell {
  padding: 6px 16px 10px 88px !important; /* left-pad aligns with title, not image */
  border-top: none !important;
  border-bottom: 1px solid rgba(7,59,58,0.08) !important;
}

/* The allergen strip inside the cell */
.rp-allergen-cell .rp-allergens {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.rp-allergen-cell .rp-allergens-title {
  display: none !important; /* hidden in table row — icon tooltip explains */
}
.rp-allergen-cell .rp-allergens-icons {
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
.rp-allergen-cell .rp-allergen img {
  width: 24px !important;
  height: 24px !important;
}
.rp-allergen-cell .rp-allergen-label {
  display: none !important;
}

/* ── TABLE-2 SPECIFIC: card-like rows ──────────────────────────── */
.exfd-table-2 {
  border-spacing: 0 8px !important;
  border-collapse: separate !important;
}
.exfd-table-2 tbody tr.rp-table-row {
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(7,59,58,0.06) !important;
}
.exfd-table-2 tbody tr.rp-table-row td:first-child {
  border-radius: 12px 0 0 0 !important;
}
.exfd-table-2 tbody tr.rp-table-row td:last-child {
  border-radius: 0 12px 0 0 !important;
}
.exfd-table-2 tbody tr.rp-allergen-row-2 td {
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 4px 10px rgba(7,59,58,0.06) !important;
}
.exfd-table-2 .rp-allergen-cell {
  padding-left: 88px !important;
}

/* ── WooCommerce form inside table ─────────────────────────────── */
.exfd-table-2 .exwoofood-woocommerce.woocommerce form.cart {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.exfd-table-2 .exwoofood-woocommerce.woocommerce form.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
}
.exfd-table-2 .exwoofood-woocommerce.woocommerce form.cart .quantity input[type=number] {
  width: 46px !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(7,59,58,0.15) !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 0 16px 0 4px !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield !important;
}
.exfd-table-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"] {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  display: inline-block !important;
  background: var(--rp-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(2,154,135,0.3) !important;
  transition: all 0.22s var(--rp-ease) !important;
}
.exfd-table-2 .exwoofood-woocommerce.woocommerce form.cart button[type="submit"]:hover {
  background: var(--rp-pink) !important;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media screen and (max-width: 992px) {
  /* Tablet: show category inside name cell */
  .exfd-table-1 .exfd-show-tablet { display: block !important; }
  .exfd-table-1 .exfd-hide-tablet { display: none !important; }
  .rp-tablet-cat { margin-top: 6px !important; }
}

@media screen and (max-width: 768px) {
  /* Mobile: collapse to image + name + button */
  .exfd-table-1 .exfd-hide-mb    { display: block !important; }
  .exfd-table-1 .exfd-hide-screen { display: none !important; }

  /* Allergen cell: align with title (no image offset) */
  .rp-allergen-cell,
  .exfd-table-2 .rp-allergen-cell {
    padding-left: 16px !important;
  }

  /* Image smaller on mobile */
  .exfd-table-1 .rp-td-image,
  .exfd-table-2 .rp-td-image { width: 70px !important; padding: 8px !important; }
  .exfd-table-1 .rp-img-link,
  .exfd-table-2 .rp-img-link { width: 54px !important; height: 54px !important; }
  .exfd-table-1 .rp-img-link img,
  .exfd-table-2 .rp-img-link img { width: 54px !important; height: 54px !important; }

  /* Allergen icons smaller */
  .rp-allergen-cell .rp-allergen img { width: 18px !important; height: 18px !important; }
  .rp-allergen-cell .rp-allergens-icons { gap: 4px !important; }

  /* Table-1 column widths on mobile */
  .exfd-table-1 thead th:nth-child(1),
  .exfd-table-1 tbody td:nth-child(1) { width: 70px !important; }
  .exfd-table-1 th.ex-fd-name,
  .exfd-table-1 td.ex-fd-name { width: auto !important; }
}

@media screen and (max-width: 450px) {
  .exfd-table-1 thead th:nth-child(1),
  .exfd-table-1 tbody td:nth-child(1) { width: 60px !important; }
  .exfd-table-1 .rp-item-title { font-size: 13px !important; }
  .rp-allergen-cell .rp-allergen img { width: 16px !important; height: 16px !important; }
}

/* ── RTL ────────────────────────────────────────────────────────── */
[dir="rtl"] .rp-allergen-cell {
  padding-left: 16px !important;
  padding-right: 88px !important;
}
[dir="rtl"] .exfd-table-2 .rp-allergen-cell {
  padding-left: 16px !important;
  padding-right: 88px !important;
}
[dir="rtl"] .rp-allergen-cell .rp-allergens-icons {
  justify-content: flex-end !important;
}
