/* ECD WooCommerce surfaces. Tokens mirror the public website and styleguide. */

@font-face {
  font-family: "Jost";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/jost@5/files/jost-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/lora@5/files/lora-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ecd-paper: #ffffff;
  --ecd-paper-soft: #f7f4f9;
  --ecd-paper-muted: #eee8f3;
  --ecd-ink: #111011;
  --ecd-ink-soft: #4d4850;
  --ecd-ink-muted: #716b73;
  --ecd-lavender: #d1c0f2;
  --ecd-lavender-soft: #e9e2f7;
  --ecd-danger: #9c2437;
  --ecd-line: rgba(17, 16, 17, 0.16);
  --ecd-line-soft: rgba(17, 16, 17, 0.09);
  --ecd-scrim: rgba(17, 16, 17, 0.5);
  --ecd-font-sans: "All Round Gothic", "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --ecd-font-serif: "Minion Variable Concept", "Minion Pro", "Lora", Georgia, serif;
  --ecd-wrap: 1360px;
  --ecd-gutter: clamp(18px, 4vw, 58px);
  --ecd-radius: 28px;
  --ecd-field-radius: 12px;
  --ecd-pill: 999px;
  --ecd-ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ecd-paper: #141114;
  --ecd-paper-soft: #1c181d;
  --ecd-paper-muted: #272129;
  --ecd-ink: #fbf9fc;
  --ecd-ink-soft: #d8d1dc;
  --ecd-ink-muted: #b8afbc;
  --ecd-lavender: #d1c0f2;
  --ecd-lavender-soft: #30263a;
  --ecd-danger: #f3a5b6;
  --ecd-line: rgba(251, 249, 252, 0.18);
  --ecd-line-soft: rgba(251, 249, 252, 0.09);
  --ecd-scrim: rgba(0, 0, 0, 0.68);
  color-scheme: dark;
}

