/* Front page */
.ml-front-page {
  background: var(--ml-color-surface);
  color: var(--ml-color-ink);
}

.ml-front-page__container {
  width: 100%;
  max-width: var(--ml-page-max-width);
  margin-inline: auto;
  padding:
    clamp(1.7rem, 3vw, 3rem)
    var(--ml-page-padding)
    clamp(2.4rem, 4vw, 4.5rem);
}

.ml-front-page__content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ml-front-page .ml-section__title {
  position: relative;
  align-self: flex-start;
  margin-bottom: clamp(0.55rem, 1vw, 0.85rem);
  color: var(--ml-color-ink);
  font-size: clamp(1.85rem, 1.45rem + 1.5vw, 3.15rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: left;
}

.ml-front-page .ml-section__title::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  margin: 0.75rem auto 0 0;
  border-radius: var(--ml-radius-pill);
  background: var(--ml-color-primary);
}

@media (max-width: 991.98px) {
  .ml-front-page .ml-section__title {
    align-self: center;
    text-align: center;
  }

  .ml-front-page .ml-section__title::after {
    margin-right: auto;
    margin-left: auto;
  }
}

.ml-front-page .ml-section__intro {
  margin-bottom: clamp(0.55rem, 1.25vw, 1rem);
}

.ml-front-page .ml-section__header {
  width: 100%;
}

.ml-front-page .ml-product-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: auto;
  margin: calc(clamp(0.9rem, 1.55vw, 1.4rem) / -2);
  padding: 0;
}

.ml-front-page .ml-product-list > .ml-product-card {
  flex: 0 0 16.666667%;
  width: 16.666667%;
  max-width: 16.666667%;
  padding: calc(clamp(0.9rem, 1.55vw, 1.4rem) / 2);
}

/* Product grid */
.ml-product-list,
.woocommerce .ml-product-list,
.woocommerce-page .ml-product-list,
.woocommerce ul.products.ml-product-list,
.woocommerce-page ul.products.ml-product-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: auto;
  margin: calc(clamp(0.9rem, 1.55vw, 1.4rem) / -2);
  padding: 0;
  list-style: none;
}

ul.products.row {
    padding: 0;
}

.ml-product-card,
.woocommerce .ml-product-list > .product.ml-product-card,
.woocommerce-page .ml-product-list > .product.ml-product-card {
  float: none;
  display: flex;
  flex: 0 0 16.666667%;
  width: 16.666667%;
  max-width: 16.666667%;
  min-width: 0;
  margin: 0;
  padding: calc(clamp(0.9rem, 1.55vw, 1.4rem) / 2);
  background: transparent;
  list-style: none;
}

.ml-product-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ml-color-border);
  border-radius: var(--ml-radius-md);
  background: var(--ml-color-surface);
  box-shadow: var(--ml-shadow-sm);
  transition:
    border-color var(--ml-transition-base),
    box-shadow var(--ml-transition-base),
    transform var(--ml-transition-base);
}

.ml-product-card:hover .ml-product-card__inner,
.ml-product-card:focus-within .ml-product-card__inner {
  border-color: rgba(52, 89, 149, 0.35);
  box-shadow: var(--ml-shadow-md);
  transform: translateY(-2px);
}

.ml-product-card__media,
.ml-product-card .product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(0.5rem, 1vw, 0.85rem);
  overflow: hidden;
  background: var(--ml-color-surface-soft);
  text-decoration: none;
}

.ml-product-card__media img,
.ml-product-card .product-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.ml-product-card:hover .ml-product-card__media img,
.ml-product-card:focus-within .ml-product-card__media img {
  transform: scale(1.035);
}

.ml-product-card__body,
.ml-product-card .product-details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: clamp(12.25rem, 15vw, 15.5rem);
  padding: clamp(0.85rem, 1.2vw, 1.15rem);
  background: var(--ml-color-surface);
  color: var(--ml-color-ink);
}

.ml-product-card__body a {
  text-decoration: none;
}

.ml-product-card__artist-link,
.ml-product-card__artist,
.ml-product-card .artist {
  font-size: 1.2rem;
}

