/* ==========================================================================
   Earth Therapy — Components
   Reusable UI built on the tokens from snippets/theme-tokens.liquid.
   Section-specific styling lives in each section's own {% stylesheet %}.

   Same rule as base.css: no literal design values. Every colour, size,
   space, radius and duration comes from the scale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.et-announcement {
  --_bar-h: 38px;
  background: var(--et-accent-ink);
  color: var(--et-surface);
  font-size: var(--et-fs-xs);
}

.et-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--et-space-2xl);
  min-height: var(--_bar-h);
  padding-block: var(--et-space-xs);
}

/* The bar sits on the accent ink, so the global accent-ink focus ring would
   be invisible against it. Use the bar's own text colour, drawn inside so
   the bar's edges cannot clip it. */
.et-announcement :focus-visible {
  outline-color: currentColor;
  outline-offset: -3px;
}

.et-announcement__item {
  display: flex;
  align-items: center;
  gap: var(--et-space-3xs);
  margin: 0;
  font-size: var(--et-fs-2xs);
  font-weight: 500;
  letter-spacing: var(--et-ls-nav);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
}

/* Tablet: messages wrap and centre, no dividers. */
@media (min-width: 750px) and (max-width: 1099px) {
  .et-announcement .et-announcement__inner {
    flex-wrap: wrap;
    column-gap: var(--et-space-lg);
    row-gap: 0;
  }

  .et-announcement__item + .et-announcement__item::before {
    display: none;
  }
}

/* Desktop: messages sit on one line, evenly spaced, split by hairlines. */
@media (min-width: 750px) {
  .et-announcement__inner {
    gap: 0;
  }

  .et-announcement__item + .et-announcement__item::before {
    content: "";
    align-self: center;
    width: 1px;
    height: 12px;
    margin-inline: var(--et-space-xl);
    background: currentColor;
    opacity: 0.35;
  }
}

.et-announcement__item a {
  display: inline-flex;
  align-items: center;
  /* The link fills the bar's full height without making the bar taller. */
  min-height: var(--_bar-h);
  margin-block: calc(var(--et-space-xs) * -1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.et-announcement .et-container {
  position: relative;
}

.et-announcement__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--et-tap-target);
  color: inherit;
}

.et-announcement__toggle[hidden] {
  display: none;
}

.et-announcement__icon {
  width: 16px;
  height: 16px;
}

.et-announcement__toggle .et-announcement__icon--play,
.et-announcement__toggle.is-paused .et-announcement__icon--pause {
  display: none;
}

.et-announcement__toggle.is-paused .et-announcement__icon--play {
  display: block;
}

/* On small screens the messages rotate through one slot instead of wrapping. */
@media (max-width: 749px) {
  .et-announcement__inner {
    display: grid;
    gap: 0;
  }

  .et-announcement__item {
    grid-area: 1 / 1;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--et-dur-slow) var(--et-ease);
    pointer-events: none;
  }

  .et-announcement__item.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep the centred message clear of the control: it overlaps the content
     box only by what it does not already take from the gutter. */
  .et-announcement.has-toggle .et-announcement__inner {
    padding-inline: calc(var(--et-tap-target) - var(--et-gutter));
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* Stickiness lives on the Shopify section wrapper, applied from
   sections/header.liquid when the merchant enables it. A sticky box can only
   travel inside its own parent, and this <header> fills its section wrapper
   exactly, so sticking it here gave it no range to travel and it never
   actually stuck. Staying `relative` also keeps it the containing block for
   the absolutely positioned mega panel. */
.et-header {
  position: relative;
  z-index: var(--et-z-header);
  background: var(--et-surface);
  border-bottom: 1px solid var(--et-border);
  transition: box-shadow var(--et-dur) var(--et-ease);
}

.et-header.is-stuck {
  box-shadow: var(--et-shadow-xs);
}

.et-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--et-space-lg);
  min-height: var(--et-header-height);
  padding-block: var(--et-space-sm);
}

.et-header__logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  justify-self: start;
}

.et-header__logo img {
  width: var(--et-logo-width, 150px);
  height: auto;
}

@media (max-width: 989px) {
  .et-header__logo img {
    width: var(--et-logo-width-mobile, 110px);
  }
}

/* Text fallback wordmark, matching the packaging lockup:
   "EARTH" light, "THERAPY" bold, letterspaced. */
.et-wordmark {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-lg);
  font-weight: 300;
  letter-spacing: var(--et-ls-wider);
  text-transform: uppercase;
  line-height: 1;
  color: var(--et-text);
  white-space: nowrap;
}

.et-wordmark b {
  font-weight: 700;
}

.et-wordmark__tagline {
  display: block;
  margin-top: var(--et-space-3xs);
  font-size: var(--et-fs-3xs);
  font-weight: 400;
  letter-spacing: var(--et-ls-wider);
  color: var(--et-text-muted);
}

.et-wordmark__braille {
  width: 74px;
  margin-bottom: 5px;
  opacity: 0.75;
}

/* Primary navigation */
.et-nav {
  justify-self: center;
}

.et-nav__list {
  display: flex;
  align-items: center;
  gap: var(--et-space-3xs);
  list-style: none;
}

.et-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-3xs);
  padding: var(--et-space-sm) var(--et-space-md);
  border-radius: var(--et-radius-sm);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 500;
  transition: color var(--et-dur) var(--et-ease),
    background var(--et-dur) var(--et-ease);
}

.et-nav__link:hover,
.et-nav__item:focus-within > .et-nav__link,
.et-nav__link[aria-current='page'] {
  color: var(--et-accent-ink);
  background: var(--et-accent-soft);
}

.et-nav__item {
  position: relative;
}

.et-nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--et-dur) var(--et-ease);
}

.et-nav__item:hover .et-nav__chevron,
.et-nav__item:focus-within .et-nav__chevron {
  transform: rotate(180deg);
}

.et-nav__panel {
  position: absolute;
  top: calc(100% + var(--et-space-2xs));
  left: 0;
  min-width: 220px;
  padding: var(--et-space-xs);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius);
  box-shadow: var(--et-shadow-md);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--et-dur) var(--et-ease),
    transform var(--et-dur) var(--et-ease), visibility var(--et-dur);
}

/* With JavaScript, <et-menu> owns the disclosure: it removes [hidden] and
   sets .is-open, and the panel becomes visible from that one state class.
   Driving it from :hover/:focus-within instead left the panel display:block
   but still visibility:hidden whenever it had been opened by a tap on a
   device that does not focus buttons on click. */
.et-nav__item.is-open > .et-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Without JavaScript nothing ever clears [hidden] or sets .is-open, so the
   panels were unreachable. Under .no-js they revert to a plain CSS
   disclosure, reachable by pointer and by keyboard via :focus-within. Both
   panel types stay hidden until then, so the menu still opens one at a time. */
.no-js .et-nav__item:hover > .et-nav__panel[hidden],
.no-js .et-nav__item:focus-within > .et-nav__panel[hidden],
.no-js .et-nav__item:hover > .et-mega[hidden],
.no-js .et-nav__item:focus-within > .et-mega[hidden] {
  display: block;
}

.no-js .et-nav__item:hover > .et-nav__panel,
.no-js .et-nav__item:focus-within > .et-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.et-nav__panel a {
  display: block;
  padding: var(--et-space-xs) var(--et-space-sm);
  border-radius: var(--et-radius-sm);
  font-size: var(--et-fs-sm);
}

