.bowl-product {
  --bowl-space-1: 0.25rem;
  --bowl-space-2: 0.5rem;
  --bowl-space-3: 0.75rem;
  --bowl-space-4: 1rem;
  --bowl-space-5: 1.5rem;
  --bowl-space-6: 2rem;
  --bowl-surface: color-mix(
    in srgb,
    var(--theme-palette-color-8) 92%,
    var(--theme-palette-color-1)
  );
  --bowl-soft: color-mix(
    in srgb,
    var(--theme-palette-color-8) 78%,
    var(--theme-palette-color-1)
  );
  --bowl-accent: var(--theme-palette-color-1);
  --bowl-accent-contrast: var(--theme-palette-color-8);
  --bowl-border: color-mix(in srgb, var(--theme-text-color) 14%, transparent);
  max-width: 1400px;
  margin-inline: auto;
  padding: var(--bowl-space-4) var(--bowl-space-4) 5rem;
  color: var(--theme-text-color);
}

:where(html[dir="rtl"], body.rtl) .bowl-product {
  direction: rtl;
}
.bowl-product__crumbs {
  margin-bottom: var(--bowl-space-4);
  font-size: 0.875rem;
}
.bowl-product__crumbs .ct-breadcrumbs {
  margin: 0;
}
.bowl-product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.bowl-product__hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: var(--bowl-space-5);
}
.bowl-product__gallery {
  position: sticky;
  top: calc(var(--bowl-space-6) + var(--wp-admin--admin-bar--height, 0px));
  align-self: start;
}
.bowl-product__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.86;
  border-radius: var(--theme-border-radius, 16px);
  background: var(--bowl-soft);
}
.bowl-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bowl-product__favorite {
  position: absolute;
  top: var(--bowl-space-3);
  inset-inline-end: var(--bowl-space-3);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--theme-palette-color-8);
  color: var(--bowl-accent);
  font-size: 1.5rem;
  cursor: pointer;
}
.bowl-product__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bowl-space-2);
  margin-top: var(--bowl-space-2);
}
.bowl-product__thumb {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--theme-border-radius, 12px);
  background: var(--bowl-soft);
  cursor: pointer;
}
.bowl-product__thumb.is-active {
  border-color: var(--bowl-accent);
}
.bowl-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bowl-product__intro h1 {
  margin: 0 0 var(--bowl-space-2);
  color: var(--bowl-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.bowl-product__rating {
  display: flex;
  align-items: center;
  gap: var(--bowl-space-3);
  margin-bottom: var(--bowl-space-3);
}
.bowl-product__rating .star-rating {
  margin: 0;
  color: var(--theme-palette-color-2);
}
.bowl-product__badge {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bowl-soft);
  color: var(--bowl-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.bowl-product__description {
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.bowl-product__price {
  margin: var(--bowl-space-3) 0;
  color: var(--bowl-accent);
  font-size: 1.75rem;
  font-weight: 800;
}
.bowl-product__price del {
  font-size: 1rem;
}
.bowl-product__price .woocommerce-Price-currencySymbol {
  font-size: 0.58em;
  font-weight: 700;
}
.bowl-product__customize-header {
  margin: var(--bowl-space-6) 0 var(--bowl-space-3);
}
.bowl-product__customize-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bowl-space-4);
}
.bowl-product__customize-header h2 {
  margin: 0;
  color: var(--bowl-accent);
  font-size: 1.5rem;
}
.bowl-product__customize-header p {
  margin: 0;
  font-size: 0.875rem;
}
.bowl-product__customize-heading .bowl-product__price {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.5rem;
}
.bowl-product__options {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--bowl-space-2);
}
.bowl-option {
  padding: var(--bowl-space-3);
  border: 1px solid var(--bowl-border);
  border-radius: var(--theme-border-radius, 12px);
  background: color-mix(in srgb, var(--bowl-soft) 45%, transparent);
}
.bowl-option__header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  list-style: none;
  cursor: default;
}
.bowl-option__header::-webkit-details-marker {
  display: none;
}
.bowl-option__title {
  margin: 0;
  font-size: 0.875rem;
}
.bowl-option__hint {
  opacity: 0.7;
  font-size: 0.7rem;
  font-weight: 400;
}
.bowl-option__hint--required {
  color: var(--theme-palette-color-2);
}
.bowl-option__header::after {
  display: none;
  margin-inline-start: auto;
  color: var(--bowl-accent);
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}
.bowl-option[open] > .bowl-option__header::after {
  content: "−";
}
.bowl-option__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}
.bowl-option-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.bowl-option-row input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--bowl-accent);
}
.bowl-option-row > span:not(.bowl-option-row__price) {
  min-width: 0;
}
.bowl-option-row__price {
  font-size: 0.75rem;
  margin-inline-start: auto;
  white-space: nowrap;
}
.bowl-summary {
  position: sticky;
  top: calc(var(--bowl-space-6) + var(--wp-admin--admin-bar--height, 0px));
  overflow: hidden;
  border: 1px solid var(--bowl-border);
  border-radius: var(--theme-border-radius, 16px);
  background: var(--theme-palette-color-8);
  box-shadow: 0 1rem 3rem
    color-mix(in srgb, var(--theme-text-color) 10%, transparent);
}
.bowl-summary h2 {
  margin: 0;
  padding: var(--bowl-space-4);
  background: var(--bowl-soft);
  color: var(--bowl-accent);
  font-size: 1.25rem;
}
.bowl-summary__product,
.bowl-summary__totals > div {
  display: flex;
  justify-content: space-between;
  gap: var(--bowl-space-3);
  padding: var(--bowl-space-4) var(--bowl-space-4);
  border-bottom: 1px solid var(--bowl-border);
  font-size: 0.8125rem;
}
.bowl-summary__selections {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: var(--bowl-space-4);
  font-size: 0.75rem;
}
.bowl-summary__group {
  display: grid;
  gap: 0.35rem;
}
.bowl-summary__group-title {
  color: var(--theme-text-color);
  font-weight: 700;
}
.bowl-summary__selection {
  display: flex;
  justify-content: space-between;
  gap: var(--bowl-space-3);
  padding-inline-start: var(--bowl-space-3);
}
.bowl-summary__selection-price {
  white-space: nowrap;
}
.bowl-summary__totals {
  border-top: 1px solid var(--bowl-border);
}
.bowl-summary__total {
  color: var(--bowl-accent);
  font-size: 1.125rem !important;
  font-weight: 800;
}
.bowl-summary__quantity {
  align-items: center;
}
.bowl-summary .quantity {
  display: flex;
  margin: 0;
}
.bowl-summary .quantity[data-type="type-2"] {
  width: var(--quantity-width, 120px);
  max-width: 100%;
  flex: 0 1 var(--quantity-width, 120px);
}
.bowl-summary .quantity[data-type="type-2"] input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem;
  text-align: center;
}
.bowl-summary form.cart {
  display: block;
  margin: 0;
}
.bowl-summary form.cart .quantity {
  display: none;
}
.bowl-summary form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 2.75rem;
  background: var(--bowl-accent);
  color: var(--bowl-accent-contrast);
}
.bowl-summary .added_to_cart {
  display: none !important;
}
.meal-cart-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--bowl-space-5);
  white-space: nowrap;
}
.meal-detail-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bowl-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
}
.bowl-meal-dialog {
  --bowl-space-1: 0.25rem;
  --bowl-space-2: 0.5rem;
  --bowl-space-3: 0.75rem;
  --bowl-space-4: 1rem;
  --bowl-space-5: 1.5rem;
  --bowl-space-6: 2rem;
  --bowl-soft: color-mix(
    in srgb,
    var(--theme-palette-color-8) 78%,
    var(--theme-palette-color-1)
  );
  --bowl-accent: var(--theme-palette-color-1);
  --bowl-accent-contrast: var(--theme-palette-color-8);
  --bowl-border: color-mix(in srgb, var(--theme-text-color) 14%, transparent);
  width: min(420px, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.bowl-meal-dialog::backdrop {
  background: color-mix(in srgb, var(--theme-text-color) 55%, transparent);
}
.bowl-meal-dialog .bowl-summary {
  position: relative;
  top: auto;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.bowl-meal-dialog__close {
  position: absolute;
  top: var(--bowl-space-3);
  inset-inline-end: var(--bowl-space-3);
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--theme-palette-color-8);
  color: var(--bowl-accent);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.bowl-mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  .bowl-product {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
  .bowl-product__layout {
    grid-template-columns: 1fr;
  }
  .bowl-summary {
    position: static;
  }
  .bowl-mobile-bar {
    position: fixed;
    inset-inline-end: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--bowl-space-4);
    padding: var(--bowl-space-3)
      max(var(--bowl-space-4), env(safe-area-inset-right))
      calc(var(--bowl-space-3) + env(safe-area-inset-bottom))
      max(var(--bowl-space-4), env(safe-area-inset-left));
    border-top: 1px solid var(--bowl-border);
    background: var(--theme-palette-color-8);
    box-shadow: 0 -0.75rem 2rem
      color-mix(in srgb, var(--theme-text-color) 10%, transparent);
  }
  .bowl-mobile-bar__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bowl-space-2);
    color: var(--bowl-accent);
    font-size: 1rem;
    font-weight: 800;
  }
  .bowl-mobile-bar__checkout {
    width: 100%;
    min-height: 2.75rem;
    border: 0;
    border-radius: var(--theme-border-radius, 8px);
    background: var(--bowl-accent);
    color: var(--bowl-accent-contrast);
    cursor: pointer;
  }
}
@media (max-width: 640px) {
  .bowl-product {
    padding-inline: var(--bowl-space-3);
  }
  .bowl-product__gallery {
    position: static;
  }
  .bowl-product__hero,
  .bowl-product__options {
    grid-template-columns: 1fr;
  }
  .bowl-product__intro {
    padding-top: var(--bowl-space-3);
  }
  .bowl-option__list {
    grid-template-columns: 1fr;
  }
  .bowl-option__header {
    cursor: pointer;
  }
  .bowl-option__header::after {
    display: block;
  }
}
