@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800&family=Fredoka:wght@500;600;700&display=swap");

:root {
  --ayf-purple: #6b21a8;
  --ayf-purple-deep: #4c1d95;
  --ayf-pink: #ec4899;
  --ayf-pink-hot: #db2777;
  --ayf-yellow: #facc15;
  --ayf-yellow-soft: #fef08a;
  --ayf-ink: #1f1235;
  --ayf-muted: #6b6280;
  --ayf-surface: #fff7fb;
  --ayf-white: #ffffff;
  --ayf-radius-pill: 999px;
  --ayf-shadow: 0 18px 50px rgba(76, 29, 149, 0.18);
  --ayf-font-display: "Fredoka", "Nunito", sans-serif;
  --ayf-font-body: "Nunito", system-ui, sans-serif;
  --wd-primary-color: var(--ayf-purple) !important;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body,
body.ayf-home-body {
  font-family: var(--ayf-font-body) !important;
  color: var(--ayf-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(250, 204, 21, 0.22), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(236, 72, 153, 0.16), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--ayf-surface) 38%, #ffffff 100%) !important;
}

h1, h2, h3, h4,
.wd-entities-title,
.product-title,
.ayf-hero__title,
.ayf-hero__brand {
  font-family: var(--ayf-font-display) !important;
  letter-spacing: -0.02em;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Front page: escape WoodMart container so hero can be full-bleed */
body.ayf-home-body #main-content.container,
body.home #main-content.container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ayf-home-body .wd-page-title,
body.home .wd-page-title {
  display: none !important;
}

.ayf-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header styles live in header.css (loaded on all pages). */

/* ---------- Buttons ---------- */
.btn,
.button,
.wp-element-button,
.single_add_to_cart_button,
.add_to_cart_button,
.ayf-btn {
  border-radius: var(--ayf-radius-pill) !important;
  font-family: var(--ayf-font-body) !important;
  font-weight: 800 !important;
}

.ayf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  background: var(--ayf-pink);
  color: var(--ayf-white) !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.35);
  border: 0;
}

.ayf-btn:hover {
  background: var(--ayf-pink-hot);
  transform: translateY(-2px);
  color: #fff !important;
}

.ayf-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.ayf-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.add_to_cart_button,
.ayf-hero .product_type_simple,
.ayf-hero .product_type_variable,
.ayf-section--products .product_type_simple,
.ayf-section--products .product_type_variable {
  background: var(--ayf-pink) !important;
  border-color: var(--ayf-pink) !important;
  color: #fff !important;
}

/* ---------- Hero ---------- */
.ayf-hero {
  position: relative;
  min-height: min(86vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(76, 29, 149, 0.94) 8%, rgba(124, 58, 237, 0.78) 48%, rgba(219, 39, 119, 0.72) 100%),
    url("../img/hero-fallback.svg") center / cover no-repeat;
}

.ayf-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.ayf-hero__glow--a {
  width: 280px;
  height: 280px;
  right: 18%;
  top: 12%;
  background: rgba(250, 204, 21, 0.45);
  animation: ayf-float 6.5s ease-in-out infinite;
}

.ayf-hero__glow--b {
  width: 180px;
  height: 180px;
  right: 8%;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.22);
  animation: ayf-float 8s ease-in-out infinite reverse;
}

.ayf-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.ayf-hero__bubble {
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(76, 29, 149, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--ayf-shadow);
  backdrop-filter: blur(8px);
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  animation: ayf-float 7s ease-in-out infinite;
}

.ayf-hero__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ayf-yellow-soft);
}

.ayf-hero__brand {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.ayf-hero__title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 600;
  color: #fff;
}

.ayf-hero__text {
  margin: 0;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.45;
}

.ayf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.ayf-hero__orbits {
  position: relative;
  min-height: 340px;
}

.ayf-balloon {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ayf-balloon--1 {
  width: 150px;
  height: 150px;
  left: 18%;
  top: 12%;
  background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b);
  animation: ayf-float 5.5s ease-in-out infinite;
}

