/* =========================
   CANDLES ROOT
   ========================= */

:root {
  /* ===== wide screen scaling ===== */
  /*
    1   = old behavior, stops at the 1920px design size
    1.5 = continues growing to 150% of the old max caps
    2   = continues growing to 200% of the old max caps
  */
  --wide-scale: 2;

  --pframe-w: clamp(300px, calc(596 / 1920 * 100vw), calc(596px * var(--wide-scale)));
  --pframe-aspect: 1193 / 1693;

  --pframe-candle: url("/static/site_imgs/prod_frame_v.png");
  --pframe-candle: image-set(url("/static/site_imgs/generated/prod_frame_v-1000.png") type("image/png"), url("/static/site_imgs/prod_frame_v.png") type("image/png"));

  --photo-w: calc(var(--pframe-w) * (500 / 596));
  --photo-h: calc(var(--pframe-w) * (750 / 596));

  --video-w: clamp(250px, calc(500 / 1920 * 100vw), calc(500px * var(--wide-scale)));
  --thumb-size: clamp(54px, calc(78 / 1920 * 100vw), calc(78px * var(--wide-scale)));
  --details-w: clamp(360px, calc(640 / 1920 * 100vw), calc(640px * var(--wide-scale)));
  --product-layout-gap: clamp(42px, calc(256 / 1920 * 100vw), calc(256px * var(--wide-scale)));

  --card-w: clamp(240px, calc(240 / 1920 * 100vw), calc(240px * var(--wide-scale)));
  --card-gap: clamp(22px, calc(22 / 1920 * 100vw), calc(22px * var(--wide-scale)));

  --panel-radius: clamp(24px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)));
  --panel-bg: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.12);
  --panel-shadow: 0 16px 40px rgba(0,0,0,0.28);

  --text-main: rgba(255,255,255,0.94);
  --text-soft: rgba(255,255,255,0.72);
  --text-faint: rgba(255,255,255,0.58);

  --hover-glow: rgba(255,255,255,0.24);

  /* =========================
     TOP NAV (ANALYTIC)
     ========================= */

  --top-link-w: clamp(72px, calc(209.6 / 1920 * 100vw), calc(209.6px * var(--wide-scale)));
  --top-cart-w: clamp(calc(72px * (301.6 / 209.6)), calc(301.6 / 1920 * 100vw), calc(301.6px * var(--wide-scale)));

  --top-links-gap: clamp(12px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));

  --top-links-shift-x: 0px;
  --top-links-shift-y: clamp(calc(-83px * var(--wide-scale)), calc(var(--content-pad) * -0.8), -10px);

  --top-links-mb: calc(var(--content-pad) * -0.25);

  /* image ratios (source dimensions) */
  --top-link-ratio: calc(232 / 524);
  --top-cart-ratio: calc(292 / 754);

  /* rendered heights */
  --top-link-rendered-h: calc(var(--top-link-w) * var(--top-link-ratio));
  --top-cart-rendered-h: calc(var(--top-cart-w) * var(--top-cart-ratio));

  /* analytic vertical correction */
  --top-links-visual-lift: calc((var(--top-cart-rendered-h) - var(--top-link-rendered-h)) * -0.5);

  /* cart count */
  --cart-count-size: clamp(12px, calc(20 / 1920 * 100vw), calc(20px * var(--wide-scale)));
  --cart-count-right: calc(var(--top-cart-w) * 0.194);
}

/* =========================
   TOP NAV
   ========================= */

.top-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--top-links-gap);

  margin-top: 0;
  margin-bottom: var(--top-links-mb);

  overflow: visible;

  transform:
    translateX(var(--top-links-shift-x))
    translateY(calc(var(--top-links-shift-y) + var(--top-links-visual-lift)));
}

/* base link behavior */
.top-links__home,
.top-links__inc,
.top-links__can,
.top-links__cart {
  position: relative;
  display: inline-block;

  flex: 0 0 auto;
  min-width: 0;

  line-height: 0;
  text-decoration: none;

  transition: filter 160ms ease;
  filter: var(--button-shadow);
}

/* widths */
.top-links__home,
.top-links__inc,
.top-links__can {
  width: var(--top-link-w);
  min-width: var(--top-link-w);
}

