/* Madbax EZ Shop — Material Design 3 catalog + product detail */

.mbx-ez-shop {
  /* Brand → M3 color roles */
  --md-sys-color-primary: #00e599;
  --md-sys-color-on-primary: #0a0a0a;
  --md-sys-color-primary-container: #b8ffe0;
  --md-sys-color-on-primary-container: #003824;
  --md-sys-color-secondary: #3d4a44;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d5e6dc;
  --md-sys-color-on-secondary-container: #1a2621;
  --md-sys-color-tertiary: #3f4f5c;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #d4e4f2;
  --md-sys-color-on-tertiary-container: #1a2832;
  --md-sys-color-surface: #f2f2f2;
  --md-sys-color-on-surface: #17191a;
  --md-sys-color-on-surface-variant: #52525b;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #ececec;
  --md-sys-color-surface-container: #e6e6e6;
  --md-sys-color-surface-container-high: #e0e0e0;
  --md-sys-color-surface-container-highest: #dadada;
  --md-sys-color-outline: #74747a;
  --md-sys-color-outline-variant: #c6c6cb;
  --md-sys-color-inverse-surface: #2c2c2e;
  --md-sys-color-inverse-on-surface: #f2f2f2;

  /* Shape scale (M3) */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;

  /* Type — same as site / Awwwards Academy */
  --md-sys-typescale-brand: "Inter Tight", system-ui, sans-serif;
  --md-sys-typescale-plain: Inter, system-ui, sans-serif;

  /* Spacing (8dp grid) */
  --md-sys-spacing-1: 8px;
  --md-sys-spacing-2: 16px;
  --md-sys-spacing-3: 24px;
  --md-sys-spacing-4: 32px;
  --md-sys-spacing-5: 40px;
  --md-sys-spacing-6: 48px;

  box-sizing: border-box;
  color: var(--md-sys-color-on-surface);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(0, 229, 153, 0.14), transparent 55%),
    radial-gradient(80% 50% at 100% 0%, rgba(212, 228, 242, 0.45), transparent 45%),
    var(--md-sys-color-surface);
  padding: var(--md-sys-spacing-4) var(--md-sys-spacing-2) var(--md-sys-spacing-6);
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--md-sys-typescale-plain);
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.mbx-ez-shop *,
.mbx-ez-shop *::before,
.mbx-ez-shop *::after {
  box-sizing: border-box;
}

/* —— Intro: centered catalog title + result count —— */
.mbx-ez-shop__intro {
  display: grid;
  gap: 10px;
  margin: 0 auto var(--md-sys-spacing-3);
  max-width: 40rem;
  text-align: center;
  justify-items: center;
}

.mbx-ez-shop__title {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--md-sys-color-on-surface);
}

.mbx-ez-shop__meta {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--md-sys-color-on-surface-variant);
}

/* —— M3 search bar — https://m3.material.io/components/search —— */
.mbx-ez-shop__toolbar {
  margin: 0 auto var(--md-sys-spacing-2);
  max-width: 35rem;
  width: 100%;
}

.mbx-ez-shop__search {
  /* md.comp.search-bar */
  --md-search-bar-container-height: 56px;
  --md-search-bar-container-shape: var(--md-sys-shape-corner-extra-large); /* 28px */
  --md-search-bar-container-color: var(--md-sys-color-surface-container-highest);
  --md-search-bar-supporting-text-color: var(--md-sys-color-on-surface-variant);
  --md-search-bar-input-text-color: var(--md-sys-color-on-surface);
  --md-search-bar-leading-icon-color: var(--md-sys-color-on-surface);

  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--md-search-bar-container-height);
  min-height: var(--md-search-bar-container-height);
  padding: 0 16px 0 16px;
  gap: 16px;
  border-radius: var(--md-search-bar-container-shape);
  background: var(--md-search-bar-container-color);
  color: var(--md-search-bar-input-text-color);
  box-shadow: none;
  border: 0;
  cursor: text;
}