.ml-product-card__artist,
.ml-product-card .artist {
  margin: 0 0 0.35rem;
  color: var(--ml-color-muted);
  font-weight: var(--ml-font-weight-black);
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ml-product-card__artist-link:hover .ml-product-card__artist,
.ml-product-card__artist-link:focus-visible .ml-product-card__artist {
  color: var(--ml-color-blue);
}

.ml-product-card__title,
.ml-product-card .title {
  display: -webkit-box;
  min-height: calc(1.2rem * 2.3);
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: var(--ml-color-ink);
  font-size: 1.2rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ml-product-card__title-link:hover .ml-product-card__title,
.ml-product-card__title-link:focus-visible .ml-product-card__title {
  color: var(--ml-color-primary);
}

.ml-product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0 0 0.45rem;
}

.ml-product-card__format,
.ml-product-card__year,
.ml-product-card__country,
.ml-product-card__extras,
.ml-product-card__condition-summary,
.ml-product-card .format,
.ml-product-card .product-year,
.ml-product-card .product-extras,
.ml-product-card .product-condition-summary {
  margin: 0 0 0.28rem;
  color: var(--ml-color-muted);
  font-size: 1.15rem;
  font-weight: var(--ml-font-weight-medium);
  line-height: 1.25;
}

.ml-product-card__year,
.ml-product-card__country,
.ml-product-card .product-year {
  color: var(--ml-color-ink);
}

.ml-product-card__format,
.ml-product-card .format {
  text-transform: uppercase;
}

.ml-product-card__condition-summary,
.ml-product-card .product-condition-summary {
  margin-bottom: 0;
  color: var(--ml-color-ink);
  font-weight: var(--ml-font-weight-black);
  letter-spacing: 0.03em;
}

.ml-product-card__price,
.ml-product-card .price,
.woocommerce ul.products li.product.ml-product-card .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0.2rem 0 0;
  color: var(--ml-color-ink);
  font-size: clamp(1.45rem, 1.15rem + 0.8vw, 2.25rem);
  font-weight: var(--ml-font-weight-medium);
  line-height: 1;
  white-space: nowrap;
}

.ml-product-card__price del,
.ml-product-card .price del {
  display: block;
  font-size: 0.78em;
}

.ml-product-card__price ins,
.ml-product-card .price ins {
  display: block;
  text-decoration: none;
}

.ml-product-card__actions,
.ml-product-card .add-to-cart-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.45rem, 0.8vw, 0.7rem);
  width: 100%;
  margin-top: auto;
  padding-top: clamp(0.7rem, 1vw, 0.9rem);
}

.ml-product-card__actions .button,
.ml-product-card .add-to-cart-wrapper .button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: clamp(1.85rem, 2vw, 2.1rem);
  padding: clamp(0.42rem, 0.58vw, 0.52rem) clamp(0.4rem, 0.75vw, 0.62rem);
  overflow: hidden;
  font-size: clamp(0.58rem, 0.54rem + 0.12vw, 0.7rem);
  line-height: 1.05;
  text-overflow: ellipsis;
}

/* Shop controls */
.ml-shop-products,
#ml-shop-products {
  width: 100%;
}

.mls-results-controls {
  box-sizing: border-box;
  width: 100%;
}

.ml-shop-controls,
#ml-shop-products .ml-shop-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  margin: 0 0 1.5rem;
}

body.tax-artist .woocommerce-result-count {
  box-sizing: border-box;
  clear: both;
  float: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(52, 89, 149, 0.24);
  border-left: 5px solid var(--ml-color-blue);
  border-radius: 0 var(--ml-radius-sm) var(--ml-radius-sm) 0;
  background: #f1f5fb;
  color: var(--ml-color-ink);
  box-shadow: var(--ml-shadow-sm);
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem);
  font-weight: var(--ml-font-weight-bold);
  line-height: 1.4;
}

body.tax-artist .woocommerce-ordering {
  clear: both;
  float: none;
  width: 100%;
  margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
}

body.tax-artist .woocommerce-ordering select {
  display: block;
  width: 100%;
}

body.tax-artist .ml-view-toggle {
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(52, 89, 149, 0.22);
  border-radius: calc(var(--ml-radius-sm) + 0.2rem);
  background: rgba(52, 89, 149, 0.06);
  box-shadow: var(--ml-shadow-sm);
}

body.tax-artist .ml-view-toggle-btn {
  border-color: var(--ml-color-blue);
}

.ml-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ml-filter-group__title {
  color: var(--ml-color-ink);
  font-size: 0.9rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1;
  text-transform: uppercase;
}

.ml-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ml-filter-list__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ml-filter-list__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--ml-color-border);
  border-radius: var(--ml-radius-pill);
  background: var(--ml-color-white);
  color: var(--ml-color-ink);
  font-size: var(--ml-button-font-size);
  font-weight: var(--ml-font-weight-black);
  line-height: 1;
  text-decoration: none;
}

