/** Shopify CDN: Minification failed

Line 868:0 Unexpected "}"

**/
/* ============================================================
   Swatch Tray â€” Emily Daws Textiles
   Phase 1: bottom-anchored persistent tray + grid pip + PDP add
   ============================================================ */

:root {
  --st-paper: #faf7f1;
  --st-paper-deep: #f3ede2;
  --st-ink: #2a2520;
  --st-ink-soft: #5a5048;
  --st-ink-mute: #8a8077;
  --st-line: #e6dfd2;
  --st-line-soft: #efe8db;
  --st-accent: #2a2520;
  --st-shadow: 0 -8px 24px rgba(42, 37, 32, 0.06);
  --st-radius: 0px;
  --st-radius-pip: 999px;
  --st-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --st-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --st-tracking: 0.18em;
  --st-ease: cubic-bezier(.4, 0, .2, 1);
  --st-tray-height: 120px;
  --st-tray-height-collapsed: 38px;
}

/* ============================================================
   Swatch Shop grid
   ============================================================ */

.swatch-shop {
  background: #fff;
  padding-bottom: calc(var(--st-tray-height) + 32px);
}

.swatch-shop__header {
  background: var(--st-paper);
  padding: 56px 24px 48px;
  text-align: center;
}

.swatch-shop__heading {
  font-family: var(--st-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.01em;
  color: var(--st-ink);
  margin: 0 0 12px;
}

.swatch-shop__subheading {
  font-family: var(--st-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--st-ink-soft);
  max-width: 540px;
  margin: 0 auto;
}

.swatch-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--st-line-soft);
  font-family: var(--st-sans);
  font-size: 13px;
  color: var(--st-ink-soft);
}

.swatch-shop__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swatch-shop__breadcrumb a {
  color: var(--st-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.swatch-shop__breadcrumb a:hover { color: var(--st-ink); }

.swatch-shop__count { color: var(--st-ink-mute); }

.swatch-shop__sort select {
  font: inherit;
  background: transparent;
  border: none;
  color: var(--st-ink-soft);
  cursor: pointer;
}

.swatch-shop__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 24px 0;
}

@media (max-width: 749px) {
  .swatch-shop__layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

.swatch-shop__filters {
  font-family: var(--st-sans);
  font-size: 13px;
}

.swatch-shop__filter {
  border-bottom: 1px solid var(--st-line-soft);
  padding: 12px 0;
}
.swatch-shop__filter summary {
  cursor: pointer;
  color: var(--st-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.swatch-shop__filter summary::-webkit-details-marker { display: none; }
.swatch-shop__filter summary::after {
  content: "â€º";
  color: var(--st-ink-mute);
  transform: rotate(90deg);
  transition: transform .2s var(--st-ease);
}
.swatch-shop__filter[open] summary::after { transform: rotate(-90deg); }

.swatch-shop__filter-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.swatch-shop__filter-list a {
  color: var(--st-ink-soft);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}
.swatch-shop__filter-list a.is-active { color: var(--st-ink); font-weight: 500; }
.swatch-shop__filter-count { color: var(--st-ink-mute); }

.swatch-shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 990px) {
  .swatch-shop__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 749px) {
  .swatch-shop__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ============================================================
   Swatch tile (grid cell)
   ============================================================ */

.swatch-tile {
  position: relative;
  display: flex;
  flex-direction: column;
}

.swatch-tile__link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--st-paper-deep);
}

.swatch-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--st-ease);
}
.swatch-tile__img--blank { background: var(--st-paper-deep); }