.mbx-ez-shop__search-icon {
  position: static;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  transform: none;
  background-color: var(--md-search-bar-leading-icon-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

.mbx-ez-shop__search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--md-search-bar-input-text-color);
  font-family: var(--md-sys-typescale-plain);
  font-size: 1rem; /* body-large */
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.03125em;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.mbx-ez-shop__search-input::placeholder {
  color: var(--md-search-bar-supporting-text-color);
  opacity: 1;
}

.mbx-ez-shop__search-input::-webkit-search-decoration,
.mbx-ez-shop__search-input::-webkit-search-cancel-button,
.mbx-ez-shop__search-input::-webkit-search-results-button,
.mbx-ez-shop__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.mbx-ez-shop__search:focus-within {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* —— M3 Filter chips (flat) — https://m3.material.io/components/chips —— */
.mbx-ez-shop__filters-wrap {
  margin: 0 auto var(--md-sys-spacing-5);
  max-width: 56rem;
}

.mbx-ez-shop__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px; /* M3 chip-set spacing */
  padding: 0;
}

@media (max-width: 760px) {
  .mbx-ez-shop__filters-wrap {
    max-width: none;
    margin-left: -12px;
    margin-right: -12px;
  }

  .mbx-ez-shop__filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 12px 8px;
    gap: 8px;
  }

  .mbx-ez-shop__filters::-webkit-scrollbar {
    display: none;
  }

  .mbx-ez-shop__chip {
    flex: 0 0 auto;
  }
}

.mbx-ez-shop__chip {
  /* md.comp.filter-chip */
  --md-filter-chip-container-height: 32px;
  --md-filter-chip-container-shape: var(--md-sys-shape-corner-small); /* 8px */
  --md-filter-chip-outline-color: var(--md-sys-color-outline);
  --md-filter-chip-outline-width: 1px;
  --md-filter-chip-label-text-color: var(--md-sys-color-on-surface-variant);
  --md-filter-chip-selected-container-color: var(--md-sys-color-secondary-container);
  --md-filter-chip-selected-label-text-color: var(--md-sys-color-on-secondary-container);
  --md-filter-chip-hover-state-layer-opacity: 0.08;
  --md-filter-chip-pressed-state-layer-opacity: 0.12;

  appearance: none;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--md-filter-chip-container-height);
  min-height: var(--md-filter-chip-container-height);
  padding: 0 16px; /* leading/trailing space */
  border-radius: var(--md-filter-chip-container-shape);
  border: var(--md-filter-chip-outline-width) solid var(--md-filter-chip-outline-color);
  background: transparent; /* flat unselected */
  color: var(--md-filter-chip-label-text-color);
  font-family: var(--md-sys-typescale-plain);
  font-size: 0.875rem; /* label-large */
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.00625em;
  cursor: pointer;
  transition:
    background-color 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1),
    padding 160ms cubic-bezier(0.2, 0, 0, 1);
}

.mbx-ez-shop__chip-check {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 18 3.85 12.3l1.4-1.4 4.3 4.3 9.2-9.2 1.4 1.4Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 18 3.85 12.3l1.4-1.4 4.3 4.3 9.2-9.2 1.4 1.4Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.mbx-ez-shop__chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  border-radius: inherit;
}

.mbx-ez-shop__chip:hover::before {
  opacity: var(--md-filter-chip-hover-state-layer-opacity);
}

.mbx-ez-shop__chip:focus-visible {
  outline: 2px solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

.mbx-ez-shop__chip:active::before {
  opacity: var(--md-filter-chip-pressed-state-layer-opacity);
}

.mbx-ez-shop__chip.is-active {
  background: var(--md-filter-chip-selected-container-color);
  border-color: transparent;
  border-width: 0;
  color: var(--md-filter-chip-selected-label-text-color);
  padding-left: 8px; /* with-leading-icon leading space */
  padding-right: 16px;
}

.mbx-ez-shop__chip.is-active .mbx-ez-shop__chip-check {
  display: block;
  color: var(--md-filter-chip-selected-label-text-color);
}

/* —— Product cards: fixed 4-column catalog pages —— */
.mbx-ez-shop__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mbx-ez-shop__card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  isolation: isolate;
  cursor: pointer;
}

