/* Souci Mall — homepage sections · Bourbon edition */

/* Hero -----------------------------------------------------------
 * Layout: editorial copy left, full-bleed portrait right. No card,
 * no overlay — the deep ink page bg IS the hero bg, and the photo
 * is meant to bleed to the right edge of the wrap. The vignette on
 * the photo creates the "fade-into-page" effect from the reference. */
.sm-hero-section { padding-top: 12px; padding-bottom: 12px; }
.sm-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 620px;
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  color: var(--sm-ink);
}
.sm-hero__copy {
  padding: 80px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 560px;
}
.sm-hero__eyebrow {
  color: var(--sm-accent);
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sm-hero__title {
  font-family: var(--sm-display-font);
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 600;
  line-height: 1.0;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--sm-ink);
}
.sm-hero__title .sm-hero__title-accent { color: var(--sm-accent); font-style: italic; font-weight: 500; }
.sm-hero__rule {
  display: block;
  width: 80px; height: 2px;
  background: var(--sm-accent);
  margin: 32px 0 28px;
}
.sm-hero__desc {
  font-family: var(--sm-body-font);
  font-size: 16px;
  line-height: 1.7;
  max-width: 380px;
  color: var(--sm-ink-soft);
  margin: 0;
  font-weight: 400;
}
.sm-hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.sm-hero__cta-primary,
.sm-hero__cta-secondary {
  padding: 16px 36px;
  font-size: 12px;
  font-family: var(--sm-body-font);
  font-weight: 600;
  letter-spacing: var(--sm-button-tracking);
  text-transform: uppercase;
  border-radius: 0;
}
.sm-hero__cta-secondary {
  background: transparent;
  color: var(--sm-ink);
  border: 1px solid var(--sm-line-strong);
}
.sm-hero__cta-secondary:hover { color: var(--sm-accent); border-color: var(--sm-accent); }

/* Right portrait — bleeds to the right edge of the wrap, fades to bg */
.sm-hero__art {
  position: relative;
  margin-right: calc(-1 * var(--sm-pad-x-pc));
  height: 100%;
  min-height: 620px;
  overflow: hidden;
}
.sm-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  /* Smooth left-edge fade so the portrait reads as continuous with the
   * dark page bg instead of a hard rectangle. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 100%);
}
.sm-hero__art::after {
  /* Bottom + right inner shadow, gives the portrait that "lit by night
   * window" depth from the brief. */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,12,0.6) 0%, transparent 30%),
              linear-gradient(to left, rgba(8,8,12,0.4) 0%, transparent 35%);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .sm-hero { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .sm-hero__title { font-size: clamp(40px, 5.6vw, 64px); }
  .sm-hero__copy { padding: 60px 0; }
  .sm-hero__art { min-height: 520px; }
}
@media (max-width: 760px) {
  .sm-hero { grid-template-columns: 1fr; min-height: 0; }
  .sm-hero__copy { padding: 40px 0 32px; max-width: none; }
  .sm-hero__title { font-size: 44px; }
  .sm-hero__rule { margin: 24px 0 20px; }
  .sm-hero__art {
    margin: 0 calc(-1 * var(--sm-pad-x-mob)) 24px;
    height: 360px;
    min-height: 360px;
    order: -1;
  }
  .sm-hero__image {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  }
  .sm-hero__art::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(8,8,12,0.85) 100%);
  }
  .sm-hero__cta-primary,
  .sm-hero__cta-secondary { width: 100%; text-align: center; }
}

/* Trust badges (Bourbon) -----------------------------------------
 * 3-column row, full-bleed row split by faint vertical hairlines.
 * No card around — sits flush against the page so the row reads as
 * an editorial divider between hero and brand statement. */
