/* Clothing-only button finish.
   Mirror-gloss mahogany like a liquid-metal cream jar: sharp cylindrical
   chrome bands in burnished brown, plus a metallic light sweep on hover.
   Scoped to Clothing pages (body.room-white-hub / body.room-white).
   Do not load this file outside /shop/clothing/. */

body.room-white-hub,
body.room-white {
  --clothing-leather: #7a391e;
  --clothing-leather-mid: #6b2e16;
  --clothing-leather-deep: #2b1208;
  --clothing-leather-ink: #1a0904;
  --clothing-leather-lit: #8d4827;
  --clothing-leather-border: #240e06;
  --clothing-leather-text: #fffaf5;
  --clothing-mirror-ivory: #fff3e6;
  --clothing-mirror-rose: #f4d5b8;
  --clothing-ease: var(--ease, cubic-bezier(.65, 0, .35, 1));
  --clothing-jar:
    linear-gradient(112deg,
      #1a0904 0%,
      #2b1208 8%,
      #6b2e16 17%,
      #8d4827 26%,
      #f4d5b8 31.5%,
      #fff3e6 33.2%,
      #f4d5b8 34.9%,
      #8d4827 41%,
      #6b2e16 54%,
      #2b1208 66%,
      #1a0904 74%,
      #2b1208 80%,
      #6b2e16 90%,
      #8d4827 96%,
      #2b1208 100%);
  --clothing-jar-hot:
    linear-gradient(108deg,
      #1a0904 0%,
      #2b1208 6%,
      #6b2e16 14%,
      #8d4827 22%,
      #f4d5b8 28.5%,
      #fff3e6 30.4%,
      #f4d5b8 32.3%,
      #8d4827 39%,
      #6b2e16 52%,
      #2b1208 64%,
      #1a0904 72%,
      #2b1208 80%,
      #6b2e16 90%,
      #8d4827 97%,
      #2b1208 100%);
  --clothing-sweep:
    linear-gradient(115deg,
      transparent 0%,
      transparent 42%,
      rgba(244, 213, 184, 0.22) 47%,
      rgba(255, 243, 230, 0.78) 50%,
      rgba(244, 213, 184, 0.22) 53%,
      transparent 58%,
      transparent 100%);
}

/* Razor-sharp cylindrical mirror surface. No blend modes, no blur.
   A second gradient layer carries the hover light sweep, parked off-canvas at rest
   so the resting jar look stays clean and text stays above the sheen. */
body.room-white-hub .btn-primary,
body.room-white .btn-primary,
body.room-white-hub .pactions .btn-primary,
body.room-white .pactions .btn-primary,
body.room-white .pp-info .btn-buy,
body.room-white-hub .back-pill,
body.room-white .back-pill,
body.room-white-hub .funnel-pill,
body.room-white .funnel-pill {
  color: var(--clothing-leather-text);
  background-color: var(--clothing-leather);
  background-image: var(--clothing-sweep), var(--clothing-jar);
  background-repeat: no-repeat;
  background-size: 240% 100%, 100% 100%;
  background-position: 145% 50%, 0 0;
  border-color: var(--clothing-leather-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 230, 0.42),
    inset 0 -2px 5px rgba(26, 9, 4, 0.62);
  transition:
    transform 0.4s var(--clothing-ease),
    background-color 0.4s,
    background-image 0.4s,
    background-position 0.55s var(--clothing-ease),
    border-color 0.4s,
    box-shadow 0.4s,
    color 0.4s;
}

body.room-white-hub .btn-primary:hover,
body.room-white .btn-primary:hover,
body.room-white-hub .pactions .btn-primary:hover,
body.room-white .pactions .btn-primary:hover,
body.room-white .pp-info .btn-buy:hover,
body.room-white-hub .back-pill:hover,
body.room-white-hub .back-pill:focus-visible,
body.room-white .back-pill:hover,
body.room-white .back-pill:focus-visible,
body.room-white-hub .funnel-pill:hover,
body.room-white-hub .funnel-pill:focus-visible,
body.room-white .funnel-pill:hover,
body.room-white .funnel-pill:focus-visible {
  color: var(--clothing-leather-text);
  background-color: var(--clothing-leather-lit);
  background-image: var(--clothing-sweep), var(--clothing-jar-hot);
  background-repeat: no-repeat;
  background-size: 240% 100%, 100% 100%;
  background-position: -45% 50%, 0 0;
  border-color: var(--clothing-leather-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 230, 0.88),
    inset 0 0 0 1px rgba(244, 213, 184, 0.38),
    inset 0 -2px 5px rgba(26, 9, 4, 0.48);
}

/* Product-page buy keeps its existing no-lift hover. */
body.room-white .pp-info .btn-buy:hover {
  transform: none;
}

/* Back and Starlink Solar pills keep their existing 1px lift and drop shadow. */
body.room-white-hub .back-pill,
body.room-white .back-pill {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 230, 0.42),
    inset 0 -2px 5px rgba(26, 9, 4, 0.62),
    0 6px 18px -12px rgba(28, 26, 25, 0.35);
}

body.room-white-hub .back-pill:hover,
body.room-white-hub .back-pill:focus-visible,
body.room-white .back-pill:hover,
body.room-white .back-pill:focus-visible,
body.room-white-hub .funnel-pill:hover,
body.room-white-hub .funnel-pill:focus-visible,
body.room-white .funnel-pill:hover,
body.room-white .funnel-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 230, 0.88),
    inset 0 0 0 1px rgba(244, 213, 184, 0.38),
    inset 0 -2px 5px rgba(26, 9, 4, 0.48),
    0 8px 18px -12px rgba(28, 26, 25, 0.32);
}

body.room-white-hub .back-pill:focus-visible,
body.room-white .back-pill:focus-visible,
body.room-white-hub .funnel-pill:focus-visible,
body.room-white .funnel-pill:focus-visible {
  outline: 2px solid #8d4827;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.room-white-hub .btn-primary,
  body.room-white .btn-primary,
  body.room-white-hub .pactions .btn-primary,
  body.room-white .pactions .btn-primary,
  body.room-white .pp-info .btn-buy,
  body.room-white-hub .back-pill,
  body.room-white .back-pill,
  body.room-white-hub .funnel-pill,
  body.room-white .funnel-pill {
    transition:
      transform 0.4s var(--clothing-ease),
      background-color 0.4s,
      background-image 0.4s,
      border-color 0.4s,
      box-shadow 0.4s,
      color 0.4s;
    background-position: 145% 50%, 0 0;
  }

  body.room-white-hub .btn-primary:hover,
  body.room-white .btn-primary:hover,
  body.room-white-hub .pactions .btn-primary:hover,
  body.room-white .pactions .btn-primary:hover,
  body.room-white .pp-info .btn-buy:hover,
  body.room-white-hub .back-pill:hover,
  body.room-white-hub .back-pill:focus-visible,
  body.room-white .back-pill:hover,
  body.room-white .back-pill:focus-visible,
  body.room-white-hub .funnel-pill:hover,
  body.room-white-hub .funnel-pill:focus-visible,
  body.room-white .funnel-pill:hover,
  body.room-white .funnel-pill:focus-visible {
    background-position: 145% 50%, 0 0;
  }

  body.room-white-hub .back-pill:hover,
  body.room-white-hub .back-pill:focus-visible,
  body.room-white .back-pill:hover,
  body.room-white .back-pill:focus-visible,
  body.room-white-hub .funnel-pill:hover,
  body.room-white-hub .funnel-pill:focus-visible,
  body.room-white .funnel-pill:hover,
  body.room-white .funnel-pill:focus-visible {
    transform: none;
  }
}