.ml-filter-list__item.is-active a,
.ml-filter-list__item a:hover,
.ml-filter-list__item a:focus-visible {
  border-color: var(--ml-color-primary);
  background: var(--ml-color-primary);
  color: var(--ml-color-white);
}

/* Archive grid */
#ml-shop-products .ml-product-list--grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  width: auto;
  margin: calc(clamp(0.9rem, 1.55vw, 1.4rem) / -2);
  padding: 0;
}

#ml-shop-products .ml-product-list--grid > .product.ml-product-card {
  float: none;
  clear: none;
  display: flex;
  flex: 0 0 16.666667%;
  width: 16.666667%;
  max-width: 16.666667%;
  min-width: 0;
  margin: 0;
  padding: calc(clamp(0.9rem, 1.55vw, 1.4rem) / 2);
}

#ml-shop-products .ml-product-list--grid > .product.ml-product-card:nth-child(n) {
  display: flex;
}

/* List view */
.ml-product-list--list,
.woocommerce ul.products:has(.ml-list-product),
.woocommerce-page ul.products:has(.ml-list-product) {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: clamp(1.2rem, 3vw, 2.5rem) auto;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products > li.product.ml-list-product,
.woocommerce-page ul.products > li.product.ml-list-product {
  float: none;
  clear: none;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.ml-list-product__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
  width: 100%;
  padding: clamp(1rem, 2.5vw, 1.35rem) 0;
  border-bottom: 1px solid var(--ml-color-border);
  background: var(--ml-color-white);
}

.ml-list-product:first-child .ml-list-product__inner {
  border-top: 1px solid var(--ml-color-border);
}

.ml-list-product__media {
  display: flex;
  flex: 0 0 clamp(86px, 9vw, 132px);
  align-items: center;
  justify-content: center;
  width: clamp(86px, 9vw, 132px);
  aspect-ratio: 1;
  padding: clamp(0.35rem, 1vw, 0.55rem);
  overflow: hidden;
  border: 1px solid var(--ml-color-border);
  border-radius: var(--ml-radius-sm);
  background: #f8f8f8;
  text-decoration: none;
}

.ml-list-product__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ml-list-product__summary {
  flex: 1 1 min(38%, 460px);
  min-width: 0;
}

.ml-list-product__artist,
.ml-list-product__title,
.ml-list-product__year,
.ml-list-product__country,
.ml-list-product__format,
.ml-list-product__extras,
.ml-list-product__condition-summary,
.ml-list-product__price {
  margin: 0;
}

.ml-list-product__artist-link,
.ml-list-product__title-link {
  color: inherit;
  text-decoration: none;
}

.ml-list-product__artist {
  margin-bottom: 0.25rem;
  color: var(--ml-color-muted);
  font-size: 1.05rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ml-list-product__title {
  max-width: 100%;
  color: var(--ml-color-ink);
  font-size: 1.2rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.ml-list-product__format {
  margin-top: 0.45rem;
  color: var(--ml-color-muted);
  font-size: 1rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1.2;
  text-transform: uppercase;
}

.ml-list-product__meta {
  display: flex;
  flex: 0 0 clamp(160px, 18vw, 260px);
  flex-direction: column;
  gap: 0.25rem;
  color: var(--ml-color-muted);
  font-size: 1rem;
  font-weight: var(--ml-font-weight-black);
  line-height: 1.25;
}

.ml-list-product__condition-summary {
  color: var(--ml-color-ink);
  font-weight: var(--ml-font-weight-black);
  letter-spacing: 0.03em;
}

.ml-list-product__purchase {
  display: flex;
  flex: 0 0 clamp(150px, 14vw, 220px);
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
}

.ml-list-product__price,
.ml-list-product .price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  color: var(--ml-color-ink);
  font-size: clamp(1.45rem, 1.15rem + 0.8vw, 2.25rem);
  font-weight: var(--ml-font-weight-medium);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.ml-list-product__actions {
  display: flex;
  flex: 0 0 clamp(120px, 10vw, 150px);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  min-width: 120px;
}

.ml-list-product__actions .button {
  width: 100%;
  min-height: clamp(2.45rem, 2.2rem + 0.35vw, 2.75rem);
  padding: 0.7rem 1rem;
}

/* Single product */
body.single-product .ml-single-product-container {
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 140px);
}

body.single-product .ml-single-product {
  width: 100%;
  margin: clamp(32px, 4.8vw, 72px) auto clamp(64px, 8vw, 120px);
  color: var(--ml-color-ink);
}

body.single-product .ml-single-product__layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 74px);
  width: 100%;
}