.swatch-tile__title {
  font-family: var(--st-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--st-ink);
  margin: 12px 0 0;
  text-align: center;
}
.swatch-tile__title a {
  color: inherit;
  text-decoration: none;
}
.swatch-tile__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* +/Ã— pip â€” always visible, top-right corner */
.swatch-tile__pip {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--st-radius-pip);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--st-line);
  color: var(--st-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
  transition: background .2s var(--st-ease), color .2s var(--st-ease), border-color .2s var(--st-ease);
}
.swatch-tile__pip:hover { background: #fff; }
.swatch-tile__pip:focus-visible {
  outline: 2px solid var(--st-ink);
  outline-offset: 2px;
}

.swatch-tile__pip-plus { display: inline-block; }
.swatch-tile__pip-x { display: none; }

.swatch-tile__pip[aria-pressed="true"] {
  background: var(--st-ink);
  border-color: var(--st-ink);
  color: #fff;
}
.swatch-tile__pip[aria-pressed="true"] .swatch-tile__pip-plus { display: none; }
.swatch-tile__pip[aria-pressed="true"] .swatch-tile__pip-x { display: inline-block; }

/* ============================================================
   PDP "Add to Swatch Tray" button
   ============================================================ */

.swatch-pdp-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--st-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  color: var(--st-ink);
  background: transparent;
  border: 1px solid var(--st-ink);
  padding: 14px 22px;
  cursor: pointer;
  transition: background .2s var(--st-ease), color .2s var(--st-ease);
}
.swatch-pdp-add:hover { background: var(--st-ink); color: #fff; }
.swatch-pdp-add__plus { font-size: 16px; line-height: 1; }
.swatch-pdp-add [data-label-added] { display: none; }
.swatch-pdp-add.is-in-tray [data-label-add] { display: none; }
.swatch-pdp-add.is-in-tray [data-label-added] { display: inline; }
.swatch-pdp-add.is-in-tray {
  background: var(--st-ink);
  color: #fff;
}

/* ----------------------------------------------------------------
   When our PDP hijack lands on the native Prestige submit button,
   the button still carries the theme's own classes (.product-form__submit,
   .button, .button--primary, etc.) and those styles win on :hover â€”
   producing the dark-on-dark hover state seen in the screenshot.
   Force cream/white text in ALL button states so the label stays
   readable on the brown background.
   ---------------------------------------------------------------- */
button.swatch-pdp-add,
button.swatch-pdp-add:hover,
button.swatch-pdp-add:focus,
button.swatch-pdp-add:active,
button.swatch-pdp-add:focus-visible,
button.swatch-pdp-add[aria-pressed="true"],
button.swatch-pdp-add[aria-pressed="true"]:hover {
  color: #fff !important;
}
/* And lock the background to the brand brown ink in every state so the
   theme's :hover (which lightens or shifts hue) can't darken text
   contrast further. */
button.swatch-pdp-add,
button.swatch-pdp-add:hover,
button.swatch-pdp-add:focus,
button.swatch-pdp-add:active,
button.swatch-pdp-add:focus-visible {
  background-color: var(--st-ink) !important;
  border-color: var(--st-ink) !important;
}

/* ============================================================
   Bottom tray
   ============================================================ */

.swatch-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--st-paper);
  border-top: 1px solid var(--st-line);
  box-shadow: var(--st-shadow);
  font-family: var(--st-sans);
  color: var(--st-ink);
  transform: translateY(0);
  transition: transform .32s var(--st-ease);
}

/* Pop-and-drop animation states (PDP) */
.swatch-tray.is-popped {
  transform: translateY(100%);
}
.swatch-tray.is-popped.is-visible {
  transform: translateY(0);
}

.swatch-tray__handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--st-line-soft);
}
.swatch-tray__handle:focus-visible {
  outline: 2px solid var(--st-ink);
  outline-offset: -2px;
}

.swatch-tray__handle-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.swatch-tray__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  color: var(--st-ink);
}
.swatch-tray__count {
  font-size: 11px;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  color: var(--st-ink-mute);
}

.swatch-tray__chev {
  color: var(--st-ink-soft);
  transition: transform .2s var(--st-ease);
}
.swatch-tray.is-collapsed .swatch-tray__chev { transform: rotate(180deg); }

.swatch-tray__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 24px 20px;
  /* Pure white well so swatch photos (also #fff) sit flush against the row
     while the header band above retains the calm putty paper tone. */
  background: #ffffff;
}

@media (max-width: 749px) {
  .swatch-tray__body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px 16px;
  }
}

.swatch-tray__strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.swatch-tray__empty {
  font-style: italic;
  font-family: var(--st-serif);
  font-size: 16px;
  color: var(--st-ink-mute);
  padding: 12px 0;
}