.et-nav__panel a:hover {
  background: var(--et-accent-soft);
  color: var(--et-accent-ink);
}

/* Header actions */
.et-header__actions {
  display: flex;
  align-items: center;
  gap: var(--et-space-3xs);
  justify-self: end;
}

.et-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--et-tap-target);
  height: var(--et-tap-target);
  border-radius: var(--et-radius-pill);
  color: var(--et-text);
  transition: background var(--et-dur) var(--et-ease),
    color var(--et-dur) var(--et-ease);
}

.et-icon-btn:hover {
  background: var(--et-accent-soft);
  color: var(--et-accent-ink);
}

.et-icon-btn svg {
  width: 21px;
  height: 21px;
}

.et-cart-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--et-radius-pill);
  background: var(--et-accent-ink);
  color: var(--et-surface);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-3xs);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.et-cart-count[data-count='0'] {
  display: none;
}

/* Hamburger */
.et-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--et-tap-target);
  height: var(--et-tap-target);
  padding: 0 11px;
}

.et-burger span {
  display: block;
  height: 1.5px;
  background: var(--et-text);
  border-radius: 2px;
  transition: transform var(--et-dur) var(--et-ease),
    opacity var(--et-dur-fast) var(--et-ease);
}

.et-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.et-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.et-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 989px) {
  .et-nav {
    display: none;
  }

  .et-burger {
    display: flex;
  }

  .et-header__logo {
    justify-self: center;
  }
}

/* --------------------------------------------------------------------------
   Overlay, shared by the mobile menu, cart drawer and search
   -------------------------------------------------------------------------- */

.et-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--et-z-overlay);
  background: rgba(var(--et-text-rgb), 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--et-dur) var(--et-ease), visibility var(--et-dur);
}

.et-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Drawer, shared by the mobile menu and cart
   -------------------------------------------------------------------------- */

.et-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: var(--et-z-drawer);
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  background: var(--et-surface);
  box-shadow: var(--et-shadow-lg);
  visibility: hidden;

  /* A drawer travels out and back, so it takes the symmetric curve rather
     than the ease-out used for one-way reveals. */
  transition: transform var(--et-dur-slow) var(--et-ease-in-out),
    visibility var(--et-dur-slow);
}

.et-drawer--right {
  right: 0;
  transform: translateX(100%);
}

.et-drawer--left {
  left: 0;
  transform: translateX(-100%);
}

.et-drawer.is-open {
  visibility: visible;
  transform: none;
}

.et-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  padding: var(--et-space-md) var(--et-gutter);
  border-bottom: 1px solid var(--et-border);
}

.et-drawer__title {
  font-size: var(--et-fs-lg);
}

.et-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--et-space-lg) var(--et-gutter);
}

.et-drawer__footer {
  padding: var(--et-space-lg) var(--et-gutter);
  border-top: 1px solid var(--et-border);
  background: var(--et-surface);
}

/* Mobile navigation */
.et-mobile-nav__list {
  list-style: none;
}

.et-mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  min-height: 52px;
  padding: var(--et-space-sm) 0;
  border-bottom: 1px solid var(--et-border);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-md);
  font-weight: 500;
}

.et-mobile-nav__sublist {
  list-style: none;
  padding-left: var(--et-space-md);
}

.et-mobile-nav__sublist a {
  min-height: var(--et-tap-target);
  font-weight: 400;
  font-size: var(--et-fs-sm);
  color: var(--et-text-muted);
}

.et-mobile-nav__search {
  margin-bottom: var(--et-space-lg);
}

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.et-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

.et-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--et-bg-alt);
}

.et-card__media::before {
  content: '';
  display: block;
  padding-top: calc(100% / var(--et-card-ratio, var(--et-ratio-square)));
}

.et-card__media img,
.et-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secondary image sits above the first and cross-fades on hover. */
.et-card__media img.et-card__image--alt {
  opacity: 0;
  transition: opacity var(--et-dur-slow) var(--et-ease);
}

@media (hover: hover) {
  .et-card:hover .et-card__image--alt {
    opacity: 1;
  }
}

.et-card__image--main {
  transition: transform var(--et-dur-slow) var(--et-ease);
}

@media (hover: hover) {
  .et-card[data-zoom='true']:hover .et-card__image--main {
    transform: scale(var(--et-zoom));
  }
}

/* A sold-out product stays legible but recedes: the image is dimmed, not
   hidden, and the badge and disabled action carry the state in words. */
.et-card--soldout .et-card__media img {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.et-card__badges {
  position: absolute;
  top: var(--et-space-sm);
  left: var(--et-space-sm);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--et-space-3xs);
}

/* Badges on a card: small flat labels, not coloured pills. */
.et-card__badges .et-badge {
  padding: var(--et-space-2xs) var(--et-space-xs);
  border-radius: 0;
  background: var(--et-surface);
  color: var(--et-text);
  font-size: var(--et-fs-3xs);
  letter-spacing: var(--et-ls-nav);
}

.et-card__badges .et-badge--sale {
  background: var(--et-sale);
  color: var(--et-surface);
}

.et-card__badges .et-badge--soldout {
  background: var(--et-text);
  color: var(--et-surface);
}

/* No box, no inner padding: the image and the type sit directly on the
   page, so the grid reads as an editorial spread rather than tiles. */
.et-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--et-space-3xs);
  padding: var(--et-space-md) 0 0;
}