.top-links__cart {
  width: var(--top-cart-w);
  min-width: var(--top-cart-w);
}

/* images */
.top-links__home img,
.top-links__inc img,
.top-links__can img,
.top-links__cart img {
  position: relative;
  z-index: 5;

  display: block;
  width: 100%;
  height: auto;

  user-select: none;
  -webkit-user-drag: none;
}

/* hover (no transform anymore) */
.top-links__home:hover,
.top-links__inc:hover,
.top-links__can:hover,
.top-links__cart:hover {
  filter:
    drop-shadow(0 0 10px var(--hover-glow))
    drop-shadow(0 0 22px var(--hover-glow));
}

/* cart count */
.cart-count {
  position: absolute;
  right: var(--cart-count-right);
  top: 50%;
  transform: translate(50%, calc(-50% + 0.5px));

  font-family: "Cinzel", serif;
  font-size: var(--cart-count-size);
  font-weight: 600;
  font-variant-numeric: tabular-nums;

  color: white;
  pointer-events: none;
  z-index: 6;
}

/* =========================
   CART TOAST
   ========================= */

.cart-toast {
  position: absolute;
  top: 50%;
  left: calc(100% - clamp(18px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale))));
  z-index: 1;

  height: clamp(44px, calc(50 / 1920 * 100vw), calc(50px * var(--wide-scale)));
  width: max-content;
  max-width: clamp(260px, calc(600 / 1920 * 100vw), calc(600px * var(--wide-scale)));
  min-width: 0;

  padding: 0 clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)))
             0 clamp(28px, calc(28 / 1920 * 100vw), calc(28px * var(--wide-scale)));

  display: flex;
  align-items: center;

  border-radius: 999px;

  opacity: 0;
  pointer-events: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transform: translateY(-50%) translateX(-62px);
  transition: opacity 160ms ease, transform 160ms ease;

  font-family: "Cinzel", serif;
  font-size: clamp(13px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;

  color: rgba(255,255,255,0.96);
  text-shadow: 0 0 10px rgba(0,0,0,0.35);

  background-color: rgba(41,74,40,0.22);
  border: 1px solid rgba(41,74,40,0.45);
  box-shadow: 0 0 18px rgba(41,74,40,0.28);
}

.cart-toast.is-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

@supports (color: color-mix(in srgb, white, black)) {
  .cart-toast {
    background-color: color-mix(in srgb, #294a28 32%, transparent);
    border: 1px solid color-mix(in srgb, #294a28 45%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, #294a28 28%, transparent);
  }
}

/* =========================
   LIST PAGE
   ========================= */

.candles-list-page {
  padding-top: 0px;
}

.candles-list-hero {
  max-width: calc(900px * var(--wide-scale));
  margin: 0 auto clamp(34px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));
  text-align: center;
}

.candles-list-section {
  margin-top: clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
}

.boxes-empty-state {
  width: min(100%, calc(680px * var(--wide-scale)));
  margin: clamp(34px, calc(48 / 1920 * 100vw), calc(48px * var(--wide-scale))) auto 0;
  padding: clamp(22px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)))
           clamp(24px, calc(28 / 1920 * 100vw), calc(28px * var(--wide-scale)));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.025) 38%,
      rgba(0,0,0,0.12) 100%
    );
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  color: var(--text-main);
  font-size: clamp(20px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)));
  line-height: 1.65;
  text-align: center;
}

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

/* =========================
   LIST HERO
   ========================= */

.candles-list-hero {
  width: min(100%, clamp(320px, calc(760 / 1920 * 100vw), calc(760px * var(--wide-scale))));
  margin: 0 auto clamp(28px, calc(42 / 1920 * 100vw), calc(42px * var(--wide-scale)));

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.candles-list-hero h1 {
  margin: 0;

  font-family: "Cinzel", serif;
  font-size: clamp(30px, calc(40 / 1920 * 100vw), calc(40px * var(--wide-scale)));
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;

  color: rgba(255,255,255,0.96);
  text-shadow: 0 0 14px rgba(0,0,0,0.28);
}

.candles-list-hero h1::after {
  content: "";
  display: block;
  width: clamp(70px, calc(80 / 1920 * 100vw), calc(80px * var(--wide-scale)));
  height: 1px;
  margin: clamp(14px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale))) auto 0;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}

