/* StonerBase homepage — streetwear, brand-first */

:root {
  --sb-violet: #8224e3;
  --sb-violet-deep: #5c14a8;
  --sb-ink: #0c0b10;
  --sb-muted: #6e6878;
  --sb-display: "Syne", sans-serif;
  --sb-sans: "Figtree", sans-serif;
}

/* Hide default page title on front */
.home .entry-header,
.page-id-22 .entry-header,
.sb-front .entry-header {
  display: none !important;
}

.home .content-area,
.home .site-main,
.home .entry-content,
.page-id-22 .entry-content,
.sb-front .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.home .col-full,
.home #primary,
.sb-front .col-full,
.sb-front #primary {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sb-home {
  font-family: var(--sb-sans);
  color: var(--sb-ink);
  overflow-x: visible;
}

/* ——— Hero ——— */
.sb-hero {
  position: relative;
  min-height: min(100vh, 860px);
  min-height: min(100dvh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse 50% 65% at 78% 45%, rgba(130, 36, 227, 0.32) 0%, transparent 70%),
    linear-gradient(160deg, #0c0b10 0%, #16111f 45%, #0c0b10 100%);
  color: #fff;
  overflow: hidden;
  padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
}

.sb-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  order: 2;
}

.sb-hero__visual img {
  width: min(100%, 560px);
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  transform: translateY(10px) scale(1.03);
  animation: sb-ken 16s ease-out forwards;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
}

.sb-hero__scrim,
.sb-hero__glow {
  display: none;
}

.sb-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding: 1rem 0;
  order: 1;
}

.sb-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(28px);
  animation: sb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.sb-hero__logo {
  display: block;
  width: min(42vw, 220px);
  height: auto;
  max-width: 220px;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.sb-hero__brand-name {
  margin: 0;
  font-family: var(--sb-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
}

.sb-hero__headline {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--sb-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f0eaf8;
  opacity: 0;
  transform: translateY(24px);
  animation: sb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.sb-hero__text {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: sb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.sb-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.55rem;
  background: var(--sb-violet);
  color: #fff !important;
  font-family: var(--sb-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border: 0;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
  animation: sb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.sb-hero__cta:hover,
.sb-hero__cta:focus {
  background: var(--sb-violet-deep);
  color: #fff !important;
  transform: translateY(-2px);
}

.sb-hero__cta svg {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.25s ease;
}

.sb-hero__cta:hover svg {
  transform: translateX(3px);
}

/* ——— Sections ——— */
.sb-section {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
  font-family: var(--sb-sans);
}

.sb-section--collection {
  padding-bottom: 0.5rem;
}

.sb-section__head {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sb-section__head h2,
.sb-collection-head {
  margin: 0 0 0.65rem;
  font-family: var(--sb-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--sb-ink);
  line-height: 1.1;
  text-align: center;
}

.sb-section__head p,
.sb-collection-intro {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  color: var(--sb-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
  font-family: var(--sb-sans);
}

.sb-section--note {
  padding: 3rem 0 5rem;
}

.sb-note {
  display: grid;
  gap: 1.25rem;
  padding: 2.25rem 0 0;
  border-top: 1px solid #e6e2ec;
  text-align: center;
}

.sb-note h2 {
  margin: 0;
  font-family: var(--sb-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.sb-note p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--sb-muted);
  line-height: 1.55;
}

.sb-note a {
  color: var(--sb-violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Product grid polish ——— */
.home ul.products,
.sb-front ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.35rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: min(1180px, calc(100% - 2.5rem)) !important;
  list-style: none;
  float: none !important;
}

.home ul.products::before,
.home ul.products::after,
.sb-front ul.products::before,
.sb-front ul.products::after {
  display: none !important;
  content: none !important;
}

.home ul.products li.product,
.sb-front ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  background: transparent;
  border: 0;
  box-shadow: none !important;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.home ul.products li.product.is-visible,
.sb-front ul.products li.product.is-visible {
  opacity: 1;
  transform: none;
}

.home ul.products li.product img,
.sb-front ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0c0b10;
  border-radius: 2px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home ul.products li.product:hover img,
.sb-front ul.products li.product:hover img {
  transform: scale(1.03);
}

.home ul.products li.product .woocommerce-loop-product__title,
.sb-front ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--sb-sans);
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: var(--sb-ink) !important;
  margin-top: 0.85rem !important;
}

.home ul.products li.product .price,
.sb-front ul.products li.product .price {
  font-family: var(--sb-sans);
  color: var(--sb-ink) !important;
  font-weight: 700;
}

.home ul.products li.product .button,
.sb-front ul.products li.product .button {
  border-radius: 4px !important;
  font-family: var(--sb-sans);
}

.home ul.products .wgm-info,
.sb-front ul.products .wgm-info {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--sb-muted);
}

@keyframes sb-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sb-ken {
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes sb-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .home ul.products,
  .sb-front ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .sb-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 1.25rem 2.75rem;
    gap: 0.5rem;
    text-align: left;
  }

  .sb-hero__visual {
    order: 1;
    min-height: 240px;
  }

  .sb-hero__visual img {
    width: min(78vw, 340px);
    max-height: 300px;
    animation: none;
    transform: none;
  }

  .sb-hero__content {
    order: 2;
    padding: 0.5rem 0 0;
    max-width: none;
  }

  .sb-hero__logo {
    width: min(46vw, 160px);
    max-width: 160px;
  }

  .sb-hero__brand-name {
    font-size: clamp(2.05rem, 9.2vw, 2.75rem);
    letter-spacing: -0.045em;
  }

  .sb-hero__headline {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }

  .sb-hero__text {
    font-size: 0.98rem;
  }

  .home ul.products,
  .sb-front ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem 0.85rem !important;
  }

  .sb-section {
    padding-top: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-hero__visual img,
  .sb-hero__brand,
  .sb-hero__headline,
  .sb-hero__text,
  .sb-hero__cta,
  .sb-hero__glow,
  .home ul.products li.product,
  .sb-front ul.products li.product {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Full-bleed hero + space for overlay topnav */
body.sb-front {
  background: #0c0b10 !important;
}

body.sb-front #page,
body.sb-front .site {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

body.sb-front .site-content,
body.sb-front .content-area,
body.sb-front .site-main,
body.sb-front .entry-content,
body.sb-front .col-full {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  float: none !important;
}

body.sb-front .sb-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  padding-top: 7.25rem;
  box-sizing: border-box;
}

body.sb-front .sb-section,
body.sb-front ul.products {
  width: min(1180px, calc(100% - 2.5rem)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.sb-front .site-content {
  background: #fff;
}

body.sb-front .sb-home {
  background: #0c0b10;
}

@media (max-width: 720px) {
  body.sb-front .sb-hero {
    padding-top: 5.75rem;
  }
}
