@font-face {
  font-family: "EP Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "EP Cormorant";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}

:root {
  --ep-ivory: #f5f1e8;
  --ep-paper: #fffdf8;
  --ep-ink: #112a46;
  --ep-ink-2: #223d59;
  --ep-teal: #0e8582;
  --ep-teal-dark: #086b69;
  --ep-coral: #d96649;
  --ep-muted: #617080;
  --ep-line: #d9d2c4;
  --ep-shadow: 0 24px 60px rgba(17, 42, 70, 0.12);
}

body.ep-storefront-preview,
body.ep-storefront-test {
  background: var(--ep-ivory);
  color: var(--ep-ink);
}

body.ep-catalog-review-page {
  margin: 0;
}

.ep-exact-embroidery-text {
  white-space: pre-wrap;
  white-space: break-spaces;
  overflow-wrap: anywhere;
}

.ep-test-mode-banner {
  position: relative;
  z-index: 9999;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  background: var(--ep-teal-dark);
  color: #fff;
  font: 800 11px/1.2 "EP Geist", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-align: center;
}

.ep-woo-configurator {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--ep-line);
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: "EP Geist", Arial, sans-serif;
}

.ep-woo-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ep-woo-configurator label {
  display: grid;
  gap: 7px;
  color: var(--ep-ink-2);
  font-size: 13px;
  font-weight: 750;
}

.ep-woo-configurator label > span,
.ep-woo-configurator legend + span {
  color: var(--ep-coral);
}

.ep-woo-configurator input[type="text"],
.ep-woo-configurator select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ep-line);
  border-radius: 0;
  background: #fff;
  color: var(--ep-ink);
}

.ep-woo-configurator fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ep-woo-configurator legend {
  margin-bottom: 10px;
  color: var(--ep-ink);
  font: 600 25px/1 "EP Cormorant", Georgia, serif;
}

.ep-woo-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.ep-woo-choice-grid label {
  position: relative;
  cursor: pointer;
}

.ep-woo-choice-grid input {
  position: absolute;
  opacity: 0;
}

.ep-woo-choice-grid span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--ep-line);
  color: var(--ep-ink);
}

.ep-woo-choice-grid input:checked + span {
  border-color: var(--ep-teal);
  box-shadow: inset 0 0 0 1px var(--ep-teal);
}

.ep-woo-choice-grid small {
  color: var(--ep-muted);
  font-weight: 500;
}

.ep-woo-text-options {
  position: relative;
  padding: 18px;
  border-left: 3px solid var(--ep-teal);
  background: #edf7f4;
}

.ep-woo-text-options[hidden],
.ep-woo-logo-notice[hidden] {
  display: none !important;
}

.ep-woo-fee {
  margin-top: 14px;
  color: var(--ep-ink);
  font-family: "EP Cormorant", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.ep-woo-fee span {
  color: var(--ep-muted);
  font: 600 13px/1 "EP Geist", Arial, sans-serif;
}

.ep-woo-logo-notice {
  padding: 14px;
  border: 1px solid var(--ep-coral);
  background: #fff4ee;
  color: #743b2c;
  font-weight: 650;
}

.ep-single-shell,
.ep-commerce-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 36px auto 80px;
  color: var(--ep-ink);
  font-family: "EP Geist", Arial, sans-serif;
}

.ep-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--ep-muted);
  font-size: 13px;
}

.ep-breadcrumb a {
  color: var(--ep-teal-dark);
  text-decoration: none;
}

.ep-single-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: 50px;
  align-items: start;
}

.ep-single-visual {
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 50px;
  border: 1px solid var(--ep-line);
  background: #efede7;
  text-align: center;
}

.ep-single-visual img {
  width: 145px;
  opacity: 0.38;
}

.ep-single-visual p {
  max-width: 390px;
  color: var(--ep-muted);
}

.ep-single-visual a {
  color: var(--ep-teal-dark);
  font-weight: 750;
}

.ep-single-summary {
  padding: 36px;
  border-left: 4px solid var(--ep-coral);
  background: var(--ep-paper);
}

.ep-single-summary h1,
.ep-commerce-shell h1,
.ep-single-details h2 {
  margin: 0;
  color: var(--ep-ink);
  font-family: "EP Cormorant", Georgia, serif;
  font-weight: 600;
}

.ep-single-summary h1 {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.ep-single-price {
  margin: 20px 0 12px;
  font-size: 27px;
  font-weight: 800;
}

.ep-single-description {
  color: var(--ep-muted);
}

.ep-test-cart-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.ep-test-cart-actions .quantity input {
  min-height: 50px;
  width: 74px;
}

.ep-test-cart-actions button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--ep-teal);
  color: #fff;
  font-weight: 800;
}