.candles-list-hero p {
  max-width: calc(620px * var(--wide-scale));
  margin: clamp(16px, calc(22 / 1920 * 100vw), calc(22px * var(--wide-scale))) auto 0;

  font-size: clamp(16px, calc(17 / 1920 * 100vw), calc(17px * var(--wide-scale)));
  line-height: 1.7;

  color: var(--text-soft);
}

/* =========================
   DETAIL PAGE
   ========================= */

.candles-page {
  display: block;
  padding-top: 0;
  min-height: 0;
}

.boxes-page {
  --pframe-w: clamp(320px, calc(846 / 1920 * 100vw), calc(846px * var(--wide-scale)));
  --pframe-aspect: 1693 / 1193;
  --pframe-candle: url("/static/site_imgs/prod_frame.png");
  --pframe-candle: image-set(url("/static/site_imgs/generated/prod_frame-1600.png") type("image/png"), url("/static/site_imgs/prod_frame.png") type("image/png"));
  --pframe-box: url("/static/site_imgs/prod_frame.png");
  --pframe-box: image-set(url("/static/site_imgs/generated/prod_frame-1600.png") type("image/png"), url("/static/site_imgs/prod_frame.png") type("image/png"));
  --photo-w: calc(var(--pframe-w) * (750 / 846));
  --photo-h: auto;
  --product-layout-gap: clamp(34px, calc(72 / 1920 * 100vw), calc(72px * var(--wide-scale)));
}

.candle-backbar {
  margin-bottom: clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)));
}

.candle-backlink {
  color: var(--text-soft);
  text-decoration: none;
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
}

.candle-backlink:hover {
  color: var(--text-main);
}

.product-headings {
  display: grid;
  grid-template-columns: minmax(0, var(--pframe-w)) minmax(0, var(--details-w));
  gap: var(--product-layout-gap);
  justify-content: center;
  align-items: start;
  width: 100%;
  margin-bottom: clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)));
}

.product-headings__left {
  grid-column: 1;
  width: var(--pframe-w);
  display: flex;
  justify-content: center;
}

.product-headings__right {
  position: relative;
  top: 0;
}

.product-headings__left,
.product-headings__right {
  display: flex;
  justify-content: center;
}

.product-headings__left h2,
.product-headings__left p,
.product-headings__right h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(21px, calc(28 / 1920 * 100vw), calc(28px * var(--wide-scale)));
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-align: center;
  text-shadow: 0 0 12px rgba(0,0,0,0.28);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--pframe-w)) minmax(0, var(--details-w));
  gap: var(--product-layout-gap);
  justify-content: center;
  align-items: start;
  width: 100%;
  margin-top: 0;
}

.product-media {
  justify-self: start;
  position: relative;
  top: 0;
}

.product-media-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-media-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)));
}

.pframe {
  position: relative;
  width: var(--pframe-w);
  aspect-ratio: var(--pframe-aspect);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  filter: var(--button-shadow);
  transition: filter 200ms ease, transform 200ms ease;
}

.sold-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 999px;
  background: rgba(25,20,18,0.76);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.96);
  font-family: "Cinzel", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.sold-badge[hidden],
.product-info-panel[hidden] {
  display: none !important;
}

.sold-badge--detail {
  top: 16%;
  right: 15%;
  min-width: 148px;
  min-height: 64px;
  padding: 0 36px;
  font-size: 28px;
  border-width: 2px;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.pframe__photo {
  display: block;
  width: var(--photo-w);
  height: var(--photo-h);
  object-fit: contain;
  object-position: center;
  touch-action: pan-y;
}

.pframe::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pframe-candle);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
  filter: var(--button-shadow);
  transition: filter 200ms ease, transform 200ms ease;
}

.product-thumbs {
  display: flex;
  gap: clamp(12px, calc(12 / 1920 * 100vw), calc(12px * var(--wide-scale)));
}

.product-thumbs--vertical {
  width: var(--thumb-size);
  flex-direction: column;
  align-items: center;
  padding-top: clamp(30px, calc(30 / 1920 * 100vw), calc(30px * var(--wide-scale)));
}

