/* ============================================================
   SKINGENIUS — Page-specific styles
   Styles used by a single page only. Anything reused across
   2+ pages belongs in skingenius-style.css instead.
   ============================================================ */

/* ============================================================
   HOME — Cover (Swiper, also rendered by displayBannerSliders)
   Full-bleed brand field. Popcorn #f8de8d carries ink at 12.39:1,
   so the whole first viewport is brand colour with no contrast cost.
   ============================================================ */
.sg-cover {
  position: relative;
  background: var(--sg-brand);
  overflow: hidden;
}

/* Soft field bloom — keeps a flat ground from reading as a dead rectangle. */
.sg-cover::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 70%);
  pointer-events: none;
}

.sg-cover__slide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 40px);
  width: 100%;
  max-width: none;
  padding: clamp(36px, 6vw, 76px) var(--sg-gutter) 0;
}

.sg-cover__title {
  font-size: clamp(2.25rem, 8vw, var(--sg-fs-display));
  line-height: 1.02;
  margin: 0;
}

.sg-cover__line {
  display: block;
  transform: translateY(18px);
  animation: sg-rise 0.9s var(--sg-ease) forwards;
}

.sg-cover__line:nth-child(2) {
  animation-delay: 0.08s;
}

.sg-cover__line:nth-child(3) {
  animation-delay: 0.16s;
}

/* Rose on popcorn is only 4.07:1, so the accent line uses rose-deep at 5.55:1. */
.sg-cover__line--accent {
  color: var(--sg-rose-deep);
}

@keyframes sg-rise {
  to {
    transform: translateY(0);
  }
}

.sg-cover__standfirst {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: var(--sg-fs-lead);
  font-weight: 600;
  color: var(--sg-ink);
}

.sg-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Image bleeds to the viewport edge; no rounded box, no card. */
.sg-cover__media {
  margin-inline: calc(var(--sg-gutter) * -1);
  align-self: end;
}

.sg-cover__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center bottom;
}

.sg-cover .banner-dot-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 18px;
}

/* ============================================================
   HOME — Ticker
   Continuous ambient band. Decorative: every fact in it is stated
   in full elsewhere, and the strip is aria-hidden.
   ============================================================ */
.sg-ticker {
  overflow: hidden;
  padding: 14px 0;
  background: var(--sg-ink);
  border-block: 1px solid var(--sg-ink);
}

.sg-ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: sg-ticker 34s linear infinite;
}

.sg-ticker:hover .sg-ticker__track {
  animation-play-state: paused;
}

.sg-ticker__item {
  font-family: var(--sg-text-face);
  font-size: var(--sg-fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-paper);
  white-space: nowrap;
}

.sg-ticker__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sg-rose);
}

/* The track holds the list twice, so -50% is a seamless loop. */
@keyframes sg-ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   HOME — Contents (the routine)
   Each step carries its own ground via --sg-step-bg, set inline
   in the view. The category name is always present as text, so
   colour here is decoration, not the only carrier.
   ============================================================ */
.sg-contents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.sg-contents li {
  max-width: none;
}

.sg-step {
  display: grid;
  grid-template-areas:
    "media"
    "index"
    "body";
  align-content: start;
  height: 100%;
  padding: 14px;
  background: var(--sg-step-bg, var(--sg-swizzle));
  border: 1px solid var(--sg-edge);
  border-radius: var(--sg-r-lg);
  transition:
    transform var(--sg-fast) var(--sg-ease),
    box-shadow var(--sg-fast) var(--sg-ease);
}

/* Playable: the card lifts and cocks slightly, like a card being picked
   off the table. Alternate items tilt the other way so a row never
   leans as one block. */
.sg-step:hover,
.sg-step:focus-visible {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: var(--sg-lift-lg);
}

.sg-contents__item:nth-child(even) .sg-step:hover,
.sg-contents__item:nth-child(even) .sg-step:focus-visible {
  transform: translateY(-6px) rotate(1.5deg);
}

.sg-step:active {
  transform: translateY(-2px) scale(0.985);
  transition-duration: 0.08s;
}

/* The authored moment: the six steps deal themselves in, in order.
   The offset only exists once JS marks the list in-view, so with no JS
   (or no IntersectionObserver) the cards simply render in place. */
.sg-contents.is-dealing .sg-contents__item {
  transform: translateY(22px) rotate(-2deg);
  opacity: 0.001;
}

.sg-contents.is-dealt .sg-contents__item {
  animation: sg-deal 0.62s var(--sg-ease) both;
  animation-delay: calc(var(--sg-i, 0) * 70ms);
}