.ep-no-charge-note {
  margin: 12px 0 0;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-single-details {
  max-width: 780px;
  margin-top: 45px;
  padding-top: 34px;
  border-top: 1px solid var(--ep-line);
}

.ep-single-details h2 {
  font-size: 38px;
}

.ep-commerce-shell > header {
  max-width: 860px;
  margin-bottom: 30px;
}

.ep-commerce-shell h1 {
  font-size: clamp(54px, 6vw, 82px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.ep-commerce-shell > header > p:last-child {
  color: var(--ep-muted);
  font-size: 17px;
}

.ep-commerce-content {
  padding: 28px;
  border: 1px solid var(--ep-line);
  background: var(--ep-paper);
}

.ep-commerce-content .woocommerce table.shop_table,
.ep-commerce-content .woocommerce form.checkout_coupon,
.ep-commerce-content .woocommerce form.login,
.ep-commerce-content .woocommerce form.register {
  border-radius: 0;
}

.ep-site-notice {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background: var(--ep-ink);
  color: #f2faf7;
  font: 800 11px/1.2 "EP Geist", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-align: center;
}

.ep-site-header,
.ep-site-footer {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-family: "EP Geist", Arial, sans-serif;
}

.ep-site-header {
  min-height: 88px;
  border-bottom: 1px solid var(--ep-line);
}

.ep-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ep-ink);
  font: 700 28px/1 "EP Cormorant", Georgia, serif;
  text-decoration: none;
}

.ep-site-brand img {
  width: 46px;
  height: 40px;
  object-fit: contain;
}

.ep-site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ep-site-header nav a {
  color: var(--ep-ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.ep-site-header nav a.is-current {
  color: var(--ep-teal-dark);
}

.ep-site-header nav a.ep-site-quote {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--ep-ink);
}

.ep-site-footer {
  min-height: 118px;
  border-top: 1px solid var(--ep-line);
  color: var(--ep-ink);
}

.ep-site-footer > a:not(.ep-site-brand) {
  color: var(--ep-ink);
  font-weight: 700;
  text-decoration: none;
}

body.ep-storefront-preview .woocommerce a.button,
body.ep-storefront-preview .woocommerce button.button,
body.ep-storefront-preview .woocommerce input.button {
  border-radius: 0;
  background: var(--ep-teal);
  color: #fff;
  font-family: "EP Geist", Arial, sans-serif;
}

.ep-catalog-shell,
.ep-preview-closed {
  width: min(1380px, calc(100% - 48px));
  margin: 36px auto 80px;
  color: var(--ep-ink);
  font-family: "EP Geist", Arial, sans-serif;
}

.ep-preview-closed {
  max-width: 780px;
  padding: 90px 32px;
  text-align: center;
}

.ep-preview-closed h1,
.ep-catalog-shell h1,
.ep-catalog-shell h2 {
  color: var(--ep-ink);
  font-family: "EP Cormorant", Georgia, serif;
  font-weight: 600;
}

.ep-preview-closed h1 {
  margin: 10px 0 20px;
  font-size: clamp(50px, 7vw, 82px);
  line-height: 0.95;
}

.ep-preview-closed a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid var(--ep-ink);
  color: var(--ep-ink);
  font-weight: 700;
  text-decoration: none;
}

.ep-preview-bar {
  margin-bottom: 34px;
  padding: 10px 16px;
  background: var(--ep-ink);
  color: #f5fbf9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.ep-catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 64px;
  align-items: end;
  padding: 20px 0 38px;
  border-bottom: 1px solid var(--ep-line);
}

.ep-eyebrow,
.ep-product-kicker {
  margin: 0 0 14px;
  color: var(--ep-teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ep-catalog-header h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(48px, 5.6vw, 82px);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.ep-catalog-header p {
  max-width: 850px;
  margin: 0;
  color: var(--ep-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ep-catalog-header aside {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-left: 4px solid var(--ep-coral);
  background: var(--ep-paper);
  box-shadow: var(--ep-shadow);
}

.ep-catalog-header aside strong {
  font: 600 26px/1.1 "EP Cormorant", Georgia, serif;
}

.ep-catalog-header aside span {
  color: var(--ep-muted);
  line-height: 1.55;
}

.ep-catalog-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 0.8fr) auto auto;
  gap: 14px;
  align-items: end;
  margin: 28px 0 20px;
}

.ep-catalog-filters label {
  display: grid;
  gap: 7px;
  color: var(--ep-ink-2);
  font-size: 12px;
  font-weight: 750;
}

.ep-catalog-filters input,
.ep-catalog-filters select,
.ep-catalog-filters button,
.ep-catalog-filters a {
  min-height: 46px;
  border: 1px solid var(--ep-line);
  border-radius: 0;
  background: var(--ep-paper);
  color: var(--ep-ink);
  font: 600 14px/1 "EP Geist", Arial, sans-serif;
}

.ep-catalog-filters input,
.ep-catalog-filters select {
  width: 100%;
  padding: 0 13px;
}

.ep-catalog-filters button,
.ep-catalog-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  cursor: pointer;
  text-decoration: none;
}

.ep-catalog-filters button {
  border-color: var(--ep-teal);
  background: var(--ep-teal);
  color: #fff;
}

.ep-catalog-count {
  margin: 18px 0;
  color: var(--ep-muted);
}

.ep-catalog-count strong {
  color: var(--ep-ink);
  font-family: "EP Cormorant", Georgia, serif;
  font-size: 28px;
}

.ep-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ep-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ep-line);
  background: var(--ep-paper);
}