.product-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: clamp(12px, calc(12 / 1920 * 100vw), calc(12px * var(--wide-scale)));
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.product-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.30);
}

.product-thumb.is-active {
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 14px rgba(255,255,255,0.10);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-thumb:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
}

.boxes-page .pframe--box {
  width: var(--pframe-w);
  max-width: 100%;
  aspect-ratio: 1693 / 1193;
}

.boxes-page .pframe--box::after {
  background-image: var(--pframe-box);
}

.boxes-page .product-thumbs-shell {
  width: var(--pframe-w);
  max-width: 100%;
  position: relative;
  margin-top: clamp(6px, calc(6 / 1920 * 100vw), calc(6px * var(--wide-scale)));
}

.boxes-page .product-thumbs {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 clamp(2px, calc(2 / 1920 * 100vw), calc(2px * var(--wide-scale))) clamp(8px, calc(8 / 1920 * 100vw), calc(8px * var(--wide-scale)));
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.boxes-page .product-thumbs::-webkit-scrollbar {
  display: none;
}

.boxes-page .product-thumb {
  flex: 0 0 var(--thumb-size);
}

.boxes-page .product-thumbs-arrow {
  position: absolute;
  top: calc(50% - clamp(4px, calc(4 / 1920 * 100vw), calc(4px * var(--wide-scale))));
  width: clamp(30px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));
  height: clamp(42px, calc(48 / 1920 * 100vw), calc(48px * var(--wide-scale)));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: clamp(999px, calc(999 / 1920 * 100vw), calc(999px * var(--wide-scale)));
  background: rgba(18,18,22,0.72);
  color: rgba(255,255,255,0.9);
  font-size: clamp(28px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  z-index: 3;
}

.boxes-page .product-thumbs-arrow--prev {
  left: clamp(-10px, calc(-10 / 1920 * 100vw), calc(-10px * var(--wide-scale)));
}

.boxes-page .product-thumbs-arrow--next {
  right: clamp(-10px, calc(-10 / 1920 * 100vw), calc(-10px * var(--wide-scale)));
}

.boxes-page .product-thumbs-arrow[hidden] {
  display: none;
}

.boxes-page .product-thumbs-shell.is-overflowing:not(.is-at-start)::before,
.boxes-page .product-thumbs-shell.is-overflowing:not(.is-at-end)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: clamp(8px, calc(8 / 1920 * 100vw), calc(8px * var(--wide-scale)));
  width: clamp(38px, calc(48 / 1920 * 100vw), calc(48px * var(--wide-scale)));
  pointer-events: none;
  z-index: 2;
}

.boxes-page .product-thumbs-shell.is-overflowing:not(.is-at-start)::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10,10,12,0.58), rgba(10,10,12,0));
}

.boxes-page .product-thumbs-shell.is-overflowing:not(.is-at-end)::after {
  right: 0;
  background: linear-gradient(90deg, rgba(10,10,12,0), rgba(10,10,12,0.58));
}

.boxes-page .pframe__photo {
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.box-contents__title {
  display: block;
  margin-bottom: clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
}

.box-contents__list {
  display: block;
  white-space: pre-line;
}

.product-details {
  justify-self: end;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.candle-panel {
  width: 100%;
  max-width: var(--details-w);
}

.candle-panel__inner {
  padding: clamp(28px, calc(28 / 1920 * 100vw), calc(28px * var(--wide-scale)))
           clamp(30px, calc(30 / 1920 * 100vw), calc(30px * var(--wide-scale)))
           clamp(30px, calc(30 / 1920 * 100vw), calc(30px * var(--wide-scale)));
  border-radius: var(--panel-radius);
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.03) 38%,
      rgba(0,0,0,0.14) 100%
    );
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(3px);
}

.candle-panel__eyebrow {
  margin: 0 0 clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
  font-family: "Cinzel", serif;
  font-size: clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.candle-panel__title {
  margin: 0 0 clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  font-family: "Cinzel", serif;
  font-size: clamp(30px, calc(36 / 1920 * 100vw), calc(36px * var(--wide-scale)));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.candle-panel__price {
  margin: 0 0 clamp(12px, calc(12 / 1920 * 100vw), calc(12px * var(--wide-scale)));
  font-family: "Cinzel", serif;
  font-size: clamp(22px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale)));
  font-weight: 600;
  color: var(--text-main);
}

