/* Shiva Experience homepage — mock-up alignment (scoped to body.shiva-homepage) */

body.shiva-homepage {
  --ink: #19141f;
  --muted: #6f6577;
  --cream: #fff8ef;
  --paper: #ffffff;
  --gold: #d59b35;
  --orange: #f06f2f;
  --pink: #c84778;
  --purple: #39224f;
  --border: rgba(25, 20, 31, 0.12);
  --shadow: 0 22px 60px rgba(31, 19, 43, 0.14);
  --radius: 22px;
  --max: 1280px;
  background:
    radial-gradient(circle at top left, rgba(240, 111, 47, 0.15), transparent 34rem),
    radial-gradient(circle at top right, rgba(200, 71, 120, 0.13), transparent 30rem),
    var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.shiva-homepage .shiva-main--flush {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ——— Skip link ——— */
.sx-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.sx-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— Announcement (same faded pink gradient as storefront .shiva-announce site-wide) ——— */
.sx-announce {
  background: linear-gradient(90deg, #fde8df 0%, #f5e0eb 38%, #f9e8ff 72%, #fff3d6 100%);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(200, 71, 120, 0.12);
}
.sx-announce p {
  margin: 0 auto;
  max-width: var(--max);
}

/* ——— Header ——— */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 239, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(25, 20, 31, 0.12);
}

.sx-header__shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.sx-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}

.sx-logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sx-logo img {
  height: auto;
  width: 200px;
  max-width: 100%;
  display: block;
}

.sx-header__drawer {
  order: 3;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
}

.sx-search__form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(31, 19, 43, 0.06);
}
.sx-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--ink);
}
.sx-search input:focus {
  outline: none;
}
.sx-search button {
  border: 0;
  background: var(--gold);
  color: #1a120b;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.sx-header__tools {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.sx-basket {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(31, 19, 43, 0.06);
  color: var(--ink);
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}
.sx-basket:hover {
  border-color: rgba(213, 155, 53, 0.45);
}

.sx-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 19, 43, 0.06);
  flex-shrink: 0;
}

.sx-menu-btn[aria-expanded="true"] {
  background: rgba(213, 155, 53, 0.18);
  border-color: rgba(213, 155, 53, 0.45);
}

.sx-navstrip {
  border-top: 1px solid rgba(25, 20, 31, 0.06);
  background: rgba(255, 255, 255, 0.55);
}
.sx-navstrip__inner {
  padding: 0.55rem 0;
}
.sx-navstrip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.sx-navstrip__list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.sx-navstrip__list a:hover {
  color: var(--orange);
}

@media (max-width: 899px) {
  .sx-header__top {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .sx-logo img {
    width: 142px;
  }

  .sx-header__tools {
    order: 2;
    margin-left: auto;
  }

  .sx-menu-btn {
    display: inline-flex;
  }
  .sx-header__drawer:not(.is-open) {
    display: none;
  }
  .sx-header__drawer.is-open {
    display: block;
    width: 100%;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0.25rem;
  }
  .sx-navstrip:not(.is-open) {
    display: none;
  }
  .sx-navstrip.is-open {
    display: block;
    width: 100%;
    border-top: 0;
    background: transparent;
    padding-bottom: 0.75rem;
  }
  .sx-header__top {
    flex-wrap: wrap;
  }
  .sx-navstrip__list {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem 0 0;
  }
  .sx-navstrip__list a {
    display: block;
    padding: 0.45rem 0;
  }
}

@media (min-width: 900px) {
  .sx-header__drawer,
  .sx-navstrip {
    display: block !important;
  }
  .sx-navstrip.is-open {
    display: block !important;
  }
  .sx-logo,
  .sx-header__drawer,
  .sx-header__tools {
    order: unset;
  }

  /* Single compact row: logo | search | basket — keeps nav strip directly beneath */
  .sx-header__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap !important;
    padding: 0.65rem 0;
  }

  .sx-logo {
    justify-self: start;
  }

  .sx-header__drawer {
    flex: unset;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

  .sx-header__tools {
    margin-left: 0;
    justify-self: end;
  }
}

/* ——— Hero ——— */
.sx-hero {
  padding: clamp(2rem, 5vw, 3.25rem) 24px 42px;
}
.sx-hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .sx-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.sx-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.75rem;
}
.sx-hero h1 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 20ch;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sx-hero__lede {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: var(--muted);
}
.sx-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sx-btn--primary {
  background: linear-gradient(135deg, var(--orange), #e97459);
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 111, 47, 0.32);
}
.sx-btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(31, 19, 43, 0.06);
}
.sx-btn--primary:hover,
.sx-btn--secondary:hover {
  transform: translateY(-1px);
}