@keyframes sg-deal {
  from {
    transform: translateY(22px) rotate(-2deg);
    opacity: 0.001;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.sg-step__index {
  grid-area: index;
  margin-bottom: 4px;
  font-family: var(--sg-text-face);
  font-size: var(--sg-fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--sg-ink);
  opacity: 0.55;
}

/* Square, not a circle — the photographs already carry their own shape. */
.sg-step__media {
  grid-area: media;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: var(--sg-r-sm);
  overflow: hidden;
}

.sg-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-step__body {
  grid-area: body;
  display: block;
}

.sg-step__name {
  display: block;
  font-family: var(--sg-display-face);
  font-size: var(--sg-fs-subtitle);
  font-weight: 700;
  color: var(--sg-ink);
  line-height: 1.2;
}

.sg-step__role {
  display: block;
  margin-top: 4px;
  font-size: var(--sg-fs-body);
  color: var(--sg-ink);
  opacity: 0.75;
  line-height: 1.45;
}

/* ============================================================
   HOME — Lead feature (film)
   Full-bleed stage: the poster spans the viewport, the heading
   stays in the container above it.
   ============================================================ */
.sg-feature {
  padding-block: var(--sg-section);
  background: var(--sg-paper);
}

.sg-feature__head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.sg-feature__stage {
  max-width: none;
  padding-inline: 0;
}

.sg-feature__player {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--sg-swizzle);
}

.sg-feature__poster {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--sg-slow) var(--sg-ease);
}

.sg-feature__player:hover .sg-feature__poster {
  transform: scale(1.02);
}

.sg-feature__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(76px, 11vw, 116px);
  height: clamp(76px, 11vw, 116px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sg-rose);
  border: 2px solid var(--sg-paper);
  color: #fff;
  box-shadow: var(--sg-lift-lg);
  transition: transform var(--sg-fast) var(--sg-ease);
}

.sg-feature__player:hover .sg-feature__play {
  transform: scale(1.07);
}

/* A slow ring breathing out of the play button — the one invitation
   on an otherwise still image. */
.sg-feature__play::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--sg-rose);
  animation: sg-pulse-ring 2.6s var(--sg-ease) infinite;
  pointer-events: none;
}

@keyframes sg-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.sg-feature__cue {
  position: absolute;
  left: var(--sg-gutter);
  bottom: var(--sg-gutter);
  background: var(--sg-brand);
  color: var(--sg-ink);
  font-size: var(--sg-fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--sg-edge);
  border-radius: var(--sg-r-pill);
}

/* ============================================================
   HOME — Product band skeletons
   Widths mirror the slidesPerView breakpoints in HomeView-JS
   (1 / 2 / 3 / 4) so nothing reflows when products land.
   ============================================================ */
.sg-skeleton-slide {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .sg-skeleton-slide {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .sg-skeleton-slide {
    width: 33.3333%;
  }
}

@media (min-width: 1200px) {
  .sg-skeleton-slide {
    width: 25%;
  }
}

/* ============================================================
   HOME — Journal
   ============================================================ */
.sg-journal {
  padding: 20px 0 0;
  display: grid;
  gap: 24px;
}

.sg-article__link {
  display: grid;
  gap: 14px;
  height: 100%;
}

.sg-article__media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--sg-r-lg);
  overflow: hidden;
  background: var(--sg-swizzle);
}

.sg-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sg-slow) var(--sg-ease);
}

.sg-article__link:hover .sg-article__media img {
  transform: scale(1.04);
}

.sg-article__title {
  font-size: var(--sg-fs-title);
  color: var(--sg-ink);
  margin: 0;
  transition: color var(--sg-fast) var(--sg-ease);
}

.sg-article__link:hover .sg-article__title {
  color: var(--sg-rose-deep);
}

.sg-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
}

/* ============================================================
   HOME — Verified + back page
   ============================================================ */
.sg-verified {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.sg-verified .sg-standfirst {
  color: var(--sg-ink);
}

.sg-verified__text .sg-textlink {
  margin-top: 18px;
}

.sg-verified__mark {
  background: var(--sg-paper);
  border-radius: var(--sg-r-lg);
  padding: 24px;
  display: grid;
  place-items: center;
}

.sg-verified__mark img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
}

.sg-backpage {
  display: grid;
  gap: 32px;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--sg-hairline);
}

.sg-backpage__title {
  font-size: var(--sg-fs-title);
  margin: 0;
}

.sg-backpage__text {
  margin: 8px 0 0;
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
}

.sg-backpage__col {
  padding: clamp(22px, 3vw, 30px);
  background: var(--sg-step-bg, var(--sg-swizzle));
  border: 1px solid var(--sg-edge);
  border-radius: var(--sg-r-lg);
}