.et-card__vendor {
  font-size: var(--et-fs-3xs);
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

/* Two lines at most; the price sits at the foot of the flex column, so
   prices and buttons still align across a row. */
.et-card__title {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 500;
  line-height: var(--et-lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stretches the title link across the whole card so the entire tile is
   clickable, while quick-add stays independently focusable above it. */
.et-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.et-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* The whole-tile link is the focus target, so the ring wraps the tile. */
.et-card__title a:focus-visible {
  outline: none;
}

.et-card__title a:focus-visible::after {
  outline: 2px solid var(--et-accent-ink);
  outline-offset: 2px;
}

.et-card__meta {
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

.et-card__price {
  margin-top: auto;
  padding-top: var(--et-space-2xs);
}

.et-card__actions {
  position: relative;
  z-index: 2;
  margin-top: var(--et-space-md);
}

.et-card__actions .et-btn {
  min-height: var(--et-tap-target);
  border-color: rgba(var(--et-text-rgb), 0.24);
  font-size: var(--et-fs-2xs);
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
}

.et-card__actions .et-btn--outline:hover:not([disabled]) {
  border-color: var(--et-text);
}

.et-card__actions .et-btn[disabled] {
  border-color: var(--et-border);
  color: var(--et-text-muted);
  cursor: not-allowed;
  opacity: 1;
}

@media (max-width: 749px) {
  .et-card__actions .et-btn {
    padding-inline: var(--et-space-xs);
  }
}

/* Price */
.et-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--et-space-xs);
  font-family: var(--et-font-heading);
}

.et-price__current {
  font-size: var(--et-fs-md);
  font-weight: 500;
}

.et-price__compare {
  font-size: var(--et-fs-xs);
  font-weight: 400;
  color: var(--et-text-muted);
  text-decoration: line-through;
}

.et-price--on-sale .et-price__current {
  color: var(--et-sale);
}

.et-price__unit {
  width: 100%;
  font-family: var(--et-font-body);
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

/* --------------------------------------------------------------------------
   Rating
   Rendered only when a review app supplies real data.
   -------------------------------------------------------------------------- */

:root {
  --et-star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M7.5 0l1.9 4.1 4.4.5-3.3 3 .9 4.4-3.9-2.3-3.9 2.3.9-4.4-3.3-3 4.4-.5z' fill='%23000'/%3E%3C/svg%3E");
}

.et-rating {
  display: flex;
  align-items: center;
  gap: var(--et-space-3xs);
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

.et-rating__stars {
  --et-rating-fill: 0%;
  position: relative;
  display: inline-block;
  width: 74px;
  height: 13px;
  background: linear-gradient(
    90deg,
    var(--et-accent-ink) var(--et-rating-fill),
    var(--et-border) var(--et-rating-fill)
  );
  -webkit-mask-image: var(--et-star-mask);
  mask-image: var(--et-star-mask);
  -webkit-mask-size: 14.8px 13px;
  mask-size: 14.8px 13px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */

.et-grid {
  display: grid;
  gap: var(--et-grid-gap);
  grid-template-columns: repeat(var(--et-grid-cols-mobile, 2), minmax(0, 1fr));
  list-style: none;
}

@media (min-width: 750px) {
  .et-grid {
    grid-template-columns: repeat(var(--et-grid-cols-tablet, 3), minmax(0, 1fr));
  }
}

@media (min-width: 990px) {
  .et-grid {
    grid-template-columns: repeat(var(--et-grid-cols, 4), minmax(0, 1fr));
  }
}

/* Horizontal scroller used by carousels on narrow screens. */
.et-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--et-grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--et-space-xs);
  margin-inline: calc(var(--et-gutter) * -1);
  padding-inline: var(--et-gutter);
}

.et-scroller::-webkit-scrollbar {
  display: none;
}

.et-scroller > * {
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   Quantity stepper
   -------------------------------------------------------------------------- */

.et-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--et-border-strong);
  border-radius: var(--et-radius-pill);
  overflow: hidden;
  background: var(--et-surface);
}

.et-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--et-tap-target);
  height: var(--et-tap-target);
  color: var(--et-text);
  transition: background var(--et-dur) var(--et-ease);
}

.et-qty__btn:hover:not([disabled]) {
  background: var(--et-accent-soft);
}

.et-qty__btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.et-qty__input {
  width: var(--et-tap-target);
  height: var(--et-tap-target);
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--et-font-heading);
  font-weight: 600;
  -moz-appearance: textfield;
}

.et-qty__input::-webkit-outer-spin-button,
.et-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cart drawer line items
   -------------------------------------------------------------------------- */

.et-cart-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--et-space-md);
  padding-block: var(--et-space-md);
  border-bottom: 1px solid var(--et-border);
}

.et-cart-line:first-child {
  padding-top: 0;
}

.et-cart-line__media {
  border-radius: var(--et-radius);
  overflow: hidden;
  background: var(--et-bg-alt);
}

.et-cart-line__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.et-cart-line__title {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 500;
  line-height: var(--et-lh-snug);
}

.et-cart-line__variant {
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

.et-cart-line__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-sm);
  margin-top: var(--et-space-2xs);

  /* The quantity stepper is 132px on its own. In the drawer at 320px the
     info column is ~170px, so the price has to be free to drop below it
     rather than forcing the row wide. */
  flex-wrap: wrap;
}

.et-cart-line__remove {
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.et-cart-line__remove:hover {
  color: var(--et-sale);
}

/* Line-item properties and line-level discounts. Global rather than scoped
   to the cart page's own stylesheet, because core.js builds the same
   markup client-side for the drawer's line items — a section stylesheet
   only loads with that section, so the drawer (rendered from the layout on
   every page) needs these defined here to have them at all. */
.et-cart-line__props {
  margin: var(--et-space-3xs) 0 0;
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

.et-cart-line__props div {
  display: flex;
  gap: var(--et-space-3xs);
}

.et-cart-line__props dt,
.et-cart-line__props dd {
  margin: 0;
}

.et-cart-line__discounts {
  margin: var(--et-space-3xs) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--et-fs-xs);
  color: var(--et-success);
}

/* Cart-level discount summary — same reasoning: the drawer shows this too. */
.et-cart__discounts {
  margin: 0 0 var(--et-space-sm);
  padding: 0;
  list-style: none;
  font-size: var(--et-fs-sm);
  color: var(--et-success);
}

.et-cart__discounts[hidden] {
  display: none;
}

.et-cart__discounts li {
  display: flex;
  justify-content: space-between;
  gap: var(--et-space-sm);
}

.et-cart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--et-space-3xs);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-xl);
  font-weight: 600;
}

.et-cart-taxnote {
  margin-bottom: var(--et-space-md);
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
}

/* Discount code. Global for the same reason as the cart-line rules above:
   snippets/cart-discount.liquid renders in the drawer as well as the page. */
.et-cart-discount {
  margin-bottom: var(--et-space-md);
}

.et-cart-discount__chips {
  margin-bottom: var(--et-space-xs);
}

.et-cart-discount__row {
  display: flex;
  gap: var(--et-space-xs);
}

.et-cart-discount__row .et-input {
  flex: 1 1 auto;
  min-width: 0;
}

.et-cart-discount__row .et-btn {
  flex-shrink: 0;
}

.et-cart-discount [data-discount-error],
.et-cart-discount [data-discount-success] {
  margin-top: var(--et-space-2xs);
  margin-bottom: 0;
}

/* Free shipping progress */
.et-shipping-bar {
  margin-bottom: var(--et-space-md);
}

.et-shipping-bar__track {
  height: 5px;
  margin-top: var(--et-space-xs);
  border-radius: var(--et-radius-pill);
  background: var(--et-bg-alt);
  overflow: hidden;
}

.et-shipping-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--et-accent-ink);
  transition: width var(--et-dur-slow) var(--et-ease);
}

/* --------------------------------------------------------------------------
   Empty and loading states
   -------------------------------------------------------------------------- */

.et-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--et-space-md);
  padding: clamp(var(--et-space-xl), 1rem + 5vw, var(--et-space-3xl)) var(--et-space-md);
  text-align: center;
}

.et-empty__title {
  font-size: var(--et-h3);
}

.et-empty__text {
  max-width: var(--et-measure);
  color: var(--et-text-muted);
}

.is-loading {
  position: relative;
  pointer-events: none;
}

.is-loading > * {
  opacity: 0.45;
  transition: opacity var(--et-dur) var(--et-ease);
}

.et-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: et-spin 0.7s linear infinite;
}

@keyframes et-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Buttons swap their label for a spinner while a request is in flight. */
.et-btn[aria-busy='true'] .et-btn__label {
  visibility: hidden;
}

.et-btn[aria-busy='true'] .et-btn__spinner {
  position: absolute;
  display: block;
}