body.single-product .ml-single-product__media-col {
  position: sticky;
  top: clamp(120px, 10vw, 160px);
  flex: 0 0 clamp(340px, 35vw, 560px);
  align-self: flex-start;
  max-width: 560px;
}

body.single-product .single-product-media,
body.single-product .ml-single-product__media {
  width: 100%;
  margin: 0;
}

body.single-product .single-product-media img,
body.single-product .ml-single-product__media img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 590px);
  object-fit: contain;
}

body.single-product .ml-single-product__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
}

body.single-product .product-header.ml-single-product__hero,
body.single-product .ml-single-product__purchase--bottom {
  border-radius: var(--ml-radius-lg);
}

body.single-product .product-header.ml-single-product__hero {
  padding: clamp(20px, 2.7vw, 34px);
  background: var(--ml-color-surface-strong);
}

body.single-product .artist-title.ml-single-product__artist {
  margin: 0 0 4px;
  color: var(--ml-color-ink);
  font-size: clamp(34px, 4vw, 55px);
  font-weight: var(--ml-font-weight-black);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

body.single-product .artist-title.ml-single-product__artist a {
  color: inherit;
  text-decoration: none;
}

body.single-product .single-title.ml-single-product__title {
  margin: 0;
  color: var(--ml-color-ink);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: var(--ml-font-weight-black);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

body.single-product .product-format.ml-single-product__format,
body.single-product .product-extras.ml-single-product__extras,
body.single-product .product-condition.ml-single-product__conditions p,
body.single-product .product-details--meta p,
body.single-product .trackist.ml-single-product__description {
  font-size: clamp(13px, 1vw, 1.1rem);
  line-height: 1.45;
}

body.single-product .product-format.ml-single-product__format {
  margin: 8px 0 0;
  font-weight: var(--ml-font-weight-black);
}

body.single-product .ml-single-product__purchase {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 1rem;
  background: var(--ml-color-surface-strong);
}

body.single-product .product-price.ml-single-product__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(132px, 12vw, 178px);
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  border-radius: var(--ml-radius-md);
  background: var(--ml-color-white);
  color: var(--ml-color-ink);
  font-size: clamp(20px, 1.45vw, 26px);
  font-weight: var(--ml-font-weight-black);
  line-height: 1;
  white-space: nowrap;
}

body.single-product .add-to-cart-button.ml-single-product__cart,
body.single-product .ml-single-product__cart-form {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
}

body.single-product .ml-single-product__cart-button.button,
body.single-product .ml-single-product__cart-button.button.alt {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--ml-radius-md);
  background: var(--ml-color-primary);
  color: var(--ml-color-white);
  box-shadow: 0 8px 20px rgba(210, 25, 31, 0.22);
  font-size: var(--ml-button-font-size);
}

body.single-product .ml-single-product__cart-button--disabled.button,
body.single-product .ml-single-product__cart-button--disabled.button.alt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  line-height: 1;
}

body.single-product .ml-single-product__cart-button.button:hover,
body.single-product .ml-single-product__cart-button.button.alt:hover {
  background: var(--ml-color-primary-dark);
}

body.single-product .ml-single-product__box {
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid var(--ml-color-border);
  border-radius: var(--ml-radius-md);
  background: var(--ml-color-white);
}

body.single-product .product-condition.ml-single-product__conditions p,
body.single-product .product-details--meta p,
body.single-product .trackist.ml-single-product__description p {
  margin: 0 0 4px;
}

body.single-product .product-condition.ml-single-product__conditions strong,
body.single-product .product-details--meta strong {
  font-weight: var(--ml-font-weight-medium);
}

body.single-product .trackist.ml-single-product__description h2,
body.single-product .trackist.ml-single-product__description h3,
body.single-product .trackist.ml-single-product__description h4 {
  margin: 1.35em 0 0.35em;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .ml-product-card,
  .woocommerce .ml-product-list > .product.ml-product-card,
  .woocommerce-page .ml-product-list > .product.ml-product-card,
  #ml-shop-products .ml-product-list--grid > .product.ml-product-card {
    flex-basis: 25%;
    width: 25%;
    max-width: 25%;
  }

  .ml-front-page .ml-product-list--six > .ml-product-card:nth-child(n + 5) {
    display: none;
  }

}

