/* Fairway Finds storefront — ivory field, fairway greens, charcoal type, spare gold. */
:root {
  --shiva-cream: var(--ff-ivory, #f7f3ea);
  --shiva-cream-deep: var(--ff-mist, #dde8df);
  --shiva-ink: var(--ff-charcoal, #252a27);
  --shiva-ink-muted: var(--ff-charcoal-muted, #4a524e);
  --shiva-coral: var(--ff-clubhouse, #2f6b4f);
  --shiva-coral-hover: var(--ff-clubhouse-hover, #245640);
  --shiva-magenta: var(--ff-clubhouse, #2f6b4f);
  --shiva-gold: var(--ff-gold, #c99a3d);
  --shiva-violet: var(--ff-fairway, #174a36);
  --shiva-card: var(--ff-mist, #dde8df);
  --shiva-radius: 18px;
  --shiva-radius-sm: 12px;
  --shiva-max: 1260px;
  --shiva-shadow: 0 14px 40px rgba(23, 74, 54, 0.08);
  --shiva-shadow-sm: 0 6px 20px rgba(23, 74, 54, 0.06);
  --sx-teal-deep: var(--ff-fairway, #174a36);
  --sx-teal: var(--ff-clubhouse, #2f6b4f);
  --sx-gold: var(--ff-gold, #c99a3d);
  --sx-gold-light: var(--ff-gold-light, #d4b05a);
  --sx-paper: var(--ff-ivory, #f7f3ea);
  --sx-pattern-border: url("../patterns/sx-indian-border.svg");
  --sx-pattern-paisley: url("../patterns/sx-paisley-tile.svg");
  --sx-pattern-grain: url("../patterns/sx-fabric-grain.svg");
  --sx-border-h: 40px;
}

/* Ivory page field — greens reserved for nav, footer, headings and controls */
html[data-theme="light"] body.shiva-storefront:not(.shiva-auth-only),
body.shiva-storefront:not(.shiva-auth-only) {
  background-color: var(--ff-ivory, #f7f3ea);
  background-image: none;
  color: var(--shiva-ink);
}

/* Paper content island — basket, checkout, account, legal (not catalog/home/PDP shells) */
body.shiva-storefront:not(.shiva-catalog):not(.shiva-homepage):not(.shiva-pdp):not(.shiva-auth-only) .shiva-main:not(.shiva-main--flush) {
  background: var(--shiva-cream);
  color: var(--shiva-ink);
  border-radius: var(--shiva-radius);
  box-shadow: var(--shiva-shadow);
  border: 1px solid rgba(42, 31, 24, 0.08);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  body.shiva-storefront:not(.shiva-catalog):not(.shiva-homepage):not(.shiva-pdp):not(.shiva-auth-only) .shiva-main:not(.shiva-main--flush) {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    width: auto;
  }
}

.shiva-main {
  box-sizing: border-box;
  max-width: var(--shiva-max);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem 2.75rem;
}

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

/* ——— Announcement ——— */
.shiva-announce {
  background: var(--ff-mist, #dde8df);
  color: var(--shiva-ink);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(201, 154, 61, 0.28);
}

.shiva-announce p {
  margin: 0;
  max-width: var(--shiva-max);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

/* ——— Header ——— */
.shiva-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #174a36 0%, #123d2c 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(201, 154, 61, 0.35);
}

body.shiva-storefront:not(.shiva-auth-only) .shiva-header a,
body.shiva-storefront:not(.shiva-auth-only) .shiva-nav a {
  color: #ffffff;
}

body.shiva-storefront:not(.shiva-auth-only) .shiva-header a:hover,
body.shiva-storefront:not(.shiva-auth-only) .shiva-nav a:hover {
  color: var(--ff-ivory, #f7f3ea);
}

body.shiva-storefront:not(.shiva-auth-only) .shop-nav__flyout a,
body.shiva-storefront:not(.shiva-auth-only) .category-nav-flyout-link {
  color: var(--shiva-ink) !important;
}

body.shiva-storefront:not(.shiva-auth-only) .shop-nav__flyout a:hover,
body.shiva-storefront:not(.shiva-auth-only) .category-nav-flyout-link:hover {
  color: #a9542f !important;
}

body.shiva-storefront:not(.shiva-auth-only) .shiva-header .shiva-pill {
  color: var(--shiva-ink);
}

body.shiva-storefront:not(.shiva-auth-only) .shiva-header .shiva-pill--cta {
  color: #fff;
}

.shiva-header__inner {
  max-width: var(--shiva-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.shiva-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.shiva-logo img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.shiva-search {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
}

.shiva-search form {
  display: flex;
  border-radius: var(--shiva-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(42, 31, 24, 0.12);
  background: var(--shiva-card);
  box-shadow: var(--shiva-shadow-sm);
}

.shivaSearch input[type="search"],
.shiva-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(--shiva-ink);
}

.shiva-search input[type="search"]:focus {
  outline: none;
}

.shiva-search button {
  border: 0;
  background: var(--shiva-gold);
  color: #1a120b;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.shiva-search button:hover {
  filter: brightness(1.05);
}

.shiva-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.shiva-header__account {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.shiva-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.shiva-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(42, 31, 24, 0.12);
  background: var(--shiva-card);
  color: var(--shiva-ink);
  cursor: pointer;
  box-shadow: var(--shiva-shadow-sm);
  font-size: 1.125rem;
  line-height: 1;
}

.shiva-menu-btn:hover {
  border-color: rgba(201, 162, 58, 0.45);
}

.shiva-menu-btn[aria-expanded="true"] {
  background: rgba(201, 162, 58, 0.2);
}

.shiva-header__tools a {
  text-decoration: none;
  color: var(--shiva-ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.shiva-header__tools a:hover {
  background: rgba(201, 162, 58, 0.18);
}

.shiva-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--shiva-card);
  border: 1px solid rgba(42, 31, 24, 0.1);
  box-shadow: var(--shiva-shadow-sm);
  color: var(--shiva-ink);
}

.shiva-pill--cta {
  background: linear-gradient(135deg, var(--shiva-coral), var(--shiva-magenta));
  color: #fff;
  border: none;
}

.shiva-pill--cta:hover {
  filter: brightness(1.06);
}

/* Basket / pills: never stretch to fill the tools column */
.shiva-header__tools .shiva-pill {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 767px) {
  .shiva-header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .shiva-logo img {
    height: 44px;
    max-width: 150px;
  }

  .shiva-menu-btn {
    display: inline-flex;
  }

  .shiva-search--mobile:not(.is-open) {
    display: none;
  }

  .shiva-nav:not(.is-open) {
    display: none;
  }

  .shiva-nav.is-open {
    display: block;
  }
}

@media (min-width: 768px) {
  .shiva-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(200px, 360px) auto;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: nowrap;
    padding: 0.65rem 1rem;
  }

  .shiva-logo {
    grid-column: 1;
  }

  .shiva-search.shiva-search--desktop {
    grid-column: 3;
    flex: unset;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .shiva-header__tools {
    grid-column: 4;
    margin-left: 0;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .shiva-search--mobile {
    display: none !important;
  }

  .shiva-nav {
    display: block !important;
  }
}

/* ——— Primary nav ——— */
/* Match homepage (.sx-navstrip) and PDP (.sx-pdp-drawer) dark teal strip */
.shiva-nav {
  border-top: 1px solid rgba(207, 155, 74, 0.25);
  background: rgba(12, 40, 38, 0.55);
  overflow: visible;
}

.shiva-nav__inner {
  max-width: var(--shiva-max);
  margin: 0 auto;
  padding: 0 1rem;
  overflow: visible;
}

.shiva-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.shiva-nav__toggle .chev {
  transition: transform 0.2s var(--ease, ease);
}

.shiva-nav.is-open .shiva-nav__toggle .chev {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .shiva-nav__toggle {
    display: none;
  }
}

.shiva-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  overflow: visible;
}

.shiva-nav.is-open .shiva-nav__list {
  display: flex;
}

/* Shared category dropdown nav */
.shop-nav__item {
  position: relative;
  flex: 0 0 auto;
}
.shop-nav__trigger {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.shop-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.shop-nav__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}
.shop-nav__flyout {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  min-width: 13rem;
  max-width: min(18rem, calc(100vw - 2rem));
}

@media (min-width: 768px) {
  .shop-nav__item--dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    height: 14px;
    z-index: 79;
  }
  .shiva-nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    padding: 0.55rem 0;
  }
  .shiva-nav .shop-nav__item--dropdown:hover > .shop-nav__flyout,
  .shiva-nav .shop-nav__item--dropdown:focus-within > .shop-nav__flyout {
    display: block !important;
  }
}

.shiva-nav__list a {
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.shiva-nav__list > .shop-nav__item > .shop-nav__flyout .category-nav-flyout-link {
  font-weight: 600;
}

.shiva-nav__list a:hover {
  color: var(--sx-gold-light, #e8c878);
}

@media (max-width: 767px) {
  .shiva-nav .shop-nav__toggle {
    display: inline-flex;
  }
  .shiva-nav .shop-nav__flyout {
    position: static !important;
    max-width: none;
    margin: 0.15rem 0 0.35rem;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.5rem;
  }
  .shiva-nav .shop-nav__item--dropdown.is-open > .shop-nav__flyout {
    display: block !important;
  }
}

.shiva-nav__logout {
  margin: 0;
}

.shiva-nav__logout button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #ffffff;
  cursor: pointer;
}

.shiva-nav__logout button:hover {
  color: var(--sx-gold-light, #e8c878);
}

.shiva-nav__mobile-account {
  border-top: 1px solid rgba(207, 155, 74, 0.2);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

@media (min-width: 768px) {
  .shiva-nav__list a {
    padding: 0.35rem 0;
  }
}

.shiva-search--mobile {
  padding: 0 1rem 0.5rem;
  border-bottom: 1px solid rgba(42, 31, 24, 0.06);
}

@media (min-width: 768px) {
  .shiva-search--mobile {
    display: none;
  }
}

/* Mobile search duplicate — hide desktop block on small screens */
@media (max-width: 767px) {
  .shiva-search--desktop {
    display: none;
  }
}

/* ——— Homepage ——— */
.shiva-home {
  background: var(--shiva-cream);
}

.shiva-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% 30%, rgba(232, 93, 76, 0.2), transparent 65%),
    radial-gradient(800px 400px at 85% 20%, rgba(124, 77, 207, 0.18), transparent 60%),
    radial-gradient(600px 320px at 70% 90%, rgba(201, 162, 58, 0.25), transparent 55%),
    linear-gradient(165deg, #fff8f0 0%, var(--shiva-cream-deep) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.shiva-hero__inner {
  max-width: var(--shiva-max);
  margin: 0 auto;
}

.shiva-hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shiva-magenta);
  margin-bottom: 0.75rem;
}

.shiva-hero h1 {
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  color: var(--shiva-ink);
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shiva-hero__lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--shiva-ink-muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.shiva-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shiva-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--shiva-radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shiva-btn:focus-visible {
  outline: 3px solid rgba(124, 77, 207, 0.45);
  outline-offset: 2px;
}

.shiva-btn--primary {
  background: linear-gradient(135deg, var(--shiva-coral), #e97459);
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 93, 76, 0.35);
}

.shiva-btn--primary:hover {
  transform: translateY(-1px);
}

.shiva-btn--secondary {
  background: var(--shiva-card);
  color: var(--shiva-ink);
  border: 1px solid rgba(42, 31, 24, 0.12);
  box-shadow: var(--shiva-shadow-sm);
}

.shiva-btn--secondary:hover {
  border-color: var(--shiva-gold);
}

/* Trust strip */
.shiva-trust {
  background: var(--shiva-card);
  border-top: 1px solid rgba(42, 31, 24, 0.06);
  border-bottom: 1px solid rgba(42, 31, 24, 0.06);
}

.shiva-trust__inner {
  max-width: var(--shiva-max);
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .shiva-trust__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .shiva-trust__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.shiva-trust__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--shiva-ink-muted);
  line-height: 1.45;
}

.shiva-trust__item strong {
  display: block;
  color: var(--shiva-ink);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.shiva-trust__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #fff;
}

.shiva-trust__icon--1 {
  background: linear-gradient(135deg, var(--shiva-coral), var(--shiva-gold));
}
.shiva-trust__icon--2 {
  background: linear-gradient(135deg, var(--shiva-magenta), var(--shiva-violet));
}
.shiva-trust__icon--3 {
  background: linear-gradient(135deg, var(--shiva-gold), #e85d4c);
}
.shiva-trust__icon--4 {
  background: linear-gradient(135deg, var(--shiva-violet), #c94b8b);
}

/* Section */
.shiva-section {
  padding: clamp(2rem, 4vw, 3rem) 1rem;
}

.shiva-section__head {
  max-width: var(--shiva-max);
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.shiva-section__head h2 {
  margin: 0;
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--shiva-ink);
}

.shiva-link-all {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--shiva-magenta);
  text-decoration: none;
}

.shiva-link-all:hover {
  text-decoration: underline;
}

/* Category grid */
.shiva-cat-grid {
  max-width: var(--shiva-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .shiva-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .shiva-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shiva-cat-card {
  display: block;
  text-decoration: none;
  border-radius: var(--shiva-radius);
  overflow: hidden;
  background: var(--shiva-card);
  box-shadow: var(--shiva-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shiva-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(42, 31, 24, 0.12);
}

.shiva-cat-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #fceee9, #ede4f7);
  position: relative;
  overflow: hidden;
}

.shiva-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.shiva-cat-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.35;
}

.shiva-cat-card__label {
  padding: 0.75rem 0.85rem 0.9rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--shiva-ink);
  text-align: center;
}

/* Product rail */
.shiva-rail__scroll {
  max-width: var(--shiva-max);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .shiva-rail__scroll {
    grid-auto-columns: minmax(160px, 200px);
    gap: 1rem;
  }
}

.shiva-rail__scroll > * {
  scroll-snap-align: start;
  min-width: 0;
}

.shiva-rail__empty {
  max-width: var(--shiva-max);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  background: var(--shiva-card);
  border-radius: var(--shiva-radius);
  color: var(--shiva-ink-muted);
  box-shadow: var(--shiva-shadow-sm);
}

/* About block */
.shiva-about {
  max-width: var(--shiva-max);
  margin: 0 auto;
  background: var(--shiva-card);
  border-radius: var(--shiva-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shiva-shadow);
  border: 1px solid rgba(42, 31, 24, 0.06);
}

.shiva-about h2 {
  margin: 0 0 0.75rem;
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.shiva-about p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: var(--shiva-ink-muted);
}

.shiva-about p:last-child {
  margin-bottom: 0;
}

/* Content pages (account, legal) */
.shiva-sheet {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--shiva-card);
  border-radius: var(--shiva-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shiva-shadow);
  border: 1px solid rgba(42, 31, 24, 0.06);
}

.shiva-sheet h1 {
  margin: 0 0 1rem;
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: 1.75rem;
  color: var(--shiva-ink);
}

.shiva-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--shiva-ink);
}

.shiva-form input,
.shiva-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border-radius: var(--shiva-radius-sm);
  border: 1px solid rgba(42, 31, 24, 0.15);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--shiva-ink);
}

.shiva-form input:focus,
.shiva-form textarea:focus {
  outline: none;
  border-color: var(--shiva-violet);
  box-shadow: 0 0 0 3px rgba(124, 77, 207, 0.2);
}

.shiva-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--shiva-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.shiva-alert--error {
  background: #fde8e4;
  color: #7a2215;
  border: 1px solid #f0c4bc;
}

.shiva-alert--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

/* Footer */
.shiva-footer {
  background: linear-gradient(180deg, #2a1f18 0%, #1a1410 100%);
  color: rgba(255, 255, 255, 0.82);
  margin-top: auto;
}

.shiva-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.shiva-footer a:hover {
  text-decoration: underline;
}

.shiva-footer__inner {
  max-width: var(--shiva-max);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .shiva-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.shiva-footer__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
}

.shiva-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shiva-footer__list li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.shiva-footer__pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.shiva-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Hide theme toggle on Shiva header — optional cleaner look; uncomment if needed */
.shiva-header .theme-toggle {
  display: none;
}

@media (min-width: 768px) {
  .shiva-hide-md-up {
    display: none !important;
  }

  .shiva-show-md-up {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .shiva-show-md-up {
    display: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--shiva-ink);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wallet-express-error {
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.wallet-express-error.hidden {
  display: none;
}
.wallet-express-root--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.wallet-express-host-stack {
  width: 100%;
  min-height: 44px;
}

/* ——— Catalog pages (category + product listing): teal / gold / arch ——— */
body.shiva-catalog {
  --sx-ink: #2b1b24;
  color: #fff8ef;
}

body.shiva-catalog .shiva-announce {
  background: linear-gradient(90deg, #fde8df 0%, #f5e0eb 38%, #f9e8ff 72%, #fff3d6 100%);
  color: var(--sx-ink);
}

body.shiva-catalog .shiva-main {
  color: #fff8ef;
}

body.shiva-catalog h1,
body.shiva-catalog h2,
body.shiva-catalog .text-gray-900 {
  color: #fff8ef !important;
}

body.shiva-catalog .text-gray-600,
body.shiva-catalog .text-gray-500,
body.shiva-catalog .text-gray-700 {
  color: rgba(255, 248, 239, 0.78) !important;
}

body.shiva-catalog .link-accent {
  color: var(--sx-gold-light);
}

body.shiva-catalog .admin-card,
body.shiva-catalog .product-card {
  background: var(--sx-paper);
  border: 3px solid var(--sx-gold);
  border-radius: clamp(40px, 8vw, 72px) clamp(40px, 8vw, 72px) 16px 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  color: var(--sx-ink);
}

body.shiva-catalog .admin-card a,
body.shiva-catalog .product-card a,
body.shiva-catalog .product-card h3,
body.shiva-catalog .product-card .text-gray-700 {
  color: var(--sx-ink) !important;
}

body.shiva-catalog .product-card a.cta-card {
  color: #fff8ef !important;
}

body.shiva-catalog .admin-card .aspect-\[16\/10\],
body.shiva-catalog .product-card > a.relative {
  border-radius: 0;
  background: #fff;
}

/* Keep the domed card, but inset media so statue tops aren’t sliced by the arch */
body.shiva-catalog .product-card > a.relative > picture,
body.shiva-catalog .product-card > a.relative > img,
body.shiva-catalog .product-card > a.relative > div.absolute {
  inset: clamp(1.35rem, 10%, 2.85rem) clamp(0.85rem, 6%, 1.5rem) 0.85rem !important;
}

body.shiva-catalog .product-card > a.relative img {
  object-fit: contain !important;
  object-position: center center !important;
}

body.shiva-catalog .cta-card,
body.shiva-catalog .cta-secondary {
  background: linear-gradient(135deg, var(--sx-teal), #0f3d3b);
  color: #fff8ef !important;
  border: 2px solid rgba(207, 155, 74, 0.55);
}

body.shiva-catalog .cta-secondary {
  background: var(--sx-paper);
  color: var(--sx-ink) !important;
  border: 2px solid var(--sx-gold);
}

body.shiva-catalog .category-listing-toolbar,
body.shiva-catalog .category-listing-root {
  color: #fff8ef;
}

body.shiva-catalog .category-listing-sort,
body.shiva-catalog select.category-listing-sort {
  background: var(--sx-paper);
  color: var(--sx-ink);
  border-color: var(--sx-gold);
}

body.shiva-catalog .category-description a,
body.shiva-catalog .category-page-content a,
body.shiva-catalog .sx-category-copy a {
  color: #a9542f;
}

body.shiva-catalog .category-description a:hover,
body.shiva-catalog .category-page-content a:hover,
body.shiva-catalog .sx-category-copy a:hover {
  color: var(--sx-teal-deep);
}

body.shiva-catalog a.rounded-full.border,
body.shiva-catalog .sx-category-chip {
  background: rgba(22, 56, 54, 0.85);
  border: 2px solid var(--sx-gold);
  color: #fff8ef !important;
}

body.shiva-catalog a.rounded-full.border:hover,
body.shiva-catalog .sx-category-chip:hover {
  background: rgba(47, 110, 107, 0.95);
  color: var(--sx-gold-light) !important;
}

body.shiva-catalog .category-listing-empty {
  background: var(--sx-paper);
  color: var(--sx-ink) !important;
  border: 2px solid var(--sx-gold);
}

body.shiva-catalog .category-listing-pagination a,
body.shiva-catalog .category-listing-pagination button {
  background: rgba(22, 56, 54, 0.85);
  border: 2px solid var(--sx-gold);
  color: #fff8ef;
  border-radius: 12px;
}

body.shiva-catalog .category-listing-pagination a:hover,
body.shiva-catalog .category-listing-pagination button:hover {
  background: rgba(47, 110, 107, 0.95);
  color: var(--sx-gold-light);
}

/* Category archive: hero + cream copy panels */
.sx-category-hero {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

@media (min-width: 900px) {
  .sx-category-hero--with-media {
    grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 0.65fr);
    gap: 2rem;
  }
}

.sx-category-hero__back {
  display: inline-block;
}

.sx-category-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 0.7rem;
}

.sx-category-hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.sx-category-hero__media {
  border: 3px solid var(--sx-gold);
  border-radius: clamp(40px, 8vw, 72px) clamp(40px, 8vw, 72px) 16px 16px;
  overflow: hidden;
  background: var(--sx-paper);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  aspect-ratio: 4 / 3;
}

.sx-category-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sx-category-subs {
  margin-top: 1.5rem;
}

.sx-category-subs__title {
  margin: 0;
}

.sx-category-subs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sx-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--sx-gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sx-category-copy {
  background: var(--sx-paper);
  color: var(--sx-ink);
  border: 3px solid var(--sx-gold);
  border-radius: clamp(36px, 6vw, 56px) clamp(36px, 6vw, 56px) 18px 18px;
  padding: clamp(1.35rem, 3.2vw, 2.35rem) clamp(1.2rem, 3.4vw, 2.5rem);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  margin-top: 1.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.sx-category-copy--bottom {
  margin-top: 2.25rem;
}

body.shiva-catalog .sx-category-copy,
body.shiva-catalog .sx-category-copy .text-gray-700,
body.shiva-catalog .sx-category-copy .text-gray-600,
body.shiva-catalog .sx-category-copy .text-gray-500 {
  color: #4a3d36 !important;
}

body.shiva-catalog .sx-category-copy h1,
body.shiva-catalog .sx-category-copy h2,
body.shiva-catalog .sx-category-copy h3,
body.shiva-catalog .sx-category-copy h4,
body.shiva-catalog .sx-category-copy .text-gray-900 {
  color: var(--sx-ink) !important;
}

.sx-category-copy > *:first-child {
  margin-top: 0;
}

.sx-category-copy > *:last-child {
  margin-bottom: 0;
}

.sx-category-copy h1,
.sx-category-copy h2,
.sx-category-copy h3,
.sx-category-copy h4 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 1.65rem 0 0.7rem;
}

.sx-category-copy h1,
.sx-category-copy h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(207, 155, 74, 0.45);
}

.sx-category-copy h3 {
  font-size: 1.12rem;
}

.sx-category-copy p {
  margin: 0.7rem 0;
}

.sx-category-copy p:first-of-type {
  font-size: 1.0625rem;
}

.sx-category-copy ul,
.sx-category-copy ol {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 0.85rem;
}

@media (min-width: 720px) {
  .sx-category-copy ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sx-category-copy ol {
  counter-reset: sx-cat;
}

.sx-category-copy li {
  margin: 0;
  padding: 0.7rem 0.9rem 0.7rem 2.35rem;
  background: rgba(26, 72, 70, 0.06);
  border: 1px solid rgba(207, 155, 74, 0.32);
  border-radius: 14px;
  color: var(--sx-ink);
  position: relative;
  line-height: 1.45;
}

.sx-category-copy ul li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--sx-gold);
  transform: rotate(45deg);
}

.sx-category-copy ol li {
  counter-increment: sx-cat;
}

.sx-category-copy ol li::before {
  content: counter(sx-cat);
  position: absolute;
  left: 0.7rem;
  top: 0.62rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--sx-teal);
  color: #fff8ef;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-category-copy blockquote {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border-left: 4px solid var(--sx-gold);
  background: rgba(207, 155, 74, 0.1);
  border-radius: 0 14px 14px 0;
  color: var(--sx-ink);
}

.sx-category-copy hr {
  border: 0;
  height: 1px;
  margin: 1.5rem 0;
  background: rgba(207, 155, 74, 0.35);
}

.sx-category-copy img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(207, 155, 74, 0.35);
}

.sx-category-copy strong,
.sx-category-copy b {
  color: var(--sx-ink);
  font-weight: 700;
}

.sx-category-listing .category-listing-toolbar {
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(207, 155, 74, 0.35);
  margin-bottom: 0.25rem;
}

/* Checkout success — matches storefront cream sheet + teal chrome */
.sx-checkout-success {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.15rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .sx-checkout-success {
    grid-template-columns: 1fr;
  }
}

.sx-checkout-success__panel {
  background: var(--shiva-card);
  border-radius: var(--shiva-radius);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: var(--shiva-shadow);
  border: 1px solid rgba(42, 31, 24, 0.06);
}

.sx-checkout-success__hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sx-checkout-success__badge {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(112, 195, 43, 0.18), rgba(26, 72, 70, 0.12));
  border: 1px solid rgba(26, 72, 70, 0.22);
  color: var(--sx-teal);
  font-size: 1.05rem;
}

.sx-checkout-success h1 {
  margin: 0;
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  line-height: 1.15;
  color: var(--shiva-ink);
}

.sx-checkout-success__lede {
  margin: 0.55rem 0 0;
  color: var(--shiva-ink-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.sx-checkout-success__kpis {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .sx-checkout-success__kpis {
    grid-template-columns: 1fr;
  }
}

.sx-checkout-success__kpi {
  padding: 0.9rem 1rem;
  border-radius: var(--shiva-radius-sm);
  background: var(--shiva-cream);
  border: 1px solid rgba(42, 31, 24, 0.08);
}

.sx-checkout-success__kpi-label {
  color: var(--shiva-ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.sx-checkout-success__kpi-value {
  margin-top: 0.45rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--shiva-ink);
  word-break: break-word;
}

.sx-checkout-success__kpi-sub {
  margin-top: 0.35rem;
  color: var(--shiva-ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sx-checkout-success__divider {
  height: 1px;
  background: rgba(42, 31, 24, 0.08);
  margin: 1.2rem 0;
}

.sx-checkout-success__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  flex-wrap: wrap;
}

.sx-checkout-success__section-head h2 {
  margin: 0;
  font-family: ui-serif, "Georgia", "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--shiva-ink);
}

.sx-checkout-success__hint {
  margin: 0;
  color: var(--shiva-ink-muted);
  font-size: 0.85rem;
}

.sx-checkout-success__timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.sx-checkout-success__step {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--shiva-radius-sm);
  background: var(--shiva-cream);
  border: 1px solid rgba(42, 31, 24, 0.07);
}

.sx-checkout-success__dot {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--shiva-coral), var(--shiva-gold));
  color: #fff;
}

.sx-checkout-success__step-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--shiva-ink);
}

.sx-checkout-success__step-body {
  margin: 0.2rem 0 0;
  color: var(--shiva-ink-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sx-checkout-success__summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-checkout-success__line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 31, 24, 0.08);
}

.sx-checkout-success__line:last-child {
  border-bottom: none;
}

.sx-checkout-success__item-name {
  font-weight: 700;
  color: var(--shiva-ink);
  font-size: 0.95rem;
}

.sx-checkout-success__meta {
  margin-top: 0.25rem;
  color: var(--shiva-ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sx-checkout-success__price {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
  color: var(--shiva-ink);
}

.sx-checkout-success__price small {
  display: block;
  margin-top: 0.15rem;
  color: var(--shiva-ink-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.sx-checkout-success__cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sx-checkout-success__cta .shiva-btn {
  width: 100%;
}

.sx-checkout-success__fineprint {
  margin: 1.1rem 0 0;
  color: var(--shiva-ink-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.sx-checkout-success__fineprint a {
  color: var(--shiva-magenta);
  font-weight: 600;
  text-decoration: none;
}

.sx-checkout-success__fineprint a:hover {
  text-decoration: underline;
}