.mbx-ez-shop__card:nth-child(-n+8) {
  animation: none;
}

.mbx-ez-shop__card:nth-child(1) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(2) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(3) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(4) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(5) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(6) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(7) { animation-delay: 0ms; }
.mbx-ez-shop__card:nth-child(8) { animation-delay: 0ms; }

@keyframes mbx-ez-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mbx-ez-shop__card::after {
  content: none;
}

/* Never transform cards that contain <video> — causes decode/composite jank */
.mbx-ez-shop__card:hover {
  transform: none;
}

.mbx-ez-shop__card:focus-within {
  outline: none;
}

.mbx-ez-shop__card:focus-within .mbx-ez-shop__media {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-ez-shop__media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--md-sys-color-inverse-surface);
  overflow: hidden;
  z-index: 0;
  border-radius: var(--md-sys-shape-corner-medium);
  border: 1px solid var(--md-sys-color-outline-variant);
  /* Do not use contain:paint — it can blank <video> layers in Chromium */
  transform: none;
}

.mbx-ez-shop__poster,
.mbx-ez-shop__iframe,
.mbx-ez-shop__video,
.mbx-ez-shop__html-player {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.mbx-ez-shop__html-player {
  display: block;
  background: #111;
  /* Isolated HTML document — do not promote with transforms */
  transform: none;
  backface-visibility: visible;
}

.mbx-ez-shop__poster {
  z-index: 1;
  background: var(--md-sys-color-inverse-surface);
  transform: none;
  backface-visibility: hidden;
}

.mbx-ez-shop__iframe,
.mbx-ez-shop__video,
.mbx-ez-shop__video.is-live,
.mbx-ez-shop__poster.is-live,
.mbx-ez-shop__html-player {
  z-index: 2 !important;
}

.mbx-ez-shop__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 153, 0.08), transparent 42%),
    var(--md-sys-color-inverse-surface);
}

.mbx-ez-shop__media.is-playing > .mbx-ez-shop__placeholder {
  opacity: 0;
  visibility: hidden;
}

.mbx-ez-shop__placeholder.is-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 92%, transparent);
  -webkit-mask: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.mbx-ez-shop__placeholder.is-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translate(-40%, -50%);
  background-color: var(--md-sys-color-on-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

/* Category label — primary filled, corner-full */
.mbx-ez-shop__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbx-ez-shop__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 2px 0;
  flex: 1;
  background: transparent;
}

.mbx-ez-shop__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
}

.mbx-ez-shop__duration {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mbx-ez-shop__age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 500;
}

.mbx-ez-shop__age-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
  flex: 0 0 6px;
}

.mbx-ez-shop__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}

.mbx-ez-shop__name {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--md-sys-color-on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* Filled button — primary / on-primary (pill like shop CTAs) */
.mbx-ez-shop__btn {
  margin-top: 4px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-family: var(--md-sys-typescale-plain);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

.mbx-ez-shop__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--md-sys-color-on-primary);
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.mbx-ez-shop__btn:hover {
  color: var(--md-sys-color-on-primary);
}

.mbx-ez-shop__btn:hover::before {
  opacity: 0.08;
}

.mbx-ez-shop__btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-ez-shop__btn:active {
  transform: scale(0.98);
}

.mbx-ez-shop__btn:active::before {
  opacity: 0.12;
}

.mbx-ez-shop__btn > span {
  position: relative;
  z-index: 1;
}

.mbx-ez-shop__btn.is-disabled {
  background: var(--md-sys-color-surface-container-high);
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
  pointer-events: none;
}

.mbx-ez-shop__empty {
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  margin: var(--md-sys-spacing-4) 0 0;
  font-size: 0.95rem;
}

.mbx-ez-shop__card[hidden] {
  display: none !important;
  animation: none;
}

/* —— M3 pagination —— */
.mbx-ez-shop__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: var(--md-sys-spacing-3);
  flex-wrap: wrap;
}