@media (max-width: 991.98px) {
  .ml-product-card,
  .woocommerce .ml-product-list > .product.ml-product-card,
  .woocommerce-page .ml-product-list > .product.ml-product-card,
  #ml-shop-products .ml-product-list--grid > .product.ml-product-card {
    flex-basis: 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }

  .ml-list-product__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ml-list-product__media {
    flex-basis: clamp(84px, 16vw, 120px);
    width: clamp(84px, 16vw, 120px);
  }

  .ml-list-product__summary {
    flex: 1 1 calc(100% - 150px);
  }

  .ml-list-product__meta,
  .ml-list-product__purchase {
    flex: 1 1 220px;
    padding-left: calc(clamp(84px, 16vw, 120px) + clamp(0.9rem, 2.2vw, 2rem));
  }

  .ml-list-product__purchase {
    justify-content: flex-start;
    margin-left: 0;
  }

  .ml-list-product__price {
    align-items: flex-start;
    text-align: left;
  }

  .ml-list-product__actions {
    flex: 1 1 220px;
    max-width: 340px;
  }

  .ml-front-page .ml-product-list--six > .ml-product-card:nth-child(n + 5) {
    display: flex;
  }
}

@media (max-width: 860px) {
  body.single-product .ml-single-product__layout {
    flex-direction: column;
    margin-top: 28px;
  }

  body.single-product .ml-single-product__media-col {
    position: static;
    flex-basis: auto;
    width: min(100%, 520px);
    max-width: 520px;
    margin-inline: auto;
  }

  body.single-product .ml-single-product__content {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .ml-list-product__inner {
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .ml-list-product__media {
    flex: 0 0 88px;
    width: 88px;
  }

  .ml-list-product__summary {
    flex: 1 1 calc(100% - 104px);
  }

  .ml-list-product__meta,
  .ml-list-product__purchase {
    flex: 0 0 100%;
    padding-left: 104px;
  }

  .ml-list-product__actions {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 104px;
  }
}

@media (max-width: 767.98px) {
  .ml-product-list,
  .woocommerce .ml-product-list,
  .woocommerce-page .ml-product-list,
  #ml-shop-products .ml-product-list--grid {
    margin-inline: 0;
  }

  .ml-product-card,
  .woocommerce .ml-product-list > .product.ml-product-card,
  .woocommerce-page .ml-product-list > .product.ml-product-card,
  #ml-shop-products .ml-product-list--grid > .product.ml-product-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .ml-product-card__body {
    min-height: auto;
  }

  .ml-product-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ml-product-card__actions .button {
    width: 100%;
  }

  body.single-product .ml-single-product-container {
    padding-inline: 16px;
  }

  body.single-product .ml-single-product__purchase {
    flex-direction: column;
    gap: 10px;
  }

  body.single-product .product-price.ml-single-product__price,
  body.single-product .add-to-cart-button.ml-single-product__cart,
  body.single-product .ml-single-product__cart-form {
    width: 100%;
  }

  .ml-front-page .ml-section__header,
  .ml-front-page .ml-product-list {
    width: 100%;
    max-width: 20.5rem;
    margin-right: auto;
    margin-left: auto;
  }

  .ml-front-page .ml-product-list {
    row-gap: 1.25rem;
  }
}

