/*
Theme Name: Fairy Dust Kids' Fashion
Theme URI: https://fairydustkids.ph
Author: Fairy Dust Kids' Fashion
Description: Custom WooCommerce theme for Fairy Dust Kids' Fashion — sticky header with hamburger menu, glitter and wand animations, Filipino kids' size guide, and Viber / WhatsApp / Messenger ordering.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fairydust
WC requires at least: 7.0
*/

/* ---------- Tokens ---------- */
:root {
  --fd-ink: #2B2352;
  --fd-ink-2: #3B3268;
  --fd-text: #4A4170;
  --fd-muted: #5E567F;
  --fd-ground: #FFF8FC;
  --fd-line: #F3DDEB;
  --fd-pink: #FF5DB8;
  --fd-pink-deep: #B02A78;
  --fd-pink-soft: #FFF0F8;
  --fd-violet: #8A3FCF;
  --fd-violet-soft: #F6EEFF;
  --fd-blue: #2F62D6;
  --fd-blue-soft: #EEF5FF;
  --fd-wa: #127A43;
  --fd-viber: #6A4FE0;
  --fd-msgr: #0A5FD8;
  --fd-display: 'Fraunces', Georgia, serif;
  --fd-body: 'Nunito', system-ui, sans-serif;
  --fd-caps: 'Josefin Sans', system-ui, sans-serif;
  --fd-grad: linear-gradient(100deg, #FFE3F3 0%, #F1E3FF 50%, #DDEEFF 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fd-ground); color: var(--fd-ink); font-family: var(--fd-body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--fd-pink-deep); }
a:hover { color: #7E1B56; }
h1, h2, h3, h4 { font-family: var(--fd-display); font-weight: 900; line-height: 1.1; color: var(--fd-ink); }
section[id] { scroll-margin-top: 120px; }
.fd-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-eyebrow { font-family: var(--fd-caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fd-violet); font-weight: 600; }
.fd-h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 44px); }
.fd-lead { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--fd-text); max-width: 640px; }
.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--fd-ink); background: var(--fd-ink); color: #fff; font-family: var(--fd-body); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.fd-btn:hover { color: #fff; background: var(--fd-ink-2); }
.fd-btn--ghost { background: #fff; color: var(--fd-ink); }
.fd-btn--ghost:hover { background: var(--fd-violet-soft); color: var(--fd-ink); }
.fd-magic { background: linear-gradient(90deg,#E0379B,#B04FE8,#3E8EF0,#B04FE8,#E0379B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fdShimmer 4s linear infinite; }

/* ---------- Animations ---------- */
@keyframes fdTwinkle { 0%,100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 1; transform: scale(.85) rotate(60deg); } }
@keyframes fdDrift { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px); } }
@keyframes fdShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes fdWave { 0%,100% { transform: rotate(-22deg); } 50% { transform: rotate(-10deg); } }
@keyframes fdWaveFoot { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(9deg); } }
@keyframes fdWaveSm { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(-3deg); } }
@keyframes fdSpray { 0% { opacity: 0; transform: translate(0,0) scale(.2) rotate(0deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(120deg); } }
@keyframes fdBurst { 0% { opacity: 1; transform: translate(0,0) scale(.3); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); } }
@keyframes fdTap { 0% { opacity: 0; transform: rotate(-35deg) scale(.6); } 30% { opacity: 1; transform: rotate(12deg) scale(1); } 60% { transform: rotate(-8deg); } 100% { opacity: 0; transform: rotate(0deg); } }
@keyframes fdPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes fdRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.fd-glitter { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fd-glitter span { position: absolute; opacity: 0; }
.fd-glitter svg, .fd-burst svg { width: 100%; height: 100%; display: block; }

/* ---------- Top bar ---------- */
.fd-topbar { background: var(--fd-ink); color: #fff; }
.fd-topbar .fd-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 6px; padding-bottom: 6px; }
.fd-topbar__msg { font-family: var(--fd-caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.fd-topbar__links { display: flex; align-items: center; gap: 8px; }
.fd-topbar__label { font-size: 14px; font-weight: 700; color: #E4DFF7; }
.fd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; }
.fd-chip:hover { color: #fff; filter: brightness(1.1); }
.fd-chip svg { width: 16px; height: 16px; }
.fd-chip--wa { background: var(--fd-wa); }
.fd-chip--viber { background: var(--fd-viber); }
.fd-chip--msgr { background: var(--fd-msgr); }

/* ---------- Header ---------- */
.fd-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--fd-line); box-shadow: 0 6px 20px rgba(43,35,82,.06); backdrop-filter: blur(8px); }
body.admin-bar .fd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fd-header { top: 46px; } }
.fd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.fd-logo img { height: 82px; width: auto; display: block; }
.fd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.fd-nav a { color: var(--fd-ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 0; display: inline-block; }
.fd-nav a:hover { color: var(--fd-pink-deep); }
.fd-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.fd-bag { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--fd-ink); background: #fff; color: var(--fd-ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.fd-bag:hover { color: var(--fd-ink); background: var(--fd-violet-soft); }
.fd-bag.is-popping .fd-cart-count { display: inline-block; animation: fdPop .5s ease-out; }
.fd-burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--fd-ink); background: #fff; color: var(--fd-ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.fd-burger .fd-ic-close { display: none; }
.fd-burger[aria-expanded="true"] .fd-ic-close { display: block; }
.fd-burger[aria-expanded="true"] .fd-ic-open { display: none; }
.fd-mobile-nav { display: none; border-top: 1px solid var(--fd-line); padding: 8px 24px 18px; animation: fdRise .2s ease-out; }
.fd-mobile-nav.is-open { display: block; }
.fd-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.fd-mobile-nav a { display: block; color: var(--fd-ink); text-decoration: none; font-family: var(--fd-display); font-weight: 700; font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--fd-violet-soft); }

