@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;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ayf-font-body);
  color: var(--ayf-ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(250, 204, 21, 0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(236, 72, 153, 0.14), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--ayf-surface) 42%, #fff 100%);
}

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

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

/* Buttons */
.btn,
.button,
.wp-element-button,
.wd-buy-now-btn,
.single_add_to_cart_button,
.ayf-btn {
  border-radius: var(--ayf-radius-pill) !important;
  font-family: var(--ayf-font-body);
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.ayf-btn:hover {
  background: var(--ayf-pink-hot);
  transform: translateY(-2px);
}

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

/* Hero */
.ayf-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center start;
  overflow: hidden;
  color: var(--ayf-white);
  background:
    linear-gradient(115deg, rgba(76, 29, 149, 0.88) 12%, rgba(107, 33, 168, 0.55) 48%, rgba(236, 72, 153, 0.28) 100%),
    radial-gradient(circle at 70% 40%, rgba(250, 204, 21, 0.35), transparent 28%),
    url("../img/hero-fallback.svg") center/cover no-repeat;
}

.ayf-hero__bubble {
  position: absolute;
  inset: 12% auto auto 6%;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(107, 33, 168, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--ayf-shadow);
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  animation: ayf-float 7s ease-in-out infinite;
}

.ayf-hero__brand {
  font-family: var(--ayf-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.ayf-hero__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

.ayf-hero__text {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

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

.ayf-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

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

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

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

/* Circular categories */
.ayf-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.ayf-cat__circle {
  width: min(100%, 180px);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, var(--ayf-yellow-soft), transparent 42%),
    linear-gradient(160deg, #fce7f3, #ede9fe);
  border: 4px solid rgba(107, 33, 168, 0.08);
  box-shadow: 0 14px 35px rgba(107, 33, 168, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.ayf-cat__circle img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.ayf-cat:hover .ayf-cat__circle {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.22);
}

.ayf-cat__label {
  font-weight: 800;
  color: var(--ayf-purple-deep);
}

/* Product cards polish */
.wd-products-with-bg .product-wrapper,
.products .product-wrapper,
.wd-product {
  border-radius: 1.5rem !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image-link img,
.wd-entities-title {
  border-radius: 0;
}

.added_to_cart,
.button.product_type_simple,
.button.add_to_cart_button {
  background: var(--ayf-pink) !important;
  border-color: var(--ayf-pink) !important;
  color: #fff !important;
}

/* Promo band */
.ayf-promo {
  margin: 1rem auto;
  max-width: 1200px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 85% 50%, rgba(250, 204, 21, 0.55), transparent 28%),
    linear-gradient(120deg, var(--ayf-purple-deep), var(--ayf-pink));
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

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

.ayf-promo p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.ayf-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.ayf-trust__icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.8rem;
  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.1rem;
  color: var(--ayf-purple-deep);
}

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

/* Header accents */
.whb-header,
.wd-header-nav {
  font-family: var(--ayf-font-body);
}

.wd-header-cart .wd-tools-count,
.wd-header-wishlist .wd-tools-count {
  background: var(--ayf-pink) !important;
}

@keyframes ayf-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .ayf-cats,
  .ayf-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ayf-hero__bubble {
    position: relative;
    inset: auto;
    width: min(92vw, 420px);
    margin: 2rem auto;
  }

  .ayf-hero {
    place-items: center;
    min-height: 70vh;
  }
}

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

/* Reveal motion */
.ayf-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ayf-reveal.is-visible {
  opacity: 1;
  transform: none;
}