@media (max-width: 479.98px) {
  .ml-list-product__media {
    flex: 0 0 76px;
    width: 76px;
  }

  .ml-list-product__summary {
    flex: 1 1 calc(100% - 92px);
  }

  .ml-list-product__meta,
  .ml-list-product__purchase,
  .ml-list-product__actions {
    padding-left: 0;
  }

  .ml-list-product__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Phone product cards: shared layout for shop, search and artist archives. */
@media (max-width: 767.98px) {
  #ml-shop-products .ml-product-list,
  #ml-shop-products .ml-product-list--grid,
  #ml-shop-products .ml-product-list--list,
  #ml-shop-products ul.products,
  body.search .woocommerce .ml-product-list,
  body.tax-artist .ml-product-list,
  body.tax-artist .woocommerce ul.products {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: 100%;
    margin: 1.25rem 0;
    padding: 0;
  }

  .ml-product-card,
  .woocommerce .ml-product-list > .product.ml-product-card,
  .woocommerce-page .ml-product-list > .product.ml-product-card,
  #ml-shop-products .ml-product-list--grid > .product.ml-product-card,
  .woocommerce ul.products > li.product.ml-list-product,
  .woocommerce-page ul.products > li.product.ml-list-product {
    flex: 0 0 auto;
    width: 100%;
    max-width: 20.5rem;
    margin: 0 auto;
    padding: 0;
  }

  .ml-product-card__inner,
  .ml-list-product__inner {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ml-color-border);
    border-radius: var(--ml-radius-md);
    background: var(--ml-color-white);
    box-shadow: var(--ml-shadow-sm);
  }

  .ml-product-card__media,
  .ml-product-card .product-media,
  .ml-list-product__media {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--ml-color-border);
    border-radius: 0;
    background: var(--ml-color-surface-soft);
  }

  .ml-product-card__media img,
  .ml-product-card .product-media img,
  .ml-list-product__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
  }

  .ml-product-card__body,
  .ml-product-card .product-details {
    min-height: 0;
    padding: 1rem;
  }

  .ml-product-card__artist,
  .ml-product-card .artist,
  .ml-list-product__artist {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .ml-product-card__title,
  .ml-product-card .title,
  .ml-list-product__title {
    min-height: 0;
    font-size: 1.12rem;
    line-height: 1.15;
    -webkit-line-clamp: unset;
  }

  .ml-product-card__format,
  .ml-product-card__year,
  .ml-product-card__country,
  .ml-product-card__extras,
  .ml-product-card__condition-summary,
  .ml-product-card .format,
  .ml-product-card .product-year,
  .ml-product-card .product-extras,
  .ml-product-card .product-condition-summary {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ml-product-card__price,
  .ml-product-card .price,
  .woocommerce ul.products li.product.ml-product-card .price,
  .ml-list-product__price,
  .ml-list-product .price {
    align-items: flex-start;
    font-size: 1.35rem;
    line-height: 1.1;
    text-align: left;
  }

  .ml-product-card__actions,
  .ml-product-card .add-to-cart-wrapper,
  .ml-list-product__actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: 0;
  }

  .ml-product-card__actions .button,
  .ml-product-card .add-to-cart-wrapper .button,
  .ml-list-product__actions .button {
    flex: 1 1 0;
    width: calc(50% - 0.275rem);
    min-width: 0;
    min-height: 2.65rem;
    padding: 0.72rem 0.9rem;
    line-height: 1.1;
  }

  .ml-product-card__actions .button,
  .ml-product-card .add-to-cart-wrapper .button {
    font-size: 0.72rem;
  }

  .ml-list-product__actions .button {
    font-size: var(--ml-button-font-size);
  }

  .ml-list-product__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .ml-list-product:first-child .ml-list-product__inner {
    border-top: 1px solid var(--ml-color-border);
  }

  .ml-list-product__summary,
  .ml-list-product__meta,
  .ml-list-product__conditions,
  .ml-list-product__purchase {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ml-list-product__summary {
    padding-top: 1rem;
    padding-bottom: 0.55rem;
  }

  .ml-list-product__origin {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    margin-top: 0.4rem;
  }

  .ml-list-product__year,
  .ml-list-product__country {
    margin: 0;
    color: var(--ml-color-muted);
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .ml-list-product__meta {
    gap: 0.2rem;
    padding-top: 0.2rem;
    padding-bottom: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ml-list-product__format {
    margin-top: 0;
    font-size: 0.95rem;
  }

  .ml-list-product__conditions {
    padding-top: 0.15rem;
    padding-bottom: 0.8rem;
    color: var(--ml-color-ink);
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ml-list-product__condition-title {
    margin: 0 0 0.3rem;
    font-weight: var(--ml-font-weight-black);
  }

  .ml-list-product__condition {
    margin: 0 0 0.15rem;
  }

  .ml-list-product__condition-label {
    font-weight: var(--ml-font-weight-bold);
  }

  .ml-list-product__purchase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.8rem;
    padding-top: 0.15rem;
    padding-bottom: 1rem;
  }

  /* Shared mobile listing rhythm */
  #ml-shop-products .ml-product-list,
  #ml-shop-products .ml-product-list--grid,
  #ml-shop-products .ml-product-list--list,
  #ml-shop-products ul.products,
  body.search .woocommerce .ml-product-list,
  body.search .woocommerce ul.products,
  body.tax-artist .woocommerce ul.products,
  body.post-type-archive-product .woocommerce ul.products,
  body.page-template-page-shop .woocommerce ul.products,
  body.page-template-page-friss-beerkezes .woocommerce ul.products {
    gap: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }

  .ml-shop-controls,
  #ml-shop-products .ml-shop-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    max-width: 20.5rem;
    margin: 0 auto 1.25rem;
  }

  .ml-filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
  }

  .ml-filter-list {
    gap: 0.45rem;
    width: 100%;
  }

  body.search #primary .mls-hint,
  body.search #primary .mls-badges,
  body.woocommerce .woocommerce-result-count {
    float: none;
    width: 100%;
    max-width: 20.5rem;
    margin-right: auto;
    margin-left: auto;
  }

  body.search #primary .mls-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(52, 89, 149, 0.24);
    border-left: 0.28rem solid var(--ml-color-blue);
    border-radius: 0 var(--ml-radius-sm) var(--ml-radius-sm) 0;
    background: rgba(52, 89, 149, 0.08);
    color: var(--ml-color-ink);
    box-shadow: var(--ml-shadow-sm);
    font-size: 1rem;
    font-weight: var(--ml-font-weight-black);
    line-height: 1.25;
  }

  body.search #primary .mls-hint.mls-hint--empty {
    border-color: #edc0c4;
    border-left-color: var(--ml-color-primary);
    background: #fff1f2;
    color: #8d1c28;
  }

  body.search #primary .mls-hint strong {
    margin-left: 0.28rem;
    color: var(--ml-color-blue);
    font-weight: var(--ml-font-weight-black);
  }

  body.search #primary .mls-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  body.search #primary .mls-badges > div {
    width: 100%;
  }

  body.search #primary .mls-badges > div > strong {
    flex: 0 0 100%;
  }

  body.search #primary .mls-results-controls {
    width: 100%;
    max-width: 20.5rem;
    margin-right: auto;
    margin-left: auto;
  }

  body.search #primary .mls-results-controls > .mls-hint,
  body.search #primary .mls-results-controls > .mls-badges,
  body.search #primary .mls-results-controls > .ml-view-toggle {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  body.search #primary .mls-results-controls .mls-badges,
  body.search #primary .mls-results-controls .mls-badges > div {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    transform: none;
  }

  body.search #primary .mls-results-controls .mls-badge,
  body.search #primary .mls-results-controls .mls-clear {
    margin-left: 0;
  }

  .ml-view-toggle,
  body.tax-artist .ml-view-toggle,
  body.search #primary .ml-view-toggle {
    box-sizing: border-box;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 20.5rem;
    margin: 0 auto 1.25rem;
  }

  .ml-shop-controls > .ml-view-toggle {
    align-self: stretch;
    width: 100%;
    margin: 0;
  }

  .ml-view-toggle-btn,
  body.tax-artist .ml-view-toggle-btn {
    flex: 0 0 3rem;
    width: 3rem;
    min-width: 3rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
  }

  body.tax-artist .woocommerce-result-count {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  body.tax-artist .woocommerce-ordering {
    max-width: 20.5rem;
    margin-right: auto;
    margin-bottom: 1.25rem;
    margin-left: auto;
  }
}