.ep-product-image {
  aspect-ratio: 4 / 4.25;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #f1eee7;
}

.ep-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.ep-product-card:hover .ep-product-image img {
  transform: scale(1.025);
}

.ep-product-image span {
  color: var(--ep-muted);
}

.ep-product-card-body {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 280px;
  padding: 20px;
}

.ep-product-kicker {
  margin: 0;
}

.ep-product-card h2 {
  min-height: 58px;
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ep-product-card a {
  color: inherit;
  text-decoration: none;
}

.ep-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ep-product-tags span {
  padding: 4px 7px;
  background: #e5f0ed;
  color: var(--ep-teal-dark);
  font-size: 10px;
  font-weight: 750;
}

.ep-product-price {
  margin-top: auto;
  color: var(--ep-ink);
  font-weight: 800;
}

.ep-product-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-teal);
  color: #fff !important;
  font-weight: 750;
}

.ep-product-card small {
  color: var(--ep-muted);
  text-align: center;
}

.ep-product-review {
  max-width: 1440px;
}

.ep-back-link {
  display: inline-flex;
  margin: 0 0 24px;
  color: var(--ep-teal-dark);
  font-weight: 750;
  text-decoration: none;
}

.ep-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  gap: 44px;
  align-items: start;
}

.ep-review-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ep-review-gallery img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: contain;
  background: #f0ede7;
}

.ep-review-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 8 / 6.8;
}

.ep-review-summary {
  position: sticky;
  top: 32px;
  padding: 38px;
  border: 1px solid var(--ep-line);
  border-left: 4px solid var(--ep-coral);
  background: var(--ep-paper);
}

.ep-review-summary h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 4.5vw, 68px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.ep-review-price {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 800;
}

.ep-review-data {
  display: grid;
  gap: 0;
  margin: 26px 0;
  border-top: 1px solid var(--ep-line);
}

.ep-review-data div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ep-line);
}

.ep-review-data dt {
  color: var(--ep-muted);
  font-weight: 700;
}

.ep-review-data dd {
  margin: 0;
}

.ep-embroidery-options {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--ep-line);
}

.ep-embroidery-options h2 {
  margin: 0 0 14px;
  font-size: 27px;
}

.ep-embroidery-options > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ep-embroidery-options span {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--ep-line);
  text-align: center;
}

.ep-embroidery-options p {
  margin: 14px 0 0;
  color: var(--ep-muted);
  font-size: 13px;
}

.ep-locked-action {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--ep-teal);
  background: #edf7f4;
  color: var(--ep-teal-dark);
}

.ep-locked-action span {
  font-size: 13px;
}

.ep-review-description {
  max-width: 760px;
  margin-top: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--ep-line);
}

.ep-review-description h2 {
  font-size: 36px;
}

.ep-review-description p {
  color: var(--ep-ink-2);
}

@media (max-width: 1120px) {
  .ep-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ep-review-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .ep-catalog-shell {
    width: min(100% - 30px, 1380px);
    margin-top: 20px;
  }

  .ep-catalog-header,
  .ep-review-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ep-catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

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

  .ep-review-summary {
    position: static;
  }

  .ep-site-header {
    min-height: auto;
    align-items: flex-start;
    padding: 20px 0;
  }

  .ep-site-header nav {
    gap: 12px 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .ep-single-layout {
    grid-template-columns: 1fr;
  }

  .ep-single-visual {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .ep-site-header,
  .ep-site-footer {
    width: min(100% - 30px, 1380px);
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .ep-site-header nav {
    justify-content: flex-start;
  }

  .ep-site-header nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .ep-catalog-header h1 {
    font-size: 46px;
  }

  .ep-catalog-filters,
  .ep-product-grid,
  .ep-review-gallery,
  .ep-embroidery-options > div {
    grid-template-columns: 1fr;
  }

  .ep-review-gallery img:first-child {
    grid-column: auto;
  }

  .ep-review-summary {
    padding: 24px;
  }

  .ep-review-data div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ep-woo-config-grid,
  .ep-woo-choice-grid {
    grid-template-columns: 1fr;
  }

  .ep-single-shell,
  .ep-commerce-shell {
    width: min(100% - 30px, 1320px);
  }

  .ep-single-summary,
  .ep-commerce-content {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-product-image img {
    transition: none;
  }
}
