/*
 * YUWU commerce layer
 * Scoped to WooCommerce page body classes to avoid leaking into editorial pages.
 */

body.woocommerce,
body.woocommerce-page {
  background: var(--yw-canvas);
  color: var(--yw-text);
  font-family: var(--yw-font-ui);
}

body.woocommerce .site-content > .col-full,
body.woocommerce-page .site-content > .col-full {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--yw-commerce);
  padding: clamp(2.5rem, 3.25vw, 3rem) 0 clamp(5rem, 7vw, 6.5rem);
  width: calc(100% - (2 * var(--yw-gutter)));
}

body.woocommerce .content-area,
body.woocommerce-page .content-area,
body.woocommerce .site-main,
body.woocommerce-page .site-main {
  float: none;
  margin: 0;
  width: 100%;
}

body.woocommerce .widget-area,
body.woocommerce-page .widget-area {
  display: none;
}

body.woocommerce-page .yw-content-page {
  background: var(--yw-canvas);
  color: var(--yw-text);
}

body.woocommerce-page .yw-content-page__shell,
body.woocommerce-page .yw-content-page__article,
body.woocommerce-page .yw-content-page__body {
  margin: 0;
  max-width: none;
  width: 100%;
}

body.woocommerce-page .yw-content-page__heading {
  border-bottom: 1px solid var(--yw-border);
  margin: 0 0 clamp(2rem, 4vw, 3.75rem);
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

body.woocommerce-page .yw-content-page__kicker {
  color: var(--yw-accent-strong);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
}

body.woocommerce-page .yw-content-page__title {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

body.woocommerce-page .yw-content-page__article {
  padding: 0;
}

body.woocommerce a,
body.woocommerce-page a {
  color: inherit;
}

body.woocommerce a:focus-visible,
body.woocommerce-page a:focus-visible,
body.woocommerce button:focus-visible,
body.woocommerce-page button:focus-visible,
body.woocommerce input:focus-visible,
body.woocommerce-page input:focus-visible,
body.woocommerce select:focus-visible,
body.woocommerce-page select:focus-visible,
body.woocommerce textarea:focus-visible,
body.woocommerce-page textarea:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yw-accent) 24%, transparent) !important;
  outline: 1px solid var(--yw-accent-strong) !important;
  outline-offset: 2px;
}

