/* Beauty + Everyday Beauty card contours.
   Sculpted 3D mirror-gloss metallic mahogany rim matching the Buy button.
   Palette: #1a0904, #2b1208, #240e06, #6b2e16, #7a391e, #8d4827, #f4d5b8, #fff3e6.
   The 4.5px rim lives on the card border-box only (same technique as .filters).
   Hover lift, sweep, and transitions stay in the room CSS. */

:root {
  --contour-mid: #7a391e;
  --contour-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%);
  --contour-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%);
}

/* Kill the covering ::before rim. A transparent padding-box layer over a
   border-box jar let the gradient fill the whole face in Chromium. */
body.room-prestige .pcard::before,
body.room-budget .pcard::before,
body.room-prestige .pcard:hover::before,
body.room-prestige .pcard.is-hover::before,
body.room-budget .pcard:hover::before,
body.room-budget .pcard.is-hover::before {
  content: none;
  display: none;
  background: none;
  box-shadow: none;
  -webkit-mask: none;
  mask: none;
}

/* --- Prestige Beauty --- */
body.room-prestige .pcard {
  box-sizing: border-box;
  border: 4.5px solid transparent;
  background-color: #0c0d10;
  background-image:
    linear-gradient(108deg, transparent 0 42%, rgba(255, 243, 230, 0.07) 50%, transparent 58%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 38%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, #0c0d10 0%, #0e0907 100%),
    var(--mahogany-jar, var(--contour-jar));
  background-repeat: no-repeat;
  background-size: 180% 100%, auto, auto, auto, auto;
  background-position: var(--sweep-x) 0, 0 0, 0 0, 0 0, 0 0;
  background-origin: padding-box, padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, padding-box, border-box;
  box-shadow:
    0 1px 0 rgba(255, 243, 230, 0.35),
    0 14px 28px -14px rgba(0,0,0,.66),
    0 8px 16px -10px rgba(0,0,0,.5),
    0 0 0 1px #240e06,
    inset 0 1px 0 rgba(255, 243, 230, 0.55),
    inset 0 -2px 5px rgba(26, 9, 4, 0.72);
}

body.room-prestige .pcard .pimg-well {
  background: linear-gradient(180deg, #0c0d10 0%, #0e0907 100%);
  box-shadow:
    0 0 0 1px #240e06,
    inset 0 1px 0 rgba(255, 243, 230, 0.22),
    inset 0 -1px 0 rgba(0,0,0,.42);
}

body.room-prestige .pcard:hover,
body.room-prestige .pcard.is-hover {
  outline: none;
  border: 4.5px solid transparent;
  background-image:
    linear-gradient(108deg, transparent 0 42%, rgba(255, 243, 230, 0.07) 50%, transparent 58%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 38%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, #0c0d10 0%, #0e0907 100%),
    var(--mahogany-jar-hot, var(--contour-jar-hot));
  background-repeat: no-repeat;
  background-size: 180% 100%, auto, auto, auto, auto;
  background-position: var(--sweep-x) 0, 0 0, 0 0, 0 0, 0 0;
  background-origin: padding-box, padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, padding-box, border-box;
  box-shadow:
    0 1px 0 rgba(255, 243, 230, 0.5),
    0 16px 32px -14px rgba(26, 9, 4, 0.62),
    0 8px 16px -10px rgba(0,0,0,.5),
    0 0 0 1px #8d4827,
    inset 0 1px 0 rgba(255, 243, 230, 0.88),
    inset 0 -2px 5px rgba(26, 9, 4, 0.72);
}

/* --- Everyday Beauty --- */
body.room-budget .pcard {
  box-sizing: border-box;
  border: 4.5px solid transparent;
  background-color: #0c0d10;
  background-image:
    linear-gradient(108deg, transparent 0 42%, rgba(255, 243, 230, 0.07) 50%, transparent 58%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 38%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, #0c0d10 0%, #0e0907 100%),
    var(--mahogany-jar, var(--contour-jar));
  background-repeat: no-repeat;
  background-size: 180% 100%, auto, auto, auto, auto;
  background-position: var(--sweep-x) 0, 0 0, 0 0, 0 0, 0 0;
  background-origin: padding-box, padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, padding-box, border-box;
  box-shadow:
    0 1px 0 rgba(255, 243, 230, 0.35),
    0 16px 34px -16px rgba(0,0,0,.58),
    0 8px 16px -10px rgba(0,0,0,.5),
    0 0 0 1px #240e06,
    inset 0 1px 0 rgba(255, 243, 230, 0.55),
    inset 0 -2px 5px rgba(26, 9, 4, 0.72);
}

body.room-budget .pcard .pimg-well {
  background: linear-gradient(180deg, #0c0d10 0%, #0e0907 100%);
  box-shadow:
    0 0 0 1px #240e06,
    inset 0 1px 0 rgba(255, 243, 230, 0.22),
    inset 0 -1px 0 rgba(0,0,0,.42);
}

body.room-budget .pcard:hover,
body.room-budget .pcard.is-hover {
  border: 4.5px solid transparent;
  background-image:
    linear-gradient(108deg, transparent 0 42%, rgba(255, 243, 230, 0.07) 50%, transparent 58%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 38%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, #0c0d10 0%, #0e0907 100%),
    var(--mahogany-jar-hot, var(--contour-jar-hot));
  background-repeat: no-repeat;
  background-size: 180% 100%, auto, auto, auto, auto;
  background-position: var(--sweep-x) 0, 0 0, 0 0, 0 0, 0 0;
  background-origin: padding-box, padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, padding-box, border-box;
  box-shadow:
    0 1px 0 rgba(255, 243, 230, 0.5),
    0 28px 56px -18px rgba(0,0,0,.8),
    0 12px 24px -10px rgba(0,0,0,.55),
    0 0 0 1px #8d4827,
    inset 0 1px 0 rgba(255, 243, 230, 0.88),
    inset 0 -2px 5px rgba(26, 9, 4, 0.72);
}