.mbx-ez-shop__pager[hidden] {
  display: none !important;
}

.mbx-ez-shop__page-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.mbx-ez-shop__page-btn,
.mbx-ez-shop__page-num {
  appearance: none;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-plain);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mbx-ez-shop__page-btn::before,
.mbx-ez-shop__page-num::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
}

.mbx-ez-shop__page-btn:hover::before,
.mbx-ez-shop__page-num:hover::before {
  opacity: 0.08;
}

.mbx-ez-shop__page-btn:focus-visible,
.mbx-ez-shop__page-num:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-ez-shop__page-num.is-active {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.mbx-ez-shop__page-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.mbx-ez-shop__page-btn > span {
  width: 20px;
  height: 20px;
  background-color: currentColor;
}

.mbx-ez-shop__page-btn[data-mbx-ez-page="prev"] > span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.mbx-ez-shop__page-btn[data-mbx-ez-page="next"] > span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 6-1.41 1.41L13.17 12l-4.58 4.59L10 18l6-6Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 6-1.41 1.41L13.17 12l-4.58 4.59L10 18l6-6Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.mbx-ez-shop__page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mbx-ez-shop__card:nth-child(-n+8) {
    animation: none;
  }
  .mbx-ez-shop__btn:active {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .mbx-ez-shop__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mbx-ez-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mbx-ez-shop {
    padding: var(--md-sys-spacing-3) 12px var(--md-sys-spacing-5);
  }
  .mbx-ez-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .mbx-ez-shop__name {
    font-size: 0.875rem;
  }
  .mbx-ez-shop__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

@media (max-width: 480px) {
  .mbx-ez-shop__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .mbx-ez-shop__media {
    aspect-ratio: 9 / 16;
  }
  .mbx-ez-shop__name {
    font-size: 1rem;
  }
}

/* Bopea theme overrides (buttons / body p) */
.mbx-ez-shop h1.mbx-ez-shop__title {
  margin: 0 !important;
  text-align: center !important;
  font-family: var(--md-sys-typescale-brand) !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: var(--md-sys-color-on-surface) !important;
}

.mbx-ez-shop p.mbx-ez-shop__meta {
  margin: 0 !important;
  text-align: center !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--md-sys-color-on-surface-variant) !important;
}

.mbx-ez-shop button.mbx-ez-shop__chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 16px !important;
  background: transparent !important;
  color: var(--md-sys-color-on-surface-variant) !important;
  border: 1px solid var(--md-sys-color-outline) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.25rem !important;
  pointer-events: auto !important;
}

.mbx-ez-shop button.mbx-ez-shop__chip.is-active {
  background: var(--md-sys-color-secondary-container) !important;
  color: var(--md-sys-color-on-secondary-container) !important;
  border-color: transparent !important;
  border-width: 0 !important;
  padding-left: 8px !important;
  padding-right: 16px !important;
}

.mbx-ez-shop a.mbx-ez-shop__btn,
.mbx-ez-shop .mbx-ez-shop__btn {
  background: var(--md-sys-color-primary) !important;
  color: var(--md-sys-color-on-primary) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.mbx-ez-shop button.mbx-ez-shop__page-btn,
.mbx-ez-shop button.mbx-ez-shop__page-num {
  background: transparent !important;
  box-shadow: none !important;
  text-transform: none !important;
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  color: var(--md-sys-color-on-surface) !important;
  border: 0 !important;
  padding: 0 8px !important;
}

.mbx-ez-shop button.mbx-ez-shop__page-num.is-active {
  background: var(--md-sys-color-secondary-container) !important;
  color: var(--md-sys-color-on-secondary-container) !important;
}

/* Theme/Bopea overrides — keep M3 search bar as one container */
.mbx-ez-shop label.mbx-ez-shop__search {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--md-sys-color-surface-container-highest) !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.mbx-ez-shop .mbx-ez-shop__search-icon {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

.mbx-ez-shop input.mbx-ez-shop__search-input,
.mbx-ez-shop input.mbx-ez-shop__search-input[type="search"] {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--md-sys-color-on-surface) !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}


.mbx-ez-shop button.mbx-ez-sheet__close,
.mbx-ez-sheet button.mbx-ez-sheet__close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--md-sys-color-surface-container-high) !important;
  box-shadow: none !important;
  color: var(--md-sys-color-on-surface-variant) !important;
  text-transform: none !important;
}