body.woocommerce .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb {
  color: var(--yw-text-muted);
  font-family: var(--yw-font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  margin: 0 0 clamp(1.75rem, 3vw, 3rem);
}

body.woocommerce .woocommerce-products-header,
body.woocommerce-page .woocommerce-products-header {
  align-items: end;
  border-bottom: 1px solid var(--yw-border);
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  margin: 0 0 1.4rem;
  padding: 0 0 1.5rem;
}

body.woocommerce .woocommerce-products-header__title,
body.woocommerce-page .woocommerce-products-header__title,
body.woocommerce .entry-title,
body.woocommerce-page .entry-title,
body.woocommerce .product_title,
body.woocommerce-page .product_title,
body.woocommerce .cart_totals h2,
body.woocommerce-page .cart_totals h2,
body.woocommerce .woocommerce-billing-fields h3,
body.woocommerce-page .woocommerce-billing-fields h3,
body.woocommerce .woocommerce-additional-fields h3,
body.woocommerce-page .woocommerce-additional-fields h3,
body.woocommerce #order_review_heading,
body.woocommerce-page #order_review_heading,
body.woocommerce .woocommerce-account h2,
body.woocommerce-page .woocommerce-account h2 {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

body.woocommerce .woocommerce-products-header__title,
body.woocommerce-page .woocommerce-products-header__title,
body.woocommerce .entry-title,
body.woocommerce-page .entry-title {
  font-size: clamp(2.5rem, 3.4vw, 3.5rem);
  margin: 0;
  text-wrap: balance;
}

body.woocommerce .term-description,
body.woocommerce-page .term-description,
body.woocommerce .page-description,
body.woocommerce-page .page-description {
  color: var(--yw-text-muted);
  font-size: 0.9375rem;
  line-height: 1.9;
  margin-top: 1rem;
  max-width: 68ch;
}

/* Catalog introduction and controls */

body.woocommerce .yw-catalog-intro,
body.woocommerce-page .yw-catalog-intro {
  align-items: end;
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

body.woocommerce .yw-catalog-intro__kicker,
body.woocommerce-page .yw-catalog-intro__kicker {
  color: var(--yw-accent-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

body.woocommerce .yw-catalog-intro__lead,
body.woocommerce-page .yw-catalog-intro__lead {
  color: var(--yw-text-muted);
  font-size: 0.8125rem;
  line-height: 1.8;
  margin: 0;
  max-width: 34rem;
}

body.woocommerce .yw-catalog-intro__facts,
body.woocommerce-page .yw-catalog-intro__facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, auto);
  margin: 0;
}

body.woocommerce .yw-catalog-intro__facts > div,
body.woocommerce-page .yw-catalog-intro__facts > div {
  border-left: 1px solid var(--yw-border);
  min-width: 5.8rem;
  padding-left: 1rem;
}

body.woocommerce .yw-catalog-intro__facts dt,
body.woocommerce-page .yw-catalog-intro__facts dt {
  color: var(--yw-text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

body.woocommerce .yw-catalog-intro__facts dd,
body.woocommerce-page .yw-catalog-intro__facts dd {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0.25rem 0 0;
}

body.woocommerce .yw-catalog-tools,
body.woocommerce-page .yw-catalog-tools {
  align-items: center;
  border-bottom: 1px solid var(--yw-border);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 0 clamp(2.25rem, 3vw, 2.75rem);
  min-height: 4rem;
  padding: 0 0 0.75rem;
}

body.woocommerce .yw-catalog-tools__filters,
body.woocommerce-page .yw-catalog-tools__filters {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

body.woocommerce .yw-catalog-tools__filters a,
body.woocommerce-page .yw-catalog-tools__filters a {
  border: 1px solid transparent;
  color: var(--yw-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-height: 2.5rem;
  padding: 0.58rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

body.woocommerce .yw-catalog-tools__filters a:hover,
body.woocommerce-page .yw-catalog-tools__filters a:hover,
body.woocommerce .yw-catalog-tools__filters a:focus-visible,
body.woocommerce-page .yw-catalog-tools__filters a:focus-visible,
body.woocommerce .yw-catalog-tools__filters a[aria-current="page"],
body.woocommerce-page .yw-catalog-tools__filters a[aria-current="page"] {
  border-color: var(--yw-border);
  color: var(--yw-text);
}

body.woocommerce .yw-catalog-tools__controls,
body.woocommerce-page .yw-catalog-tools__controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

body.woocommerce .yw-catalog-tools__divider,
body.woocommerce-page .yw-catalog-tools__divider {
  background: var(--yw-border);
  height: 1.5rem;
  width: 1px;
}

body.woocommerce .yw-catalog-tools__sort-label,
body.woocommerce-page .yw-catalog-tools__sort-label {
  color: var(--yw-text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

body.woocommerce .storefront-sorting,
body.woocommerce-page .storefront-sorting {
  align-items: center;
  border-bottom: 1px solid var(--yw-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 0 clamp(2rem, 3vw, 3rem);
  padding: 0 0 1rem;
}

body.woocommerce .storefront-sorting::before,
body.woocommerce .storefront-sorting::after,
body.woocommerce-page .storefront-sorting::before,
body.woocommerce-page .storefront-sorting::after {
  display: none;
}

body.woocommerce .woocommerce-result-count,
body.woocommerce-page .woocommerce-result-count,
body.woocommerce .woocommerce-ordering,
body.woocommerce-page .woocommerce-ordering {
  color: var(--yw-text-muted);
  float: none;
  font-size: 0.8125rem;
  margin: 0;
}

body.woocommerce .woocommerce-ordering select,
body.woocommerce-page .woocommerce-ordering select {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--yw-border);
  border-radius: 0;
  color: var(--yw-text);
  font-family: var(--yw-font-ui);
  font-size: 0.75rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.75rem 0.55rem 0.2rem;
}

/* Product grids */

body.woocommerce ul.products,
body.woocommerce-page ul.products,
body.woocommerce .wc-block-grid__products,
body.woocommerce-page .wc-block-grid__products {
  display: grid !important;
  gap: clamp(2.5rem, 4vw, 3.25rem) clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
body.woocommerce-page ul.products::before,
body.woocommerce-page ul.products::after {
  display: none;
}

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body.woocommerce .wc-block-grid__product,
body.woocommerce-page .wc-block-grid__product {
  background: transparent;
  border: 0;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  text-align: left;
  width: auto !important;
}

body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce .wc-block-grid__product-link,
body.woocommerce-page .wc-block-grid__product-link {
  display: block;
  text-decoration: none;
}

body.woocommerce ul.products li.product img,
body.woocommerce-page ul.products li.product img,
body.woocommerce .wc-block-grid__product-image img,
body.woocommerce-page .wc-block-grid__product-image img {
  aspect-ratio: 4 / 5;
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: auto;
  margin: 0 0 0.9rem;
  object-fit: cover;
  transition: filter var(--yw-duration) var(--yw-ease), transform var(--yw-duration) var(--yw-ease);
  width: 100%;
}

body.woocommerce .yw-product-card__meta,
body.woocommerce-page .yw-product-card__meta {
  align-items: center;
  color: var(--yw-text-muted);
  display: flex;
  font-size: 0.625rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0.65rem 0 0;
}

body.woocommerce .yw-product-card__meta span:last-child,
body.woocommerce-page .yw-product-card__meta span:last-child {
  color: var(--yw-accent);
}

body.woocommerce ul.products li.product:hover img,
body.woocommerce-page ul.products li.product:hover img,
body.woocommerce .wc-block-grid__product:hover img,
body.woocommerce-page .wc-block-grid__product:hover img {
  filter: brightness(1.02);
  transform: translateY(-2px);
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body.woocommerce .wc-block-grid__product-title,
body.woocommerce-page .wc-block-grid__product-title {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price,
body.woocommerce .wc-block-grid__product-price,
body.woocommerce-page .wc-block-grid__product-price {
  color: var(--yw-accent-strong);
  display: block;
  font-family: var(--yw-font-ui);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  margin: 0.5rem 0 0;
}

body.woocommerce ul.products li.product .button,
body.woocommerce-page ul.products li.product .button,
body.woocommerce .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.woocommerce-page .wc-block-grid__product-add-to-cart .wp-block-button__link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--yw-border);
  border-top: 1px solid var(--yw-border);
  color: var(--yw-text);
  justify-content: space-between;
  margin-top: 0.85rem;
  min-height: 2.65rem;
  padding: 0.65rem 0;
  width: 100%;
}

body.woocommerce ul.products li.product .button::after,
body.woocommerce-page ul.products li.product .button::after,
body.woocommerce .wc-block-grid__product-add-to-cart .wp-block-button__link::after,
body.woocommerce-page .wc-block-grid__product-add-to-cart .wp-block-button__link::after {
  content: "＋";
  font-size: 0.875rem;
  font-weight: 400;
}

body.woocommerce ul.products li.product .button:hover,
body.woocommerce-page ul.products li.product .button:hover,
body.woocommerce ul.products li.product .button:focus-visible,
body.woocommerce-page ul.products li.product .button:focus-visible,
body.woocommerce .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
body.woocommerce-page .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--yw-accent-strong);
  color: var(--yw-accent-strong);
  transform: none;
}

body.woocommerce .onsale,
body.woocommerce-page .onsale,
body.woocommerce .wc-block-grid__product-onsale,
body.woocommerce-page .wc-block-grid__product-onsale {
  background: var(--yw-surface);
  border: 1px solid var(--yw-accent);
  border-radius: 0;
  color: var(--yw-accent-strong);
  font-family: var(--yw-font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
}

/* Buttons and links */

body.woocommerce .button,
body.woocommerce-page .button,
body.woocommerce button.button,
body.woocommerce-page button.button,
body.woocommerce input.button,
body.woocommerce-page input.button,
body.woocommerce #respond input#submit,
body.woocommerce-page #respond input#submit,
body.woocommerce .wc-block-components-button,
body.woocommerce-page .wc-block-components-button,
body.woocommerce .wp-block-button__link,
body.woocommerce-page .wp-block-button__link,
body.woocommerce .yw-button,
body.woocommerce-page .yw-button {
  align-items: center;
  background: var(--yw-accent-strong);
  border: 1px solid var(--yw-accent-strong);
  border-radius: 0;
  box-shadow: none;
  color: var(--yw-surface);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--yw-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1.2;
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  transition: background-color var(--yw-duration) var(--yw-ease), border-color var(--yw-duration) var(--yw-ease), color var(--yw-duration) var(--yw-ease), transform var(--yw-duration) var(--yw-ease);
  white-space: nowrap;
}

body.woocommerce .button:hover,
body.woocommerce-page .button:hover,
body.woocommerce button.button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce-page input.button:hover,
body.woocommerce #respond input#submit:hover,
body.woocommerce-page #respond input#submit:hover,
body.woocommerce .wc-block-components-button:hover,
body.woocommerce-page .wc-block-components-button:hover,
body.woocommerce .wp-block-button__link:hover,
body.woocommerce-page .wp-block-button__link:hover,
body.woocommerce .yw-button:hover,
body.woocommerce-page .yw-button:hover {
  background: var(--yw-text);
  border-color: var(--yw-text);
  color: var(--yw-surface);
  transform: translateY(-1px);
}

body.woocommerce .button:active,
body.woocommerce-page .button:active,
body.woocommerce button.button:active,
body.woocommerce-page button.button:active,
body.woocommerce .wc-block-components-button:active,
body.woocommerce-page .wc-block-components-button:active,
body.woocommerce .wp-block-button__link:active,
body.woocommerce-page .wp-block-button__link:active {
  transform: translateY(1px);
}

body.woocommerce .button:disabled,
body.woocommerce-page .button:disabled,
body.woocommerce .wc-block-components-button:disabled,
body.woocommerce-page .wc-block-components-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Product detail */

body.single-product .storefront-product-pagination,
body.single-product .storefront-sticky-add-to-cart {
  display: none !important;
}

body.single-product .site-main > .product {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

body.single-product .site-main > .product::before,
body.single-product .site-main > .product::after {
  display: none;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  float: none;
  margin: 0;
  min-width: 0;
  width: auto;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product div.product .woocommerce-product-gallery__image > a {
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  display: block;
}

body.single-product div.product .woocommerce-product-gallery__image img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  object-fit: cover;
  width: 100%;
}

body.single-product div.product .flex-control-thumbs {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0.75rem;
}

body.single-product div.product .flex-control-thumbs li {
  float: none;
  margin: 0;
  width: auto;
}

body.single-product div.product .flex-control-thumbs img {
  aspect-ratio: 1;
  border: 1px solid transparent;
  object-fit: cover;
}

body.single-product div.product .flex-control-thumbs img.flex-active {
  border-color: var(--yw-accent-strong);
}

body.single-product div.product .product_title {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}

body.single-product div.product .woocommerce-product-rating,
body.single-product div.product .woocommerce-review-link,
body.single-product div.product .product_meta {
  color: var(--yw-text-muted);
  font-size: 0.8125rem;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  color: var(--yw-accent-strong);
  font-family: var(--yw-font-ui);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  margin: 1rem 0;
}

body.single-product div.product .woocommerce-product-details__short-description {
  color: var(--yw-text-muted);
  font-size: 0.9375rem;
  line-height: 1.9;
  margin: 1.5rem 0;
  max-width: 58ch;
}

body.single-product .yw-dossier {
  border-bottom: 1px solid var(--yw-border);
  border-top: 1px solid var(--yw-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.75rem 0;
  padding: 0.75rem 0;
}

body.single-product .yw-dossier__item {
  min-width: 0;
  padding: 0.65rem 0.75rem 0.65rem 0;
}

body.single-product .yw-dossier__label {
  color: var(--yw-text-muted);
  display: block;
  font-family: var(--yw-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin: 0;
}

body.single-product .yw-dossier__value {
  color: var(--yw-text);
  display: block;
  font-family: var(--yw-font-display);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0.2rem 0 0;
}

body.single-product div.product form.cart {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

body.single-product div.product form.cart .quantity {
  flex: 0 0 84px;
}

body.single-product div.product form.cart .qty {
  height: 100%;
  margin: 0;
  min-height: 48px;
  text-align: center;
  width: 100%;
}

body.single-product div.product form.cart .single_add_to_cart_button {
  flex: 1 1 190px;
}

body.single-product .yw-private-cta {
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  border-radius: 0;
  box-shadow: none;
  margin: 1.75rem 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

body.single-product .yw-private-cta p {
  color: var(--yw-text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

body.single-product .yw-private-cta .yw-button {
  width: 100%;
}

body.single-product div.product .stock {
  color: var(--yw-accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}

body.single-product div.product .product_meta {
  border-top: 1px solid var(--yw-border);
  line-height: 1.8;
  margin-top: 1.75rem;
  padding-top: 1rem;
}

body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related.products,
body.single-product div.product .upsells.products {
  clear: both;
  float: none;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: clamp(3rem, 6vw, 6rem);
  width: 100%;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--yw-border);
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  overflow-x: auto;
  padding: 0;
}

body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
  border-bottom: 2px solid transparent;
  color: var(--yw-text-muted);
  font-family: var(--yw-font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 0 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: var(--yw-accent-strong);
  color: var(--yw-text);
}

body.single-product div.product .woocommerce-tabs .panel {
  color: var(--yw-text-muted);
  float: none;
  line-height: 1.9;
  margin: 0;
  max-width: 72ch;
  width: 100%;
}

body.single-product div.product .woocommerce-tabs .panel#tab-reviews {
  max-width: none;
}

body.single-product #reviews {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  margin: 0;
  max-width: none;
  width: 100%;
}

body.single-product #reviews #comments,
body.single-product #review_form_wrapper,
body.single-product #review_form,
body.single-product #respond {
  float: none;
  margin: 0;
  max-width: none;
  width: 100%;
}

body.single-product #respond {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.single-product #reviews #comments {
  min-width: 0;
}

body.single-product #review_form_wrapper {
  border-left: 1px solid var(--yw-border);
  padding-left: clamp(1.5rem, 4vw, 4rem);
}

body.single-product #reviews .woocommerce-Reviews-title,
body.single-product #reviews .comment-reply-title {
  color: var(--yw-text);
  display: block;
  font-family: var(--yw-font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

body.single-product #reviews .comment-form {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  max-width: none;
  width: 100%;
}

body.single-product #reviews .comment-form > p,
body.single-product #reviews .comment-form-rating {
  float: none;
  margin: 0;
  width: auto;
}

body.single-product #reviews .comment-notes,
body.single-product #reviews .comment-form-rating,
body.single-product #reviews .comment-form-comment,
body.single-product #reviews .comment-form-cookies-consent,
body.single-product #reviews .form-submit {
  grid-column: 1 / -1;
}

body.single-product #reviews .comment-form label {
  color: var(--yw-text);
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}

body.single-product #reviews .comment-form input[type="text"],
body.single-product #reviews .comment-form input[type="email"],
body.single-product #reviews .comment-form textarea {
  width: 100%;
}

body.single-product #reviews p.stars,
body.single-product #reviews p.stars span {
  display: flex;
  gap: 0.4rem;
}

body.single-product #reviews p.stars {
  margin: 0.65rem 0 0;
}

body.single-product #reviews p.stars a {
  align-items: center;
  border: 1px solid var(--yw-border);
  color: var(--yw-accent-strong);
  display: inline-flex;
  font-size: 0;
  height: 38px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  text-indent: 0;
  width: 38px;
}

body.single-product #reviews p.stars a::before {
  content: "☆";
  font-family: var(--yw-font-ui);
  font-size: 1.25rem;
  inset: auto;
  line-height: 1;
  position: static;
}

body.single-product #reviews p.stars:hover a::before,
body.single-product #reviews p.stars.selected a::before,
body.single-product #reviews p.stars a.active::before,
body.single-product #reviews p.stars a[aria-checked="true"]::before {
  content: "★";
}

body.single-product #reviews p.stars a:hover ~ a::before,
body.single-product #reviews p.stars.selected a.active ~ a::before {
  content: "☆";
}

body.single-product #reviews .comment-form-cookies-consent {
  align-items: start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
}

body.single-product #reviews .comment-form-cookies-consent input {
  accent-color: var(--yw-accent-strong);
  margin-top: 0.35rem;
}

