/* Martin Schwartz base styles */

:root {
  --ms-color-body: #eaecee;
  --ms-color-page: #ffffff;
  --ms-color-text: #1f2930;
  --ms-color-muted: #68717a;
  --ms-color-border: #dce2e6;
  --ms-color-panel: #ffffff;
  --ms-color-product-bg: #ffffff;
  --ms-color-soft-gray: #e2e6e8;
  --ms-color-input: #dfe3e5;
  --ms-color-cream: #fbf4e4;
  --ms-color-cream-dark: #f4ead2;
  --ms-color-green: #dceee8;
  --ms-color-green-dark: #cde3db;
  --ms-color-navy: #00334b;

  --ms-color-error: #7f2633;
  --ms-color-error-bg: #f5dee1;
  --ms-color-error-border: #e9bdc3;

  --ms-font-body: "Karla", Arial, sans-serif;
  --ms-font-heading: "Montserrat", Arial, sans-serif;
  --ms-font-button: "Montserrat", Arial, sans-serif;
  --ms-font-mono: "Karla", Arial, sans-serif;
  --ms-container: 1420px;
  --ms-wide-container: 1420px;
  --ms-container-gutter: 40px;
  --ms-header-height: 132px;

  --ms-space-page: clamp(42px, 6vw, 84px);
  --ms-transition: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ms-color-body);
  color: var(--ms-color-text);
  font-family: var(--ms-font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

body.ms-menu-is-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    opacity var(--ms-transition),
    color var(--ms-transition),
    background-color var(--ms-transition);
}

a:hover {
  opacity: 0.72;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  border-radius: 0;
}

.ms-container {
  width: min(100% - var(--ms-container-gutter), var(--ms-container));
  margin-inline: auto;
}

.ms-container--wide {
  width: min(100% - var(--ms-container-gutter), var(--ms-wide-container));
  margin-inline: auto;
}

.ms-site-wrap {
  max-width: var(--ms-container);
  margin-inline: auto;
  background: var(--ms-color-page);
}

@media (min-width: 1420px) {
  :root {
    --ms-container-gutter: 0px;
  }
  .ms-site-wrap {
    padding-inline: 40px;
  }
}

.ms-main {
  min-height: 50vh;
}

.ms-section {
  padding-block: var(--ms-space-page);
}

.ms-placeholder {
  padding: 80px 0;
  text-align: center;
}

.ms-page-title,
.woocommerce-products-header__title,
.ms-entry__title {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Typography system
   Karla: readable body, forms, descriptions, footer text.
   Montserrat: headings, navigation, product names, labels and buttons. */
h1,
h2,
h3,
h4,
h5,
h6,
.ms-page-title,
.woocommerce-products-header__title,
.ms-entry__title,
.site-navigation,
.ms-site-header,
.ms-footer__title,
.ms-product-card__title,
.ms-category-card__title,
.ms-single-product__title,
.ms-cart-page h1,
.ms-cart-page h2,
.ms-cart-totals h2,
.ms-checkout-page h1,
.ms-checkout-page h2,
.ms-account-page h1,
.ms-account-page h2,
.ms-page-sidebar,
.ms-news-item__title,
.ms-store-list__title {
  font-family: var(--ms-font-heading);
}

.ms-button,
.button,
button.button,
input[type="submit"],
.woocommerce button.button,
.woocommerce a.button,
button,
.ms-product-card__action,
.ms-product-card__add,
.ms-cart-proceed,
.ms-place-order {
  font-family: var(--ms-font-button);
}

input,
select,
textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  font-family: var(--ms-font-body);
}

.ms-button,
.button,
button.button,
input[type="submit"],
.woocommerce button.button,
.woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--ms-color-cream-dark);
  color: var(--ms-color-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    opacity var(--ms-transition),
    background-color var(--ms-transition);
}

.ms-button:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: var(--ms-color-cream);
  opacity: 1;
  text-decoration: none;
}

.woocommerce a.add_to_cart_button,
.woocommerce button.single_add_to_cart_button {
  background: var(--ms-color-cream-dark) !important;
  color: var(--ms-color-text) !important;
}

.woocommerce a.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover {
  background: var(--ms-color-cream) !important;
}

.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.ms-single-product .woocommerce-info,
.ms-single-product .woocommerce-message,
.ms-single-product .woocommerce-error,
.ms-home .woocommerce-info,
.ms-home .woocommerce-message,
.ms-home .woocommerce-error {
  display: flex;
  gap: 5px;
  padding: 16px;
  border: 0;
  background: var(--ms-color-green);
  color: var(--ms-color-text);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: left;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error,
.ms-single-product .woocommerce-error,
.ms-home .woocommerce-error {
  flex-direction: column;
  background-color: var(--ms-color-error-bg);
  color: var(--ms-color-error);
}

.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .woocommerce-message::before,
.woocommerce-cart .woocommerce-error::before,
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-error::before,
.ms-single-product .woocommerce-info::before,
.ms-single-product .woocommerce-message::before,
.ms-single-product .woocommerce-error::before,
.ms-home .woocommerce-info::before,
.ms-home .woocommerce-message::before,
.ms-home .woocommerce-error::before {
  display: none;
}

.woocommerce-cart .woocommerce-info a,
.woocommerce-cart .woocommerce-message a,
.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a,
.ms-single-product .woocommerce-info a,
.ms-single-product .woocommerce-message a,
.ms-home .woocommerce-info a,
.ms-home .woocommerce-message a {
  flex: 0 0 auto;
  float: right;
  margin-left: auto;
  color: var(--ms-color-text);
  text-decoration: none;
}

.woocommerce-cart .woocommerce-info a:focus-visible,
.woocommerce-cart .woocommerce-message a:focus-visible,
.woocommerce-checkout .woocommerce-info a:focus-visible,
.woocommerce-checkout .woocommerce-message a:focus-visible,
.ms-single-product .woocommerce-info a:focus-visible,
.ms-single-product .woocommerce-message a:focus-visible,
.ms-home .woocommerce-info a:focus-visible,
.ms-home .woocommerce-message a:focus-visible {
  outline: 1px solid rgba(31, 41, 48, 0.55);
  outline-offset: 3px;
}

.ms-ratio-7-10,
.product-card__image,
.category-card__image {
  aspect-ratio: 7 / 10;
  background: var(--ms-color-product-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ms-ratio-7-10 img,
.product-card__image img,
.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ms-subtle-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
}

.skip-link:focus {
  position: fixed !important;
}

.ms-product-archive .woocommerce-message {
  display: flex;
  justify-content: space-between;
}

.ms-product-archive .woocommerce-message::before {
  display: block;
}

.ms-product-archive .woocommerce-message::after {
  display: none;
}

@media (max-width: 900px) {
  .ms-product-archive .woocommerce-message {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ms-product-archive .woocommerce-message a {
    grid-column: 1 / -1;
  }
}

/** Utilities **/
.no-top-space {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hidden {
  display: none;
}