.ayf-balloon--2 {
  width: 110px;
  height: 110px;
  right: 16%;
  top: 28%;
  background: radial-gradient(circle at 30% 30%, #f9a8d4, #db2777);
  animation: ayf-float 6.8s ease-in-out infinite reverse;
}

.ayf-balloon--3 {
  width: 90px;
  height: 90px;
  left: 36%;
  bottom: 18%;
  background: radial-gradient(circle at 30% 30%, #ddd6fe, #7c3aed);
  animation: ayf-float 7.4s ease-in-out infinite;
}

.ayf-balloon--4 {
  width: 70px;
  height: 70px;
  right: 28%;
  bottom: 12%;
  background: radial-gradient(circle at 30% 30%, #fff, #fbcfe8);
  animation: ayf-float 4.8s ease-in-out infinite reverse;
}

/* ---------- Sections ---------- */
.ayf-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ayf-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.ayf-section__head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  color: var(--ayf-purple-deep);
}

.ayf-section__head p {
  margin: 0;
  color: var(--ayf-muted);
  font-size: 1.05rem;
}

.ayf-section__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Categories */
.ayf-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.ayf-cat {
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  padding: 0.5rem;
}

.ayf-cat__circle {
  display: block;
  position: relative;
  overflow: hidden;
  width: min(100%, 170px);
  aspect-ratio: 1;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  border: 4px solid rgba(107, 33, 168, 0.08);
  box-shadow: 0 16px 36px rgba(107, 33, 168, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ayf-cat--1 .ayf-cat__circle {
  background:
    radial-gradient(circle at 30% 25%, #fef08a, transparent 42%),
    linear-gradient(160deg, #fce7f3, #ede9fe);
}

.ayf-cat--2 .ayf-cat__circle {
  background:
    radial-gradient(circle at 70% 20%, #f9a8d4, transparent 40%),
    linear-gradient(160deg, #dbeafe, #fce7f3);
}

.ayf-cat--3 .ayf-cat__circle {
  background:
    radial-gradient(circle at 40% 30%, #c4b5fd, transparent 45%),
    linear-gradient(160deg, #fef3c7, #ede9fe);
}

.ayf-cat--4 .ayf-cat__circle {
  background:
    radial-gradient(circle at 50% 20%, #fde68a, transparent 40%),
    linear-gradient(160deg, #fbcfe8, #ddd6fe);
}

.ayf-cat__circle--photo {
  background: #fff !important;
  box-shadow:
    0 16px 36px rgba(107, 33, 168, 0.12),
    inset 0 0 0 1px rgba(107, 33, 168, 0.06);
}

.ayf-cat__circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ayf-cat:hover .ayf-cat__circle {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 22px 44px rgba(236, 72, 153, 0.22);
}

.ayf-cat:hover .ayf-cat__circle img {
  transform: scale(1.06);
}

.ayf-cat__label {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ayf-purple-deep);
}

.ayf-cat__hint {
  display: block;
  margin-top: 0.2rem;
  color: var(--ayf-muted);
  font-size: 0.9rem;
}

/* Trust */
.ayf-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ayf-trust__item {
  background: #fff;
  border-radius: 1.35rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.08);
  border: 1px solid rgba(107, 33, 168, 0.06);
}

.ayf-trust__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ayf-yellow);
  color: var(--ayf-purple-deep);
  font-weight: 800;
}

.ayf-trust h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  color: var(--ayf-purple-deep);
}

.ayf-trust p {
  margin: 0;
  color: var(--ayf-muted);
}

/* Products */
.ayf-section--products .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.ayf-section--products .product,
.ayf-section--products .wd-product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.ayf-section--products .product-wrapper,
.ayf-section--products .wd-product {
  background: #fff;
  border-radius: 1.35rem !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(76, 29, 149, 0.08);
  border: 1px solid rgba(107, 33, 168, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ayf-section--products .product:hover .product-wrapper,
.ayf-section--products .wd-product:hover {
  transform: translateY(-5px);
  box-shadow: var(--ayf-shadow);
}

.ayf-section--products .wd-entities-title,
.ayf-section--products .woocommerce-loop-product__title {
  font-size: 0.98rem !important;
  color: var(--ayf-ink) !important;
}

.ayf-section--products .price {
  color: var(--ayf-purple) !important;
  font-weight: 800 !important;
}

/* Promo */
.ayf-promo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 88% 40%, rgba(250, 204, 21, 0.55), transparent 30%),
    linear-gradient(120deg, var(--ayf-purple-deep), var(--ayf-pink));
  color: #fff;
  box-shadow: var(--ayf-shadow);
}

.ayf-promo h2 {
  margin: 0 0 0.55rem;
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.ayf-promo p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40ch;
}

.ayf-promo__art {
  min-height: 200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #fef08a 0 28%, transparent 29%),
    radial-gradient(circle at 68% 48%, #f9a8d4 0 22%, transparent 23%),
    radial-gradient(circle at 52% 62%, rgba(255, 255, 255, 0.35) 0 18%, transparent 19%);
}

/* Footer */
.wd-footer,
footer.footer-container {
  background: linear-gradient(180deg, #3b0764, #4c1d95) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.wd-footer a,
.footer-widget a {
  color: #fff !important;
}

/* Motion */
@keyframes ayf-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .ayf-hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ayf-hero__bubble {
    justify-items: center;
  }

  .ayf-hero__text {
    margin-inline: auto;
  }

  .ayf-hero__actions {
    justify-content: center;
  }

  .ayf-hero__orbits {
    display: none;
  }

  .ayf-cats,
  .ayf-trust,
  .ayf-section--products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ayf-promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ayf-cats {
    grid-template-columns: 1fr 1fr;
  }

  .ayf-trust,
  .ayf-section--products .products {
    grid-template-columns: 1fr;
  }
}
