/* Final purple balance and the homepage comparison section. */
.sm-body {
  --sm-ink: #fbf7ff;
  --sm-muted: #b9adbf;
  --sm-muted-strong: #e4d9eb;
  background: #0d0912;
}

.sm-product-page { background: #0a070e; }

.sm-compare-section {
  padding-top: 104px;
  padding-bottom: 104px;
  border-top: 1px solid #2e2039;
  background: #08060b;
}

.sm-compare-heading {
  max-width: 930px;
  margin: 0 auto 34px;
  text-align: center;
}

.sm-compare-heading h2 {
  margin: 0;
  color: #fbf7ff;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.08;
}

.sm-compare-heading h2 span { color: var(--sm-accent); }

.sm-compare-heading p {
  max-width: 820px;
  margin: 15px auto 0;
  color: var(--sm-muted-strong);
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 1.55;
}

.sm-compare-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #4e285c;
  border-radius: 8px;
  background: #100a15;
}

.sm-compare-column { min-width: 0; padding: 42px 44px 44px; }
.sm-compare-column-premium { border-right: 1px solid #4e285c; background: #1b0d28; }
.sm-compare-column-other { background: #100c13; }

.sm-compare-column header h3 {
  margin: 0;
  color: #fffaff;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 900;
}

.sm-compare-column header p {
  margin: 5px 0 0;
  color: #baadbf;
  font-size: 13px;
  font-weight: 700;
}

.sm-compare-score {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 38px 0 26px;
  color: #c9bccc;
  font-size: 12px;
  font-weight: 800;
}

.sm-compare-score strong {
  padding: 5px 8px;
  border: 1px solid #5b3c6c;
  border-radius: 5px;
  color: #f7effa;
  font-size: 11px;
}

.sm-compare-meter {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border: 1px solid #43294c;
  border-radius: 999px;
  background: #211526;
}

.sm-compare-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--sm-accent);
}

.sm-compare-column-other .sm-compare-meter span { width: 60%; background: #8f6b9f; }

.sm-compare-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-compare-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 11px 15px;
  border: 1px solid #50235a;
  border-radius: 8px;
  background: rgba(33, 15, 43, .72);
  color: #f8f2fb;
  font-size: 14px;
  font-weight: 800;
}

.sm-compare-list i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 85, 247, .22);
  color: var(--sm-highlight);
  font-size: 12px;
}

.sm-compare-column-other .sm-compare-list li {
  border-color: #2c202e;
  background: #120f13;
  color: #bdb3c0;
}