body.single-product #reviews .comment-form-cookies-consent label {
  color: var(--yw-text-muted);
  font-weight: 400;
  margin: 0;
}

body.single-product div.product .related.products > h2,
body.single-product div.product .upsells.products > h2 {
  border-bottom: 1px solid var(--yw-border);
  font-family: var(--yw-font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
}

body.single-product div.product .related.products ul.products,
body.single-product div.product .upsells.products ul.products {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Forms */

body.woocommerce form .form-row,
body.woocommerce-page form .form-row,
body.woocommerce .wc-block-components-text-input,
body.woocommerce-page .wc-block-components-text-input {
  margin: 0 0 1rem;
}

body.woocommerce form .form-row label,
body.woocommerce-page form .form-row label,
body.woocommerce .wc-block-components-form .wc-block-components-text-input label,
body.woocommerce-page .wc-block-components-form .wc-block-components-text-input label,
body.woocommerce .wc-block-components-address-form__country label,
body.woocommerce-page .wc-block-components-address-form__country label {
  color: var(--yw-text);
  font-family: var(--yw-font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
}

body.woocommerce input.input-text,
body.woocommerce-page input.input-text,
body.woocommerce textarea,
body.woocommerce-page textarea,
body.woocommerce select,
body.woocommerce-page select,
body.woocommerce .select2-container .select2-selection,
body.woocommerce-page .select2-container .select2-selection,
body.woocommerce .wc-block-components-text-input input,
body.woocommerce-page .wc-block-components-text-input input,
body.woocommerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-page .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--yw-text);
  font-family: var(--yw-font-ui);
  min-height: 48px;
  padding: 0.8rem 0.9rem;
}

body.woocommerce textarea,
body.woocommerce-page textarea {
  min-height: 130px;
  resize: vertical;
}

body.woocommerce input::placeholder,
body.woocommerce-page input::placeholder,
body.woocommerce textarea::placeholder,
body.woocommerce-page textarea::placeholder {
  color: var(--yw-text-muted);
  opacity: 0.78;
}

body.woocommerce input.input-text:focus,
body.woocommerce-page input.input-text:focus,
body.woocommerce textarea:focus,
body.woocommerce-page textarea:focus,
body.woocommerce select:focus,
body.woocommerce-page select:focus,
body.woocommerce .select2-container--focus .select2-selection,
body.woocommerce-page .select2-container--focus .select2-selection,
body.woocommerce .wc-block-components-text-input input:focus,
body.woocommerce-page .wc-block-components-text-input input:focus {
  border-color: var(--yw-accent-strong);
  box-shadow: inset 0 0 0 1px var(--yw-accent-strong) !important;
  outline: 0 !important;
}

body.woocommerce .form-row.woocommerce-invalid input.input-text,
body.woocommerce-page .form-row.woocommerce-invalid input.input-text,
body.woocommerce .has-error input,
body.woocommerce-page .has-error input {
  border-color: var(--yw-accent-strong);
}

body.woocommerce .woocommerce-password-strength,
body.woocommerce-page .woocommerce-password-strength,
body.woocommerce .woocommerce-password-hint,
body.woocommerce-page .woocommerce-password-hint {
  background: var(--yw-canvas);
  border: 1px solid var(--yw-border);
  color: var(--yw-text-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.55rem 0.7rem;
}

/* Notices and empty states */

body.woocommerce .woocommerce-info,
body.woocommerce-page .woocommerce-info,
body.woocommerce .woocommerce-message,
body.woocommerce-page .woocommerce-message,
body.woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce-error,
body.woocommerce .woocommerce-noreviews,
body.woocommerce-page .woocommerce-noreviews,
body.woocommerce p.no-comments,
body.woocommerce-page p.no-comments,
body.woocommerce .wc-block-components-notice-banner,
body.woocommerce-page .wc-block-components-notice-banner {
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  border-left: 3px solid var(--yw-accent-strong);
  border-radius: 0;
  box-shadow: none;
  color: var(--yw-text);
  font-family: var(--yw-font-ui);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
}

body.woocommerce .woocommerce-info::before,
body.woocommerce-page .woocommerce-info::before,
body.woocommerce .woocommerce-message::before,
body.woocommerce-page .woocommerce-message::before,
body.woocommerce .woocommerce-error::before,
body.woocommerce-page .woocommerce-error::before {
  color: var(--yw-accent-strong);
  left: 1rem;
  top: 1rem;
}

body:is(.woocommerce, .woocommerce-page) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, p.no-comments) {
  padding-inline-start: 3rem;
}

body.woocommerce .wc-block-cart__empty-cart__title,
body.woocommerce-page .wc-block-cart__empty-cart__title,
body.woocommerce .cart-empty,
body.woocommerce-page .cart-empty,
body.woocommerce .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-page .woocommerce-MyAccount-content .woocommerce-info {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

body.woocommerce .wp-block-woocommerce-empty-cart-block,
body.woocommerce-page .wp-block-woocommerce-empty-cart-block {
  border-bottom: 1px solid var(--yw-border);
  border-top: 1px solid var(--yw-border);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

body.woocommerce .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
body.woocommerce-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  align-items: center;
  background: transparent !important;
  border: 1px solid var(--yw-accent);
  border-radius: 50%;
  color: var(--yw-accent);
  content: "物";
  display: flex;
  font-family: var(--yw-font-display);
  font-size: 1rem;
  height: 52px;
  justify-content: center;
  margin: 0 auto 1.5rem;
  -webkit-mask: none !important;
  mask: none !important;
  width: 52px;
}

body.woocommerce .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title),
body.woocommerce-page .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: clamp(3rem, 6vw, 5rem) 0 1.75rem;
}