.swatch-tray-tile {
  position: relative;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  /* Match the swatch row's pure white so any pre-image flash is invisible */
  background: #ffffff;
  animation: swatchTrayTileIn 220ms var(--st-ease) both;
}
@keyframes swatchTrayTileIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.swatch-tray-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Cross-fade in once the image actually decodes â€” prevents the flash of
     bare white box, replacing it with a calm fade. */
  animation: swatchTrayImgIn 220ms var(--st-ease) both;
}
@keyframes swatchTrayImgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.swatch-tray-tile__img--blank { background: #ffffff; }

.swatch-tray-tile__remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  color: var(--st-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.swatch-tray-tile__remove:hover { background: var(--st-ink); color: var(--st-paper); }

.swatch-tray__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-end;
}

@media (max-width: 749px) {
  .swatch-tray__summary {
    justify-content: space-between;
    width: 100%;
  }
}

.swatch-tray__subtotal {
  text-align: right;
  display: grid;
  gap: 2px;
}
.swatch-tray__subtotal-label {
  font-size: 10px;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  color: var(--st-ink-mute);
}
.swatch-tray__subtotal-value {
  font-family: var(--st-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--st-ink);
  line-height: 1;
}
.swatch-tray__note {
  font-size: 11px;
  color: var(--st-ink-mute);
  margin: 4px 0 0;
  max-width: 200px;
}

.swatch-tray__form { margin: 0; }

.swatch-tray__cta {
  /* Works for both <button> and <a> renderings of the CTA */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--st-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  background: var(--st-ink);
  color: #fff;
  border: 1px solid var(--st-ink);
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none; /* reset for <a> rendering */
  transition: opacity .2s var(--st-ease);
}
.swatch-tray__cta:hover { opacity: .9; color: #fff; }
.swatch-tray__cta:visited { color: #fff; }
.swatch-tray__cta--disabled,
.swatch-tray__cta:disabled {
  opacity: .35;
  pointer-events: none;
}

/* Collapsed state â€” only the handle strip visible */
.swatch-tray.is-collapsed .swatch-tray__body { display: none; }

/* ============================================================
   Floating pill (off-collection, with items)
   ============================================================ */

.swatch-tray-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--st-ink);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-family: var(--st-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--st-tracking);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--st-radius-pip);
  box-shadow: 0 6px 18px rgba(42, 37, 32, 0.18);
  transition: transform .2s var(--st-ease), box-shadow .2s var(--st-ease);
}
.swatch-tray-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 37, 32, 0.22);
}
.swatch-tray-pill__count {
  background: var(--st-paper);
  color: var(--st-ink);
  border-radius: var(--st-radius-pip);
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: 0;
}

@media (max-width: 749px) {
  .swatch-tray-pill {
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
}

/* ============================================================
   Toast
   ============================================================ */

.swatch-tray-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--st-tray-height) + 24px);
  transform: translateX(-50%) translateY(20px);
  background: var(--st-ink);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--st-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--st-ease), transform .2s var(--st-ease);
}
.swatch-tray-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Accessibility helpers
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .swatch-tray,
  .swatch-tray-pill,
  .swatch-tile__img,
  .swatch-tile__pip,
  .swatch-pip,
  .swatch-tray-toast {
    transition: none !important;
  }
}

/* ----------------------------------------------------------------------
   Injected pip â€” sits on top of Prestige's <product-card> tiles on the
   Swatch Shop collection. Always visible (per Emily's spec).
   ---------------------------------------------------------------------- */
.swatch-pip {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(42, 37, 32, 0.16);
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.94);
  color: #2a2520;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Must sit above Prestige's product-card link layer */
  z-index: 50;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(42, 37, 32, 0.10);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
/* Prestige's product-card link uses ::before/::after to make the whole tile
   clickable. Force our pip to sit on top of that pseudo-element. */
product-card .swatch-pip,
.product-card .swatch-pip {
  isolation: isolate;
}

/* Note: Prestige's native Quick view + Quick buy are disabled globally
   via Theme Settings â†’ Product card. The + pip is the single, intentional
   add path on Swatch Shop. Phase 3 will introduce a custom on-brand hover
   banner (pattern name, tier price, View details link) that does NOT
   interfere with the pip click. */