.candle-panel__meta {
  margin: 0 0 clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)));
  font-size: clamp(15px, calc(15 / 1920 * 100vw), calc(15px * var(--wide-scale)));
  line-height: 1.5;
  color: var(--text-soft);
}

.candle-panel__desc {
  margin: 0 0 clamp(26px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale)));
  font-size: clamp(16px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  line-height: 1.75;
  color: var(--text-main);
}

.stock-note {
  margin-top: clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  min-height: clamp(22px, calc(22 / 1920 * 100vw), calc(22px * var(--wide-scale)));
  font-size: clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  color: var(--text-soft);
}
/* =========================
 CANDLE VIDEO
   ========================= */

.product-thumb--video{
  position: relative;
  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.10),
      rgba(0,0,0,0.22)
    );
}

.product-thumb__play{
  display: block;
  width: 0;
  height: 0;

  border-top: calc(var(--thumb-size) * 0.16) solid transparent;
  border-bottom: calc(var(--thumb-size) * 0.16) solid transparent;
  border-left: calc(var(--thumb-size) * 0.24) solid rgba(255,255,255,0.88);

  margin-left: calc(var(--thumb-size) * 0.06);

  filter:
    drop-shadow(0 0 6px rgba(255,255,255,0.18))
    drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}

.pframe__photo{
  display: block;
  width: var(--photo-w);
  height: var(--photo-h);
  object-fit: contain;
  object-position: center;
  touch-action: pan-y;
}


video.pframe__photo {
  width: var(--video-w);
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

/* =========================
   SHARED CANDLE CARDS
   ========================= */

.candle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-w), var(--card-w)));
  justify-content: center;
  gap: var(--card-gap);
  width: 100%;
}

.candle-card {
  width: var(--card-w);
  border-radius: clamp(22px, calc(22 / 1920 * 100vw), calc(22px * var(--wide-scale)));

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02) 35%,
      rgba(0,0,0,0.18)
    );

  border: 1px solid rgba(255,255,255,0.12);

  overflow: hidden;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;

  position: relative;
}

.candle-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.candle-card:hover {
  transform: translateY(-4px);

  border-color: rgba(255,255,255,0.28);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    0 0 18px rgba(255,255,255,0.08);
}

.candle-card__imgwrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.candle-card__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 260ms ease;
}

.candle-card:hover .candle-card__imgwrap img {
  transform: scale(1.04);
}

.candle-card.is-sold .candle-card__imgwrap img {
  filter: saturate(0.82) brightness(0.76);
}

.sold-badge--card {
  top: 12px;
  right: 12px;
  min-width: 62px;
  min-height: 28px;
  padding: 0 14px;
  font-size: 12px;
}

.candle-card__body {
  padding: clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)))
           clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)))
           clamp(16px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
}

.candle-card__title {
  margin: 0 0 clamp(8px, calc(8 / 1920 * 100vw), calc(8px * var(--wide-scale)));

  font-family: "Cinzel", serif;
  font-size: clamp(19px, calc(19 / 1920 * 100vw), calc(19px * var(--wide-scale)));
  font-weight: 500;
  letter-spacing: 0.03em;

  color: var(--text-main);
}

.candle-card__price {
  margin: 0 0 clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));

  font-family: "Cinzel", serif;
  font-size: clamp(16px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  font-weight: 600;

  color: rgba(255,255,255,0.88);
}

.candle-card__excerpt {
  margin: 0;

  font-size: clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  line-height: 1.6;

  color: var(--text-soft);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.candle-card::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,255,255,0.12),
      transparent 60%
    );

  opacity: 0.4;
  pointer-events: none;
}

/* =========================
   ADD TO CART
   ========================= */

.addcart {
  position: relative;
  transform: translateZ(0);
  height: clamp(50px, calc(50 / 1920 * 100vw), calc(50px * var(--wide-scale)));
  padding: 0 clamp(60px, calc(60 / 1920 * 100vw), calc(60px * var(--wide-scale)));
  border-radius: 999px;
  overflow: hidden;
  font-family: "Cinzel", serif;
  font-size: clamp(13px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(0,0,0,0.28) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.45);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.10));
}