.et-btn__spinner {
  display: none;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.et-toasts {
  position: fixed;
  bottom: var(--et-space-lg);
  left: 50%;
  z-index: var(--et-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--et-space-xs);
  width: min(420px, calc(100vw - var(--et-space-xl)));
  transform: translateX(-50%);
  pointer-events: none;
}

.et-toast {
  display: flex;
  align-items: center;
  gap: var(--et-space-2xs);
  padding: var(--et-space-sm) var(--et-space-md);
  border-radius: var(--et-radius);
  background: var(--et-text);
  color: var(--et-surface);
  box-shadow: var(--et-shadow-lg);
  font-size: var(--et-fs-sm);
  pointer-events: auto;
  animation: et-toast-in var(--et-dur) var(--et-ease);
}

.et-toast--error {
  background: var(--et-sale);
}

@keyframes et-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --------------------------------------------------------------------------
   Pagination and breadcrumbs
   -------------------------------------------------------------------------- */

.et-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--et-space-3xs);
  margin-top: var(--et-space-2xl);
  list-style: none;
}

.et-pagination a,
.et-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: var(--et-space-2xs);
  border-radius: var(--et-radius-pill);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 500;
}

.et-pagination a:hover {
  background: var(--et-accent-soft);
  color: var(--et-accent-ink);
}

.et-pagination [aria-current='page'] {
  background: var(--et-text);
  color: var(--et-surface);
}

.et-pagination svg {
  width: 16px;
  height: 16px;
}

.et-pagination__prev {
  transform: rotate(180deg);
}

.et-breadcrumbs-wrap {
  margin-bottom: var(--et-space-lg);
}

.et-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--et-space-3xs);
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
  list-style: none;
}

.et-breadcrumbs a:hover {
  color: var(--et-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.et-breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: var(--et-space-3xs);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.et-accordion {
  border-top: 1px solid var(--et-border);
}

.et-accordion:last-of-type {
  border-bottom: 1px solid var(--et-border);
}

.et-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  padding: var(--et-space-md) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-md);
  font-weight: 500;
}

.et-accordion__summary::-webkit-details-marker {
  display: none;
}

.et-accordion__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform var(--et-dur) var(--et-ease);
}

.et-accordion[open] .et-accordion__icon {
  transform: rotate(45deg);
}

.et-accordion__content {
  padding-bottom: var(--et-space-lg);
  color: var(--et-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.et-footer {
  margin-top: var(--et-section-gap);
  /* Deliberately fixed, not var(--et-text): the footer is a permanently
     dark band in both themes, the same way a printed dark band would be —
     it must not turn light when --et-text flips for dark mode, or its
     fixed white text above would sit on a light background. */
  background: #1c1f24;
  color: rgba(255, 255, 255, 0.75);
}

.et-footer a:hover {
  color: var(--et-on-dark);
}

.et-footer__top {
  display: grid;
  gap: var(--et-space-2xl);
  padding-block: clamp(var(--et-space-2xl), 1.5rem + 3vw, var(--et-space-3xl));
  grid-template-columns: 1fr;
}

@media (min-width: 750px) {
  .et-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 990px) {
  .et-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  }
}

.et-footer__heading {
  margin-bottom: var(--et-space-md);
  color: var(--et-on-dark);
  font-size: var(--et-fs-xs);
  font-weight: 600;
  letter-spacing: var(--et-ls-wide);
  text-transform: uppercase;
}

.et-footer__menu {
  list-style: none;
}

.et-footer__menu a {
  display: inline-block;
  padding-block: var(--et-space-3xs);
  font-size: var(--et-fs-sm);
}

.et-footer .et-wordmark,
.et-footer .et-wordmark b {
  color: var(--et-on-dark);
}

.et-footer__blurb {
  max-width: 34ch;
  margin-top: var(--et-space-md);
  font-size: var(--et-fs-sm);
}

.et-footer__social {
  display: flex;
  gap: var(--et-space-xs);
  margin-top: var(--et-space-lg);
}

.et-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--et-radius-pill);
  transition: background var(--et-dur) var(--et-ease),
    border-color var(--et-dur) var(--et-ease);
}

.et-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.et-footer__social svg {
  width: 18px;
  height: 18px;
}

.et-newsletter__form {
  display: flex;
  gap: var(--et-space-xs);
  margin-top: var(--et-space-sm);
}

.et-newsletter__form .et-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--et-on-dark);
}

.et-newsletter__form .et-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.et-newsletter__form .et-input:focus-visible {
  border-color: var(--et-on-dark);
  box-shadow: none;
}

.et-newsletter__form .et-btn {
  flex-shrink: 0;
  --_bg: var(--et-on-dark);
  --_fg: var(--et-text);
  --_bd: var(--et-on-dark);
}

.et-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  padding-block: var(--et-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--et-fs-xs);
}

.et-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--et-space-md);
  list-style: none;
}

/* --------------------------------------------------------------------------
   Generic table, used by cart and account pages
   -------------------------------------------------------------------------- */

.et-table th,
.et-table td {
  padding: var(--et-space-md) var(--et-space-sm);
  border-bottom: 1px solid var(--et-border);
  text-align: left;
  vertical-align: middle;
}

.et-table th {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--et-ls-wide);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

.et-table__product {
  display: flex;
  align-items: center;
  gap: var(--et-space-md);
}

.et-table__product img {
  width: 72px;
  border-radius: var(--et-radius);
}

@media (max-width: 749px) {
  .et-table,
  .et-table tbody,
  .et-table tr,
  .et-table td {
    display: block;
    width: 100%;
  }

  .et-table thead {
    display: none;
  }

  .et-table tr {
    padding-block: var(--et-space-md);
    border-bottom: 1px solid var(--et-border);
  }

  .et-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--et-space-md);
    padding: var(--et-space-3xs) 0;
    border: 0;
  }

  .et-table td::before {
    content: attr(data-label);
    font-size: var(--et-fs-2xs);
    letter-spacing: var(--et-ls-wide);
    text-transform: uppercase;
    color: var(--et-text-muted);
  }

  .et-table td:not([data-label])::before {
    content: none;
  }
}

/* --------------------------------------------------------------------------
   Collection tile
   -------------------------------------------------------------------------- */

.et-collection-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--et-radius-lg);
  overflow: hidden;
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  transition: border-color var(--et-dur) var(--et-ease),
    box-shadow var(--et-dur) var(--et-ease),
    transform var(--et-dur) var(--et-ease);
}

.et-collection-tile:hover {
  border-color: transparent;
  box-shadow: var(--et-shadow-sm);
  transform: translateY(var(--et-lift));
}

.et-collection-tile__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--et-bg-alt);
  overflow: hidden;
}

.et-collection-tile__media img,
.et-collection-tile__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--et-dur-slow) var(--et-ease);
}

.et-collection-tile:hover .et-collection-tile__media img {
  transform: scale(var(--et-zoom));
}

.et-collection-tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--et-space-3xs);
  padding: var(--et-space-md);
}

.et-collection-tile__title {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-md);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Navigation panels
   The disclosure state is driven by <et-menu>, not :hover, so keyboard and
   touch behave the same as pointer. `hidden` is the source of truth.
   -------------------------------------------------------------------------- */