/* ---------- Hero ---------- */
.fd-hero { position: relative; overflow: hidden; background: var(--fd-grad); }
.fd-hero__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 80px; }
.fd-hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.fd-hero__eyebrow { font-family: var(--fd-caps); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--fd-violet); font-weight: 600; }
.fd-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.fd-hero p { margin: 0; font-size: 19px; line-height: 1.6; max-width: 520px; color: var(--fd-text); }
.fd-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.fd-hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.fd-hero__art img { width: 100%; max-width: 440px; }

.fd-wand { position: absolute; pointer-events: none; transform-origin: 50% 100%; }
.fd-wand svg { width: 100%; height: 100%; display: block; }
.fd-wand--hero { right: 1.5%; bottom: -70px; width: 120px; height: 380px; z-index: 0; animation: fdWave 3.4s ease-in-out infinite; }
.fd-wand--hero svg { filter: drop-shadow(0 6px 14px rgba(240,107,200,.35)); }
.fd-wand__tip { position: absolute; left: 50%; top: 15%; width: 0; height: 0; }
.fd-wand__tip span { position: absolute; opacity: 0; }
.fd-wand--foot { left: 28px; bottom: -40px; width: 110px; height: 330px; animation: fdWaveFoot 3.8s ease-in-out infinite; }
.fd-wand--foot svg { filter: drop-shadow(0 0 18px rgba(255,143,218,.45)); }