.sg-backpage__text {
  color: var(--sg-ink);
  opacity: 0.8;
}

.sg-backpage__col .sg-btn {
  margin-top: 18px;
}

.sg-backpage__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.sg-instagram {
  padding-top: clamp(28px, 4vw, 48px);
}

/* HOME — legacy sections still rendered by other routes */
.image-category-wrapper {
  display: block;
  flex: 1 1 160px;
  max-width: 220px;
  border-radius: var(--sg-r-lg);
  overflow: hidden;
  transition: transform var(--sg-fast) var(--sg-ease);
}

.image-category-wrapper:hover {
  transform: translateY(-4px);
}

.support-item {
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--sg-r-xl);
  background: var(--sg-swizzle);
}

.support-item.is-light-yellow {
  background: var(--sg-popcorn);
}

.support-item.is-pale-pink {
  background: var(--sg-lilac);
}

.support-content h3 {
  font-size: var(--sg-fs-title-lg);
  margin-bottom: 10px;
}

.support-content p {
  color: var(--sg-body);
}

/* ============================================================
   PRODUCT — Listing (sidebar + grid)
   ============================================================ */
.sg-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.sg-sidebar {
  background: var(--sg-paper);
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg);
  padding: 24px;
}

.sg-sidebar-title {
  font-family: var(--sg-text-face);
  font-size: var(--sg-fs-micro);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sg-hairline);
}

.menu-category,
.show-product-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-category li a,
.show-product-categories li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--sg-r-sm);
  font-size: var(--sg-fs-body);
  font-weight: 700;
  color: var(--sg-body);
}

.menu-category li a:hover,
.menu-category li a.active,
.show-product-categories li a:hover,
.show-product-categories li a.active {
  background: var(--sg-rose-soft);
  color: var(--sg-rose-deep);
}

.sg-product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.sg-product-count {
  font-size: var(--sg-fs-body);
  font-weight: 700;
  color: var(--sg-body);
}

.sg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
}

.sg-empty h3 {
  font-size: var(--sg-fs-title);
  margin-bottom: 8px;
}

.sg-empty p {
  margin-inline: auto;
  color: var(--sg-body);
}

@media (min-width: 992px) {
  .sg-shop-layout {
    grid-template-columns: 260px 1fr;
  }
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.sg-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.sg-detail-gallery {
  border-radius: var(--sg-r-xl);
  overflow: hidden;
  background: var(--sg-swizzle);
}

.sg-detail-gallery img,
.show-product-gallery img {
  width: 100%;
  object-fit: cover;
}

.product__details-title,
.sg-detail-title {
  font-size: clamp(1.75rem, 4vw, var(--sg-fs-headline));
  margin: 0 0 12px;
}

.sg-detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sg-detail-price .price-main {
  font-size: var(--sg-fs-headline);
  font-weight: 800;
  color: var(--sg-rose-deep);
}

.sg-detail-price .price-was {
  font-size: var(--sg-fs-lead);
  color: var(--sg-muted);
  text-decoration: line-through;
}

.sg-detail-brief {
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  line-height: 1.75;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--sg-hairline);
  overflow-wrap: break-word;
}

.sg-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-detail-meta-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--sg-fs-body);
}

.sg-detail-meta-item span {
  min-width: 92px;
  color: var(--sg-body);
  font-weight: 600;
}

.sg-detail-meta-item strong {
  color: var(--sg-ink);
}

.sg-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-pill);
  overflow: hidden;
}

.sg-qty button,
.cart-plus,
.cart-minus {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: var(--sg-fs-subtitle);
  font-weight: 800;
  color: var(--sg-ink);
  cursor: pointer;
}

.sg-qty button:hover,
.cart-plus:hover,
.cart-minus:hover {
  background: var(--sg-swizzle);
}

.sg-qty input,
.cart-input {
  width: 56px;
  min-height: 48px;
  border: none;
  text-align: center;
  font-size: var(--sg-fs-body);
  font-weight: 800;
  padding: 0;
}

@media (min-width: 992px) {
  .sg-detail-layout {
    grid-template-columns: 5fr 6fr;
  }
}

/* ============================================================
   BLOG / MEDIA
   ============================================================ */
.sg-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.sg-blog-card {
  display: grid;
  gap: 14px;
  height: 100%;
}

.sg-blog-card__media {
  aspect-ratio: 3 / 2;
  border-radius: var(--sg-r-lg);
  overflow: hidden;
  background: var(--sg-swizzle);
}

.sg-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sg-slow) var(--sg-ease);
}

.sg-blog-card:hover .sg-blog-card__media img {
  transform: scale(1.04);
}