.et-nav__link[data-menu-trigger] {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.et-nav__item.is-open > .et-nav__link {
  color: var(--et-accent-ink);
  background: var(--et-accent-soft);
}

.et-nav__item.is-open .et-nav__chevron {
  transform: rotate(180deg);
}

.et-nav__panel[hidden],
.et-mega[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Drawer — top variant, used by search
   -------------------------------------------------------------------------- */

.et-drawer--top {
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 88vh;
  transform: translateY(-100%);
  border-bottom: 1px solid var(--et-border);
}

/* --------------------------------------------------------------------------
   Predictive search
   -------------------------------------------------------------------------- */

.et-search-drawer {
  padding-block: var(--et-space-lg) var(--et-space-xl);
}

.et-search-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  margin-bottom: var(--et-space-md);
}

.et-psearch__form {
  position: relative;
  display: flex;
  gap: var(--et-space-xs);
}

.et-psearch__icon {
  position: absolute;
  left: var(--et-space-md);
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--et-text-muted);
  pointer-events: none;
}

.et-psearch__input {
  padding-left: calc(var(--et-space-md) * 2 + 18px);
}

.et-psearch__submit {
  flex-shrink: 0;
}

.et-psearch__results {
  margin-top: var(--et-space-md);
  max-height: 56vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.et-psearch__results[hidden] {
  display: none;
}

.et-psearch__list {
  list-style: none;
}

.et-psearch__item {
  display: flex;
  align-items: center;
  gap: var(--et-space-md);
  padding: var(--et-space-xs);
  border-radius: var(--et-radius);
  transition: background var(--et-dur-fast) var(--et-ease);
}

.et-psearch__item:hover,
.et-psearch__item:focus-visible {
  background: var(--et-accent-soft);
}

.et-psearch__media {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--et-radius-sm);
  overflow: hidden;
  background: var(--et-bg-alt);
}

.et-psearch__media img,
.et-psearch__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.et-psearch__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.et-psearch__title {
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 500;
  line-height: var(--et-lh-snug);
}

.et-psearch__item--text {
  padding-block: var(--et-space-sm);
}

.et-psearch__group {
  margin: var(--et-space-md) 0 var(--et-space-3xs);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--et-ls-wide);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

.et-psearch__all {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-3xs);
  margin-top: var(--et-space-md);
  padding: var(--et-space-xs);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 600;
  color: var(--et-accent-ink);
  transition: gap var(--et-dur) var(--et-ease);
}

.et-psearch__all:hover {
  gap: var(--et-space-sm);
}

.et-psearch__all-icon {
  width: 15px;
  height: 15px;
}

.et-psearch__empty {
  padding: var(--et-space-lg) var(--et-space-xs);
  color: var(--et-text-muted);
  font-size: var(--et-fs-sm);
}

/* --------------------------------------------------------------------------
   Mobile navigation — collapsible groups
   -------------------------------------------------------------------------- */

.et-mobile-nav__group {
  border-bottom: 1px solid var(--et-border);
}

.et-mobile-nav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-md);
  min-height: 52px;
  padding: var(--et-space-sm) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-md);
  font-weight: 500;
}

.et-mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.et-mobile-nav__summary > span {
  display: flex;
  align-items: center;
  gap: var(--et-space-xs);
}

.et-mobile-nav__chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--et-text-muted);
  transition: transform var(--et-dur) var(--et-ease);
}

/* Direct child only: with nested groups, an open parent must not flip the
   chevrons of the groups inside it that are still closed. */
.et-mobile-nav__group[open] > .et-mobile-nav__summary .et-mobile-nav__chevron {
  transform: rotate(180deg);
}

/* A mega-panel column nested inside a top-level group. */
.et-mobile-nav__group--nested {
  border-bottom: 0;
}

.et-mobile-nav__group--nested > .et-mobile-nav__summary {
  min-height: var(--et-tap-target);
  font-size: var(--et-fs-sm);
}

.et-mobile-nav__link-label {
  display: flex;
  align-items: center;
  gap: var(--et-space-xs);
}

.et-mobile-nav__group .et-mobile-nav__sublist {
  padding-bottom: var(--et-space-sm);
}

.et-mobile-nav__group .et-mobile-nav__sublist a {
  border-bottom: 0;
  min-height: var(--et-tap-target);
}

.et-mobile-nav__chevron-link {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--et-text-muted);
}

/* --------------------------------------------------------------------------
   Cart drawer cross-sell
   -------------------------------------------------------------------------- */

.et-cart-upsell {
  padding: var(--et-space-md) var(--et-gutter);
  border-top: 1px solid var(--et-border);
  background: var(--et-bg-alt);
}

.et-cart-upsell[hidden] {
  display: none;
}

.et-cart-upsell__title {
  margin: 0 0 var(--et-space-sm);
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--et-ls-wide);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

.et-cart-upsell__list {
  display: flex;
  flex-direction: column;
  gap: var(--et-space-sm);
  list-style: none;
  max-height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.et-cart-upsell__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--et-space-sm);
}

.et-cart-upsell__item[hidden] {
  display: none;
}

.et-cart-upsell__media {
  border-radius: var(--et-radius-sm);
  overflow: hidden;
  background: var(--et-surface);
}

.et-cart-upsell__media img,
.et-cart-upsell__media svg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.et-cart-upsell__text {
  min-width: 0;
}

.et-cart-upsell__name {
  display: block;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-xs);
  font-weight: 500;
  line-height: var(--et-lh-snug);
}

.et-cart-upsell__name:hover {
  color: var(--et-accent-ink);
}

.et-cart-upsell__item .et-price__current {
  font-size: var(--et-fs-xs);
}

/* --------------------------------------------------------------------------
   Facets
   Native <details> groups, so filtering is operable with no JavaScript.
   -------------------------------------------------------------------------- */

.et-facet {
  border-bottom: 1px solid var(--et-border);
}

.et-facet:first-child {
  border-top: 1px solid var(--et-border);
}

.et-facet__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--et-space-sm);
  min-height: var(--et-tap-target);
  padding-block: var(--et-space-sm);
  cursor: pointer;
  list-style: none;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 600;
}

.et-facet__summary::-webkit-details-marker {
  display: none;
}

.et-facet__summary > span {
  display: flex;
  align-items: center;
  gap: var(--et-space-xs);
}

.et-facet__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--et-radius-pill);
  background: var(--et-accent-ink);
  color: var(--et-surface);
  font-size: var(--et-fs-3xs);
  font-variant-numeric: tabular-nums;
}

.et-facet__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--et-text-muted);
  transition: transform var(--et-dur) var(--et-ease);
}

.et-facet[open] .et-facet__chevron {
  transform: rotate(180deg);
}

.et-facet__body {
  padding-bottom: var(--et-space-md);
}

.et-facet__list {
  display: flex;
  flex-direction: column;
  gap: var(--et-space-3xs);
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.et-facet__option {
  display: flex;
  align-items: center;
  gap: var(--et-space-sm);
  min-height: var(--et-tap-target);
  padding-right: var(--et-space-3xs);
  cursor: pointer;
  font-size: var(--et-fs-sm);
}

.et-facet__option.is-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The real checkbox stays in the accessibility tree and drives the visual box
   through :checked and :focus-visible. */
.et-facet__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.et-facet__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--et-border-strong);
  border-radius: var(--et-radius-sm);
  background: var(--et-surface);
  color: transparent;
  transition: background var(--et-dur-fast) var(--et-ease),
    border-color var(--et-dur-fast) var(--et-ease),
    color var(--et-dur-fast) var(--et-ease);
}