/* —— Product detail dialog (M3) —— */
.mbx-ez-sheet {
  position: fixed;
  inset: 0;
  z-index: 200100;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.mbx-ez-sheet:not([hidden]) {
  pointer-events: auto;
}

.mbx-ez-sheet[hidden] {
  display: none !important;
}

.mbx-ez-sheet__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 32%, transparent);
  border: 0;
  cursor: pointer;
  animation: mbx-ez-scrim-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
}

.mbx-ez-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.12);
  animation: mbx-ez-sheet-in 220ms cubic-bezier(0.2, 0, 0, 1) both;
}

.mbx-ez-sheet__close {
  --md-icon-button-state-layer: var(--md-sys-color-on-surface);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  appearance: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.mbx-ez-sheet__close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--md-icon-button-state-layer);
  opacity: 0;
  pointer-events: none;
}

.mbx-ez-sheet__close:hover::before { opacity: 0.08; }
.mbx-ez-sheet__close:active::before { opacity: 0.12; }

.mbx-ez-sheet__close > span {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.mbx-ez-sheet__close:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-ez-sheet__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
  padding-right: 28px;
}

.mbx-ez-sheet__media-col { position: relative; }

.mbx-ez-sheet__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
  background: var(--md-sys-color-inverse-surface);
}

.mbx-ez-sheet__poster,
.mbx-ez-sheet__video,
.mbx-ez-sheet__iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  object-fit: contain;
  background: #000;
}

.mbx-ez-sheet__mute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-sys-color-inverse-surface) 78%, transparent) !important;
  color: var(--md-sys-color-inverse-on-surface) !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none !important;
}

.mbx-ez-sheet__mute-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12ZM3 9v6h4l5 5V4L7 9H3Zm13.5 9.5v-2.09c2.01-.49 3.5-2.29 3.5-4.41s-1.49-3.92-3.5-4.41V5.5c3.15.6 5.5 3.37 5.5 6.5s-2.35 5.9-5.5 6.5Z'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12ZM3 9v6h4l5 5V4L7 9H3Zm13.5 9.5v-2.09c2.01-.49 3.5-2.29 3.5-4.41s-1.49-3.92-3.5-4.41V5.5c3.15.6 5.5 3.37 5.5 6.5s-2.35 5.9-5.5 6.5Z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.mbx-ez-sheet__mute.is-muted .mbx-ez-sheet__mute-icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12c0-1.23-.5-2.34-1.31-3.15l1.42-1.42A6.47 6.47 0 0 1 18.5 12c0 1.5-.51 2.88-1.36 4l-1.43-1.42c.5-.72.79-1.61.79-2.58ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73 4.27 3ZM12 4 9.91 6.09 12 8.18V4Z'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12c0-1.23-.5-2.34-1.31-3.15l1.42-1.42A6.47 6.47 0 0 1 18.5 12c0 1.5-.51 2.88-1.36 4l-1.43-1.42c.5-.72.79-1.61.79-2.58ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73 4.27 3ZM12 4 9.91 6.09 12 8.18V4Z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.mbx-ez-sheet__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mbx-ez-sheet__crumb {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  font-weight: 500;
}

.mbx-ez-sheet__title {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--md-sys-color-on-surface);
  padding-right: 12px;
}

.mbx-ez-sheet__meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.mbx-ez-sheet__meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  margin: 0;
}

.mbx-ez-sheet__meta-row dt {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  font-weight: 500;
}