.sm-compare-column-other .sm-compare-list i { background: #241d25; color: #b7abb9; }

.sm-compare-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 2px solid var(--sm-accent);
  border-radius: 50%;
  background: #100a15;
  box-shadow: 0 0 0 6px rgba(168, 85, 247, .11);
  color: #fffaff;
  font-size: 21px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

@media (max-width: 767.98px) {
  .sm-compare-section { padding-top: 68px; padding-bottom: 68px; }
  .sm-compare-heading { margin-bottom: 26px; }
  .sm-compare-heading h2 { font-size: 38px; }
  .sm-compare-heading p { font-size: 14px; }
  .sm-compare-board { grid-template-columns: 1fr; }
  .sm-compare-column { padding: 29px 18px; }
  .sm-compare-column-premium { border-right: 0; border-bottom: 1px solid #4e285c; }
  .sm-compare-score { margin: 27px 0 20px; }
  .sm-compare-list { gap: 9px; }
  .sm-compare-list li { min-height: 56px; padding: 10px 12px; font-size: 13px; }
  .sm-compare-vs { position: static; width: 58px; height: 58px; margin: 14px auto; font-size: 16px; transform: none; }
}

.sm-product-group-card {
  display: block;
  align-self: flex-start;
  height: fit-content;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #46334f;
  border-radius: 8px;
  background: #17111f;
}

[data-product-search-card] { align-self: flex-start; }

.sm-product-group-card:hover { border-color: var(--sm-accent); }
.sm-product-group-card[open] { border-color: var(--sm-accent); }
.sm-product-group-card > summary { display: block; cursor: pointer; list-style: none; }
.sm-product-group-card > summary::-webkit-details-marker { display: none; }
.sm-product-group-body { min-height: 0; }
.sm-product-group-card h3 { margin: 13px 0 18px; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.35; }

.sm-group-product-list {
  display: grid;
  gap: 8px;
  padding: 14px 17px 17px;
  border-top: 1px solid #46334f;
}

.sm-group-product-list > a,
.sm-group-product-list > .is-unavailable {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid #4f3558;
  border-radius: 7px;
  background: #120d18;
}

.sm-group-product-list > a { color: #fbf7ff; transition: border-color .2s ease, background .2s ease; }
.sm-group-product-list > a:hover { border-color: var(--sm-accent); background: rgba(168, 85, 247, .12); color: #fff; }
.sm-group-product-copy { display: grid; gap: 2px; min-width: 0; }
.sm-group-product-preview { display: grid; width: 40px; height: 40px; place-items: center; overflow: hidden; border: 1px solid #4f3558; border-radius: 6px; background: #24162d; color: var(--sm-highlight); }
.sm-group-product-preview img { width: 100%; height: 100%; object-fit: cover; }
.sm-group-product-preview i { font-size: 13px; }
.sm-group-product-list b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sm-group-product-list small { color: var(--sm-muted); font-size: 10px; font-weight: 700; }
.sm-group-product-list > a > i { color: var(--sm-accent); font-size: 12px; }
.sm-group-product-list > .is-unavailable { color: #a69aaa; }
.sm-group-product-list > .is-unavailable > i { color: #817586; font-size: 12px; }

.sm-coupon-group label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sm-coupon-group label small { color: var(--sm-muted); font-size: 10px; font-weight: 700; }
.sm-quantity-control button:disabled { cursor: not-allowed; opacity: .38; }
.sm-status-card:not(a) { cursor: default; }
.sm-status-card:not(a):hover { border-color: #46334f; transform: none; }
.sm-status-card:not(a) > i { display: none; }

@media (max-width: 767.98px) {
  .sm-group-product-list { padding: 12px; }
}

/* Group variants modal */
.is-group-modal-open { overflow: hidden; }
.sm-product-group-card {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.sm-product-group-card:focus-visible { outline: 3px solid var(--sm-highlight); outline-offset: 3px; }
.sm-product-group-body { min-height: 142px; }
.sm-group-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  padding: clamp(16px, 3vw, 54px);
  place-items: center;
  visibility: hidden;
  background: rgba(4, 3, 7, .72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.sm-group-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.sm-group-modal-panel {
  display: grid;
  width: min(100%, 1650px);
  max-height: min(880px, calc(100dvh - 32px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #4f3558;
  border-radius: 14px;
  background: #100d14;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
  transform: translateY(12px);
  transition: transform .22s ease;
}
.sm-group-modal.is-open .sm-group-modal-panel { transform: translateY(0); }
.sm-group-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 29px;
  border-bottom: 1px solid #3b2a4b;
  background: #100d14;
}
.sm-group-modal-header span { display: block; margin-bottom: 4px; color: var(--sm-accent); font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.sm-group-modal-header h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.5vw, 38px); font-weight: 900; line-height: 1.05; }
.sm-group-modal-close {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  place-items: center;
  border: 1px solid #4f4554;
  border-radius: 50%;
  background: #19151e;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.sm-group-modal-close:hover { border-color: var(--sm-accent); background: rgba(168, 85, 247, .1); color: var(--sm-accent); }
.sm-group-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 310px));
  align-content: start;
  justify-content: center;
  gap: 22px;
  overflow-y: auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(35, 21, 42, .5), #0d0a11);
}
.sm-group-modal-product {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #3d2d47;
  border-radius: 12px;
  background: #141018;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sm-group-modal-product:hover { border-color: var(--sm-accent); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); color: #fff; transform: translateY(-3px); }
.sm-group-modal-product-media {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  background: #24162d;
}
.sm-group-modal-product-media img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; transition: transform .3s ease; }
.sm-group-modal-product:hover .sm-group-modal-product-media img { transform: scale(1.035); }
.sm-group-modal-product-media > i { color: var(--sm-accent); font-size: 32px; }
.sm-group-modal-product-media > b {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 8px 11px;
  border: 1px solid rgba(168, 85, 247, .65);
  border-radius: 999px;
  background: rgba(10, 7, 14, .86);
  color: #f8f2fb;
  font-size: 11px;
  font-weight: 900;
}
.sm-group-modal-product-media > b.is-sold-out { border-color: #ad3f56; background: rgba(69, 12, 24, .9); color: #ffc1cb; }
.sm-group-modal-product-copy { display: grid; align-content: start; gap: 7px; min-height: 102px; padding: 17px; }
.sm-group-modal-product-copy strong { color: #fff; font-size: 16px; font-weight: 900; line-height: 1.18; }
.sm-group-modal-product-copy small { margin-top: auto; color: var(--sm-accent); font-size: 18px; font-weight: 900; }
.sm-group-modal-product.is-unavailable { opacity: .62; }
.sm-group-modal-product.is-unavailable:hover { border-color: #3d2d47; box-shadow: none; transform: none; }

@media (max-width: 767.98px) {
  .sm-group-modal { padding: 12px; }
  .sm-group-modal-panel { max-height: calc(100dvh - 24px); border-radius: 10px; }
  .sm-group-modal-header { padding: 18px; }
  .sm-group-modal-close { width: 44px; height: 44px; flex-basis: 44px; }
  .sm-group-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .sm-group-modal-product { border-radius: 8px; }
  .sm-group-modal-product-media, .sm-group-modal-product-media img { min-height: 150px; }
  .sm-group-modal-product-media > b { top: 8px; right: 8px; padding: 5px 7px; font-size: 9px; }
  .sm-group-modal-product-copy { min-height: 88px; padding: 11px; }
  .sm-group-modal-product-copy strong { font-size: 13px; }
  .sm-group-modal-product-copy small { font-size: 14px; }
}

@media (max-width: 420px) {
  .sm-group-modal-grid { grid-template-columns: 1fr; }
  .sm-group-modal-product-media, .sm-group-modal-product-media img { min-height: 190px; }
}

@media (min-width: 768px) {
  .sm-group-modal-panel-1 { width: min(100%, 380px); }
  .sm-group-modal-panel-2 { width: min(100%, 700px); }
  .sm-group-modal-panel-3 { width: min(100%, 1020px); }

  .sm-group-modal-panel-1 .sm-group-modal-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-group-modal-panel-2 .sm-group-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-group-modal-panel-3 .sm-group-modal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .sm-group-modal-grid-large { grid-template-columns: 1fr; }
  .sm-group-modal-panel-3 .sm-group-modal-grid,
  .sm-group-modal-panel-4 .sm-group-modal-grid { grid-template-columns: 1fr; }

  .sm-group-modal-panel-3 .sm-group-modal-product,
  .sm-group-modal-panel-4 .sm-group-modal-product,
  .sm-group-modal-grid-large .sm-group-modal-product {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(108px, auto);
    min-height: 108px;
  }
  .sm-group-modal-panel-3 .sm-group-modal-product-media,
  .sm-group-modal-panel-3 .sm-group-modal-product-media img,
  .sm-group-modal-panel-4 .sm-group-modal-product-media,
  .sm-group-modal-panel-4 .sm-group-modal-product-media img,
  .sm-group-modal-grid-large .sm-group-modal-product-media,
  .sm-group-modal-grid-large .sm-group-modal-product-media img {
    width: 100%;
    height: 100%;
    min-height: 108px;
  }
  .sm-group-modal-panel-3 .sm-group-modal-product-copy,
  .sm-group-modal-panel-4 .sm-group-modal-product-copy,
  .sm-group-modal-grid-large .sm-group-modal-product-copy {
    min-height: 108px;
    padding: 12px;
  }
  .sm-group-modal-panel-3 .sm-group-modal-product-copy strong,
  .sm-group-modal-panel-4 .sm-group-modal-product-copy strong,
  .sm-group-modal-grid-large .sm-group-modal-product-copy strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.25;
  }
}