.sg-blog-card__title {
  font-size: var(--sg-fs-title);
  color: var(--sg-ink);
  margin: 0;
}

.sg-blog-card__meta {
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
}

.sg-blog-detail {
  max-width: 74ch;
  margin-inline: auto;
}

.sg-blog-detail img {
  border-radius: var(--sg-r-lg);
}

.sg-blog-detail p,
.postbox__text p {
  font-size: var(--sg-fs-lead);
  line-height: 1.8;
  color: var(--sg-body);
}

.sg-blog-detail h2,
.sg-blog-detail h3 {
  margin-top: 1.6em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.sg-about-lead {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

.sg-about-lead p {
  font-size: var(--sg-fs-lead);
  margin-inline: auto;
}

.sg-about-figure {
  border-radius: var(--sg-r-xl);
  overflow: hidden;
  margin-bottom: 40px;
}

.sg-about-quote {
  background: var(--sg-lilac);
  border-radius: var(--sg-r-xl);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  margin: 40px 0;
}

.sg-about-quote p {
  font-family: var(--sg-display-face);
  font-size: clamp(1.25rem, 2.6vw, var(--sg-fs-title-lg));
  line-height: 1.4;
  color: var(--sg-ink);
  margin-inline: auto;
  max-width: 40ch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.sg-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.sg-contact-card {
  background: var(--sg-paper);
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform var(--sg-fast) var(--sg-ease),
    box-shadow var(--sg-fast) var(--sg-ease);
}

.sg-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-lift);
}

.sg-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--sg-r);
  background: var(--sg-rose-soft);
  color: var(--sg-rose-deep);
  display: grid;
  place-items: center;
  font-size: var(--sg-fs-subtitle);
}

.sg-contact-label {
  font-size: var(--sg-fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-ink);
  margin: 0;
}

.sg-contact-value,
.sg-contact-value a {
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  margin: 0;
}

.sg-map {
  border-radius: var(--sg-r-xl);
  overflow: hidden;
  margin-bottom: 40px;
}

.sg-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

@media (min-width: 576px) {
  .sg-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .sg-contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.sg-faq {
  max-width: 80ch;
  margin-inline: auto;
}

/* ============================================================
   AUTH — Login / Register / Reset / Renew / Activate
   ============================================================ */
.sg-auth {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-swizzle);
  padding: clamp(32px, 6vw, 72px) var(--sg-gutter);
}

.sg-auth-shell {
  width: 100%;
  max-width: 980px;
  background: var(--sg-paper);
  border-radius: var(--sg-r-xl);
  box-shadow: var(--sg-lift-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.sg-auth-visual {
  display: none;
  background: var(--sg-lilac);
  padding: 48px 36px;
  place-content: center;
  text-align: center;
}

.sg-auth-visual h2 {
  font-size: var(--sg-fs-title-lg);
  margin-bottom: 10px;
}

.sg-auth-visual p {
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  margin-inline: auto;
  max-width: 30ch;
}

.sg-auth-panel {
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sg-auth-title {
  font-size: var(--sg-fs-title-lg);
  text-align: center;
  margin-bottom: 8px;
}

.sg-auth-subtitle {
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  text-align: center;
  margin-inline: auto;
  margin-bottom: 28px;
}

.sg-auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--sg-swizzle);
  border-radius: var(--sg-r-pill);
  padding: 5px;
  margin-bottom: 26px;
}

.sg-auth-tab {
  flex: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--sg-r-pill);
  font-size: var(--sg-fs-body);
  font-weight: 800;
  color: var(--sg-body);
}

.sg-auth-tab.active {
  background: var(--sg-paper);
  color: var(--sg-ink);
  box-shadow: var(--sg-lift);
}

.sg-auth-switch {
  text-align: center;
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  margin: 20px 0 0;
}

@media (min-width: 861px) {
  .sg-auth-shell {
    grid-template-columns: 1fr 1fr;
  }

  .sg-auth-visual {
    display: grid;
  }
}

/* ============================================================
   PROFILE — sidebar + panels
   ============================================================ */
.sg-profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.sg-profile-nav {
  background: var(--sg-paper);
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg);
  padding: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sg-profile-nav li {
  max-width: none;
}

.sg-profile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--sg-r-sm);
  font-size: var(--sg-fs-body);
  font-weight: 700;
  color: var(--sg-body);
}

.sg-profile-nav a:hover,
.sg-profile-nav a.active {
  background: var(--sg-rose-soft);
  color: var(--sg-rose-deep);
}

.sg-profile-panel {
  background: var(--sg-paper);
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg);
  padding: clamp(20px, 4vw, 32px);
}