.et-facet__box svg {
  width: 13px;
  height: 13px;
}

.et-facet__option input:checked + .et-facet__box {
  background: var(--et-accent-ink);
  border-color: var(--et-accent-ink);
  color: var(--et-surface);
}

.et-facet__option input:focus-visible + .et-facet__box {
  outline: 2px solid var(--et-accent-ink);
  outline-offset: 2px;
}

.et-facet__label {
  flex: 1;
  min-width: 0;
}

.et-facet__count {
  font-size: var(--et-fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--et-text-muted);
}

.et-facet__price {
  display: flex;
  align-items: flex-end;
  gap: var(--et-space-xs);
}

.et-facet__price-field {
  flex: 1;
  min-width: 0;
}

.et-facet__price-field label {
  display: block;
  margin-bottom: var(--et-space-3xs);
  font-size: var(--et-fs-2xs);
  letter-spacing: var(--et-ls-wide);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

.et-input--sm {
  min-height: 42px;
  padding: var(--et-space-xs) var(--et-space-sm);
  font-size: var(--et-fs-sm);
}

.et-facet__price-dash {
  padding-bottom: var(--et-space-sm);
  color: var(--et-text-muted);
}

/* --------------------------------------------------------------------------
   Active filter chips
   -------------------------------------------------------------------------- */

.et-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--et-space-xs);
  list-style: none;
}

.et-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-3xs);
  min-height: 34px;
  padding: var(--et-space-3xs) var(--et-space-sm);
  border: 1px solid var(--et-border-strong);
  border-radius: var(--et-radius-pill);
  font-size: var(--et-fs-xs);
  transition: background var(--et-dur) var(--et-ease),
    border-color var(--et-dur) var(--et-ease);
}

.et-chip:hover {
  background: var(--et-accent-soft);
  border-color: var(--et-accent-ink);
  color: var(--et-accent-ink);
}

.et-chip__x {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.et-chips__clear {
  font-size: var(--et-fs-xs);
  color: var(--et-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: var(--et-space-3xs) var(--et-space-2xs);
}

.et-chips__clear:hover {
  color: var(--et-sale);
}

/* --------------------------------------------------------------------------
   Account: address book and auth forms
   -------------------------------------------------------------------------- */

.et-auth__intro {
  margin-bottom: var(--et-space-md);
  font-size: var(--et-fs-sm);
  color: var(--et-text-muted);
}

.et-address__grid {
  display: grid;
  gap: 0 var(--et-space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 750px) {
  .et-address__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .et-address__grid-full {
    grid-column: 1 / -1;
  }
}

.et-address__default {
  display: flex;
  align-items: center;
  gap: var(--et-space-xs);
  margin-top: var(--et-space-xs);
  font-size: var(--et-fs-sm);
}

/* --------------------------------------------------------------------------
   Gift card
   -------------------------------------------------------------------------- */

.et-giftcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--et-space-md);
  padding: var(--et-space-2xl) var(--et-space-lg);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius-lg);
  background: var(--et-surface);
  text-align: center;
}

.et-giftcard__value {
  margin: 0;
  font-family: var(--et-font-heading);
  font-size: var(--et-h1);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--et-accent-ink);
}

.et-giftcard__qr {
  padding: var(--et-space-md);
  background: #fff;
  border-radius: var(--et-radius);
}

.et-giftcard__code code {
  font-family: var(--et-mono, ui-monospace, monospace);
  font-size: var(--et-fs-lg);
  letter-spacing: 0.12em;
  padding: var(--et-space-xs) var(--et-space-md);
  border: 1px dashed var(--et-border-strong);
  border-radius: var(--et-radius);
  display: inline-block;
}

/* ==========================================================================
   Stage 9 — small-screen corrections
   Measured against a 320px viewport, the narrowest target in the brief.
   ========================================================================== */

