/* Crystal Sutraa Homepage — styles are scoped so existing theme header/footer styles remain untouched. */
.csh-homepage {
  --csh-ink: #38284d;
  --csh-muted: #695d75;
  --csh-purple: #dfd2f3;
  --csh-purple-deep: #a98bd0;
  --csh-lilac: #f5f0fb;
  --csh-cream: #fffcf7;
  --csh-gold: #bb8c36;
  --csh-gold-soft: #e9cb8b;
  --csh-white: #ffffff;
  --csh-border: rgba(187, 140, 54, .38);
  --csh-shadow: 0 15px 42px rgba(64, 42, 86, .10);
  color: var(--csh-ink);
  background: var(--csh-cream);
  overflow: clip;
}

.csh-homepage *,
.csh-homepage *::before,
.csh-homepage *::after { box-sizing: border-box; }

.csh-homepage a { color: inherit; text-decoration: none; }
.csh-homepage img { display: block; max-width: 100%; }

.csh-container { width: min(100% - 32px, 1340px); margin-inline: auto; }
.csh-section { position: relative; padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.csh-section--mist { background: linear-gradient(135deg, #fbf9fd 0%, #f1eafa 52%, #fffdf9 100%); }

.csh-section--mist::before,
.csh-newsletter::before {
  position: absolute;
  z-index: 0;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(187, 140, 54, .24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.csh-section--mist::before { top: 4%; right: -68px; }
.csh-section > .csh-container,
.csh-newsletter > .csh-container { position: relative; z-index: 1; }

.csh-eyebrow {
  margin: 0 0 .65rem;
  color: var(--csh-gold);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.csh-homepage h2,
.csh-homepage h3 {
  color: var(--csh-ink);
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
}

.csh-homepage h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.08; }
.csh-homepage h3 { margin: 0; font-size: 1.3rem; line-height: 1.22; }
.csh-homepage p { margin-top: 0; }

.csh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .72rem 1.15rem;
  border: 1px solid var(--csh-gold);
  border-radius: 999px;
  background: var(--csh-purple);
  box-shadow: 0 5px 18px rgba(102, 66, 136, .10);
  color: var(--csh-ink) !important;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.csh-button:hover { transform: translateY(-3px); border-color: #9d6f1a; background: #cfbce9; box-shadow: 0 10px 24px rgba(64, 42, 86, .18); }
.csh-button--outline { background: rgba(255,255,255,.55); }
.csh-button--dark { background: var(--csh-purple-deep); color: #fff !important; }

.csh-button:focus-visible,
.csh-homepage a:focus-visible,
.csh-homepage input:focus-visible {
  outline: 3px solid #7953ae;
  outline-offset: 3px;
}

.csh-profile { background: radial-gradient(circle at 16% 20%, rgba(222, 210, 243, .68) 0 2%, transparent 20%), linear-gradient(120deg, #fffdf9 0%, #f5effb 52%, #fff 100%); }
.csh-profile::after { position: absolute; right: 8%; bottom: 17%; color: rgba(187, 140, 54, .34); content: "✦  ✧"; font-size: 2rem; letter-spacing: .5rem; pointer-events: none; }
.csh-profile__grid { display: grid; grid-template-columns: minmax(260px, .84fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 7.5rem); }
.csh-profile__visual { position: relative; margin-inline: auto; width: min(100%, 460px); }
.csh-profile__visual::after { position: absolute; inset: 15px -16px -16px 15px; z-index: -1; border: 1px solid var(--csh-border); border-radius: 48% 52% 45% 55% / 44% 43% 57% 56%; content: ""; }
.csh-profile__image { width: 100%; aspect-ratio: .88; border: 2px solid var(--csh-gold-soft); border-radius: 48% 52% 45% 55% / 44% 43% 57% 56%; box-shadow: var(--csh-shadow); object-fit: cover; transition: transform .45s ease, box-shadow .45s ease; }
.csh-profile__visual:hover .csh-profile__image { transform: scale(1.025) rotate(.5deg); box-shadow: 0 21px 48px rgba(64, 42, 86, .18); }
.csh-profile__image--unset { display: flex; align-items: center; justify-content: center; gap: 1.3rem; background: radial-gradient(circle at 48% 40%, #fdfaff 0 14%, transparent 15%), linear-gradient(145deg, #e5d8f5, #b697da 52%, #fff8e9); color: rgba(255,255,255,.82); font-size: clamp(2rem, 6vw, 4rem); text-shadow: 0 2px 6px rgba(70, 45, 93, .2); }
.csh-profile__lead { max-width: 620px; margin: 1.35rem 0 1.8rem; color: var(--csh-muted); font-size: clamp(1rem, 1.2vw, 1.13rem); line-height: 1.8; }

.csh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.csh-section-heading > div { max-width: 720px; }
.csh-section-heading > div > p:last-child { margin: .85rem 0 0; color: var(--csh-muted); line-height: 1.7; }
.csh-section-heading .csh-button { flex: 0 0 auto; }

.csh-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.csh-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid rgba(108, 75, 139, .12); border-radius: 18px; background: var(--csh-white); box-shadow: 0 5px 22px rgba(64, 42, 86, .06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.csh-card:hover { transform: translateY(-5px); border-color: var(--csh-border); box-shadow: var(--csh-shadow); }
.csh-card__image-link { position: relative; display: block; overflow: hidden; background: #f2ebf8; }
.csh-card__image,
.csh-card__image-link > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .45s ease; }
.csh-blog-card .csh-card__image,
.csh-blog-card .csh-card__image-link > img { aspect-ratio: 1.32 / 1; }
.csh-card:hover .csh-card__image,
.csh-card:hover .csh-card__image-link > img { transform: scale(1.045); }
.csh-card__image--fallback { display: grid; place-items: center; color: rgba(187, 140, 54, .7); background: radial-gradient(circle at 50% 38%, #fff 0 6%, transparent 6.5%), linear-gradient(145deg, #e6d9f5, #fcf5e6); font-size: 2rem; }
.csh-sale-badge { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .35rem .6rem; border-radius: 999px; background: var(--csh-ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.csh-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.1rem 1.2rem; }
.csh-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.csh-card h3 a:hover { color: #7953ae; }
.csh-card__description { display: -webkit-box; overflow: hidden; margin: .75rem 0 0; color: var(--csh-muted); font-size: .88rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.csh-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .95rem; }
.csh-price { color: var(--csh-ink); font-size: .95rem; font-weight: 700; }
.csh-price del { opacity: .55; font-size: .8em; }
.csh-price ins { background: transparent; color: #9a6722; text-decoration: none; }
.csh-rating { flex: 0 0 auto; color: var(--csh-gold); font-size: .8rem; }
.csh-rating .star-rating { float: none; margin: 0; }
.csh-card__text-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: #7650a7 !important; font-size: .84rem; font-weight: 700; }
.csh-card__text-link:hover { color: var(--csh-gold) !important; }
.csh-blog-card__date { margin: 0 0 .6rem; color: var(--csh-gold); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.csh-empty-state { margin: 0; padding: 2rem; border: 1px dashed var(--csh-border); border-radius: 14px; color: var(--csh-muted); text-align: center; }

.csh-newsletter { padding-top: clamp(3.5rem, 7vw, 6.25rem); background: var(--csh-cream); }
.csh-newsletter::before { left: -85px; bottom: 7%; }
.csh-newsletter__panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 2rem 4rem; align-items: center; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid rgba(187, 140, 54, .54); border-radius: 24px; background: radial-gradient(circle at 92% 15%, rgba(255, 255, 255, .8) 0 7%, transparent 7.5%), linear-gradient(115deg, #e6daf4, #d6c0eb 52%, #fdf3d8); box-shadow: var(--csh-shadow); }
.csh-newsletter__panel::before { position: absolute; top: -37px; right: 25%; color: rgba(187, 140, 54, .56); content: "✦"; font-size: 4.5rem; pointer-events: none; }
.csh-newsletter__copy > p:last-child { max-width: 660px; margin: 1rem 0 0; color: var(--csh-muted); line-height: 1.7; }
.csh-newsletter__form { display: flex; gap: .7rem; align-items: stretch; }
.csh-newsletter__form input { min-width: 0; flex: 1; min-height: 48px; padding: .75rem .95rem; border: 1px solid rgba(56, 40, 77, .18); border-radius: 999px; background: rgba(255,255,255,.88); color: var(--csh-ink); font: inherit; }
.csh-newsletter__form input::placeholder { color: #897d94; }
.csh-form-message { margin: .85rem 0 0; font-size: .88rem; line-height: 1.4; }
.csh-form-message--success { color: #175c46; }
.csh-form-message--error { color: #8f2735; }

.csh-js .csh-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.csh-js .csh-reveal.csh-revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .csh-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .csh-profile__grid { gap: 3.5rem; }
}

@media (max-width: 720px) {
  .csh-container { width: min(100% - 28px, 1340px); }
  .csh-section-heading { align-items: flex-start; flex-direction: column; }
  .csh-profile__grid,
  .csh-newsletter__panel { grid-template-columns: 1fr; }
  .csh-profile__visual { width: min(100%, 390px); }
  .csh-profile__content { text-align: center; }
  .csh-profile__lead { margin-inline: auto; }
  .csh-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .csh-card__body { padding: .9rem; }
  .csh-card h3 { font-size: 1.12rem; }
  .csh-newsletter__panel { padding: 2rem 1.25rem; border-radius: 20px; }
}

@media (max-width: 390px) {
  .csh-card-grid { grid-template-columns: 1fr; }
  .csh-newsletter__form { flex-direction: column; }
  .csh-newsletter__form .csh-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .csh-homepage *,
  .csh-homepage *::before,
  .csh-homepage *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .csh-js .csh-reveal { opacity: 1; transform: none; }
}