.mbx-ez-sheet__meta-row dd {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-size: 0.875rem;
  font-weight: 600;
}

.mbx-ez-sheet__meta-row[data-mbx-ez-sheet-cat-wrap] dd {
  color: var(--md-sys-color-primary);
}

.mbx-ez-sheet__btn {
  margin-top: 4px;
  width: 100%;
  max-width: 280px;
}

.mbx-ez-sheet__trust {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.mbx-ez-sheet__desc {
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mbx-ez-sheet__desc.is-open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.mbx-ez-sheet__more {
  appearance: none;
  align-self: start;
  border: 0;
  border-radius: var(--md-sys-shape-corner-small);
  padding: 10px 14px;
  background: var(--md-sys-color-primary) !important;
  color: var(--md-sys-color-on-primary) !important;
  font: 700 0.8125rem/1 var(--md-sys-typescale-plain);
  cursor: pointer;
  box-shadow: none !important;
  text-transform: none !important;
}

/* —— Related + notice —— */
.mbx-ez-related {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  align-items: start;
}

.mbx-ez-related__title,
.mbx-ez-related__notice-title {
  margin: 0 0 16px;
  font-family: var(--md-sys-typescale-brand);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--md-sys-color-on-surface);
}

.mbx-ez-related__title { text-align: center; }

.mbx-ez-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.mbx-ez-related__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.mbx-ez-related__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  background: var(--md-sys-color-inverse-surface);
}

.mbx-ez-related__media img,
.mbx-ez-related__media video,
.mbx-ez-related__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
  background: #111;
}

.mbx-ez-related__ph {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 153, 0.1), transparent 50%),
    var(--md-sys-color-inverse-surface);
}

.mbx-ez-related__name {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.mbx-ez-related__btn {
  pointer-events: none;
  margin-top: 0;
}

.mbx-ez-related__browse {
  display: flex;
  width: min(260px, 100%);
  margin: 0 auto;
}

.mbx-ez-related__notice {
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.mbx-ez-related__notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mbx-ez-related__notice-list li {
  position: relative;
  padding-left: 16px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mbx-ez-related__notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
}

.mbx-ez-related__notice-list a {
  color: var(--md-sys-color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.mbx-ez-sheet-open,
html.mbx-ez-sheet-open body {
  overflow: hidden;
}

@keyframes mbx-ez-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mbx-ez-sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .mbx-ez-sheet__layout,
  .mbx-ez-related {
    grid-template-columns: 1fr;
  }
  .mbx-ez-sheet__layout { padding-right: 0; }
  .mbx-ez-sheet__btn { max-width: none; }
}

@media (max-width: 760px) {
  .mbx-ez-shop__toolbar { max-width: none; }
  .mbx-ez-sheet {
    padding: 0;
    align-items: end;
  }
  .mbx-ez-sheet__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;
    padding: 20px 16px 28px;
  }
  .mbx-ez-sheet__media { aspect-ratio: 16 / 9; }
  .mbx-ez-related__grid { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mbx-ez-sheet__panel,
  .mbx-ez-sheet__scrim {
    animation: none;
  }
}

.mbx-ez-shop h2.mbx-ez-sheet__title,
.mbx-ez-shop h3.mbx-ez-related__title,
.mbx-ez-shop h3.mbx-ez-related__notice-title,
.mbx-ez-shop h4.mbx-ez-related__name,
.mbx-ez-shop h2.mbx-ez-shop__name {
  color: var(--md-sys-color-on-surface) !important;
  font-family: var(--md-sys-typescale-brand) !important;
}

.mbx-ez-shop p.mbx-ez-sheet__crumb,
.mbx-ez-shop p.mbx-ez-sheet__trust {
  color: var(--md-sys-color-on-surface-variant) !important;
}

.mbx-ez-shop button.mbx-ez-sheet__more {
  background: var(--md-sys-color-primary) !important;
  color: var(--md-sys-color-on-primary) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-transform: none !important;
}