/* Responsive list view */
@media (max-width: 1199.98px) {
  .ml-product-list--list,
  .woocommerce ul.products:has(> li.ml-list-product),
  .woocommerce-page ul.products:has(> li.ml-list-product) {
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .woocommerce ul.products > li.product.ml-list-product,
  .woocommerce-page ul.products > li.product.ml-list-product {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .ml-list-product__inner {
    display: grid;
    grid-template-columns:
      clamp(76px, 8vw, 108px)
      minmax(150px, 1.5fr)
      minmax(80px, 0.6fr)
      minmax(120px, 0.8fr)
      minmax(198px, auto);
    grid-template-areas: "media summary meta conditions purchase";
    align-items: center;
    gap: clamp(0.65rem, 1.5vw, 1.25rem);
    width: 100%;
    padding: 0.9rem 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--ml-color-border);
    border-radius: 0;
    background: var(--ml-color-white);
    box-shadow: none;
  }

  .ml-list-product:first-child .ml-list-product__inner {
    border-top: 1px solid var(--ml-color-border);
  }

  .ml-list-product__media {
    grid-area: media;
    align-self: start;
    width: 100%;
    max-width: 108px;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0;
    padding: 0.35rem;
    border: 1px solid var(--ml-color-border);
    border-radius: var(--ml-radius-sm);
    background: var(--ml-color-surface-soft);
  }

  .ml-list-product__summary,
  .ml-list-product__meta,
  .ml-list-product__conditions,
  .ml-list-product__purchase {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .ml-list-product__summary {
    grid-area: summary;
  }

  .ml-list-product__meta {
    grid-area: meta;
    gap: 0.2rem;
    color: var(--ml-color-muted);
    font-size: clamp(0.78rem, 0.73rem + 0.12vw, 0.9rem);
    line-height: 1.3;
  }

  .ml-list-product__conditions {
    grid-area: conditions;
    color: var(--ml-color-ink);
    font-size: clamp(0.78rem, 0.73rem + 0.12vw, 0.9rem);
    line-height: 1.3;
  }

  .ml-list-product__condition-title {
    margin: 0 0 0.25rem;
    font-weight: var(--ml-font-weight-black);
  }

  .ml-list-product__condition {
    margin: 0 0 0.12rem;
  }

  .ml-list-product__condition-label {
    font-weight: var(--ml-font-weight-bold);
  }

  .ml-list-product__purchase {
    grid-area: purchase;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
  }

  .ml-list-product__price,
  .ml-list-product .price {
    flex: 0 0 auto;
    align-items: flex-end;
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.4rem);
    line-height: 1;
    text-align: right;
  }

  .ml-list-product__actions {
    flex: 0 0 clamp(106px, 11vw, 132px);
    flex-direction: column;
    gap: 0.45rem;
    width: auto;
    max-width: 132px;
    min-width: 106px;
    padding: 0;
  }

  .ml-list-product__actions .button {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.55rem 0.65rem;
    font-size: clamp(0.62rem, 0.58rem + 0.08vw, 0.7rem);
    line-height: 1;
  }

  .ml-list-product__artist {
    margin-bottom: 0.15rem;
    font-size: clamp(0.76rem, 0.72rem + 0.12vw, 0.9rem);
    line-height: 1.15;
  }

  .ml-list-product__title {
    font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.08rem);
    line-height: 1.12;
  }

  .ml-list-product__origin {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.55rem;
    margin-top: 0.25rem;
  }

  .ml-list-product__year,
  .ml-list-product__country {
    color: var(--ml-color-muted);
    font-size: clamp(0.75rem, 0.71rem + 0.1vw, 0.86rem);
    line-height: 1.25;
  }

  .ml-list-product__format {
    margin-top: 0;
    font-size: inherit;
    line-height: inherit;
  }
}