.addcart::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.28) 0%,
    rgba(255,255,255,0.10) 22%,
    rgba(255,255,255,0.03) 42%,
    rgba(255,255,255,0) 52%
  );
  pointer-events: none;
}

.addcart:not(:disabled):hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}

.addcart:not(:disabled):active {
  background: rgba(255,255,255,0.11);
  transform: translateY(1px);
}

.addcart:disabled {
  opacity: 0.34;
  cursor: default;
  pointer-events: none;
  filter: grayscale(0.35) brightness(0.72);
}

/* =========================
   CANDLE DETAIL SHIPPING PANEL
   ========================= */

.product-details-stack {
  width: 100%;
  max-width: var(--details-w);

  display: flex;
  flex-direction: column;
  gap: clamp(22px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale)));
}

.product-details-stack .candle-panel {
  width: 100%;
  max-width: none;
}

.candle-panel__inner--shipping {
  padding-top: clamp(24px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)));
  padding-bottom: clamp(24px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale)));
}

.candle-panel__section-title {
  margin: 0 0 clamp(14px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));

  font-family: "Cinzel", serif;
  font-size: clamp(20px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;

  color: rgba(255,255,255,0.96);
  text-shadow: 0 0 12px rgba(0,0,0,0.24);
}

.candle-panel__meta strong {
  color: rgba(255,255,255,0.98);
  font-weight: 600;
}

.candle-panel__meta--link {
  margin-top: clamp(14px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  text-align: center;
}

.candle-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255,255,255,0.96);
  text-decoration: none;

  font-family: "Cinzel", serif;
  font-size: clamp(14px, calc(15 / 1920 * 100vw), calc(15px * var(--wide-scale)));
  letter-spacing: 0.04em;
  line-height: 1.35;

  border-bottom: 1px solid rgba(255,255,255,0.28);

  transition:
    color 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.candle-panel__link:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.62);

  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.16))
    drop-shadow(0 0 16px rgba(255,255,255,0.10));
}

.product-info-row {
  width: 100%;
  margin-top: clamp(30px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));
  display: grid;
  grid-template-columns: minmax(0, var(--pframe-w)) minmax(0, var(--details-w));
  gap: var(--product-layout-gap);
  justify-content: center;
  align-items: start;
}

.product-info-panel {
  min-width: 0;
}

.product-info-panel--details {
  justify-self: center;
  width: var(--pframe-w);
}

.product-info-panel--shipping {
  justify-self: center;
  width: 100%;
  max-width: var(--details-w);
}

.product-media-stack > .product-info-panel--shipping {
  width: var(--pframe-w);
  max-width: var(--pframe-w);
  align-self: flex-start;
  margin-top: clamp(30px, calc(34 / 1920 * 100vw), calc(34px * var(--wide-scale)));
}

.product-details-stack > .product-info-panel--details {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.product-details-stack > .product-info-panel--safety {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.product-info-panel__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)))
           clamp(28px, calc(28 / 1920 * 100vw), calc(28px * var(--wide-scale)))
           clamp(26px, calc(26 / 1920 * 100vw), calc(26px * var(--wide-scale)));
  border-radius: var(--panel-radius);
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.025) 38%,
      rgba(0,0,0,0.12) 100%
    );
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transform: translate3d(0, 0.5px, 0);
  backface-visibility: hidden;
}

.product-info-panel__inner > :first-child {
  margin-top: 0;
}

.product-info-panel__inner > :last-child {
  margin-bottom: 0;
}

.product-info-panel__title {
  margin: 0 0 clamp(14px, calc(14 / 1920 * 100vw), calc(14px * var(--wide-scale)));
  font-family: "Cinzel", serif;
  font-size: clamp(20px, calc(24 / 1920 * 100vw), calc(24px * var(--wide-scale)));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(255,255,255,0.96);
}

.product-info-panel__body {
  color: rgba(245,244,240,0.94);
}