.sx-hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 520px) {
  .sx-hero__trust {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .sx-hero__trust {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.sx-htrust {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(31, 19, 43, 0.06);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.sx-htrust strong {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}
.sx-htrust__ic {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}
.sx-htrust__ic--1 {
  background: linear-gradient(135deg, var(--orange), var(--gold));
}
.sx-htrust__ic--2 {
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.sx-htrust__ic--3 {
  background: linear-gradient(135deg, var(--gold), var(--orange));
}
.sx-htrust__ic i {
  font-size: 0.8rem;
  line-height: 1;
}

/* ——— Collage ——— */
.sx-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  min-height: 0;
}
.sx-collage__cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e0d8;
}
.sx-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sx-collage__buddha {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 220px;
}
.sx-collage__candles {
  grid-column: 2;
  grid-row: 1;
  min-height: 104px;
}
.sx-collage__bags {
  grid-column: 2;
  grid-row: 2;
  min-height: 104px;
}
.sx-collage__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(25, 20, 31, 0.75));
}

@media (max-width: 899px) {
  .sx-collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .sx-collage__buddha,
  .sx-collage__candles,
  .sx-collage__bags {
    grid-column: 1;
    grid-row: auto;
    min-height: 200px;
  }
}

/* ——— Micro trust strip ——— */
.sx-micro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 28px;
}
.sx-micro__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.sx-micro__inner span {
  color: var(--ink);
}

/* ——— Sections ——— */
.sx-sec {
  padding: 42px 24px;
  box-sizing: border-box;
}
.sx-sec__head {
  max-width: var(--max);
  margin: 0 auto 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  align-items: end;
}
@media (min-width: 768px) {
  .sx-sec__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.sx-sec__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--ink);
}
.sx-sec__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}
.sx-sec__link {
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
}
.sx-sec__link:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .sx-sec__intro {
    justify-self: end;
    text-align: right;
  }
}

.sx-catgrid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .sx-catgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .sx-catgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sx-cat {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #2a2430;
}
.sx-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.sx-cat:hover img {
  transform: scale(1.04);
}
.sx-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 20, 31, 0.05) 0%, rgba(25, 20, 31, 0.55) 55%, rgba(25, 20, 31, 0.88) 100%);
  pointer-events: none;
}
.sx-cat__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem 1rem 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ——— Product grid ——— */
.sx-pgrid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .sx-pgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sx-pgrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

.sx-pcard {
  margin: 0;
}
.sx-pcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sx-pcard__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 64px rgba(31, 19, 43, 0.16);
}
.sx-pcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f5f0ea, #ebe4f5);
}
.sx-pcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  box-sizing: border-box;
}
.sx-pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
}
.sx-pcard__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.sx-pcard__body {
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
}
.sx-pcard__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.sx-pcard__price {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.sx-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.sx-empty a {
  color: var(--pink);
  font-weight: 700;
}

/* ——— Story ——— */
.sx-story {
  padding: 0 24px 42px;
}
.sx-story__wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.sx-story__inner {
  background: #20152b;
  border-radius: 34px;
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 768px) {
  .sx-story__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}
.sx-story__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.65);
  margin: 0 0 0.75rem;
}
.sx-story h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: #fff8ef;
}
.sx-story__copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 248, 239, 0.82);
  max-width: 48ch;
}
.sx-story__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.sx-story__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* ——— Footer ——— */
.sx-footer {
  background: #19141f;
  color: rgba(255, 248, 239, 0.85);
  margin-top: auto;
}
.sx-footer a {
  color: rgba(255, 248, 239, 0.95);
  text-decoration: none;
}
.sx-footer a:hover {
  text-decoration: underline;
}
.sx-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 24px 1.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .sx-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.sx-footer__h {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 248, 239, 0.5);
  margin: 0 0 1rem;
}
.sx-footer__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 28rem;
}
.sx-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}
.sx-footer__list li {
  margin-bottom: 0.5rem;
}
.sx-footer__bottom {
  text-align: center;
  padding: 1rem 24px;
  font-size: 0.8125rem;
  color: rgba(255, 248, 239, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Keep mock-up light surfaces on the homepage even if global dark theme is saved */
html[data-theme="dark"] body.shiva-homepage {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 111, 47, 0.15), transparent 34rem),
    radial-gradient(circle at top right, rgba(200, 71, 120, 0.13), transparent 30rem),
    var(--cream);
}