.sm-badges-section { padding: 56px 0; border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); }
.sm-badges {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.sm-badge-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 32px;
  border-left: 1px solid var(--sm-line);
  min-width: 0;
}
.sm-badge-item:first-child { border-left: 0; padding-left: 0; }
.sm-badge-item:last-child  { padding-right: 0; }
.sm-badge-item__icon {
  width: 48px; height: 48px;
  background: transparent;
  border: 0;
  color: var(--sm-accent);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-badge-item__text { min-width: 0; }
.sm-badge-item__label {
  font-family: var(--sm-body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sm-ink);
  margin-bottom: 4px;
  white-space: normal;
}
.sm-badge-item__sub {
  font-family: var(--sm-body-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sm-ink-soft);
  line-height: 1.4;
  margin-top: 0;
  white-space: normal;
  text-transform: none;
}
@media (max-width: 900px) {
  .sm-badges { grid-template-columns: 1fr; gap: 18px; }
  .sm-badge-item { padding: 0; border-left: 0; }
  .sm-badges-section { padding: 32px 0; }
}

/* Brand statement (Bourbon) --------------------------------------
 * Two-column editorial: 60/40, serif headline + body left, gold
 * outline button right. Background can take an optional photo via
 * souci_bg_attrs('brand_statement'); without one it sits flush on
 * the page bg with subtle gold separators above/below. */
.sm-brand-statement-section { padding: 72px 0; }
.sm-brand-statement {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 56px;
  background: linear-gradient(135deg, var(--sm-surface) 0%, var(--sm-bg) 100%);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-card);
  position: relative;
  overflow: hidden;
}
.sm-brand-statement[data-bg="1"] {
  background-image:
    linear-gradient(120deg, rgba(8,8,12,0.92) 0%, rgba(8,8,12,0.5) 100%),
    var(--sm-bg-image);
  background-size: cover;
  background-position: center;
}
.sm-brand-statement__title {
  font-family: var(--sm-display-font);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--sm-accent);
  text-transform: uppercase;
}
.sm-brand-statement__title span { display: inline; }
.sm-brand-statement__body {
  margin: 24px 0 0;
  font-family: var(--sm-body-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--sm-ink-soft);
  max-width: 520px;
}
.sm-brand-statement__action { display: flex; justify-content: flex-end; }