.product-info-panel__desc {
  margin: 0 0 clamp(16px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  font-size: clamp(15px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  line-height: 1.75;
  white-space: pre-line;
}

.product-info-panel__meta {
  margin: 0 0 clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
  font-size: clamp(14px, calc(15 / 1920 * 100vw), calc(15px * var(--wide-scale)));
  line-height: 1.6;
  color: rgba(232,236,244,0.94);
}

.product-info-panel__meta:last-child {
  margin-bottom: 0;
}

.product-info-panel__meta strong {
  color: rgba(255,255,255,0.98);
  font-weight: 600;
}

.product-safety-notice__body p {
  margin: 0 0 clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
  font-size: clamp(14px, calc(15 / 1920 * 100vw), calc(15px * var(--wide-scale)));
  line-height: 1.6;
  color: rgba(232,236,244,0.94);
}

.product-safety-section {
  margin-top: clamp(18px, calc(18 / 1920 * 100vw), calc(18px * var(--wide-scale)));
}

.product-safety-section h4 {
  margin: 0 0 clamp(10px, calc(10 / 1920 * 100vw), calc(10px * var(--wide-scale)));
  font-family: "Cinzel", serif;
  font-size: clamp(16px, calc(17 / 1920 * 100vw), calc(17px * var(--wide-scale)));
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255,255,255,0.96);
}

.product-info-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255,255,255,0.96);
  text-decoration: none;

  font-family: "Cinzel", serif;
  font-size: clamp(14px, calc(15 / 1920 * 100vw), calc(15px * var(--wide-scale)));
  letter-spacing: 0.04em;
  line-height: 1.35;

  border-bottom: 1px solid rgba(255,255,255,0.28);

  transition:
    color 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.product-info-panel__link:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.62);

  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.16))
    drop-shadow(0 0 16px rgba(255,255,255,0.10));
}

.product-info-panel__meta--link {
  margin-top: clamp(14px, calc(16 / 1920 * 100vw), calc(16px * var(--wide-scale)));
  text-align: center;
}

/* =========================
   RESPONSIVE
   ========================= */


   
@media (max-width: 980px) {
  .sold-badge--detail {
    min-width: 104px;
    min-height: 44px;
    padding: 0 22px;
    border-width: 1px;
    font-size: 18px;
  }

  .product-layout,
  .product-headings,
  .product-info-row {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: stretch;
  }

  .product-headings__left {
    width: var(--pframe-w);
    max-width: 100%;
    justify-self: center;
  }

  .cart-toast,
  .cart-toast.is-visible {
    display: none !important;
  }

  .product-media-row {
    flex-direction: column;
    align-items: center;
    order: 1;
  }

  .product-thumbs--vertical {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
  }

  .product-media,
  .product-media-stack,
  .product-details,
  .product-details-stack {
    display: contents;
  }

  .product-media-row,
  .product-details-stack > .candle-panel,
  .product-details-stack > .product-info-panel--details,
  .product-details-stack > .product-info-panel--safety,
  .product-media-stack > .product-info-panel--shipping {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
  }

  .product-details-stack > .candle-panel {
    order: 2;
  }

  .product-details-stack > .product-info-panel--details {
    order: 3;
  }

  .product-details-stack > .product-info-panel--safety {
    order: 4;
  }

  .product-media-stack > .product-info-panel--shipping {
    order: 5;
    margin-top: 0;
  }

  .boxes-page .pframe--box,
  .boxes-page .product-thumbs-shell {
    justify-self: center;
    align-self: center;
  }

  .product-info-panel,
  .product-info-panel--details,
  .product-info-panel--shipping,
  .product-info-panel--safety,
  .product-info-panel__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-info-panel--details,
  .product-info-panel--shipping,
  .product-info-panel--safety {
    justify-self: stretch;
  }

  .product-media-stack > .product-info-panel--shipping,
  .product-details-stack > .product-info-panel--details,
  .product-details-stack > .product-info-panel--safety {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  .product-headings__left,
  .product-headings__right {
    top: 0;
  }
}

@media (max-width: 820px) {
  .candle-panel__title {
    font-size: 30px;
  }
}

@media (max-width: 500px) {
  :root {
    --top-links-shift-y: 34px;
    --top-links-mb: 58px;
  }

  .sold-badge--detail {
    min-width: 76px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.07em;
  }

  .sold-badge--card {
    top: 8px;
    right: 8px;
    min-width: 48px;
    min-height: 22px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}