@media (max-width: 749px) {
  /* The header is [burger][logo][actions]. At 320px that leaves the logo
     column only ~108px with the default 24px gaps, while the wordmark at
     18px/0.16em needs ~186px — it was overflowing and being clipped by the
     body's overflow rule. Tighten the gap, shrink the mark, drop the tagline. */
  .et-header__inner {
    gap: var(--et-space-xs);
  }

  .et-wordmark {
    font-size: var(--et-fs-sm);
    letter-spacing: var(--et-ls-wide);
  }

  .et-wordmark__tagline {
    display: none;
  }

  .et-wordmark__braille {
    width: 52px;
  }

  /* Product page: quantity stepper plus Add to cart on one row is too tight
     at 320px, so the button takes its own line. */
  .et-pdp__buy {
    flex-wrap: wrap;
  }

  .et-pdp__add {
    flex: 1 1 100%;
  }

  /* Claims read better as a single column on a phone. */
  .et-pdp__trust {
    grid-template-columns: 1fr;
  }

  /* Narrower thumbnail in the drawer, to give the line's text and controls
     room at 320px. */
  .et-cart-line {
    grid-template-columns: 64px 1fr;
  }

  /* Cross-sell rows: the quick-add button wraps under the product rather
     than squeezing the title into a few characters. */
  .et-cart-upsell__item {
    grid-template-columns: 52px minmax(0, 1fr);
    row-gap: var(--et-space-xs);
  }

  .et-cart-upsell__item > :last-child {
    grid-column: 1 / -1;
  }

  /* Price range inputs stack rather than fighting for width in the drawer. */
  .et-facet__price {
    flex-wrap: wrap;
  }

  .et-facet__price-field {
    flex: 1 1 100%;
  }

  .et-facet__price-dash {
    display: none;
  }

  /* Search: the submit button sits under the field instead of halving it. */
  .et-psearch__form,
  .et-search__form,
  .et-404__search {
    flex-wrap: wrap;
  }

  .et-psearch__submit,
  .et-search__form > .et-btn,
  .et-404__search > .et-btn {
    flex: 1 1 100%;
  }

  /* The sticky buy bar is fixed over the page, so the footer needs clearance
     or its last row sits underneath it. */
  .template-product .et-footer__bottom {
    padding-bottom: calc(var(--et-space-3xl) + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Tap targets
   WCAG 2.2 AA (2.5.8) asks for 24 x 24 CSS px on any pointer target. These
   small text links were below it.
   -------------------------------------------------------------------------- */

.et-chips__clear,
.et-cart-line__remove,
.et-footer__menu a,
.et-footer__legal a,
.et-breadcrumbs a,
.et-psearch__all {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Header and footer logos are the home link; give them a solid target
   rather than only the glyphs of the wordmark. */
.et-header__logo {
  min-height: var(--et-tap-target);
  justify-content: center;
}

@media (max-width: 749px), (pointer: coarse) {
  /* A full 44px on touch, where there is no cursor to aim with. These have
     no background or border, so the taller box is invisible. */
  .et-footer__menu a,
  .et-cart-line__remove,
  .et-chips__clear {
    min-height: var(--et-tap-target);
  }

  /* Breadcrumbs and legal links sit in tight rows: grow the target to 44px
     but hand the extra back as negative margin, so the rows keep their
     spacing. */
  .et-breadcrumbs a,
  .et-footer__legal a {
    min-height: var(--et-tap-target);
    margin-block: calc((var(--et-tap-target) - 24px) / -2);
  }

  /* Bordered controls cannot grow without looking bigger, and short words
     like "FAQ" are narrower than 44px, so the extra hit area comes from an
     invisible pseudo-element instead. Percentages in inset resolve against
     the control's own box, so only a side shorter than 44px is extended; a
     longer one is left alone. */
  .et-chip,
  .et-footer__social a,
  .et-pagination a,
  .et-footer__menu a,
  .et-breadcrumbs a {
    position: relative;
  }

  .et-chip::after,
  .et-footer__social a::after,
  .et-pagination a::after,
  .et-footer__menu a::after,
  .et-breadcrumbs a::after {
    content: '';
    position: absolute;
    inset: calc((var(--et-tap-target) - 100%) / -2);
  }

  .et-input--sm {
    min-height: var(--et-tap-target);
  }

  /* Cart and cross-sell line titles are single lines of text stacked tightly
     above their own controls, so they cannot grow to a full 44px without
     colliding with the quantity stepper below. The hit area is extended into
     real free space instead: the row's own top padding above, and the small
     gap before the next control below. That reaches close to 44px without
     shifting anything or overlapping another interactive control. */
  .et-cart-line__title,
  .et-cart-upsell__name {
    position: relative;
  }

  .et-cart-line__title::after,
  .et-cart-upsell__name::after {
    content: '';
    position: absolute;
    inset: calc(var(--et-space-md) * -1) 0 calc(var(--et-space-2xs) * -1);
  }
}

/* Long words in merchant copy must not force a sideways scroll. */
.et-rte,
.et-card__title,
.et-cart-line__title,
.et-collection-tile__title,
.et-psearch__title {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Stage 10 — micro-interactions

   Everything here is additive: with JavaScript off or reduced motion on, the
   page still reads and works exactly the same. Nothing waits for a transition
   to finish.
   ========================================================================== */

/* Images resolve rather than pop. The class is added by global.js, never in
   the markup, so a script failure can never leave an image at opacity 0. */
.et-img-fade {
  opacity: 0;
  transition: opacity var(--et-dur-slow) var(--et-ease);
}

.et-img-fade.is-loaded {
  opacity: 1;
}

/* Cart badge nudge, fired only when the count actually goes up. */
.et-cart-count.is-bumped {
  animation: et-bump var(--et-dur-slow) var(--et-ease);
}

@keyframes et-bump {
  40% {
    transform: scale(1.35);
  }
}

/* Quick-add and buy buttons settle rather than snapping back. */
.et-btn--primary:hover,
.et-btn--accent:hover {
  transform: translateY(-1px);
}

.et-btn:active {
  transform: translateY(1px);
}

/* Chips and facet rows acknowledge the pointer. */
.et-chip:active,
.et-facet__option:active .et-facet__box {
  transform: scale(0.97);
}

.et-facet__box {
  transition: background var(--et-dur-fast) var(--et-ease),
    border-color var(--et-dur-fast) var(--et-ease),
    color var(--et-dur-fast) var(--et-ease),
    transform var(--et-dur-fast) var(--et-ease);
}

/* Accordions ease open where the browser supports animating to auto.
   Elsewhere they simply snap, exactly as before. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .et-accordion::details-content {
    height: 0;
    overflow: hidden;
    transition: height var(--et-dur) var(--et-ease),
      content-visibility var(--et-dur) allow-discrete;
    transition-behavior: allow-discrete;
  }

  .et-accordion[open]::details-content {
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   The global override in base.css stills every animation, which would leave
   the spinner frozen and give these visitors no loading cue at all. Hide it
   and let the button label carry the state instead — global.js swaps the
   label to "Adding…" whenever a button is busy.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .et-btn[aria-busy='true'] .et-btn__spinner {
    display: none;
  }

  .et-btn[aria-busy='true'] .et-btn__label {
    visibility: visible;
  }

  .et-btn--primary:hover,
  .et-btn--accent:hover,
  .et-btn:active,
  .et-chip:active,
  .et-facet__option:active .et-facet__box {
    transform: none;
  }

  .et-img-fade {
    opacity: 1;
  }
}


/* ==========================================================================
   Stage 6.1 — premium header
   Refinement layer over the header rules above: quieter surfaces, hairline
   borders instead of shadows, letterspaced navigation, square-cornered
   panels. Only tokens; nothing here changes structure or behaviour.
   ========================================================================== */

.et-header {
  border-bottom: var(--et-hairline);
}

.et-header.is-stuck {
  box-shadow: none;
  background: var(--et-surface);
}

@supports (backdrop-filter: blur(1px)) {
  .et-header.is-stuck {
    background: color-mix(in srgb, var(--et-surface) 90%, transparent);
    backdrop-filter: saturate(1.2) blur(12px);
  }
}

.et-header__inner {
  gap: var(--et-space-xl);
  padding-block: var(--et-space-md);
}

.et-wordmark {
  font-size: var(--et-fs-xl);
}

.et-nav__list {
  gap: var(--et-space-lg);
}

.et-nav__link {
  position: relative;
  padding: var(--et-space-sm) 0;
  border-radius: 0;
  font-size: var(--et-fs-2xs);
  font-weight: 500;
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
  white-space: nowrap;
}

.et-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--et-space-2xs);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--et-dur) var(--et-ease);
}

.et-nav__link:hover,
.et-nav__item:focus-within > .et-nav__link,
.et-nav__item.is-open > .et-nav__link,
.et-nav__link[aria-current='page'] {
  background: transparent;
  color: var(--et-text);
}

.et-nav__link:hover::after,
.et-nav__item.is-open > .et-nav__link::after,
.et-nav__link[aria-current='page']::after {
  transform: scaleX(1);
}

.et-nav__panel {
  min-width: 240px;
  padding: var(--et-space-sm);
  border-radius: 0;
  border: var(--et-hairline);
  box-shadow: var(--et-shadow-md);
}

.et-nav__panel a {
  padding: var(--et-space-xs) var(--et-space-sm);
  border-radius: 0;
}

.et-nav__panel a:hover {
  background: var(--et-bg-alt);
  color: var(--et-text);
}

.et-header__actions {
  gap: var(--et-space-2xs);
}

.et-icon-btn:hover {
  background: transparent;
  color: var(--et-accent-ink);
}

.et-icon-btn svg {
  width: 22px;
  height: 22px;
}

.et-cart-count {
  top: 6px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-size: 0.625rem;
  line-height: 16px;
}

/* Mega menu: a calm full-width panel. Columns read as editorial lists. */
.et-mega {
  border-top: 0;
  border-bottom: var(--et-hairline);
  box-shadow: var(--et-shadow-md);
}

.et-mega__inner {
  gap: var(--et-space-3xl);
  padding-block: var(--et-space-2xl);
}

.et-mega__cols {
  gap: var(--et-space-2xl);
}

.et-mega__col-title {
  margin-bottom: var(--et-space-sm);
  padding-bottom: var(--et-space-sm);
  font-size: var(--et-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
  color: var(--et-text);
}

.et-mega__links a {
  padding-block: var(--et-space-2xs);
  font-size: var(--et-fs-sm);
}

.et-mega__promo {
  border-radius: 0;
}

/* Mobile: compact bar, calm drawer. */
@media (max-width: 989px) {
  .et-header__inner {
    min-height: 60px;
    padding-block: var(--et-space-2xs);
    gap: var(--et-space-sm);
  }

  .et-wordmark {
    font-size: var(--et-fs-lg);
  }

  .et-mobile-nav__list a,
  .et-mobile-nav__summary {
    min-height: 60px;
    font-size: var(--et-fs-sm);
    font-weight: 500;
    letter-spacing: var(--et-ls-nav);
    text-transform: uppercase;
  }

  .et-mobile-nav__group--nested > .et-mobile-nav__summary,
  .et-mobile-nav__group .et-mobile-nav__sublist a {
    font-size: var(--et-fs-sm);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .et-drawer__header {
    border-bottom: var(--et-hairline);
  }
}

/* Mobile menu search: keep field and button on one row so the icon stays
   centred on the field (the shared form wraps below 750px). */
.et-mobile-nav__search.et-psearch__form {
  flex-wrap: nowrap;
}

.et-mobile-nav__search .et-psearch__input {
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
}

.et-mobile-nav__search .et-psearch__submit {
  width: auto;
  padding-inline: var(--et-space-sm);
}

/* Below 1360px the letterspaced navigation has no room beside the logo and
   icons (it ran past the viewport at 1024px and 1280px), so those widths use the same
   burger and drawer as phones and tablets. */
@media (min-width: 990px) and (max-width: 1359px) {
  .et-nav {
    display: none;
  }

  .et-burger {
    display: flex;
  }

  .et-header__logo {
    justify-self: center;
  }

  .et-header__logo img {
    width: var(--et-logo-width-mobile, 110px);
  }
}

/* Very narrow phones (320px): burger, wordmark and three icons must all fit. */
@media (max-width: 359px) {
  .et-header__inner {
    gap: 0;
  }

  .et-wordmark {
    font-size: var(--et-fs-xs);
    letter-spacing: 0;
  }

  .et-wordmark__tagline {
    display: none;
  }

  .et-header__actions {
    gap: 0;
  }
}

/* --------------------------------------------------------------------------
   Theme toggle (light / dark)
   -------------------------------------------------------------------------- */

.et-theme-toggle__icon {
  width: 20px;
  height: 20px;
}

.et-theme-toggle__icon--moon {
  display: none;
}

:root[data-theme='dark'] .et-theme-toggle__icon--sun {
  display: none;
}

:root[data-theme='dark'] .et-theme-toggle__icon--moon {
  display: block;
}

/* The toggle stays in the header icon row on every screen size. The copy
   inside the mobile menu drawer is only needed when that drawer exists. */
@media (min-width: 990px) {
  .et-mobile-nav__theme-toggle {
    display: none;
  }
}

.et-mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: var(--et-space-sm);
}

.et-mobile-nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--et-space-sm);
  width: 100%;
  height: var(--et-tap-target);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius-pill);
  font-size: var(--et-fs-xs);
}