body.woocommerce .wp-block-woocommerce-empty-cart-block .wp-block-separator,
body.woocommerce-page .wp-block-woocommerce-empty-cart-block .wp-block-separator {
  background: var(--yw-border);
  border: 0;
  height: 1px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  max-width: none;
}

@media (min-width: 721px) {
  body.woocommerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
  body.woocommerce-page .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Cart, checkout and account surfaces */

body.woocommerce table.shop_table,
body.woocommerce-page table.shop_table,
body.woocommerce .woocommerce-cart-form,
body.woocommerce-page .woocommerce-cart-form,
body.woocommerce .cart_totals,
body.woocommerce-page .cart_totals,
body.woocommerce .woocommerce-checkout-review-order,
body.woocommerce-page .woocommerce-checkout-review-order,
body.woocommerce .woocommerce-form-login,
body.woocommerce-page .woocommerce-form-login,
body.woocommerce .woocommerce-form-register,
body.woocommerce-page .woocommerce-form-register,
body.woocommerce .woocommerce-form-coupon,
body.woocommerce-page .woocommerce-form-coupon,
body.woocommerce .wc-block-cart-items,
body.woocommerce-page .wc-block-cart-items,
body.woocommerce .wc-block-components-sidebar,
body.woocommerce-page .wc-block-components-sidebar,
body.woocommerce .wc-block-checkout__main,
body.woocommerce-page .wc-block-checkout__main {
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce table.shop_table,
body.woocommerce-page table.shop_table {
  border-collapse: collapse;
}

body.woocommerce table.shop_table th,
body.woocommerce-page table.shop_table th,
body.woocommerce table.shop_table td,
body.woocommerce-page table.shop_table td {
  border-color: var(--yw-border);
  color: var(--yw-text);
  padding: 1rem;
  vertical-align: middle;
}

body.woocommerce table.shop_table th,
body.woocommerce-page table.shop_table th {
  font-family: var(--yw-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.woocommerce table.shop_table td,
body.woocommerce-page table.shop_table td {
  font-size: 0.875rem;
}

body.woocommerce table.shop_table .product-thumbnail img,
body.woocommerce-page table.shop_table .product-thumbnail img,
body.woocommerce .wc-block-cart-item__image img,
body.woocommerce-page .wc-block-cart-item__image img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--yw-border);
  border-radius: 0;
  object-fit: cover;
}

body.woocommerce .cart-collaterals,
body.woocommerce-page .cart-collaterals {
  margin-top: 2rem;
}

body.woocommerce .cart_totals,
body.woocommerce-page .cart_totals,
body.woocommerce .woocommerce-checkout-review-order,
body.woocommerce-page .woocommerce-checkout-review-order,
body.woocommerce .woocommerce-form-login,
body.woocommerce-page .woocommerce-form-login,
body.woocommerce .woocommerce-form-register,
body.woocommerce-page .woocommerce-form-register,
body.woocommerce .woocommerce-form-coupon,
body.woocommerce-page .woocommerce-form-coupon {
  padding: clamp(1.25rem, 3vw, 2rem);
}

body.woocommerce .wc-block-components-sidebar-layout,
body.woocommerce-page .wc-block-components-sidebar-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.9fr);
}

