/* Home page discovery */
.pf-hero {
    background: var(--surface-tint);
    padding: 20px 0 8px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
    gap: 16px;
}

.hero-card {
    background: var(--surface-dark);
    border-radius: 8px;
    min-height: 290px;
    overflow: hidden;
    position: relative;
}

.hero-card img,
.hero-scrim {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-card img { transition: transform 350ms ease; }
.hero-card:hover img { transform: scale(1.045); }

.hero-scrim { background: linear-gradient(115deg, rgba(36, 18, 95, 0.78), rgba(36, 18, 95, 0.20)); }
.hero-painting .hero-scrim { background: linear-gradient(115deg, rgba(107, 40, 217, 0.76), rgba(255, 137, 0, 0.18)); }
.hero-moonlamp .hero-scrim { background: linear-gradient(115deg, rgba(0, 70, 94, 0.75), rgba(0, 184, 200, 0.18)); }

.hero-overlay {
    bottom: 0;
    color: #fff;
    left: 0;
    max-width: 500px;
    padding: 24px;
    position: absolute;
    right: 0;
}

.hero-kicker,
.section-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hero-overlay h1,
.hero-overlay h2.hero-card-title {
    color: #fff;
    font-size: 34px;
    line-height: 1.12;
    margin: 0 0 10px;
}

.hero-featured .hero-overlay h1 { font-size: 45px; }
.hero-overlay p:not(.hero-kicker) { font-size: 15px; line-height: 1.5; margin: 0 0 20px; }

.hero-btn,
.category-view-all {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    gap: 9px;
    text-decoration: none;
}

.hero-btn {
    background: var(--primary);
    border-radius: 6px;
    color: #fff;
    padding: 12px 16px;
}

.hero-btn:hover { background: var(--primary-dark); color: #fff; }

/* Admin-managed hero slider (Gifts & Glitz > Hero Banners) */
.pf-hero-slider {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.pf-hero-slider__track {
    height: clamp(280px, 36vw, 420px);
    position: relative;
}

.pf-hero-slide {
    height: 100%;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 500ms ease;
    width: 100%;
}

.pf-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pf-hero-slide img,
.pf-hero-slide .hero-scrim {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

/* Slow Ken Burns drift on the active slide only — adds motion without
   being distracting, and never runs on hidden/inactive slides. */
.pf-hero-slide img { transform: scale(1); transition: transform 6000ms linear; }
.pf-hero-slide.is-active img { transform: scale(1.08); }

.pf-hero-slide__content > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.pf-hero-slide.is-active .pf-hero-slide__content > * { opacity: 1; transform: translateY(0); }
.pf-hero-slide.is-active .pf-hero-slide__content > *:nth-child(2) { transition-delay: 80ms; }
.pf-hero-slide.is-active .pf-hero-slide__content > *:nth-child(3) { transition-delay: 160ms; }
.pf-hero-slide.is-active .pf-hero-slide__content > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .pf-hero-slide img { transition: none; }
    .pf-hero-slide.is-active img { transform: none; }
    .pf-hero-slide__content > * { opacity: 1; transform: none; transition: none; }
}

.pf-hero-slide__content {
    bottom: 0;
    color: #fff;
    max-width: 560px;
    padding-bottom: 48px;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pf-hero-slider__nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    z-index: 2;
}

.pf-hero-slider__nav:hover { background: #fff; }
.pf-hero-slider__prev { left: 20px; }
.pf-hero-slider__next { right: 20px; }

.pf-hero-slider__dots {
    bottom: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 2;
}

.pf-hero-slider__dot {
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 9px;
    padding: 0;
    width: 9px;
}

.pf-hero-slider__dot.is-active { background: #fff; }

@media (max-width: 640px) {
    .pf-hero-slide__content { padding: 0 16px 40px; max-width: 100%; }
    .pf-hero-slider__nav { display: none; }
}

/* Optional admin-authored promo banner (Gifts & Glitz > Offer Banner) */

.pf-promo-banner__link { display: block; text-decoration: none; }

.pf-promo-banner__media {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.pf-promo-banner__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.pf-promo-banner__content {
    background: linear-gradient(0deg, rgba(36, 18, 95, 0.82), rgba(36, 18, 95, 0));
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 28px;
    position: absolute;
    right: 0;
}

.pf-promo-banner__content h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.pf-promo-banner__content p { margin: 0 0 14px; }

.pf-shop-categories { background: var(--background); }

.category-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-kicker { color: var(--primary); }
.category-heading h2 { color: var(--text); font-size: clamp(25px, 3vw, 30px); line-height: 1.2; margin: 0; }
.category-view-all { color: var(--text); padding-bottom: 4px; }
.category-view-all:hover { color: var(--primary); }

.category-rail {
    display: grid;
    gap: 14px 12px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.category-circle {
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    text-decoration: none;
}

.category-circle__media {
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    font-size: 30px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
    width: 100%;
}

.category-circle__media::after {
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    content: "";
    inset: 0;
    position: absolute;
}

.category-circle__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.category-circle:hover .category-circle__media,
.category-circle:focus-visible .category-circle__media {
    box-shadow: 0 12px 26px rgba(43, 30, 120, 0.18);
    transform: translateY(-4px);
}

.category-circle:hover .category-circle__media img { transform: scale(1.08); }
.category-circle:focus-visible { outline: 0; }
.category-circle:focus-visible .category-circle__media { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.28); }

.category-circle__name {
    font-size: 14px;
    font-weight: 700;
    transition: color 180ms ease;
}

.category-circle:hover .category-circle__name { color: var(--primary); }

.category-violet .category-circle__media,
.category-violet.category-circle__media { background: #eee7ff; color: #6420d0; }
.category-orange .category-circle__media,
.category-orange.category-circle__media { background: #fff0d3; color: #b96400; }
.category-teal .category-circle__media,
.category-teal.category-circle__media { background: #d8f8f5; color: #007d79; }
.category-blue .category-circle__media,
.category-blue.category-circle__media { background: #dcedff; color: #1363b0; }
.category-gold .category-circle__media,
.category-gold.category-circle__media { background: #fff4cd; color: #a66a00; }
.category-cyan .category-circle__media,
.category-cyan.category-circle__media { background: #d9f7fb; color: #007f91; }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-featured { grid-column: span 2; }
    .category-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .pf-hero { padding-top: 16px; }
    .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-featured { grid-column: auto; }
    .hero-card, .hero-featured { min-height: 240px; }
    .hero-overlay { padding: 24px; }
    .hero-featured .hero-overlay h1, .hero-overlay h1, .hero-overlay h2.hero-card-title { font-size: 30px; }
    .category-heading { align-items: start; flex-direction: column; gap: 14px; }

    .category-rail {
        display: flex;
        gap: 18px;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-padding-left: var(--page-gutter);
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .category-rail::-webkit-scrollbar { display: none; }
    .category-circle { flex: 0 0 84px; scroll-snap-align: start; }
    .category-circle__name { font-size: 12px; }
}

/* Vendors strip */
.pf-vendors { background: var(--background); }
.pf-vendors__header { margin-bottom: 26px; text-align: center; }
.pf-vendors__header h2 { color: var(--text); font-size: clamp(25px, 3vw, 30px); line-height: 1.2; margin: 0; }
.pf-vendors__grid {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.pf-vendors__logo {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    height: 84px;
    justify-content: center;
    padding: 14px;
    transition: box-shadow 220ms ease, transform 220ms ease;
}
.pf-vendors__logo:hover { box-shadow: 0 10px 22px rgba(43, 30, 120, 0.1); transform: translateY(-3px); }
.pf-vendors__logo img { filter: grayscale(1); max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0.75; transition: filter 220ms ease, opacity 220ms ease; }
.pf-vendors__logo:hover img { filter: grayscale(0); opacity: 1; }

@media (max-width: 900px) {
    .pf-vendors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .pf-vendors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Best sellers */
.pf-best-sellers { background: var(--background); }

/* Bulk / corporate CTA banner */
.pf-banner { background: var(--surface-dark); color: #fff; }
.pf-banner__inner { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); position: relative; z-index: 1; }
.pf-banner .section-kicker { color: var(--secondary); }
.pf-banner__content h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.pf-banner__content p { color: #d9d3ef; line-height: 1.7; margin: 0 0 22px; max-width: 480px; }

/* Photo variant: banner.php sets a background-image inline; the scrim keeps
   the white heading/body copy readable over whatever photo is behind it. */
.pf-banner--photo {
    background-position: center;
    background-size: cover;
    position: relative;
}

.pf-banner__scrim {
    background: linear-gradient(100deg, rgba(32, 16, 79, 0.92) 0%, rgba(32, 16, 79, 0.72) 45%, rgba(32, 16, 79, 0.32) 100%);
    inset: 0;
    position: absolute;
}

.pf-banner--photo .pf-banner__inner { grid-template-columns: minmax(0, 1fr); }
.pf-banner--photo .pf-banner__content { max-width: 560px; }

@media (max-width: 780px) {
    .pf-banner__inner { grid-template-columns: 1fr; text-align: center; }
    .pf-banner__content p { margin-inline: auto; }
    .pf-banner--photo .pf-banner__scrim { background: linear-gradient(0deg, rgba(32, 16, 79, 0.92), rgba(32, 16, 79, 0.55)); }
}

/* Sale banner — real on-sale count/CTA over a photo background. */
.pf-offer-banner {
    background-position: center;
    background-size: cover;
    padding: 0;
    position: relative;
}

.pf-offer-banner__scrim {
    background: linear-gradient(100deg, rgba(32, 16, 79, 0.82) 0%, rgba(32, 16, 79, 0.55) 60%, rgba(32, 16, 79, 0.3) 100%);
    inset: 0;
    position: absolute;
}

.pf-offer-banner__inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    min-height: clamp(130px, 18vw, 190px);
    padding-block: 32px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.pf-offer-banner p { align-items: center; color: #fff; display: inline-flex; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; gap: 10px; margin: 0; }
.pf-offer-banner p i { color: var(--secondary); }

/* Reviews */
.pf-reviews { background: var(--surface-tint); }

/* Why us */
.pf-why-us { background: #fff; }
.pf-why-us__grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-why-us__item { text-align: center; }
.pf-why-us__icon { align-items: center; background: var(--surface-tint); border-radius: 50%; color: var(--primary); display: inline-flex; font-size: 22px; height: 62px; justify-content: center; margin-bottom: 16px; width: 62px; }
.pf-why-us__item h3 { color: var(--text); font-size: 16px; margin: 0 0 8px; }
.pf-why-us__item p { color: var(--text-light); line-height: 1.6; margin: 0; }

@media (max-width: 780px) {
    .pf-why-us__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .pf-why-us__grid { grid-template-columns: 1fr; }
}

/* Shop the look */
.pf-shop-the-look { background: var(--background); }
.pf-shop-the-look__item { position: relative; }
.pf-shop-the-look__item a { border-radius: 10px; display: block; overflow: hidden; position: relative; }
.pf-shop-the-look__item img { aspect-ratio: 1; height: 100%; object-fit: cover; transition: transform 280ms ease; width: 100%; }
.pf-shop-the-look__item a:hover img { transform: scale(1.06); }
.pf-shop-the-look__overlay {
    align-items: center;
    background: linear-gradient(0deg, rgba(36, 18, 95, 0.82), transparent 65%);
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    left: 0;
    padding: 26px 12px 10px;
    position: absolute;
    right: 0;
}

/* Collaboration / bulk decoration order Google Form */
.pf-collab-form { background: var(--surface-tint); scroll-margin-top: 90px; }
.pf-collab-form__header { margin: 0 auto 26px; max-width: 640px; text-align: center; }
.pf-collab-form__header h2 { color: var(--text); font-size: clamp(25px, 3vw, 32px); margin: 0 0 10px; }
.pf-collab-form__header p { color: var(--text-light); line-height: 1.6; margin: 0; }
.pf-collab-form__frame {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 35px rgba(43, 30, 120, 0.06);
    margin: 0 auto;
    max-width: 780px;
    overflow: hidden;
    padding: 8px;
}
.pf-collab-form__frame iframe { border: 0; display: block; height: 1200px; max-height: 80vh; width: 100%; }

/* Newsletter */
.pf-newsletter { background: var(--surface-dark); padding: 0; }
.pf-newsletter__inner { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: clamp(28px, 4vw, 44px); }
.pf-newsletter h2 { color: #fff; font-size: clamp(24px, 2.8vw, 30px); margin: 8px 0 10px; }
.pf-newsletter > .container > div > p:last-child { color: #d9d3ef; margin: 0; }
.pf-newsletter .section-kicker { color: var(--secondary); }
.pf-newsletter__form { display: grid; gap: 12px; }
.pf-newsletter__field { position: relative; }
.pf-newsletter__field .pf-input { min-height: 50px; }
.pf-newsletter__hp { display: none; }
.pf-newsletter__message:empty { display: none; }

@media (max-width: 780px) {
    .pf-newsletter__inner { grid-template-columns: 1fr; text-align: center; }
}

/* Closing CTA */
.pf-footer-cta { background: var(--surface-tint); }
.pf-footer-cta__inner { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.pf-footer-cta h2 { color: var(--text); font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 6px; }
.pf-footer-cta p { color: var(--text-light); margin: 0; }

@media (max-width: 640px) {
    .pf-footer-cta__inner { justify-content: center; text-align: center; }
}