/* --------------------------------------------------------------------------
   Official wordmark (light/dark)
   -------------------------------------------------------------------------- */

/* Sized on its own, not through --et-logo-width: that variable is meant for
   a merchant-uploaded logo of unknown proportions, while this is a fixed,
   very wide, flat wordmark that reads too small at the same width. */
.et-logo {
  display: inline-flex;
  width: 210px;
}

.et-header__logo .et-logo__img {
  width: 100%;
  height: auto;
}

@media (max-width: 989px) {
  .et-logo {
    width: 150px;
  }
}

/* Smallest phones: leave a gap between the logo and the four header icons. */
@media (max-width: 359px) {
  .et-logo {
    width: 124px;
  }
}

.et-logo__img--dark {
  display: none;
}

:root[data-theme='dark'] .et-logo__img--light {
  display: none;
}

:root[data-theme='dark'] .et-logo__img--dark {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Floating social buttons (snippets/floating-social.liquid)

   Pinned to the bottom-right of every page. Column-reverse puts WhatsApp —
   the one people actually tap — nearest the thumb, while keeping it first
   in the DOM for keyboard and screen-reader order.
   -------------------------------------------------------------------------- */

.et-float {
  position: fixed;
  right: var(--et-gutter);
  bottom: calc(var(--et-space-lg) + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--et-space-xs);
}

/* Clear of the sticky add-to-cart bar while it is on screen. */
body:has(.et-sticky-atc:not([hidden])) .et-float {
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.et-float__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--et-tap-target);
  height: var(--et-tap-target);
  border-radius: 50%;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  color: var(--et-text);
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.28);
  transition: transform var(--et-dur) var(--et-ease), background var(--et-dur) var(--et-ease),
    color var(--et-dur) var(--et-ease);
}

.et-float__btn:hover {
  transform: translateY(var(--et-lift));
  background: var(--et-text);
  color: var(--et-bg);
}

.et-float__btn:focus-visible {
  outline: 2px solid var(--et-text);
  outline-offset: 3px;
}

/* WhatsApp keeps its own brand green in both themes. */
.et-float__btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.et-float__btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

.et-float__icon {
  width: 21px;
  height: 21px;
}

@media print {
  .et-float {
    display: none;
  }
}

/* ---- Footer alignment (site override) ---- */
/* Three footer blocks: brand, shop, newsletter. Give them three columns, not four. */
@media (min-width: 750px) {
  .et-footer__top { grid-template-columns: 1.3fr 1fr 1.2fr; align-items: start; }
}
@media (min-width: 990px) {
  .et-footer__top { grid-template-columns: 1.4fr 1fr 1.3fr; column-gap: var(--et-space-3xl); }
}
/* Newsletter: the field fills its column, and the button always has readable text. */
.et-newsletter__form { width: 100%; max-width: 360px; }
.et-newsletter__form .et-input { flex: 1; min-width: 0; }
.et-newsletter__form .et-btn { --_fg: #1c1f24; --_bg: #ffffff; --_bd: #ffffff; color: #1c1f24; }
.et-newsletter__form .et-btn:hover { --_bg: #e9ecef; --_bd: #e9ecef; }
/* Keep the bottom row clear of the floating social buttons on the right. */
@media (min-width: 750px) {
  .et-footer__bottom { padding-right: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Narrow phones (360-419px, e.g. iPhone SE 375px, most Androids 360px):
   burger 44 + logo 150 + three 44px icons + gaps + gutters ran ~20px past the
   screen and the whole page scrolled sideways. Let the wordmark scale with the
   viewport and tighten the gaps, so the bar always fits.
   -------------------------------------------------------------------------- */
@media (max-width: 419px) {
  .et-header__inner {
    gap: var(--et-space-2xs);
  }

  .et-header__logo {
    min-width: 0;
  }

  .et-logo {
    width: clamp(96px, 34vw, 150px);
  }

  .et-header__actions {
    gap: 0;
  }
}

/* Safety net: never let a stray element make the page scroll sideways.
   'clip' (unlike 'hidden') keeps the sticky header working. */
html,
body {
  overflow-x: clip;
}

/* Bigger touch targets for short text links (at least ~32px tall), without changing the look. */
.et-card__title a,
.et-footer__credit a {
  display: inline-block;
  padding-block: 7px;
  margin-block: -7px;
}

/* The burger's three lines collapsed to 0px wide (a later rule centres the
   button's children), so the menu button was invisible on phones and tablets. */
.et-burger span:not(.et-visually-hidden) {
  width: 22px;
  flex: none;
  align-self: center;
}