body.woocommerce .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-page .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-page .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
  margin: 0;
  width: auto;
}

body.woocommerce .wc-block-components-sidebar,
body.woocommerce-page .wc-block-components-sidebar,
body.woocommerce .wc-block-checkout__main,
body.woocommerce-page .wc-block-checkout__main {
  padding: clamp(1rem, 2.5vw, 2rem);
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  border-top: 1px solid var(--yw-border);
  margin: 0;
  padding: 1.75rem 0;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields {
  border-top: 0;
  padding-top: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-panel__button,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

body.woocommerce-checkout .wc-block-components-address-card,
body.woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-shipping-rates-control__package {
  background: var(--yw-canvas);
  border: 1px solid var(--yw-border);
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-address-card,
body.woocommerce-checkout .wc-block-components-shipping-rates-control__package {
  padding: 1rem;
}

body.woocommerce-checkout .wc-block-components-radio-control__option {
  padding: 1rem 1rem 1rem 3.25rem;
}

body.woocommerce-checkout .wc-block-components-checkbox__input,
body.woocommerce-checkout input[type="radio"] {
  accent-color: var(--yw-accent-strong);
}

body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-shipping-rates-control__package {
  color: var(--yw-text);
}

body.woocommerce-checkout .wc-block-checkout__terms,
body.woocommerce-checkout .wc-block-checkout__actions {
  border-top: 1px solid var(--yw-border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

body.woocommerce .wc-block-components-order-summary,
body.woocommerce-page .wc-block-components-order-summary,
body.woocommerce .wc-block-components-totals-wrapper,
body.woocommerce-page .wc-block-components-totals-wrapper,
body.woocommerce .wc-block-cart-items__row,
body.woocommerce-page .wc-block-cart-items__row {
  border-color: var(--yw-border);
}

body.woocommerce .wc-block-components-product-name,
body.woocommerce-page .wc-block-components-product-name {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-weight: 500;
}

body.woocommerce .wc-block-components-product-price,
body.woocommerce-page .wc-block-components-product-price,
body.woocommerce .wc-block-components-totals-item__value,
body.woocommerce-page .wc-block-components-totals-item__value {
  color: var(--yw-text);
  font-variant-numeric: tabular-nums;
}

body.woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-page .woocommerce-MyAccount-navigation {
  float: none;
  margin: 0;
  width: auto;
}

body.woocommerce .woocommerce-MyAccount-navigation ul,
body.woocommerce-page .woocommerce-MyAccount-navigation ul {
  border-top: 1px solid var(--yw-border);
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce .woocommerce-MyAccount-navigation li,
body.woocommerce-page .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--yw-border);
  margin: 0;
}

body.woocommerce .woocommerce-MyAccount-navigation a,
body.woocommerce-page .woocommerce-MyAccount-navigation a {
  color: var(--yw-text-muted);
  display: block;
  font-size: 0.875rem;
  padding: 0.9rem 0.75rem;
  text-decoration: none;
}

body.woocommerce .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-page .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-page .woocommerce-MyAccount-navigation a:hover {
  color: var(--yw-accent-strong);
}

body.woocommerce .woocommerce-MyAccount-content,
body.woocommerce-page .woocommerce-MyAccount-content {
  color: var(--yw-text-muted);
  float: none;
  line-height: 1.8;
  margin: 0;
  min-width: 0;
  width: auto;
}

body.woocommerce-account .woocommerce {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
}

body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
  margin-inline: auto;
  max-width: 620px;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login {
  margin: 1.5rem 0 0;
  width: 100%;
}

/* Pagination */

body.woocommerce nav.woocommerce-pagination,
body.woocommerce-page nav.woocommerce-pagination {
  margin-top: clamp(2.5rem, 5vw, 5rem);
}

body.woocommerce nav.woocommerce-pagination ul,
body.woocommerce-page nav.woocommerce-pagination ul {
  border: 0;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

body.woocommerce nav.woocommerce-pagination ul li,
body.woocommerce-page nav.woocommerce-pagination ul li {
  border: 0;
}

body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce-page nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span,
body.woocommerce-page nav.woocommerce-pagination ul li span {
  align-items: center;
  background: var(--yw-surface);
  border: 1px solid var(--yw-border);
  color: var(--yw-text-muted);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0.4rem;
}

body.woocommerce nav.woocommerce-pagination ul li span.current,
body.woocommerce-page nav.woocommerce-pagination ul li span.current,
body.woocommerce nav.woocommerce-pagination ul li a:hover,
body.woocommerce-page nav.woocommerce-pagination ul li a:hover {
  background: var(--yw-accent-strong);
  border-color: var(--yw-accent-strong);
  color: var(--yw-surface);
}

@media (max-width: 1180px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.woocommerce .wc-block-grid__products,
  body.woocommerce-page .wc-block-grid__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.single-product .site-main > .product {
    gap: clamp(2rem, 4vw, 3.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  }
}

@media (max-width: 720px) {
  body.woocommerce .site-content > .col-full,
  body.woocommerce-page .site-content > .col-full {
    padding-bottom: 4rem;
    padding-top: 2rem;
    width: calc(100% - 32px);
  }

  body.woocommerce .storefront-sorting,
  body.woocommerce-page .storefront-sorting,
  body.woocommerce .yw-catalog-tools,
  body.woocommerce-page .yw-catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  body.woocommerce .woocommerce-products-header,
  body.woocommerce-page .woocommerce-products-header {
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce .yw-catalog-intro,
  body.woocommerce-page .yw-catalog-intro {
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce .yw-catalog-tools__filters,
  body.woocommerce-page .yw-catalog-tools__filters {
    margin-inline: -1rem;
    overflow-x: auto;
    padding: 0 1rem 0.45rem;
    scrollbar-width: none;
  }

  body.woocommerce .yw-catalog-tools__filters::-webkit-scrollbar,
  body.woocommerce-page .yw-catalog-tools__filters::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce .yw-catalog-tools__controls,
  body.woocommerce-page .yw-catalog-tools__controls {
    justify-content: space-between;
    width: 100%;
  }

  body.woocommerce .woocommerce-ordering select,
  body.woocommerce-page .woocommerce-ordering select {
    width: 100%;
  }

  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.woocommerce .wc-block-grid__products,
  body.woocommerce-page .wc-block-grid__products {
    gap: 2.25rem 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce ul.products li.product .button,
  body.woocommerce-page ul.products li.product .button,
  body.woocommerce .wc-block-grid__product-add-to-cart .wp-block-button__link,
  body.woocommerce-page .wc-block-grid__product-add-to-cart .wp-block-button__link {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding-inline: 0.65rem;
  }

  body.single-product .site-main > .product {
    display: block;
  }

  body.single-product div.product .summary {
    margin-top: 2rem;
  }

  body.single-product .yw-dossier {
    grid-template-columns: 1fr;
  }

  body.single-product div.product .woocommerce-tabs,
  body.single-product div.product .related.products,
  body.single-product div.product .upsells.products {
    padding-top: 3.5rem;
  }

  body.single-product div.product .related.products ul.products,
  body.single-product div.product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product #reviews {
    display: block;
  }

  body.single-product #review_form_wrapper {
    border-left: 0;
    border-top: 1px solid var(--yw-border);
    margin-top: 2rem;
    padding-left: 0;
    padding-top: 2rem;
  }

  body.single-product #reviews .comment-form {
    display: block;
  }

  body.single-product #reviews .comment-form > p,
  body.single-product #reviews .comment-form-rating {
    margin-bottom: 1rem;
  }

  body.woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  body.woocommerce table.shop_table_responsive tr,
  body.woocommerce-page table.shop_table_responsive tr {
    border-bottom: 1px solid var(--yw-border);
    display: block;
    padding: 0.75rem 0;
  }

  body.woocommerce table.shop_table_responsive tr td,
  body.woocommerce-page table.shop_table_responsive tr td {
    border: 0;
    padding: 0.55rem 0.75rem;
  }

  body.woocommerce .wc-block-components-sidebar-layout,
  body.woocommerce-page .wc-block-components-sidebar-layout {
    display: block;
  }

  body.woocommerce .wc-block-components-sidebar-layout > .wc-block-components-main,
  body.woocommerce-page .wc-block-components-sidebar-layout > .wc-block-components-main,
  body.woocommerce .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
  body.woocommerce-page .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
    width: 100%;
  }

  body.woocommerce .wc-block-components-sidebar,
  body.woocommerce-page .wc-block-components-sidebar {
    margin-top: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.single-product div.product form.cart {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  body.single-product div.product form.cart .quantity {
    grid-column: 1;
  }

  body.single-product div.product form.cart .single_add_to_cart_button {
    grid-column: 2;
  }

  body.single-product div.product form.cart:has(.quantity input[type="hidden"]) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-product div.product form.cart .quantity:has(input[type="hidden"]) {
    display: none;
  }

  body.single-product div.product form.cart:has(.quantity input[type="hidden"]) .single_add_to_cart_button {
    grid-column: 1;
  }

  body.single-product div.product form.cart .single_add_to_cart_button {
    min-width: 0;
    padding-inline: 0.75rem;
    width: 100%;
  }

  body.single-product .yw-private-cta .yw-button {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.woocommerce .wc-block-grid__products,
  body.woocommerce-page .wc-block-grid__products {
    grid-template-columns: 1fr;
  }

  body.single-product div.product .related.products ul.products,
  body.single-product div.product .upsells.products ul.products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce *,
  body.woocommerce *::before,
  body.woocommerce *::after,
  body.woocommerce-page *,
  body.woocommerce-page *::before,
  body.woocommerce-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