.swatch-pip:hover {
  background: #ffffff;
  transform: scale(1.05);
}
.swatch-pip:focus-visible {
  outline: 2px solid #2a2520;
  outline-offset: 2px;
}
.swatch-pip__icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}
/* Draw a + with two bars (rotates to Ã— when pressed) */
.swatch-pip__icon::before,
.swatch-pip__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease;
}
.swatch-pip__icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.swatch-pip__icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}
/* Pressed state â€” rotate to Ã— and shift palette to ink */
.swatch-pip[aria-pressed="true"] {
  background: #2a2520;
  color: #faf7f1;
  border-color: #2a2520;
}
.swatch-pip[aria-pressed="true"] .swatch-pip__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.swatch-pip[aria-pressed="true"] .swatch-pip__icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Mobile â€” slightly smaller pip */
@media (max-width: 749px) {
  .swatch-pip {
    width: 28px;
    height: 28px;
    top: 8px;
    left: 8px;
  }
  .swatch-pip__icon { width: 12px; height: 12px; }
  .swatch-pip__icon::before { width: 12px; }
  .swatch-pip__icon::after { height: 12px; }
}

/* ---- Swatch PDP rewire ------------------------------------------------ */
/* Helper line above the Add Swatch button on swatch PDPs */
.swatch-pdp-helper {
  font-size: 13px;
  line-height: 1.5;
  color: #6b6259;
  margin: 0 0 12px 0;
  max-width: 32em;
  font-family: inherit;
}

/* Subtle visual hint that the button is now a tray-add, not a checkout.
   Preserves Prestige's existing styling but adds a small visual cue when
   the swatch is already in the list. */
.swatch-pdp-add[aria-pressed="true"] {
  /* Slight tonal shift to signal "already added" without breaking Prestige */
  opacity: 0.85;
}
.product-card__substrate {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-top: 0.25rem;
  margin-bottom: 0.15rem;
  color: #2a2a2a;
  opacity: 1;
}

.product-card__price-per-yard {
  margin-top: 0.1rem;
  font-size: 0.9rem;
}

.product-card__substrate .lowercase-oz {
  text-transform: lowercase;
  letter-spacing: normal;
}

.product-card__info .v-stack {
  gap: 0.1rem;
}

.product-card__substrate {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0;
  color: #2a2a2a;
}

.product-card__price-per-yard {
  font-size: 0.8rem;
  margin: 0;
}

/* === Swatch CTA pill button === */

.product-card__swatch-cta-btn.swatch-pip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  position: static;
  padding: 0.7rem 1rem;
  background: #E8E2D4;
  color: #2D3B33;
  border: none;
  border-radius: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
  margin: 0.5rem 0;
  height: auto;
}

.product-card__swatch-cta-btn.swatch-pip:hover {
  background: #2D3B33;
  color: #F5F0E6;
}


.product-card__swatch-cta-btn.swatch-pip .swatch-pip__icon {
  display: none;
}


.product-card__swatch-cta-plus {
  font-size: 1rem;
  line-height: 1;
}


.product-card__swatch-cta-divider {
  opacity: 0.5;
}


.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] {
  background: #2D3B33;
  color: #F5F0E6;
}


/* Pressed state — hide divider + price; rotate the plus 45° to read as ×;
   replace the "Add Swatch" label with "Remove swatch". */
.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] .product-card__swatch-cta-divider,
.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] .product-card__swatch-cta-price {
  display: none;
}


.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] .product-card__swatch-cta-plus {
  display: inline-block;
  transform: rotate(45deg);
  color: #F5F0E6;
  font-weight: 400;
  transition: transform 200ms ease;
}


.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] .product-card__swatch-cta-label {
  font-size: 0;
  line-height: 0;
}


.product-card__swatch-cta-btn.swatch-pip[aria-pressed="true"] .product-card__swatch-cta-label::after {
  content: "Remove swatch";
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* Hide the legacy pip on product cards now that the pill CTA exists */
.product-card .swatch-pip:not(.product-card__swatch-cta-btn) {
  display: none !important;
}
}
/* === Trade chip === */

.trade-chip {
  display: inline-block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  padding: 0.15rem 0.45rem;
  margin-left: 0.4rem;
  background: #E8E2D4;
  color: #2D3B33;
  vertical-align: middle;
  line-height: 1.4;
}