@media (max-width: 900px) {
  .sm-brand-statement { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .sm-brand-statement__action { justify-content: flex-start; }
  .sm-brand-statement-section { padding: 40px 0; }
}

/* Flash deals --------------------------------------------------- */
.sm-flash {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.sm-flash__banner {
  background: linear-gradient(160deg, var(--sm-accent-2) 0%, var(--sm-accent) 100%);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sm-flash__headline {
  font-family: var(--sm-display-font);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  margin-top: 8px;
}
.sm-flash__meta {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 8px;
}
.sm-flash__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .sm-flash__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .sm-flash { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .sm-flash__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Countdown ----------------------------------------------------- */
.sm-countdown {
  display: inline-flex;
  gap: 6px;
  align-items: flex-start;
}
.sm-countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sm-countdown__v {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-family: var(--sm-mono-font);
  font-size: 16px;
  font-weight: 700;
  min-width: 38px;
  text-align: center;
}
.sm-countdown__l {
  font-family: var(--sm-mono-font);
  font-size: 9px;
  letter-spacing: 0.8px;
  margin-top: 4px;
  opacity: 0.85;
}
.sm-countdown__sep { color: #fff; font-weight: 700; padding-top: 6px; }

/* Categories bento --------------------------------------------- */
.sm-cat-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-rows: 1fr;
}
.sm-cat-tile {
  background: var(--sm-tint);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  aspect-ratio: 1 / 0.72;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.sm-cat-tile:hover { transform: translateY(-2px); color: #fff; }
.sm-cat-tile.is-feature {
  grid-column: span 2;
  aspect-ratio: 2 / 0.8;
}
.sm-cat-tile__name {
  font-family: var(--sm-display-font);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  margin-top: 6px;
  letter-spacing: -1px;
  text-transform: var(--sm-display-transform);
}
.sm-cat-tile.is-feature .sm-cat-tile__name { font-size: 40px; }
.sm-cat-tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .sm-cat-bento { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sm-cat-tile.is-feature { grid-column: span 2; aspect-ratio: 2 / 0.9; }
  .sm-cat-tile { padding: 14px; }
  .sm-cat-tile__name { font-size: 20px; }
  .sm-cat-tile.is-feature .sm-cat-tile__name { font-size: 28px; }
}

/* Bestsellers --------------------------------------------------- */
.sm-bestsellers .sm-prod-card { position: relative; }

/* Brands -------------------------------------------------------- */
.sm-brand-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  list-style: none;
  padding: 30px 20px;
  margin: 0;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 16px;
  font-family: var(--sm-display-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--sm-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Mood grid ----------------------------------------------------- */
.sm-mood-grid { grid-auto-rows: 1fr; }
.sm-mood-tile {
  background: var(--sm-tint);
  color: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  aspect-ratio: 1 / 1.1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform .2s;
}
.sm-mood-tile:hover { color: #fff; transform: translateY(-2px); }
.sm-mood-tile__name {
  font-family: var(--sm-display-font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-transform: var(--sm-display-transform);
}
.sm-mood-tile__sub { font-size: 11px; opacity: 0.9; margin-top: 2px; }

/* Price tiers --------------------------------------------------- */
.sm-tiers { grid-auto-rows: 1fr; }
.sm-tier {
  border-radius: 16px;
  padding: 24px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s;
}
.sm-tier:hover { transform: translateY(-2px); }
.sm-tier__name {
  font-family: var(--sm-display-font);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-top: 6px;
}
.sm-tier__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 600;
}
.sm-tier__foot .sm-mono { font-size: 11px; opacity: 0.75; font-weight: 500; }

.sm-tier--surface     { background: var(--sm-surface);     color: var(--sm-ink); border: 1px solid var(--sm-line); }
.sm-tier--surface-alt { background: var(--sm-surface-alt); color: var(--sm-ink); border: 1px solid var(--sm-line); }
.sm-tier--ink         { background: var(--sm-ink);         color: var(--sm-bg); }
.sm-tier--gradient    { background: linear-gradient(135deg, var(--sm-accent-2), var(--sm-accent-3)); color: #fff; }

/* Gift boxes ---------------------------------------------------- */
.sm-gifts {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.sm-gift-feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sm-accent-3) 0%, var(--sm-accent) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sm-gift-feature:hover { color: #fff; }
.sm-gift-feature__name {
  font-family: var(--sm-display-font);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 10px 0 0;
}
.sm-gift-feature__meta { margin: 10px 0 0; font-size: 13px; opacity: 0.9; max-width: 280px; }
.sm-gift-feature__thumbs {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.sm-gift-feature__thumbs li {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sm-gift-feature__orb {
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.sm-gift {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 20px;
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s;
}
.sm-gift:hover { transform: translateY(-2px); }
.sm-gift__media {
  height: 180px;
  border-radius: 12px;
  background: var(--sm-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-gift__media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sm-gift__media-grid span {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.3);
  display: block;
}
.sm-gift__name {
  font-family: var(--sm-display-font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--sm-ink);
}
.sm-gift__meta { font-size: 11px; letter-spacing: 0.3px; margin-top: 4px; }
.sm-gift__cta { margin-top: 10px; font-size: 12px; color: var(--sm-accent); font-weight: 700; }

@media (max-width: 900px) {
  .sm-gifts { grid-template-columns: 1fr; }
  .sm-gift-feature__name { font-size: 32px; letter-spacing: -1px; }
}

/* App Connect --------------------------------------------------- */
.sm-app-connect {
  background: var(--sm-ink);
  color: var(--sm-bg);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
}
.sm-app-connect__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sm-app-connect__headline {
  font-family: var(--sm-display-font);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1px;
  margin: 10px 0 0;
  color: var(--sm-bg);
}
.sm-app-connect__meta {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}
.sm-app-connect__dl {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.sm-app-connect .sm-btn.is-light {
  background: #fff;
  color: var(--sm-ink);
}
.sm-app-connect__android {
  border-color: rgba(255,255,255,0.3);
  color: var(--sm-bg);
}
.sm-app-connect__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sm-app-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  color: var(--sm-bg);
}
.sm-app-card:hover { color: var(--sm-bg); background: rgba(255,255,255,0.08); }
.sm-app-card__media {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: var(--sm-chroma);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-app-card__name {
  font-family: var(--sm-display-font);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.2px;
}
.sm-app-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}
.sm-app-card__price {
  font-family: var(--sm-display-font);
  font-size: 15px;
  font-weight: 800;
  color: var(--sm-accent);
}
.sm-app-card__tag { font-size: 9px; opacity: 0.6; }

@media (max-width: 900px) {
  .sm-app-connect { grid-template-columns: 1fr; padding: 18px; }
  .sm-app-connect__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Care ---------------------------------------------------------- */
.sm-care { grid-auto-rows: 1fr; }
.sm-care-tile {
  background: var(--sm-tint);
  color: var(--sm-ink-tile);
  border-radius: 14px;
  padding: 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s;
}
.sm-care-tile:hover { color: var(--sm-ink-tile); transform: translateY(-2px); }
.sm-care-tile__name {
  font-family: var(--sm-display-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.sm-care-tile__sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* Editorial ----------------------------------------------------- */
.sm-editorial {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.sm-editorial-card {
  background: var(--sm-ink);
  color: var(--sm-bg);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sm-editorial-card:hover { color: var(--sm-bg); }
.sm-editorial-card__head {
  font-family: var(--sm-display-font);
  font-size: 26px;
  font-weight: var(--sm-display-weight);
  margin: 12px 0 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.sm-editorial-card__body {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .sm-editorial { grid-template-columns: 1fr; }
}

/* Reviews (Bourbon) ----------------------------------------------
 * 3-col testimonial wall: round avatar + uppercase quoted headline +
 * body + dash-prefixed signature. Sits flush on the page bg,
 * delineated only by a thin gold rule above the section title. */
.sm-reviews-section { padding-top: 80px; padding-bottom: 80px; }
.sm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 24px;
}
.sm-review {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
  padding: 0;
  margin: 0;
}
.sm-review__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sm-line-strong);
  display: block;
}
.sm-review__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sm-display-font);
  font-weight: 600;
  font-size: 30px;
  color: var(--sm-accent);
  background: var(--sm-surface);
}
.sm-review__body { min-width: 0; margin: 0; }
.sm-review__headline {
  font-family: var(--sm-body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sm-ink);
  margin: 0 0 10px;
}
.sm-review__text {
  margin: 0;
  font-family: var(--sm-body-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--sm-ink-soft);
  font-weight: 400;
}
.sm-review__sig {
  margin: 12px 0 0;
  font-family: var(--sm-body-font);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--sm-ink-muted);
}

@media (max-width: 1100px) {
  .sm-reviews-grid { grid-template-columns: 1fr; gap: 36px; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .sm-reviews-section { padding-top: 48px; padding-bottom: 48px; }
  .sm-review { grid-template-columns: 64px 1fr; gap: 16px; }
  .sm-review__avatar { width: 64px; height: 64px; }
}

/* Newsletter — Bourbon: dark card, gold border, gold accent CTA */
.sm-newsletter-section { padding-top: 32px; padding-bottom: 80px; }
.sm-newsletter {
  background: linear-gradient(135deg, var(--sm-surface) 0%, var(--sm-bg) 100%);
  border: 1px solid var(--sm-line);
  color: var(--sm-accent-ink);
  border-radius: 20px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sm-newsletter__head {
  font-family: var(--sm-display-font);
  font-size: 36px;
  font-weight: var(--sm-display-weight);
  margin: 8px 0 0;
  letter-spacing: -0.8px;
  line-height: 1.1;
  text-transform: var(--sm-display-transform);
}
.sm-newsletter__meta { margin-top: 10px; font-size: 13px; opacity: 0.9; }
.sm-newsletter__form {
  display: flex;
  gap: 8px;
}
.sm-newsletter__form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--sm-ink);
  font-size: 14px;
  min-width: 0;
}
.sm-newsletter__form .sm-btn {
  padding: 16px 28px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .sm-newsletter { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .sm-newsletter__head { font-size: 26px; }
}

/* Section heading responsive tuning */
@media (max-width: 700px) {
  .sm-section-head h2, .sm-section-head .sm-h2 { font-size: 24px; letter-spacing: -0.3px; }
}

/* ========================================================================
 * Mobile responsive audit — homepage sections
 * Fixes for ≤700px / ≤414px overflow, awkward wraps, touch targets.
 * ====================================================================== */

/* Section head — title + "View all" link can collide on narrow screens.
   Force wrap so the trailing link drops below the title group. */
@media (max-width: 700px) {
  .sm-section-head { flex-wrap: wrap; row-gap: 6px; }
  .sm-section-head .sm-more { margin-left: auto; font-size: 12px; }
  .sm-section-head .sm-sub { font-size: 12px; line-height: 1.45; }
}

/* Hero — at very narrow widths the 44px title with -1.5px tracking can
   crash letters together. Scale down + relax tracking under 700px. */
@media (max-width: 700px) {
  .sm-hero { min-height: 280px; border-radius: 18px; }
  .sm-hero__copy { padding: 24px 20px; }
  .sm-hero__title { font-size: 36px; letter-spacing: -1px; }
  .sm-hero__desc { font-size: 13px; line-height: 1.5; }
  .sm-hero__ctas .sm-btn { padding: 12px 20px; font-size: 13px; }
  .sm-hero__stats { font-size: 9px; gap: 14px; }
}

/* Trust badges — `white-space: nowrap` on label/sub forces overflow on
   320–414px with two columns. Allow wrap, drop to a single col under 520. */
@media (max-width: 700px) {
  .sm-badge-item__label,
  .sm-badge-item__sub { white-space: normal; }
  .sm-badge-item__label { font-size: 13px; line-height: 1.25; }
  .sm-badge-item__icon { width: 36px; height: 36px; font-size: 16px; }
}
@media (max-width: 520px) {
  .sm-badges { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
}

/* Brand strip — 22px display weight + flex-wrap puts each brand on its
   own line at 320px. Switch to a horizontal scroll rail to keep the row
   feel and avoid a 8-line tower. */
@media (max-width: 700px) {
  .sm-brand-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 28px;
    padding: 22px 18px;
    font-size: 18px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .sm-brand-strip::-webkit-scrollbar { display: none; }
  .sm-brand-strip li { flex-shrink: 0; white-space: nowrap; }
}

/* Editorial — the aside renders its own `sm-section-head` ("Editor's
   pick") that, when stacked on mobile, sits flush with the card above.
   Add breathing room so the heading reads as a new section. */
@media (max-width: 900px) {
  .sm-editorial > aside .sm-section-head { margin-top: 12px; }
}

/* Newsletter form — input flex:1 + nowrap button can squeeze the input
   to 0 on narrow screens. Stack on mobile and full-width the button. */
@media (max-width: 700px) {
  .sm-newsletter__form { flex-direction: column; gap: 10px; }
  .sm-newsletter__form input,
  .sm-newsletter__form .sm-btn { width: 100%; justify-content: center; }
  .sm-newsletter__head { font-size: 22px; letter-spacing: -0.5px; }
}

/* App-connect — meta line + dl buttons row need to wrap on narrow phones
   so the two CTAs don't push past the card edge. */
@media (max-width: 520px) {
  .sm-app-connect { padding: 16px; gap: 16px; }
  .sm-app-connect__headline { font-size: 26px; }
  .sm-app-connect__dl { flex-wrap: wrap; }
  .sm-app-connect__dl .sm-btn { flex: 1 1 auto; justify-content: center; }
}

/* Flash banner — 34px headline + 20px banner padding gets tight on a
   320px wide column. Trim it down. */
@media (max-width: 520px) {
  .sm-flash__banner { padding: 16px; }
  .sm-flash__headline { font-size: 26px; }
  .sm-countdown__v { padding: 5px 8px; font-size: 14px; min-width: 32px; }
}

/* Categories bento — feature tile name 40px → 28px on tablet is fine,
   but on 360px width the feature spans the full row and 28px can still
   crash. Pull it down once more under 520. */
@media (max-width: 520px) {
  .sm-cat-tile.is-feature .sm-cat-tile__name { font-size: 24px; }
  .sm-cat-tile__name { font-size: 18px; }
}

/* Gift feature — orb decoration is 200px and positioned -40px out, on a
   narrow card it dominates and clips the heading. Shrink under 520. */
@media (max-width: 520px) {
  .sm-gift-feature { padding: 26px 22px; min-height: 280px; }
  .sm-gift-feature__name { font-size: 28px; letter-spacing: -0.8px; }
  .sm-gift-feature__orb { width: 140px; height: 140px; right: -30px; top: -30px; }
  .sm-gift { min-height: 260px; padding: 18px; }
  .sm-gift__media { height: 140px; }
  .sm-gift__name { font-size: 18px; }
}

/* Care tiles — `.sm-grid-5` collapses to 2-col on mobile, leaving the
   5th tile orphaned. Allow it to span the row so the grid reads even. */
@media (max-width: 900px) {
  .sm-care .sm-care-tile:last-child:nth-child(odd) { grid-column: span 2; }
}

/* Touch targets — bump anything sub-44px for thumb-friendly taps. */
@media (max-width: 900px) {
  .sm-mobile-burger { width: 44px; height: 44px; border-radius: 22px; }
  .sm-drawer__close { width: 44px; height: 44px; border-radius: 22px; }
  .sm-tabbar__fab { width: 48px; height: 48px; border-radius: 24px; margin-top: -22px; }
  .sm-tabbar__item { padding: 8px 4px; min-height: 52px; }
}

/* FAB cart button — sits over content on tall feeds; lift it above the
   tabbar a bit and ensure it doesn't cover sm-newsletter CTA. */
@media (max-width: 900px) {
  .sm-tabbar__cart { width: 52px; height: 52px; }
  .sm-newsletter-section { padding-bottom: 16px; }
}

/* =====================================================================
 * Section background images
 *
 * Any element marked [data-bg="1"] consumes --sm-bg-image (set inline via
 * the souci_bg_attrs() helper) and stacks two background-image layers:
 *
 *   1. --sm-bg-overlay  — translucent brand-tinted gradient (per-section)
 *   2. --sm-bg-image    — the real photo
 *
 * The overlay keeps text legible and preserves the brand colour identity
 * even when each section ships its own photo. Sections without an image
 * URL render exactly as before — these rules only kick in when [data-bg]
 * is present.
 * ===================================================================*/

[data-bg="1"] {
  background-image: var(--sm-bg-overlay, linear-gradient(135deg, rgba(15,5,20,0.45), rgba(15,5,20,0.18))), var(--sm-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero — keep the violet → coral brand sweep on top of the photo. */
.sm-hero[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(135deg, rgba(122,61,255,0.55) 0%, rgba(255,138,91,0.42) 100%);
}
[data-theme="dark"] .sm-hero[data-bg="1"],
:root:not([data-theme="light"]) .sm-hero[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(135deg, rgba(124,92,255,0.6) 0%, rgba(255,46,120,0.5) 100%);
}

/* Flash sale banner — coral → magenta. */
.sm-flash__banner[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(160deg, rgba(255,138,91,0.55) 0%, rgba(230,25,92,0.6) 100%);
}

/* Premium tier (gradient) — keep coral → violet pop. */
.sm-tier--gradient[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(135deg, rgba(255,138,91,0.55), rgba(122,61,255,0.6));
}

/* Dark tier — deep ink with a subtle vignette so the photo shows through. */
.sm-tier--ink[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(180deg, rgba(15,5,20,0.55), rgba(15,5,20,0.85));
}

/* Gift signature box — match the existing violet → magenta gradient. */
.sm-gift-feature[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(135deg, rgba(122,61,255,0.55) 0%, rgba(230,25,92,0.55) 100%);
}

/* App-connect — heavy ink overlay (white copy must stay readable). */
.sm-app-connect[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(120deg, rgba(15,5,20,0.78) 0%, rgba(15,5,20,0.55) 100%);
}

/* Editorial card — keep the dark mood; soften enough to read photo. */
.sm-editorial-card[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(180deg, rgba(15,5,20,0.55) 0%, rgba(15,5,20,0.85) 100%);
}

/* Newsletter — magenta → violet, lighter so the image registers. */
.sm-newsletter[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(120deg, rgba(230,25,92,0.55) 0%, rgba(122,61,255,0.55) 100%);
}

/* Tile-level overlays (cat / mood / care / gift media) — derive overlay from
   the inline --sm-tint so each tile keeps its semantic colour identity even
   with a real photo behind. color-mix is supported in all modern browsers. */
.sm-cat-tile[data-bg="1"],
.sm-mood-tile[data-bg="1"],
.sm-care-tile[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(160deg,
    color-mix(in srgb, var(--sm-tint) 78%, transparent) 0%,
    color-mix(in srgb, var(--sm-tint) 35%, transparent) 100%);
}

/* Hover — tighten overlay so the photo "breathes" under the cursor. */
.sm-cat-tile[data-bg="1"]:hover,
.sm-mood-tile[data-bg="1"]:hover,
.sm-care-tile[data-bg="1"]:hover {
  --sm-bg-overlay: linear-gradient(160deg,
    color-mix(in srgb, var(--sm-tint) 60%, transparent) 0%,
    color-mix(in srgb, var(--sm-tint) 18%, transparent) 100%);
}

/* Gift small box — let photo show but keep tint identity. The icon grid
   inside (.sm-gift__media-grid) needs less contrast so we use a softer mix. */
.sm-gift__media[data-bg="1"] {
  --sm-bg-overlay: linear-gradient(160deg,
    color-mix(in srgb, var(--sm-tint) 50%, transparent) 0%,
    color-mix(in srgb, var(--sm-tint) 20%, transparent) 100%);
}
.sm-gift__media[data-bg="1"] .sm-gift__media-grid span {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Reduced motion + safety: ensure text inside data-bg sections has a tiny
   shadow so it survives even if the chosen photo is unusually busy. */
[data-bg="1"] .sm-eyebrow,
[data-bg="1"] .sm-cat-tile__name,
[data-bg="1"] .sm-mood-tile__name,
[data-bg="1"] .sm-care-tile__name,
[data-bg="1"] .sm-tier__name,
[data-bg="1"] .sm-gift-feature__name,
[data-bg="1"] .sm-app-connect__headline,
[data-bg="1"] .sm-editorial-card__head,
[data-bg="1"] .sm-newsletter__head,
[data-bg="1"] .sm-hero__title {
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* ============================================================
 * Hero — "Full-image" layout
 *
 * Used when the campaign banner has its own typography baked in
 * (Customizer → Homepage Hero → Layout → "Full-image banner").
 * The image fills the hero column edge-to-edge, no theme copy,
 * optional <a> wrap for click-through.
 * ============================================================ */
.sm-hero-section--full-image { padding-top: 12px; padding-bottom: 12px; }
.sm-hero--full-image {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sm-surface, #15151E);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;          /* defensive — when rendered as <a> */
  color: inherit;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
}
a.sm-hero--full-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.40), 0 4px 12px rgba(0, 0, 0, 0.20);
}
a.sm-hero--full-image:focus-visible {
  outline: 2px solid var(--sm-accent, #BE955D);
  outline-offset: 4px;
}
.sm-hero--full-image picture {
  display: block;
  width: 100%;
  line-height: 0;          /* removes the inline-img phantom space */
}
.sm-hero__full-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 760px) {
  .sm-hero--full-image { border-radius: 16px; }
}
