/* =========================================================================
   EnKart - Upsell & Cross Sell  |  additions to home.css
   Built by Enstacked Technologies

   home.css is Varn's live stylesheet, unchanged. This file only adds the
   few pieces Varn's markup has no class for: the EnKart lockup, the offer
   demo in the hero, the offer preview in the style studio and the offer
   type tiles. Every value comes from home.css's own tokens, so both
   themes follow automatically.
   ========================================================================= */

/* ---- lockup: the app icon, the name and the app's subtitle, drawn the
        way Varn's logo file is (icon, name, small subtitle under it), but in
        HTML so the name follows the theme's text colour ---- */
.brand__logo.enkart-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
}

.enkart-lockup__mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex: none;
}

.enkart-lockup__word {
  display: grid;
  gap: 1px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--text);
}

.enkart-lockup__sub {
  font-size: 5.6px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.brand__logo--footer.enkart-lockup { height: 40px; gap: 8px; }
.brand__logo--footer .enkart-lockup__mark { width: 40px; height: 40px; border-radius: 8px; }
.brand__logo--footer .enkart-lockup__word { font-size: 21px; }
.brand__logo--footer .enkart-lockup__sub { font-size: 7px; }

.mock__bar img { border-radius: 4px; }

/* ---- hero demo: the plain page's quantity stepper ---- */
.qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
}

.qty__btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty__btn:hover { background: rgb(var(--fg-rgb) / 0.06); }

.qty__val {
  min-width: 52px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo__plain-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- hero demo: EnKart's quantity breaks and priced add-on ---- */
.tiers {
  display: grid;
  gap: 8px;
}

.tier {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tier:hover { border-color: rgb(var(--fg-rgb) / 0.3); }

.tier[aria-checked="true"] {
  border-color: var(--violet);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(157, 149, 255, 0.28);
}

.tier__dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-width 0.2s ease, border-color 0.2s ease;
}

.tier[aria-checked="true"] .tier__dot {
  border: 5px solid var(--violet);
}

.tier__name {
  display: grid;
  gap: 2px;
  font-size: 15px;
  font-weight: 600;
}

.tier__name small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ok-text);
}

.tier__badge {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--violet);
}

.tier__price {
  display: grid;
  justify-items: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tier__price s {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
}

.addon-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--violet);
}

.addon-row b {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo__compare[hidden] { display: none; }

/* ---- style studio: a cross-sell block as the live preview ---- */
.offer-preview {
  --offer-img: 56px;
  --offer-radius: 12px;
  --offer-gap: 10px;
  display: grid;
  gap: 12px;
  width: min(100%, 440px);
}

.offer-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.offer-preview__arrows {
  display: none;
  gap: 6px;
}

.offer-preview__arrows span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 14px;
  color: var(--muted);
}

.offer-preview__items {
  display: grid;
  gap: var(--offer-gap);
}

.offer-item {
  display: grid;
  grid-template-columns: var(--offer-img) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--offer-radius);
  background: var(--surface);
  transition: border-radius 0.2s ease;
}

.offer-item__img {
  display: grid;
  place-items: center;
  width: var(--offer-img);
  height: var(--offer-img);
  border-radius: calc(var(--offer-radius) * 0.75);
  transition: width 0.2s ease, height 0.2s ease;
}

.offer-item__img svg {
  width: 62%;
  height: auto;
}

.offer-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.offer-item__price {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.offer-item__price s {
  margin-left: 6px;
  color: var(--muted);
}

.offer-item__btn {
  padding: 7px 14px;
  border-radius: calc(var(--offer-radius) * 0.75);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.offer-preview--no-compare .offer-item__price s { display: none; }

.offer-preview[data-layout="grid"] .offer-preview__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-preview[data-layout="grid"] .offer-item {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.offer-preview[data-layout="grid"] .offer-item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.offer-preview[data-layout="carousel"] .offer-preview__arrows { display: flex; }
.offer-preview[data-layout="carousel"] .offer-item:not(:first-child) { display: none; }

/* ---- offer types by placement: the tiles reuse Varn's photo grid ---- */
.vgal__photo .offer-art {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- the billing card's ring shows 65% of the plan's cap (home.css fixes it at 82%) ---- */
.gauge--cap .gauge__ring,
.gauge--cap.is-armed.is-filled .gauge__ring { stroke-dashoffset: 35; }
.gauge--cap.is-armed .gauge__ring { stroke-dashoffset: 100; }
.gauge--cap.is-armed.is-filled .gauge__ring { stroke-dashoffset: 35; }
.scorecard__grade--price { font-size: 44px; letter-spacing: -1.5px; }

/* Hero pill while EnKart is not on the App Store yet (13 Oct 2026): plain
   text, not a link, so no hover change, and a still amber dot instead of
   the pulsing green "live" one. Make it Varn's "Now live on the Shopify App
   Store" link again once the listing is up. */
.hero__pill--soon {
  margin: 0;
  cursor: default;
}

.hero__pill--soon:hover {
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.04);
}

.hero__pill--soon .hero__pill-dot {
  background: #e0a63a;
}

.hero__pill--soon .hero__pill-dot::after {
  animation: none;
  content: none;
}