@media (max-width: 679.98px) {
  .ml-list-product__inner {
    grid-template-columns: 78px minmax(0, 1fr) minmax(142px, auto);
    grid-template-areas:
      "media summary purchase"
      "media meta purchase"
      "media conditions purchase";
    align-items: start;
    gap: 0.4rem 0.7rem;
    padding: 0.8rem 0;
  }

  .ml-list-product__media {
    width: 78px;
    max-width: 78px;
  }

  .ml-list-product__purchase {
    align-self: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .ml-list-product__price,
  .ml-list-product .price {
    align-items: flex-end;
    font-size: 1.1rem;
    text-align: right;
  }

  .ml-list-product__actions {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.4rem;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .ml-list-product__actions .button {
    flex: 1 1 0;
    width: calc(50% - 0.2rem);
    min-width: 0;
    min-height: 2.2rem;
    padding: 0.5rem 0.4rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 479.98px) {
  .ml-list-product__inner {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "media summary"
      "media meta"
      "conditions conditions"
      "purchase purchase";
    gap: 0.45rem 0.7rem;
    padding: 0.75rem 0;
  }

  .ml-list-product__media {
    width: 72px;
    max-width: 72px;
  }

  .ml-list-product__artist {
    font-size: 0.7rem;
  }

  .ml-list-product__title {
    font-size: 0.9rem;
  }

  .ml-list-product__year,
  .ml-list-product__country,
  .ml-list-product__meta,
  .ml-list-product__conditions {
    font-size: 0.75rem;
  }

  .ml-list-product__conditions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.25rem 0.65rem;
    margin-top: 0.15rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ml-color-border);
  }

  .ml-list-product__condition-title,
  .ml-list-product__condition {
    margin: 0;
  }

  .ml-list-product__purchase {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.25rem;
  }

  .ml-list-product__price,
  .ml-list-product .price {
    align-items: flex-start;
    font-size: 1.05rem;
    text-align: left;
  }

  .ml-list-product__actions {
    flex: 1 1 auto;
    max-width: 15rem;
  }

  .ml-list-product__actions .button {
    min-height: 2.15rem;
    padding: 0.48rem 0.35rem;
    font-size: 0.58rem;
  }
}