/* ==========================================================================
   Treasurecorner clone - custom layer on top of the real Dawn theme CSS
   NOTE: the Dawn base reset (html font-size 62.5%) lives in
   assets/css/global-reset.css and is bundled into theme.css.
   ========================================================================== */

html { scroll-behavior: smooth; }
/* `clip` (unlike `hidden`) does not turn the element into a scroll container,
   so `position: sticky` on the header still resolves against the viewport. */
body { overflow-x: clip; }
body.drawer-open, body.overflow-hidden { overflow: hidden; }

/* --- sticky header ---
   The live theme sticks the header *section* (.section-header, which gets
   the .shopify-section-header-sticky class from <sticky-header>) and shrinks
   the logo once the page is scrolled past the header. The header markup is
   injected into #site-header; `display: contents` makes the announcement bar
   + header section direct children of <body> so the body grid keeps its
   exact 4 rows (announcement / header / main / footer) and the sticky
   positioning is not clipped. */
#site-header, #site-footer, #cart-drawer-host { display: contents; }
.scrolled-past-header .header__heading-logo-wrapper { width: 75%; }

/* --- list menu (kept in sync with the live theme's inline styles) --- */
.list-menu { list-style: none; padding: 0; margin: 0; }
.list-menu--inline { display: inline-flex; flex-wrap: wrap; }
summary.list-menu__item { padding-right: 2.7rem; }
.list-menu__item { display: flex; align-items: center; line-height: calc(1 + 0.3 / var(--font-body-scale)); }
.list-menu__item--link {
  text-decoration: none;
  padding-bottom: 1rem;
  padding-top: 1rem;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
}
@media screen and (min-width: 750px) {
  .list-menu__item--link { padding-bottom: 0.5rem; padding-top: 0.5rem; }
}

/* --- cart drawer (Upcart app clone) ---
   The live store renders its cart with the Upcart Shopify app (shadow DOM)
   and hides the theme's Dawn cart-drawer entirely. Measured live values:
   - panel 440px wide, full height, right side, white bg
   - header row: "In your cart: N" (bold 15px) + 30px round close button
   - rewards block: "You're $59.00 away from free shipping!" (16px) + a
     segmented progress bar (8px tall, #E2E2E2 track, #EE752F fill)
   - empty state: "Suspiciously empty." (22px) + orange "Start Shopping"
   - upsell carousel: "Fan favorites. Obviously." (24px/600)
   - backdrop: rgba(0,0,0,0.4)                                    */
.upcart-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  z-index: 999;
}
.upcart-backdrop.is-open { opacity: 1; visibility: visible; }

.upcart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
  width: 440px; max-width: 100vw;
  background: #fff; color: #000;
  display: flex; flex-direction: column;
  font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 28.8px;
  letter-spacing: .6px;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -2px 0 12px rgba(0, 0, 0, .12);
}
.upcart-panel.is-open { transform: translateX(0); }