@media (min-width: 992px) {
  .sg-profile-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* ============================================================
   CART / CHECKOUT / PAYMENT
   ============================================================ */
.sg-checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.sg-summary {
  background: var(--sg-swizzle);
  border-radius: var(--sg-r-lg);
  padding: clamp(20px, 4vw, 28px);
}

.sg-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--sg-fs-body);
  color: var(--sg-body);
  padding: 9px 0;
}

.sg-summary-row--total {
  border-top: 1px solid var(--sg-hairline);
  margin-top: 8px;
  padding-top: 16px;
  font-size: var(--sg-fs-subtitle);
  font-weight: 800;
  color: var(--sg-ink);
}

.sg-line-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sg-hairline);
}

.sg-line-item__media {
  width: 72px;
  aspect-ratio: 1;
  border-radius: var(--sg-r-sm);
  overflow: hidden;
  background: var(--sg-swizzle);
}

.sg-line-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-line-item__name {
  font-size: var(--sg-fs-body);
  font-weight: 700;
  color: var(--sg-ink);
  margin: 0;
}

.sg-line-item__price {
  font-size: var(--sg-fs-body);
  font-weight: 800;
  color: var(--sg-rose-deep);
  white-space: nowrap;
}

/* Checkout progress — steps carry a number AND a label, never colour alone */
.c-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 32px;
}

.c-stepper__item {
  flex: 1 1 140px;
  padding-top: 14px;
  border-top: 4px solid var(--sg-hairline);
  max-width: none;
}

.c-stepper__item.is-active {
  border-top-color: var(--sg-rose);
}

.c-stepper__title {
  font-size: var(--sg-fs-body);
  font-weight: 800;
  color: var(--sg-ink);
  margin: 0;
}

.c-stepper__desc {
  font-size: var(--sg-fs-micro);
  color: var(--sg-body);
  margin: 2px 0 0;
}

@media (min-width: 992px) {
  .sg-checkout-layout {
    grid-template-columns: 1fr 380px;
  }
}

/* ============================================================
   TRANSACTION / ORDER
   ============================================================ */
.sg-order-card {
  background: var(--sg-paper);
  border: 1.5px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.sg-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sg-hairline);
}

/* Status: dot + word. The word is the signal; colour reinforces. */
.sg-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--sg-fs-body);
  font-weight: 800;
}

.sg-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.sg-status--paid {
  color: var(--sg-success);
}

.sg-status--pending {
  color: var(--sg-warning);
}

.sg-status--failed {
  color: var(--sg-danger);
}

/* ============================================================
   INVOICE — print
   ============================================================ */
@media print {
  .header-top-area,
  .header-4,
  .header-layout-4,
  .genius-footer,
  .backtotop-wrap,
  .sg-btn {
    display: none !important;
  }

  body {
    color: var(--sg-ink);
    background: #fff;
  }
}

/* ============================================================
   RESPONSIVE — mobile is the primary case
   ============================================================ */
@media (min-width: 576px) {
  .sg-journal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .sg-contents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sg-backpage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .sg-verified {
    grid-template-columns: 1fr auto;
  }

  .sg-verified__mark {
    min-width: 280px;
  }
}

@media (min-width: 992px) {
  .sg-cover__slide {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    padding-bottom: 0;
  }

  /* Image bleeds off the right edge of the viewport. */
  .sg-cover__media {
    margin-inline: 0 calc(var(--sg-gutter) * -1);
  }

  .sg-cover__image {
    aspect-ratio: 5 / 4;
  }

  .sg-feature__poster {
    aspect-ratio: 21 / 9;
  }

  .sg-contents {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .sg-feature__grid {
    grid-template-columns: 0.85fr 1.35fr;
    align-items: center;
  }

  .sg-journal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .sg-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sg-article--lead {
    grid-column: span 3;
  }

  .sg-article--lead .sg-article__link {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 36px;
  }

  .sg-article--lead .sg-article__media {
    aspect-ratio: 16 / 9;
  }

  .sg-article--lead .sg-article__title {
    font-size: clamp(1.75rem, 2.6vw, var(--sg-fs-headline));
  }
}

/* ============================================================
   HOME — reduced motion
   The global reset already shortens durations; these make the
   new ambient pieces resolve to a sensible static state rather
   than a jumped one.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sg-ticker__track {
    animation: none;
    transform: none;
  }

  .sg-feature__play::after {
    display: none;
  }

  .sg-contents .sg-contents__item {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .sg-step:hover,
  .sg-step:focus-visible,
  .sg-contents__item:nth-child(even) .sg-step:hover {
    transform: none;
  }
}