body.ecd-store-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--ecd-paper);
  color: var(--ecd-ink);
  font-family: var(--ecd-font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

body.ecd-store-page *,
body.ecd-store-page *::before,
body.ecd-store-page *::after {
  box-sizing: border-box;
}

body.ecd-store-page img {
  max-width: 100%;
}

body.ecd-store-page a {
  color: inherit;
}

body.ecd-store-page h1,
body.ecd-store-page h2,
body.ecd-store-page h3,
body.ecd-store-page h4,
body.ecd-store-page h5,
body.ecd-store-page h6 {
  color: var(--ecd-ink);
}

body.ecd-store-page h1 {
  font-family: var(--ecd-font-sans);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

body.ecd-store-page h2,
body.ecd-store-page h3 {
  font-family: var(--ecd-font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

body.ecd-store-page p,
body.ecd-store-page li,
body.ecd-store-page label,
body.ecd-store-page td,
body.ecd-store-page th {
  color: inherit;
}

.ecd-store-wrap {
  width: min(var(--ecd-wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--ecd-gutter);
}

.ecd-store-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--ecd-line);
  background: color-mix(in srgb, var(--ecd-paper) 94%, transparent);
  color: var(--ecd-ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ecd-store-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.ecd-store-brand {
  display: block;
  flex: 0 0 auto;
  line-height: 1;
  text-decoration: none;
}

.ecd-store-brand img {
  width: 176px;
  height: auto;
}

.ecd-store-brand__light {
  display: none;
}

html[data-theme="dark"] .ecd-store-brand__dark {
  display: none;
}

html[data-theme="dark"] .ecd-store-brand__light {
  display: block;
  filter: invert(1);
}

.ecd-store-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 18px);
  margin-inline: auto;
}

.ecd-store-nav a,
.ecd-store-mobile-nav a {
  padding: 9px 13px;
  border-radius: var(--ecd-pill);
  color: var(--ecd-ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ecd-ease),
    color 180ms var(--ecd-ease);
}

.ecd-store-nav a:hover,
.ecd-store-nav a[aria-current="page"],
.ecd-store-mobile-nav a:hover,
.ecd-store-mobile-nav a[aria-current="page"] {
  background: var(--ecd-lavender);
  color: #111011;
}

.ecd-store-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecd-store-cart,
.ecd-store-account,
.ecd-store-theme,
.ecd-store-menu-button {
  min-height: 42px;
  border: 1px solid var(--ecd-line);
  border-radius: var(--ecd-pill);
  background: var(--ecd-paper);
  color: var(--ecd-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.ecd-store-cart,
.ecd-store-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
}

.ecd-store-cart__count {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--ecd-pill);
  background: var(--ecd-lavender);
  color: #111011;
  font-size: 0.72rem;
}

.ecd-store-theme,
.ecd-store-menu-button {
  padding-inline: 13px;
  cursor: pointer;
}

.ecd-store-cart:hover,
.ecd-store-account:hover,
.ecd-store-theme:hover,
.ecd-store-menu-button:hover {
  border-color: var(--ecd-ink);
  background: var(--ecd-paper-soft);
}

.ecd-store-menu-button,
.ecd-store-mobile-nav {
  display: none;
}

.ecd-store-hero {
  padding-block: clamp(46px, 7vw, 88px);
  background: var(--ecd-lavender);
  color: #111011;
}

body.ecd-store-page .ecd-store-hero h1 {
  max-width: 960px;
  margin: 0;
  color: #111011;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
}

.ecd-store-hero p {
  max-width: 56ch;
  margin: 24px 0 0;
  color: rgba(17, 16, 17, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

body.ecd-store-page .wp-site-blocks {
  margin: 0;
  padding: 0;
  background: var(--ecd-paper);
  color: var(--ecd-ink);
  font-family: var(--ecd-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

body.ecd-store-page .wp-site-blocks > header.wp-block-template-part,
body.ecd-store-page .wp-site-blocks > footer.wp-block-template-part {
  display: none;
}

body.ecd-store-page main#wp--skip-link--target {
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(42px, 6vw, 82px) var(--ecd-gutter) clamp(80px, 9vw, 130px) !important;
  background: var(--ecd-paper-soft);
}

body.ecd-store-page main > .wp-block-post-title,
body.ecd-store-page main .wp-block-post-title {
  display: none;
}

body.ecd-store-page main > [data-block-name],
body.ecd-store-page main > .wp-block-group,
body.ecd-store-page main > .wp-block-post-content,
body.ecd-store-page main > .woocommerce {
  width: min(calc(var(--ecd-wrap) - var(--ecd-gutter) - var(--ecd-gutter)), 100%);
  margin-inline: auto !important;
}

body.ecd-store-page .wc-block-components-sidebar-layout,
body.ecd-store-page .wc-block-cart,
body.ecd-store-page .wc-block-checkout,
body.ecd-store-page .wp-block-woocommerce-customer-account,
body.ecd-store-page .woocommerce {
  color: var(--ecd-ink);
}

body.ecd-store-page .wc-block-components-sidebar-layout {
  max-width: var(--ecd-wrap);
  margin-inline: auto;
  gap: clamp(28px, 5vw, 70px);
}

body.ecd-store-page .wc-block-components-main,
body.ecd-store-page .wc-block-components-sidebar {
  padding-inline: 0;
}

body.ecd-store-page .wc-block-components-title,
body.ecd-store-page .wc-block-components-checkout-step__title,
body.ecd-store-page .wc-block-components-totals-item__label,
body.ecd-store-page .wc-block-components-order-summary-item__description,
body.ecd-store-page .wc-block-components-product-name {
  color: var(--ecd-ink);
  font-family: var(--ecd-font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
}

body.ecd-store-page .wc-block-components-title {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

body.ecd-store-page .wc-block-components-checkout-step__title {
  font-family: var(--ecd-font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

body.ecd-store-page .wc-block-components-checkout-order-summary__title-text,
body.ecd-store-page .wc-block-components-totals-title {
  color: var(--ecd-ink);
  font-family: var(--ecd-font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.ecd-store-page .wc-block-components-panel,
body.ecd-store-page .wc-block-components-order-summary,
body.ecd-store-page .wc-block-components-totals-wrapper,
body.ecd-store-page .wc-block-components-address-card {
  border-color: var(--ecd-line);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
}

body.ecd-store-page .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.ecd-store-page .wc-block-components-sidebar .wc-block-components-order-summary {
  border: 1px solid var(--ecd-lavender);
  background: var(--ecd-paper);
  box-shadow: 0 20px 60px rgba(17, 16, 17, 0.06);
}

body.ecd-store-page .wc-block-cart-items {
  border: 1px solid var(--ecd-line);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
  overflow: hidden;
}

body.woocommerce-cart.ecd-store-page main#wp--skip-link--target {
  padding-bottom: clamp(32px, 4vw, 64px) !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
  gap: clamp(28px, 4.5vw, 64px);
  margin-bottom: 0;
}

body.woocommerce-cart .wc-block-components-sidebar {
  margin-bottom: 0;
}

body.woocommerce-cart .wc-block-cart__submit {
  margin-bottom: 0;
}

body.woocommerce-cart .wc-block-cart-items__header th {
  padding: 18px 22px 10px;
  color: var(--ecd-ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items__header th:first-child,
body.woocommerce-cart .wc-block-cart-items__row > td:first-child {
  padding-left: 22px;
}

body.woocommerce-cart .wc-block-cart-items__row > td {
  padding-block: 20px;
}

body.woocommerce-cart .wc-block-cart-items__row {
  padding-block: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
  overflow: hidden;
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
  box-shadow: 0 20px 60px rgba(17, 16, 17, 0.06);
}

body.woocommerce-cart .wc-block-cart__totals-title {
  margin: 0;
  padding: 22px 22px 4px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-wrapper {
  margin: 0;
  padding: 15px 22px;
  border: 0;
  border-top: 1px solid var(--ecd-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container--sticky::before {
  display: none;
}

@media (min-width: 783px) {
  body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container--sticky {
    position: static;
    display: block;
    width: 100%;
    padding: 16px 0 0;
    background: transparent !important;
  }
}

@media (max-width: 782px) {
  body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container--sticky {
    padding: 12px var(--ecd-gutter);
    border-top: 1px solid var(--ecd-line-soft);
    background: var(--ecd-paper-soft) !important;
  }
}

body.ecd-store-page .wc-block-cart-items__row {
  border-color: var(--ecd-line-soft);
  padding-block: 22px;
}

body.ecd-store-page .wc-block-cart-items__header th:last-child,
body.ecd-store-page .wc-block-cart-item__total {
  padding-left: 16px;
  padding-right: 12px;
  text-align: right;
}

body.ecd-store-page .wc-block-cart-item__total .wc-block-formatted-money-amount {
  white-space: nowrap;
}

body.ecd-store-page .wc-block-components-totals-item {
  gap: 16px;
}

body.ecd-store-page .wc-block-components-totals-item__value {
  white-space: nowrap;
}

body.ecd-store-page .wc-block-cart-item__image img {
  border-radius: 18px;
}

body.ecd-store-page .wc-block-components-product-name {
  font-family: var(--ecd-font-serif);
  font-weight: 500;
  text-decoration: none;
}

body.ecd-store-page .wc-block-components-product-price,
body.ecd-store-page .wc-block-components-totals-item__value,
body.ecd-store-page .wc-block-components-totals-footer-item {
  color: var(--ecd-ink);
  font-variant-numeric: tabular-nums;
}

body.ecd-store-page .wc-block-components-totals-item,
body.ecd-store-page .wc-block-components-order-summary-item {
  border-color: var(--ecd-line-soft);
}

body.ecd-store-page .wc-block-components-button,
body.ecd-store-page .wp-element-button,
body.ecd-store-page .wc-block-components-checkout-place-order-button,
body.ecd-store-page button.button,
body.ecd-store-page a.button,
body.ecd-store-page input[type="submit"] {
  min-height: 48px;
  border: 1px solid #111011;
  border-radius: var(--ecd-pill);
  background: #111011;
  color: #ffffff;
  font-family: var(--ecd-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    background-color 180ms var(--ecd-ease),
    border-color 180ms var(--ecd-ease),
    transform 180ms var(--ecd-ease);
}

body.ecd-store-page .wc-block-components-button:hover,
body.ecd-store-page .wp-element-button:hover,
body.ecd-store-page .wc-block-components-checkout-place-order-button:hover,
body.ecd-store-page button.button:hover,
body.ecd-store-page a.button:hover,
body.ecd-store-page input[type="submit"]:hover {
  border-color: var(--ecd-lavender);
  background: var(--ecd-lavender);
  color: #111011;
}

body.ecd-store-page .wc-block-components-button:active,
body.ecd-store-page .wp-element-button:active,
body.ecd-store-page button.button:active,
body.ecd-store-page a.button:active {
  transform: translateY(1px);
}

body.ecd-store-page .wc-block-components-button:focus-visible,
body.ecd-store-page .wp-element-button:focus-visible,
body.ecd-store-page button:focus-visible,
body.ecd-store-page a:focus-visible,
body.ecd-store-page input:focus-visible,
body.ecd-store-page select:focus-visible,
body.ecd-store-page textarea:focus-visible {
  outline: 3px solid var(--ecd-lavender);
  outline-offset: 3px;
}

body.ecd-store-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.ecd-store-page select,
body.ecd-store-page textarea {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--ecd-line);
  border-radius: var(--ecd-field-radius);
  background: var(--ecd-paper);
  color: var(--ecd-ink);
  font-family: var(--ecd-font-sans);
  font-size: 1rem;
}

body.ecd-store-page input::placeholder,
body.ecd-store-page textarea::placeholder {
  color: var(--ecd-ink-muted);
  opacity: 1;
}

body.ecd-store-page input:focus,
body.ecd-store-page select:focus,
body.ecd-store-page textarea:focus {
  border-color: var(--ecd-lavender);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ecd-lavender) 44%, transparent);
}

body.ecd-store-page .wc-blocks-components-select__select,
body.ecd-store-page .components-select-control__input {
  background: var(--ecd-paper) !important;
  color: var(--ecd-ink) !important;
}

html[data-theme="dark"] body.ecd-store-page .wc-block-components-button,
html[data-theme="dark"] body.ecd-store-page .wp-element-button,
html[data-theme="dark"] body.ecd-store-page .wc-block-components-checkout-place-order-button,
html[data-theme="dark"] body.ecd-store-page button.button,
html[data-theme="dark"] body.ecd-store-page a.button,
html[data-theme="dark"] body.ecd-store-page input[type="submit"] {
  border-color: #111011;
  background: var(--ecd-lavender);
  color: #111011;
}

html[data-theme="dark"] body.ecd-store-page .wc-block-components-button:hover,
html[data-theme="dark"] body.ecd-store-page .wp-element-button:hover,
html[data-theme="dark"] body.ecd-store-page .wc-block-components-checkout-place-order-button:hover,
html[data-theme="dark"] body.ecd-store-page button.button:hover,
html[data-theme="dark"] body.ecd-store-page a.button:hover,
html[data-theme="dark"] body.ecd-store-page input[type="submit"]:hover {
  border-color: var(--ecd-lavender);
  background: var(--ecd-ink);
  color: var(--ecd-paper);
}

body.ecd-store-page .wc-block-components-text-input label,
body.ecd-store-page .wc-block-components-address-form label,
body.ecd-store-page .wc-blocks-components-select label {
  color: var(--ecd-ink-muted);
}

body.ecd-store-page .wc-block-components-quantity-selector {
  border: 1px solid var(--ecd-line);
  border-radius: var(--ecd-pill);
  background: var(--ecd-paper);
  overflow: hidden;
}

body.ecd-store-page .wc-block-components-quantity-selector__button {
  border: 0;
  background: transparent;
  color: var(--ecd-ink);
}

body.ecd-store-page .wc-block-components-notice-banner,
body.ecd-store-page .woocommerce-message,
body.ecd-store-page .woocommerce-info,
body.ecd-store-page .woocommerce-error {
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-radius);
  background: var(--ecd-lavender-soft);
  color: var(--ecd-ink);
}

body.ecd-store-page .wc-block-components-notice-banner.is-error,
body.ecd-store-page .woocommerce-error {
  border-color: #9d5963;
  background: #f4e8ea;
  color: #581e28;
}

body.ecd-store-page .wc-block-components-express-payment-continue-rule::before,
body.ecd-store-page .wc-block-components-express-payment-continue-rule::after {
  border-color: var(--ecd-line);
}

body.ecd-store-page .wc-block-components-checkout-step {
  border-color: var(--ecd-line-soft);
}

body.ecd-store-page .wc-block-components-checkout-step__icon {
  border-radius: var(--ecd-pill);
  background: var(--ecd-lavender);
  color: #111011;
}

body.ecd-store-page .wc-block-components-radio-control__option {
  border-color: var(--ecd-line);
  border-radius: var(--ecd-field-radius);
}

body.ecd-store-page .wc-block-components-radio-control__option--checked-option-highlighted {
  border-color: #111011;
  background: var(--ecd-lavender-soft);
}

body.ecd-store-page .wc-block-components-order-summary-item__quantity {
  background: #111011;
  color: #ffffff;
}

body.ecd-store-page .wc-block-components-payment-method-icons img {
  max-height: 24px;
  width: auto;
}

body.ecd-store-page .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

body.ecd-store-page .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--ecd-pill);
  background: var(--ecd-paper);
  text-decoration: none;
}

body.ecd-store-page .woocommerce-MyAccount-navigation .is-active a {
  background: var(--ecd-lavender);
  color: #111011;
}

body.ecd-store-page .woocommerce ul.products,
body.ecd-store-page .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 30px);
}

body.ecd-store-page .woocommerce ul.products li.product,
body.ecd-store-page .wc-block-product {
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
}

body.ecd-store-page .woocommerce ul.products li.product img,
body.ecd-store-page .wc-block-product img {
  border-radius: 18px;
}

body.ecd-store-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.ecd-store-page .wc-block-product-name {
  font-family: var(--ecd-font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

/* Catalog cards */

body.post-type-archive-product main > .wp-block-query-title {
  display: none;
}

body.ecd-store-page .woocommerce-breadcrumb {
  margin: 0 0 22px;
  color: var(--ecd-ink-muted);
  font-size: 0.8rem;
}

body.ecd-store-page .woocommerce-breadcrumb a {
  color: var(--ecd-ink-soft);
  text-underline-offset: 4px;
}

body.ecd-store-page .wc-block-product-results-count p {
  margin: 0;
  color: var(--ecd-ink-muted);
  font-size: 0.86rem;
}

body.ecd-store-page .wc-block-catalog-sorting select {
  min-width: 190px;
  padding-inline: 16px;
  border-radius: var(--ecd-pill);
  background-color: var(--ecd-paper);
}

body.ecd-store-page .wc-block-product-template {
  align-items: stretch;
}

body.ecd-store-page .wc-block-product {
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.ecd-store-page .wc-block-product .wp-block-post-title {
  display: block;
  margin: 22px 24px 0;
  color: var(--ecd-ink);
  font-family: var(--ecd-font-sans);
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: left;
}

body.ecd-store-page .wc-block-product .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

body.ecd-store-page .wc-block-product .wc-block-components-product-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--ecd-paper-muted);
}

body.ecd-store-page .wc-block-product .wc-block-components-product-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

body.ecd-store-page .wc-block-product .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5 !important;
  border-radius: 0;
  object-fit: cover;
  transition: transform 700ms var(--ecd-ease);
}

body.ecd-store-page .wc-block-product .wp-block-woocommerce-product-price {
  margin: 14px 24px 0 !important;
  text-align: left !important;
}

body.ecd-store-page .wc-block-product .wc-block-components-product-price {
  color: var(--ecd-ink);
  font-size: 1rem;
  font-weight: 650;
}

body.ecd-store-page .wc-block-product .wp-block-woocommerce-product-button {
  width: auto;
  margin: auto 0 0 !important;
  padding: 24px;
  text-align: left;
}

body.ecd-store-page .wc-block-product .wc-block-components-product-button__button {
  width: 100%;
  min-height: 46px;
}

body.ecd-store-page .wc-block-product .added_to_cart {
  display: inline-block;
  margin-top: 12px;
  color: var(--ecd-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.ecd-store-page .wc-block-product:hover .wc-block-components-product-image img {
    transform: scale(1.025);
  }
}

/* Product detail */

body.single-product main .wp-block-columns {
  align-items: flex-start;
  gap: clamp(30px, 5vw, 74px);
}

body.single-product main .wp-block-columns > .wp-block-column:last-child {
  position: sticky;
  top: 104px;
  align-self: flex-start;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
}

body.single-product .wp-block-woocommerce-product-price {
  margin-bottom: 22px;
}

.ecd-price-moved {
  display: none !important;
}

body.single-product #payment-method-message,
body.single-product .wcpay-express-checkout-wrapper {
  display: none !important;
}

body.single-product .wp-block-woocommerce-product-price .woocommerce-Price-amount {
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

body.single-product .wp-block-post-excerpt {
  margin: 0 0 24px;
  color: var(--ecd-ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

body.single-product form.cart {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

body.single-product form.cart .quantity {
  width: 100%;
}

body.single-product form.cart .quantity input {
  width: 100%;
  height: 48px;
  text-align: center;
}

body.single-product form.cart .single_add_to_cart_button {
  width: 100%;
  height: 48px;
  margin: 0;
}

body.single-product.ecd-product-with-options form.cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.single-product.ecd-product-with-options form.cart .quantity {
  display: none !important;
}

body.single-product.ecd-product-with-options form.cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px !important;
  text-align: center;
}

body.single-product.ecd-product-with-options .single_variation_wrap {
  margin-top: 0;
}

.ecd-product-options {
  display: grid;
  gap: 18px;
  width: 100%;
}

.ecd-product-options .ecd-product-options__variations {
  display: grid;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.ecd-product-options__variations tbody,
.ecd-product-options__variations tr,
.ecd-product-options__variations th.label,
.ecd-product-options__variations td.value {
  display: block;
  width: 100%;
  padding: 0;
}

.ecd-product-options__variations th.label {
  margin: 0 0 9px;
  color: var(--ecd-ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
}

.ecd-product-options__variations td.value {
  position: relative;
}

.ecd-product-options__variations select {
  width: 100%;
  min-height: 48px;
}

.ecd-product-options__variations .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: var(--ecd-ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

.ecd-product-options__variations .reset_variations[style*="hidden"] {
  display: none !important;
}

.ecd-product-options__variations .woocommerce-variation-availability {
  margin-top: 8px;
}

.ecd-product-options__facts {
  display: grid;
  gap: 8px;
}

.ecd-product-options__price-field {
  display: grid;
  gap: 9px;
}

.ecd-product-options__price-field > span {
  color: var(--ecd-ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.ecd-product-options__price-value {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-field-radius);
  background: var(--ecd-lavender-soft);
  color: var(--ecd-ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.ecd-product-options__fact,
.ecd-product-options__delivery {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ecd-line-soft);
  border-radius: 14px;
  background: var(--ecd-lavender-soft);
  color: var(--ecd-ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ecd-product-options__fact strong,
.ecd-product-options__delivery strong {
  color: var(--ecd-ink);
  font-weight: 650;
  text-align: right;
}

.ecd-product-options__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ecd-product-options__group legend,
.ecd-product-options__field > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ecd-ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.ecd-product-options__group legend span,
.ecd-product-options__field > label span {
  color: var(--ecd-danger);
}

.ecd-product-options__choices {
  display: grid;
  gap: 8px;
}

.ecd-product-options__choices--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecd-product-options__choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.ecd-product-options__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ecd-product-options__choice > span {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--ecd-line);
  border-radius: 12px;
  background: var(--ecd-paper);
  color: var(--ecd-ink);
  font-size: 0.9rem;
  transition:
    border-color 160ms var(--ecd-ease),
    background-color 160ms var(--ecd-ease);
}

.ecd-product-options__choice input:checked + span {
  border-color: #111011;
  background: var(--ecd-lavender);
  color: #111011;
}

.ecd-product-options__choice input:focus-visible + span {
  outline: 3px solid var(--ecd-lavender);
  outline-offset: 3px;
}

.ecd-product-options__swatch {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid rgba(17, 16, 17, 0.16);
  border-radius: 50%;
}

.ecd-product-options__swatch--maroon {
  background: #641e2a;
}

.ecd-product-options__swatch--green {
  background: #315944;
}

.ecd-product-options__swatch--navy {
  background: #1f304f;
}

.ecd-product-options__swatch--black {
  background: #111011;
}

.ecd-product-options__swatch--white {
  background: #ffffff;
}

.ecd-product-options__swatch--gold {
  background: linear-gradient(135deg, #b6903f, #f1dfaa 52%, #a77f34);
}

.ecd-product-options__swatch--silver {
  background: linear-gradient(135deg, #8e939a, #f0f2f4 52%, #8e939a);
}

.ecd-product-options__field > input,
.ecd-product-options__field > select,
.ecd-product-options__field > textarea {
  width: 100%;
}

.ecd-product-options__field > textarea {
  min-height: 112px;
  resize: vertical;
}

.ecd-product-options__note {
  margin: 0;
  color: var(--ecd-ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ecd-product-options__delivery {
  margin-top: 2px;
}

@media (max-width: 480px) {
  .ecd-product-options__choices--grid {
    grid-template-columns: 1fr;
  }

  .ecd-product-options__fact,
  .ecd-product-options__delivery {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ecd-product-options__fact strong,
  .ecd-product-options__delivery strong {
    text-align: left;
  }
}

body.single-product .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--ecd-line-soft);
  color: var(--ecd-ink-muted);
  font-size: 0.78rem;
}

body.single-product .product_meta a {
  color: var(--ecd-ink);
  text-underline-offset: 4px;
}

body.single-product .wp-block-woocommerce-product-details {
  margin-top: clamp(34px, 5vw, 60px);
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--ecd-line);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
}

body.single-product .wp-block-woocommerce-product-details .tabs {
  gap: 8px;
  padding: 0;
}

body.single-product .wp-block-woocommerce-product-details .tabs li a {
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--ecd-pill);
  color: var(--ecd-ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

body.single-product .wp-block-woocommerce-product-details .tabs li.active a {
  background: var(--ecd-lavender);
  color: #111011;
}

body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel {
  padding-top: 22px;
}

body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel h2 {
  margin-top: 0;
}

/* Checkout form and legal links */

body.ecd-store-page .wc-block-components-text-input,
body.ecd-store-page .wc-blocks-components-select {
  display: flex !important;
  width: 100%;
  flex-direction: column;
}

body.ecd-store-page .wc-block-components-text-input label,
body.ecd-store-page .wc-blocks-components-select label {
  position: static !important;
  order: -1;
  margin: 0 0 7px !important;
  color: var(--ecd-ink-soft) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  transform: none !important;
}

body.ecd-store-page .wc-block-checkout__terms {
  margin-top: 20px;
  color: var(--ecd-ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

body.ecd-store-page .wc-block-checkout__terms a {
  color: var(--ecd-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Legal information */

.ecd-legal {
  padding-block: clamp(58px, 7vw, 96px);
  border-top: 1px solid var(--ecd-lavender);
  background: var(--ecd-paper-soft);
}

.ecd-legal__header {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.ecd-legal__kicker,
.ecd-legal__tag {
  margin: 0 0 12px;
  color: var(--ecd-ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ecd-legal__header h2 {
  margin: 0;
  font-family: var(--ecd-font-serif);
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.ecd-legal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ecd-legal__card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(22px, 2.7vw, 32px);
  border: 1px solid var(--ecd-lavender);
  border-radius: var(--ecd-radius);
  background: var(--ecd-paper);
}

.ecd-legal__card h3 {
  margin: 0;
  font-family: var(--ecd-font-serif);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ecd-legal__card > p:not(.ecd-legal__tag) {
  margin: 15px 0 0;
  color: var(--ecd-ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.ecd-legal__link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ecd-ink);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.ecd-legal__link:hover {
  color: var(--ecd-ink-soft);
}

.ecd-store-footer {
  padding-block: 46px;
  border-top: 1px solid var(--ecd-lavender);
  background: var(--ecd-paper);
  color: var(--ecd-ink);
}

.ecd-store-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.ecd-store-footer__brand {
  justify-self: start;
  color: var(--ecd-ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ecd-store-footer p {
  margin: 0;
  color: var(--ecd-ink-muted);
  font-size: 0.8rem;
  text-align: center;
}

.ecd-store-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.ecd-store-footer nav a {
  color: var(--ecd-ink-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.ecd-store-footer nav a:hover {
  color: var(--ecd-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .ecd-store-nav {
    display: none;
  }

  .ecd-store-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .ecd-store-mobile-nav {
    padding: 10px var(--ecd-gutter) 18px;
    border-top: 1px solid var(--ecd-line-soft);
  }

  .ecd-store-mobile-nav:not([hidden]) {
    display: block;
  }

  .ecd-store-mobile-nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  body.ecd-store-page .wc-block-components-sidebar-layout {
    display: flex;
    flex-direction: column;
  }

  body.ecd-store-page .wc-block-components-sidebar {
    width: 100%;
  }

  body.ecd-store-page .woocommerce ul.products,
  body.ecd-store-page .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product main .wp-block-columns {
    flex-direction: column;
    align-items: stretch;
  }

  body.single-product main .wp-block-columns > .wp-block-column:last-child {
    position: static;
  }

  .ecd-legal__grid {
    grid-template-columns: 1fr;
  }

  .ecd-legal__card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .ecd-store-header__inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 10px;
  }

  .ecd-store-brand img {
    width: 136px;
  }

  .ecd-store-actions {
    margin-left: auto;
  }

  .ecd-store-account,
  .ecd-store-theme {
    display: none;
  }

  .ecd-store-cart {
    min-height: 40px;
    padding-inline: 12px;
  }

  .ecd-store-hero {
    padding-block: 38px 42px;
  }

  .ecd-store-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
    line-height: 0.98;
  }

  .ecd-store-hero p {
    margin-top: 18px;
  }

  body.ecd-store-page main#wp--skip-link--target {
    padding-block: 34px 70px !important;
  }

  body.ecd-store-page .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    row-gap: 10px;
  }

  body.ecd-store-page .wc-block-cart-item__product {
    grid-column: 2 / -1;
  }

  body.ecd-store-page .wc-block-cart-item__total {
    grid-column: 2 / -1;
    padding-left: 0;
    padding-right: 0;
    font-weight: 600;
    text-align: left;
  }

  body.ecd-store-page .woocommerce ul.products,
  body.ecd-store-page .wc-block-product-template {
    grid-template-columns: 1fr;
  }

  body.single-product main .wp-block-columns > .wp-block-column:last-child {
    padding: 22px;
  }

  body.single-product .wp-block-woocommerce-product-details {
    padding: 22px;
  }

  .ecd-legal {
    padding-block: 52px;
  }

  .ecd-store-footer__grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ecd-store-footer p {
    text-align: left;
  }

  .ecd-store-footer nav {
    justify-content: flex-start;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .ecd-store-header {
    background: var(--ecd-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