.upcart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 30px; flex-shrink: 0;
}
.upcart-header h4 {
  margin: 0; font-size: 16px; line-height: 28.8px; font-weight: 700;
  font-family: inherit; letter-spacing: .6px;
}
.upcart-header__close {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #000;
}
.upcart-header__close:hover { background: #00000010; }
.upcart-header__close svg { width: 15px; height: 15px; fill: currentColor; }

.upcart-rewards { text-align: center; padding: 18px 30px 36px; display: block; flex-shrink: 0; }
.upcart-rewards__message { margin: 0 0 20px; font-size: 16px; line-height: 28.8px; }
.upcart-rewards__message b { font-weight: 700; }
.upcart-rewards__bar { position: relative; }
.upcart-progress {
  position: relative; height: 8px; border-radius: 4px;
  background: #E2E2E2; overflow: visible;
}
.upcart-progress > .upcart-progress__fill {
  position: absolute; left: 0; top: 0; height: 100%; display: block;
  background: #EE752F; border-radius: 4px; transition: width .3s ease-in-out;
}
.upcart-progress__milestone {
  position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; display: flex; align-items: center; justify-content: center;
  color: #000;
}
.upcart-progress__milestone svg { width: 20px; height: 20px; fill: currentColor; }
.upcart-progress__milestone.is-complete { color: #EE752F; }

.upcart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.upcart-empty {
  flex: 0 0 auto; height: 320px; display: flex;
  align-items: center; justify-content: center; text-align: center;
}
.upcart-empty h3 {
  margin: 0; font-size: 22px; line-height: 20px; font-weight: 400;
  font-family: inherit; letter-spacing: .6px;
}

.upcart-items { list-style: none; margin: 0; padding: 0 30px; }
.upcart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.upcart-item__image {
  flex: 0 0 auto; width: 88px; height: 88px; overflow: hidden;
  border-radius: 4px; background: #f6f6f7;
}
.upcart-item__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upcart-item__info { flex: 1; min-width: 0; }
.upcart-item__title {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0 0 6px;
  color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upcart-item__variant { margin: 0 0 8px; font-size: 13px; color: #7b7b93; }
.upcart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upcart-item__price { font-size: 15px; white-space: nowrap; }
.upcart-item__remove {
  background: none; border: 0; padding: 0; margin-top: 6px; cursor: pointer;
  font-size: 13px; color: #7b7b93; text-decoration: underline;
}

.upcart-qty {
  display: inline-flex; align-items: center; border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 8px; overflow: hidden;
}
.upcart-qty button {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; line-height: 1; color: #000;
}
.upcart-qty input {
  width: 36px; height: 32px; border: 0; text-align: center; font-size: 14px;
  background: transparent; color: inherit; -moz-appearance: textfield;
}
.upcart-qty input::-webkit-outer-spin-button,
.upcart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Upcart upsell block (mirrors the live app's shadow DOM) --- */
.upcart-upsell { margin-bottom: 8px; padding: 12px 0 8px; }
.upcart-upsell__header {
  padding: 28px; text-align: center; font-size: 18px; line-height: 32.4px;
}
.upcart-upsell__header p { margin: 0; }
.upcart-upsell__cta {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 60px); height: 45px; margin: 20px 30px;
  padding: 8px; box-sizing: border-box;
  background: #EE752F; color: #fff; border: 0; border-radius: 9px;
  font-family: inherit; font-size: 16px; line-height: 28.8px; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.upcart-upsell__cta:hover { opacity: .88; }
.upcart-upsell__title {
  font-size: 24px; font-weight: 600; line-height: 43.2px;
  padding: 0 30px; text-align: center;
  font-family: inherit; letter-spacing: .6px;
}
.upcart-upsell__title p { margin: 0; }

.upcart-carousel { display: flex; align-items: center; }
.upcart-carousel__window { width: calc(100% - 52px); overflow: hidden; }
.upcart-carousel__track {
  display: flex; gap: 0; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none;
}
.upcart-carousel__track::-webkit-scrollbar { display: none; }
.upcart-carousel__slide { flex: 0 0 100%; padding: 2px; box-sizing: border-box; }
.upcart-carousel__btn {
  flex: 0 0 auto; width: 26px; height: 19px; padding: 1px 6px;
  background: transparent; border: 0; color: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.upcart-carousel__btn:hover { color: #000; }
.upcart-carousel__btn svg { width: 14px; height: 14px; fill: currentColor; }
.upcart-carousel__btn--prev { color: rgba(16, 16, 16, .3); }
.upcart-carousel__btn--prev svg { transform: scaleX(-1); }

.upcart-tile {
  display: flex; align-items: center; width: 100%;
  background: #f6f6f7; padding: 16px; border-radius: 8px; box-sizing: border-box;
}
.upcart-tile__image {
  flex: 0 0 auto; width: 90px; height: 90px; overflow: hidden;
  margin-right: 16px; border-radius: 4px;
}
.upcart-tile__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upcart-tile__info { flex: 1; min-width: 0; }
.upcart-tile__title {
  display: block; text-align: left; line-height: 22.5px; font-size: 15px; font-weight: 600;
  margin: 0 0 6px; color: inherit; text-decoration: none;
  font-family: inherit; letter-spacing: .6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upcart-tile__price-row {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  margin: 0 0 8px; line-height: 19.5px;
}
.upcart-tile__price { font-size: 15px; }
.upcart-tile__price-compare-at {
  font-size: 13px; line-height: 16.9px; text-decoration: line-through; opacity: .7;
}
.upcart-tile__variant-row { display: flex; align-items: center; gap: 8px; }
.upcart-tile__select {
  flex: 0 0 148px; width: 148px; height: 34px; padding: 8px;
  background: #f9f9f9; border: 1px solid #ccc; border-radius: 4px;
  font-family: inherit; font-size: 12px; color: #000;
}
.upcart-tile__add {
  flex: 0 0 auto; width: 90px; height: 34px; padding: 8px;
  background: #EE752F; color: #fff; border: 0; border-radius: 9px;
  font-family: inherit; font-size: 13.33px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.upcart-tile__add:hover { opacity: .88; }
.upcart-internal__visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.upcart-footer { padding: 18px 30px 24px; border-top: 1px solid rgba(0, 0, 0, .08); flex-shrink: 0; }
.upcart-footer__row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; font-size: 16px;
}
.upcart-footer__total { font-weight: 700; }
.upcart-button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 43px; padding: 8px; box-sizing: border-box;
  background: #EE752F; color: #fff; border: 0; border-radius: 9px;
  font-family: inherit; font-size: 15px; cursor: pointer; text-decoration: none;
}
.upcart-button:hover { opacity: .88; }
.upcart-button[disabled] { opacity: .6; cursor: not-allowed; }
.upcart-button--ghost {
  background: transparent; color: #000; border: 1px solid rgba(0, 0, 0, .15);
  margin-top: 10px;
}

/* --- footer contact column --------------------------------------------
   The store contact details live in their own column of the footer top
   row (logo | menu | contact) so the row stays balanced. */
.footer-block--contact .footer-block__heading {
  margin-bottom: 1.6rem;
  font-size: calc(var(--font-heading-scale) * 1.4rem);
}
.footer-block__contact-info {
  font-size: 1.4rem;
  line-height: 1.6;
}
.footer-block__contact-line + .footer-block__contact-line { margin-top: 0.4rem; }
.footer-block__contact-line:first-child { font-weight: 600; }
@media screen and (min-width: 750px) {
  .footer-block--contact .footer-block__heading {
    font-size: calc(var(--font-heading-scale) * 1.6rem);
  }
}

/* --- logo / header tweaks --- */
.header__icon { display: flex; align-items: center; }
/* Live keeps the search toggle (`summary.header__icon--summary`) as a
   44x44 inline-block box. As a flex container it would grow to 88px once
   the close (X) icon appears and push the X over the account icon, so
   pin it back to the live box. */
.header__icon--summary { display: inline-block; width: 4.4rem; height: 4.4rem; }
/* The live theme sizes the header icons itself (.header__icon .svg-wrapper =
   44x44, .header__icon .icon = 20x20, .header__icon--cart .icon = 44x44).
   Do NOT force the wrapper/svg to 2rem here - it squashed the cart icon to
   20x44 (see the live measurements: cart icon is 44x44). */
.header__icon .svg-wrapper { display: flex; }
/* Live hides the search "close" (X) icon until the search modal is open:
   `details .header__icon-close { display: none }`. Our `.header__icon
   .svg-wrapper { display: flex }` rule above is more specific (2 classes)
   and re-showed that X next to the account icon - keep it hidden.
   Live shows the X as a 22x44 box, the search icon as 22x44 as well. */
details .header__icon-close { display: none !important; }
details[open] .header__icon-close { display: inline-block !important; }
.header__icon--cart { position: relative; }
/* Dawn's own bubble geometry, but with !important so that
   `.header__icon span { height: 100% }` cannot stretch it into a 44px
   tall pill (that was the "cart bubble" bug). */
.header__icon--cart .cart-count-bubble {
  position: absolute;
  bottom: 0.8rem;
  left: 2.2rem;
  top: auto;
  right: auto;
  height: 1.7rem !important;
  width: 1.7rem;
  min-width: 1.7rem;
  border-radius: 100%;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- product card badge ---
   The rating markup uses Dawn's native classes (.rating / .rating-text /
   .rating-count) so no display overrides are needed here - the live theme
   keeps .rating as inline-block and hides .rating-text. */
.card__badge .badge { display: inline-block; }

/* --- hero slider helper --- */
.section-hero-slider { position: relative; }
.hs-slide { display: block; }
.hs-track { display: flex; }
.hs-slide > img { width: 100%; display: block; }

/* ==========================================================================
   Judge.me — reviews cards carousel
   Markup + sizing mirror the live store (judgeme-carousels.css drives it).
   ========================================================================== */
.jdgm-widget { --jdgm-primary-color: #EE752F; }
.jdgm-cards-carousel {
  text-align: center; font-size: 16px;
  /* Live metrics at a 1100px-wide widget (measured from treasurecorner.com):
     4 visible cards of 230px with a 20px gap => 980px track. */
  --card-width: 230px; --visible-cards: 4; --jm-card-gap: 20px; --line-clamp: 4;
}
.jdgm-header { text-align: center; margin-bottom: 4rem; }
.jdgm-title {
  font-family: var(--font-heading-family); font-weight: 500;
  font-size: 3.6rem; margin: 0 0 0.8rem; color: var(--header-color, #000);
  line-height: 1.2; letter-spacing: 0;
}
.jdgm-header-info { display: flex; justify-content: center; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.jdgm-average-rating { display: flex; align-items: center; gap: 0.8rem; }
/* Live: the header stars are plain inline spans (each 21px wide, 4px right
   padding) inside a `display: block` container - NOT a flex row. */
.jdgm-average-rating .jdgm-stars { display: block; }
.jdgm-average-rating .jdgm-star { color: var(--stars-color, var(--header-color, #000)); line-height: 1; font-size: 16px; }
.jdgm-rating-text { font-size: 1.6rem; color: var(--header-color, #000); }
.jdgm-rating-text .jdgm-rating-star { color: var(--stars-color, var(--header-color, #000)); }
.jdgm-verified-badge-header { display: flex; align-items: center; gap: 0.8rem; }
.jdgm-verified-checkmark { width: 2rem; height: 2rem; fill: #3eb2a2; }
.jdgm-verified-text { font-size: 1.6rem; color: var(--header-color, #000); }

.jdgm-content { position: relative; display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 4rem; }
.jdgm-arrow {
  width: 4rem; height: 4rem; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--arrows-color, #000);
  flex-shrink: 0; padding: 0; transition: opacity .2s;
}
.jdgm-arrow:hover { opacity: .7; }
.jdgm-arrow svg { width: 2rem; height: 3.4rem; fill: currentColor; }
.jdgm-arrow:disabled { opacity: 0; pointer-events: none; }

/* Live: `.jdgm-cards-wrapper` clips a horizontally scrolling flex track
   (`.jdgm-videos-container`) that is translated with `transform`.
   Our markup uses `.jdgm-cards-track` for that track - it MUST be a flex
   row, otherwise every review card drops onto its own line. */
.jdgm-cards-wrapper {
  overflow: hidden; flex: 1; min-width: 0;
  max-width: max(var(--card-width, 230px), calc(var(--visible-cards, 4) * var(--card-width, 230px) + (var(--visible-cards, 4) - 1) * var(--jm-card-gap, 20px)));
}
.jdgm-cards-track {
  display: flex; flex-direction: row; gap: var(--jm-card-gap, 20px);
  justify-content: flex-start; align-items: stretch; overflow: visible;
  transition: transform .6s cubic-bezier(.36, .66, .04, 1);
  position: relative; padding: 0; width: max-content;
}
.jdgm-videos-container {
  display: flex; gap: 2rem; align-items: stretch; overflow: visible;
  transition: transform .6s cubic-bezier(.36, .66, .04, 1); position: relative; padding: 0;
}
.jdgm-cards-carousel .jdgm-card {
  padding: 0; gap: 0; overflow: hidden; background: var(--card-color, #f9f9f9);
  border-radius: var(--border-radius, 8px);
  flex: 0 0 var(--card-width, 230px); max-width: var(--card-width, 230px);
  width: var(--card-width, 230px); height: auto; align-items: stretch; cursor: pointer;
}
.jdgm-cards-carousel .jdgm-card img {
  width: 100%; height: calc(var(--card-width, 230px) * var(--image-ratio, 1.33));
  object-fit: cover; display: block;
}
/* Live: the review text block reserves `--line-clamp` lines (4 x 1.2em)
   + 16px top padding = 93px, so every card is the same height. */
.jdgm-cards-carousel .jdgm-text {
  padding: 1.6rem 1.6rem 0; flex: 1;
  min-height: calc(var(--line-clamp, 4) * 1.2em + 1.6rem);
  max-height: calc(var(--line-clamp, 4) * 1.2em + 1.6rem);
}
.jdgm-cards-carousel .jdgm-text p {
  margin: 0; font-size: var(--text-size, 16px); line-height: 1.2; color: var(--text-color, #000);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--clamp, 4);
  overflow: hidden; text-align: center; max-width: calc(var(--card-width, 230px) - 4.8rem);
}
.jdgm-cards-carousel .jdgm-rating-section { padding: 1.2rem 1.6rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.jdgm-cards-carousel .jdgm-rating-section .jdgm-stars { display: flex; gap: 0.4rem; }
.jdgm-cards-carousel .jdgm-rating-section .jdgm-star { font-size: 2.4rem; color: #EE752F; padding: 0 !important; }
.jdgm-cards-carousel .jdgm-rating-section .jdgm-reviewer-info { display: flex; align-items: center; gap: 0.4rem; justify-content: center; }
.jdgm-cards-carousel .jdgm-reviewer-name {
  font-size: 1.6rem; font-weight: 600; color: var(--text-color, #000);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jdgm-cards-carousel .jdgm-reviewer-verified-icon { width: 2rem; height: 2rem; display: inline-block; }
.jdgm-cards-carousel .jdgm-product-name a,
.jdgm-cards-carousel .jdgm-product-name.jdgm-product-name--unlinked {
  font-size: 1.4rem; font-weight: 400; color: #7b7b7b; text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
}

/* ==========================================================================
   Judge.me — medals
   ========================================================================== */
.jdgm-medals-wrapper { text-align: center; }
.jdgm-rating { display: flex; align-items: center; gap: 0.4rem; justify-content: center; }
.jdgm-rating__stars { margin-right: 0.4rem; display: inline-flex; gap: 0.2rem; }
.jdgm-rating__stars .jdgm-star { color: #108474; font-size: 1.5rem; }
.jdgm-rating__count { font-size: 1.6rem; color: #108474; }
.jdgm-medals__container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.jdgm-medal-wrapper { display: inline-block; margin: 0 0.8rem; }
.jdgm-medal { position: relative; width: 6.4rem; height: 6.4rem; display: block; }
.jdgm-medal__image, .jdgm-medal__image > img { width: 100%; height: 100%; }
.jdgm-medal__value {
  position: absolute; top: 3.2rem; width: 6.4rem; text-align: center;
  font-family: "Nunito Sans", "Helvetica", Arial, sans-serif;
  font-size: 1.6rem; font-weight: bold; line-height: 1;
}
.jdgm-medal[data-tier="platinum"] .jdgm-medal__value { color: #488282; }
.jdgm-medal[data-type="mon_rec"] .jdgm-medal__value { top: 2.7rem; }
.jdgm-verified-by { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.2rem; }
.jdgm-verified-by__text { font-size: 1.4rem; color: #7b7b7b; }
.jdgm-verified-by__image img { height: 2rem; width: auto; display: block; }

/* --- benefits bar (collection pages) --- */
.section-benefits-bar { overflow: hidden; }
.bb-template { display: flex; gap: 0; }
.bb-item {
  flex: 1; text-align: center; padding: 1rem; font-weight: 600; font-size: 1.4rem; text-decoration: none;
}

/* --- collection grid ---
   Row gap comes from Dawn's --grid-desktop-vertical-spacing, don't override it. */
.collection__view-all { text-align: center; margin-top: 3rem; }
.facets-wrapper { margin-bottom: 2rem; }
.facets__summary-label { font-weight: 600; }
.facet-checkbox { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.facet-checkbox input { accent-color: rgb(var(--color-button)); }
.facets__item { margin: 0.4rem 0; }

/* ==========================================================================
   Secondary pages (about / contact / size chart / reviews / policy /
   press / affiliates / accessibility / collection / cart / checkout /
   search / login)
   ========================================================================== */

/* --- generic page furniture --- */
.content-for-layout { min-height: 40vh; }
.muted { color: rgba(var(--color-foreground), 0.65); }

/* --- "Buy it now" / accelerated checkout block ---
   The live product page renders the wallet button full width (368px) with
   the "More payment options" link on its own line underneath (total 80px).
   Dawn's default markup puts them side by side, so force the stacked layout. */
.shopify-payment-button { display: block; }
.shopify-payment-button__button--unbranded {
  display: block; width: 100%; min-width: 0; text-align: center;
}
.shopify-payment-button__more-options {
  display: block; text-align: center; margin: 1.6rem 0 1rem;
}

/* --- installments placeholder (live shows an empty 24px box) --- */
.product__installment { min-height: 24px; }
.installment { margin: 0; }
/* Author rules like `.form__message { display:flex }` beat the UA
   `[hidden]` rule, so make the attribute authoritative again. */
[hidden] { display: none !important; }
.empty-state { padding: 6rem 0 4rem; }
.empty-state h2 { margin-bottom: 1rem; }
.empty-state p { margin-bottom: 2rem; color: rgba(var(--color-foreground), 0.7); }

/* --- icons that only exist in the live markup --- */
.icon-filter, .icon-cart-empty, .icon-account, .icon-search { fill: currentColor; }
.icon-filter { width: 2rem; height: 2rem; }
.icon-cart-empty { width: 2.4rem; height: 2.4rem; }
.icon-account, .icon-search { width: 2rem; height: 2rem; }

/* --- collection page --- */
.collection__description { margin: 1rem 0 0; color: rgba(var(--color-foreground), 0.7); }
.collection__title { margin-bottom: 2rem; }
.facets__wrapper { margin-bottom: 1rem; }
.facets__heading { margin-bottom: 1rem; }
.facets__disclosure { border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08); padding: 0.6rem 0; }
.facets__summary { cursor: pointer; list-style: none; }
.facets__summary::-webkit-details-marker { display: none; }
.facets__display { padding: 0.8rem 0 1.2rem; }
.facets__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.facets__reset { font-size: 1.2rem; }
.facet-checkbox { position: relative; }
.facet-checkbox > input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.facet-checkbox > svg { flex-shrink: 0; }
.facet-checkbox > .svg-wrapper { visibility: hidden; position: absolute; left: 0.3rem; top: 1.4rem; width: 1.1rem; height: 0.7rem; }
.facet-checkbox > input[type="checkbox"]:checked ~ .svg-wrapper > .icon-checkmark { visibility: visible; border: none; }
.facet-filters { margin: 1.5rem 0; }
.facet-filters__field { display: flex; align-items: center; gap: 1rem; }
.facet-filters__label { margin: 0; }
.facet-filters__sort { min-width: 20rem; }
.product-count__text { margin: 0; font-weight: 400; }
.active-facets { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.active-facets__button { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2); border-radius: 99px; padding: 0.6rem 1.2rem; font-size: 1.3rem; }
.active-facets__button .svg-wrapper { display: flex; width: 1.2rem; }
.active-facets__button .svg-wrapper svg { width: 1.2rem; height: 1.2rem; }
.mobile-facets__footer { padding: 1.5rem; }
.pagination-wrapper { margin: 3rem 0 5rem; }

/* --- cart page --- */
.cart__header { margin-bottom: 3rem; }
.cart__heading { margin: 0; }
.cart__footer .totals { justify-content: flex-end; margin: 2rem 0 1rem; }
.cart__footer .tax-note { text-align: right; }
.cart__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.cart-item__quantity-wrapper { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.cart-item__quantity--info { display: none; }
.quantity { display: inline-flex; align-items: center; border: 0.1rem solid rgba(var(--color-foreground), 0.2); border-radius: 99px; overflow: hidden; }
.quantity__button { width: 3.4rem; height: 3.4rem; border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.quantity__input { width: 3.4rem; text-align: center; border: 0; background: transparent; font-size: 1.4rem; -moz-appearance: textfield; }
.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove-button { display: inline-block; margin-left: 1rem; }
.cart-remove-button .button { min-width: 3.5rem; min-height: 3.5rem; padding: 0; }
.cart-item__final-price { font-weight: 400; }
.cart-note { margin-bottom: 2rem; }
@media screen and (min-width: 750px) {
  .cart-items thead th:first-child { width: 60%; }
  .cart__ctas .button { flex: 0 0 auto; }
}

/* --- checkout page --- */
.checkout { display: grid; gap: 4rem; grid-template-columns: 1fr; }
@media screen and (min-width: 990px) {
  .checkout { grid-template-columns: 3fr 2fr; gap: 5rem; align-items: start; }
}
.checkout__step { margin-bottom: 3rem; }
.checkout__step h2 { margin-bottom: 1.5rem; }
.checkout__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.checkout__summary { background: rgba(var(--color-foreground), 0.04); border-radius: 1.2rem; padding: 2.5rem; }
.checkout__summary h2 { margin-bottom: 1.5rem; }
.checkout__summary .totals { justify-content: space-between; margin-top: 1rem; }
.checkout__summary .totals > * + * { margin-left: 0; }
.checkout__items { margin-bottom: 1.5rem; }
.checkout-item { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 0; border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08); }
.checkout-item img { width: 8.2rem; border-radius: 0.8rem; }
.checkout-item__info { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.checkout-item__title { font-weight: 600; }
.checkout-item__options, .checkout-item__qty { font-size: 1.3rem; color: rgba(var(--color-foreground), 0.65); }
.checkout-item__price { font-weight: 600; white-space: nowrap; }
.checkout-empty { color: rgba(var(--color-foreground), 0.65); }
.checkout__done { padding: 6rem 0; }
.checkout__done h2 { margin-bottom: 1rem; }
.checkout__done p { margin-bottom: 2.5rem; }
.checkout__empty-state { padding: 6rem 0 2rem; text-align: center; }
.checkout__empty-state .cart__empty-text { display: block; margin-bottom: 2rem; font-size: 2.4rem; }

/* --- customer (login) page --- */
.customer { max-width: 42rem; margin: 0 auto; }
.customer form { margin-top: 2rem; }
.customer__form-row { margin-top: 2rem; }
.customer__form-links { margin-top: 1.5rem; font-size: 1.4rem; }
.customer__register { margin-top: 3rem; padding-top: 2rem; border-top: 0.1rem solid rgba(var(--color-foreground), 0.1); font-size: 1.4rem; }
.customer .hidden { display: none; }

/* --- policy page --- */
.policy-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0 3rem; }
.policy-nav a { font-size: 1.4rem; }
.policy-section { padding-top: 3rem; }
.policy-title { margin-bottom: 2rem; }
.policy-active { background: rgba(var(--color-foreground), 0.04); border-radius: 1.2rem; padding: 2rem; }

/* --- reviews page --- */
.jdgm-all-reviews__header { text-align: center; margin-bottom: 3rem; }
.jdgm-all-reviews__summary { font-family: var(--font-heading-family); font-size: 3.2rem; margin: 0 0 1.5rem; }
.jdgm-all-reviews__wrapper { border-top: 0.1rem solid rgba(var(--color-foreground), 0.1); }
.jdgm-revs { padding: 0; margin: 0; }
.jdgm-rev { padding: 2.5rem 0; border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08); }
.jdgm-rev__header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.jdgm-rev__icon { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(var(--color-foreground), 0.08);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; }
.jdgm-rev__rating { display: inline-flex; gap: 0.2rem; }
.jdgm-rev__timestamp { font-size: 1.3rem; color: rgba(var(--color-foreground), 0.6); }
.jdgm-rev__author { font-weight: 600; }
.jdgm-rev__body { margin-top: 1rem; font-size: 1.5rem; line-height: 1.6; }
.jdgm-rev__pics { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.jdgm-rev__pic-img { width: 12rem; height: 12rem; object-fit: cover; border-radius: 0.8rem; }
.jdgm-all-reviews-page__load-more-wrapper { text-align: center; padding: 3rem 0; }
.jdgm-star.jdgm--on { color: #EE752F; }
.jdgm-star.jdgm--off { color: rgba(var(--color-foreground), 0.2); }
.jdgm-stars { display: inline-flex; gap: 0.3rem; }

/* Judge.me all-reviews header + histogram */
.jdgm-all-reviews__summary { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.jdgm-all-reviews__summary-stars-img { display: inline-flex; gap: 0.4rem; }
.jdgm-all-reviews__summary-text { font-size: 1.5rem; color: rgba(var(--color-foreground), 0.7); }
.jdgm-write-rev-link { display: inline-block; margin: 1.2rem 0 0; font-size: 1.4rem; text-decoration: underline; }
.jdgm-histogram { max-width: 46rem; margin: 2.4rem auto 0; text-align: left; }
.jdgm-histogram__row { display: flex; align-items: center; gap: 1.2rem; padding: 0.5rem 0; }
.jdgm-histogram__star { display: inline-flex; gap: 0.2rem; width: 9rem; flex: 0 0 auto; cursor: pointer; }
.jdgm-histogram__bar { flex: 1; height: 1rem; background: rgba(var(--color-foreground), 0.08); border-radius: 0.5rem; overflow: hidden; }
.jdgm-histogram__bar-content { height: 100%; background: #EE752F; border-radius: 0.5rem; }
.jdgm-histogram__percentage { width: 4rem; text-align: right; font-size: 1.4rem; }
.jdgm-histogram__frequency { width: 5rem; font-size: 1.4rem; color: rgba(var(--color-foreground), 0.6); }
.jdgm-histogram__clear-filter { height: 0; overflow: hidden; padding: 0; }
.jdgm-rev__prod-info-wrapper { display: inline-flex; align-items: center; gap: 0.4rem; }
.jdgm-rev__prod-link { text-decoration: underline; font-size: 1.3rem; }
.jdgm-rev__br { width: 100%; height: 0; }
.jdgm-rev__buyer-badge-wrapper { display: inline-flex; }
.jdgm-rev__author-wrapper { display: inline-flex; align-items: center; gap: 0.4rem; }
.jdgm-rev__icon + .jdgm-rev__rating { margin-left: 0.4rem; }
.jdgm-rev__title { display: block; margin-top: 0.8rem; font-size: 1.6rem; }
@media screen and (max-width: 749px) {
  .jdgm-histogram__star { width: 7rem; }
  .jdgm-histogram__frequency { display: none; }
}

/* --- misc utilities --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 2rem);
  background: rgb(var(--color-foreground)); color: rgb(var(--color-background));
  padding: 1rem 1.8rem; border-radius: 99px; z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; font-size: 1.4rem;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