/* ---------- Trust strip ---------- */
.fd-trust { background: #fff; border-bottom: 1px solid var(--fd-line); }
.fd-trust .fd-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.fd-trust__item { display: flex; gap: 14px; align-items: center; }
.fd-trust__ic { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.fd-trust__item strong { display: block; }
.fd-trust__item small { font-size: 14px; color: var(--fd-muted); }

/* ---------- Sections ---------- */
.fd-section { padding-top: 80px; padding-bottom: 24px; }
.fd-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.fd-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.fd-cat { text-decoration: none; color: var(--fd-ink); display: flex; flex-direction: column; gap: 14px; }
.fd-cat__img { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.fd-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-cat:hover .fd-cat__img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(176,79,232,.18); }
.fd-cat__name { font-family: var(--fd-display); font-weight: 700; font-size: 22px; }
.fd-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.fd-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--fd-ink); background: #fff; color: var(--fd-ink); text-decoration: none; font-weight: 800; font-size: 14px; }
.fd-tabs a:hover, .fd-tabs a.is-active { background: var(--fd-ink); color: #fff; }

/* Occasions */
.fd-occasions { padding-top: 80px; padding-bottom: 80px; }
.fd-occasions__card { border-radius: 36px; background: var(--fd-ink); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fd-occasions__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fd-occasions h2 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 46px); }
.fd-occasions p { margin: 0; font-size: 18px; line-height: 1.6; color: #E4DFF7; }
.fd-occasions .fd-eyebrow { color: #FFB3E0; }
.fd-occasions__grid { flex: 1 1 320px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fd-occasions__grid div { border-radius: 20px; background: var(--fd-ink-2); padding: 22px; font-family: var(--fd-display); font-weight: 700; font-size: 20px; }

/* Story */
.fd-story { position: relative; overflow: hidden; }
.fd-story__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 24px 24px 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.fd-pill-label { font-family: var(--fd-caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #9A2E78; font-weight: 600; padding: 9px 18px 7px; border: 2px solid #F2B5DA; border-radius: 999px; background: #fff; }
.fd-story h2 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.fd-story p { margin: 0; font-size: 19px; line-height: 1.75; color: var(--fd-text); }
.fd-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.fd-tags span { padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; border: 2px solid; }
.fd-founder { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.fd-avatar { position: relative; width: 104px; height: 104px; flex: none; }
.fd-avatar__ring { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg,#FF5DB8,#B66BF2,#6EC1FF); }
.fd-avatar__ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--fd-violet-soft); object-fit: cover; display: flex; align-items: center; justify-content: center; color: #6B3FA0; font-weight: 700; font-size: 13px; }
.fd-avatar .fd-glitter { inset: -18px; }
.fd-founder__name { font-family: var(--fd-display); font-weight: 900; font-size: 24px; }
.fd-founder__role { font-size: 16px; color: var(--fd-muted); }

/* Newsletter */
.fd-news { background: var(--fd-grad); }
.fd-news .fd-wrap { max-width: 760px; padding-top: 64px; padding-bottom: 64px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.fd-news h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.fd-news p { margin: 0; font-size: 17px; color: var(--fd-text); }
.fd-news form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 520px; }
.fd-news input[type="email"] { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--fd-ink); font-family: var(--fd-body); font-size: 16px; background: #fff; color: var(--fd-ink); }

/* ---------- Size guide ---------- */
.fd-size-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.fd-unit { display: flex; border: 2px solid var(--fd-ink); border-radius: 999px; padding: 3px; }
.fd-unit button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: none; cursor: pointer; font-family: var(--fd-body); font-weight: 800; font-size: 14px; background: transparent; color: var(--fd-ink); }
.fd-unit button[aria-pressed="true"] { background: var(--fd-ink); color: #fff; }
.fd-table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--fd-line); background: #fff; }
.fd-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.fd-table thead tr { background: var(--fd-ink); color: #fff; text-align: left; }
.fd-table th, .fd-table td { padding: 14px 20px; }
.fd-table thead th { padding-top: 16px; padding-bottom: 16px; font-weight: 800; }
.fd-table tbody tr { border-top: 1px solid var(--fd-line); }
.fd-table tbody tr:nth-child(odd) { background: #FFF6FB; }
.fd-table tbody th { text-align: left; font-family: var(--fd-display); font-weight: 900; font-size: 18px; color: var(--fd-pink-deep); }
.fd-table td:nth-child(2) { font-weight: 700; }
.fd-measure { margin-top: 56px; border-radius: 32px; background: linear-gradient(120deg,#FFF0F8,#F6EEFF 55%,#EEF5FF); padding: clamp(24px, 4vw, 48px); }
.fd-measure h3 { margin: 8px 0; font-size: clamp(26px, 3.4vw, 38px); }
.fd-measure__body { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 24px; }
.fd-measure__art { flex: 1 1 240px; min-width: 0; display: flex; justify-content: center; }
.fd-measure__art svg { width: 100%; max-width: 280px; display: block; }
.fd-steps { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fd-steps li { background: #fff; border-radius: 20px; padding: 18px; display: flex; gap: 14px; }
.fd-steps .fd-num { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fd-steps strong { display: block; margin-bottom: 4px; }
.fd-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fd-text); }
.fd-tips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fd-tips span { padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; }
.fd-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.fd-help-grid div { border-radius: 20px; padding: 18px 20px; }
.fd-help-grid strong { display: block; margin-bottom: 4px; }
.fd-help-grid p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fd-text); }
.fd-models { margin-top: 56px; }
.fd-models h3 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.fd-models__scroll { overflow-x: auto; padding-bottom: 6px; }
.fd-models__row { display: flex; align-items: flex-end; gap: 14px; min-width: 700px; padding-top: 8px; }
.fd-model { flex: 1 1 0; min-width: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fd-model__photo { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg,#FF5DB8,#B66BF2,#6EC1FF); }
.fd-model__photo > * { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #6B5F94; object-fit: cover; }
.fd-model__bar { width: 100%; max-width: 110px; border-radius: 20px 20px 10px 10px; display: flex; justify-content: center; padding-top: 14px; font-family: var(--fd-display); font-weight: 900; font-size: 22px; color: #fff; }
.fd-model__size { font-size: 13px; font-weight: 700; color: var(--fd-pink-deep); padding: 4px 10px; border-radius: 999px; background: var(--fd-pink-soft); }

/* ---------- Footer ---------- */
.fd-footer { position: relative; overflow: hidden; background: var(--fd-ink); color: #E4DFF7; }
.fd-footer .fd-glitter { bottom: auto; height: 120px; }
.fd-footer a { color: #fff; text-decoration: none; }
.fd-footer a:hover { color: #FFB3E0; }
.fd-footer__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding-top: 140px; padding-bottom: 32px; }
.fd-footer__col { display: flex; flex-direction: column; gap: 10px; }
.fd-footer__head { font-family: var(--fd-caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #FFB3E0; font-weight: 600; }
.fd-footer__logo { height: 72px; width: auto; align-self: flex-start; filter: drop-shadow(0 0 16px rgba(255,143,218,.35)); }
.fd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fd-contact { display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 14px; padding: 4px 8px 4px 4px; margin-left: -4px; }
.fd-contact:hover { background: var(--fd-ink-2); }
.fd-contact__ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.fd-contact small { display: block; font-size: 12px; color: #C9C2E8; }
.fd-contact b { display: block; font-weight: 800; }
.fd-footer__fine { font-size: 14px; line-height: 1.6; color: #C9C2E8; margin: 8px 0 0; }
.fd-footer__bottom { position: relative; border-top: 1px solid #453C78; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: #BDB5E0; }

/* ---------- Generic pages ---------- */
.fd-page { padding-top: 48px; padding-bottom: 80px; }
.fd-page__title { font-size: clamp(32px, 4vw, 48px); margin: 0 0 24px; }
.fd-page .entry-content { font-size: 17px; line-height: 1.7; color: var(--fd-text); }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; margin: 0 0 32px !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; gap: 8px; }
.woocommerce ul.products li.product a img { border-radius: 24px; margin: 0 0 6px !important; aspect-ratio: 4 / 5; object-fit: cover; background: var(--fd-pink-soft); transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product a:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(176,79,232,.18); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--fd-body); font-weight: 800; font-size: 17px !important; color: var(--fd-ink); padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--fd-pink-deep) !important; font-weight: 800; font-size: 16px !important; }
.woocommerce ul.products li.product .button { margin-top: auto !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px !important; border-radius: 999px !important; background: var(--fd-ink) !important; color: #fff !important; font-family: var(--fd-body) !important; font-weight: 800 !important; font-size: 15px !important; border: none !important; position: relative;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--fd-ink-2) !important; }
.woocommerce span.onsale { background: var(--fd-pink) !important; border-radius: 999px; min-height: auto; line-height: 1; padding: 8px 12px; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3.6vw, 40px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--fd-pink-deep) !important; font-weight: 800; font-size: 24px !important; }
.woocommerce div.product div.images img { border-radius: 26px; }
.woocommerce div.product form.cart .variations select { min-height: 50px; border-radius: 14px; border: 2px solid #D9CFEA; padding: 0 14px; font-family: var(--fd-body); font-size: 16px; min-width: 220px; }
.woocommerce div.product form.cart .variations th label { font-weight: 800; }
.woocommerce .quantity .qty { min-height: 48px; border-radius: 999px; border: 2px solid #D9CFEA; width: 80px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 50px; border-radius: 14px; border: 2px solid #D9CFEA; padding: 10px 14px; font-family: var(--fd-body); font-size: 16px; }
.woocommerce form .form-row input.input-text:focus { outline: none; border-color: #B04FE8; box-shadow: 0 0 0 4px rgba(176,79,232,.15); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--fd-violet) !important; border-radius: 14px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--fd-violet) !important; }

/* Product page extras */
.fd-model-line { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: var(--fd-violet-soft); padding: 10px 14px; font-size: 14px; color: #3E3566; margin: 0 0 18px; }
.fd-sizelink { display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.fd-custom { border-radius: 24px; background: linear-gradient(100deg,#FFF0F8,#F6EEFF 55%,#EEF5FF); padding: 20px; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; clear: both; }
.fd-custom strong { font-family: var(--fd-display); font-weight: 900; font-size: 20px; }
.fd-custom p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fd-text); }
.fd-custom__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-custom .fd-chip { min-height: 44px; padding: 0 18px; }

/* Add-to-cart sparkle burst */
.fd-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.fd-burst span { position: absolute; opacity: 0; }
.fd-burst .fd-mini-wand { position: absolute; left: -14px; top: -84px; width: 28px; height: 84px; transform-origin: 50% 100%; animation: fdTap .8s ease-out forwards; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .fd-footer__grid, .fd-footer__bottom { padding-left: max(24px, calc(270px - (100vw - 1240px) / 2)); }
}
@media (max-width: 899px) {
  section[id] { scroll-margin-top: 96px; }
  .fd-nav { display: none; }
  .fd-burger { display: flex; }
  .fd-logo img { height: 64px; }
  .fd-wand--hero { width: 56px; height: 190px; right: 8px; bottom: -36px; animation-name: fdWaveSm; }
  .fd-wand--foot { left: auto; right: 14px; width: 60px; height: 190px; bottom: -34px; animation-name: fdWaveSm; }
  .fd-footer__grid, .fd-footer__bottom { padding-right: 88px; }
  .fd-hero__art img { max-width: 280px; }
}
@media (min-width: 900px) { .fd-mobile-nav { display: none !important; } }
@media (max-width: 640px) {
  .woocommerce ul.products, .fd-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
  .woocommerce ul.products li.product .button { width: 100%; padding: 0 10px !important; font-size: 14px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
  .fd-cat__name { font-size: 18px; }
  .fd-topbar .fd-wrap { justify-content: center; text-align: center; }
  .fd-topbar__label { display: none; }
}
@media (max-width: 420px) { .fd-logo img { height: 54px; } }
@media (prefers-reduced-motion: reduce) {
  .fd-glitter span { animation: none !important; opacity: .7 !important; }
  .fd-magic, .fd-wand { animation: none !important; }
  .fd-wand__tip { display: none; }
}
