/* ============================================================
   Noite de Gala — Product Single (premium light editorial view)
   Loaded only on product-single.php via $extra_css.
   Follows the brand design system: chocolate / cream / gold.
   ============================================================ */

.ps-page {
    --ink: #5d3c2d;            /* headings / text on light (brand primary) */
    --ink-2: #ffffff;          /* surfaces */
    --ink-3: #f5eee0;          /* tinted hover */
    --cream: #5d3c2d;          /* headings text */
    --cream-dim: #8a7465;      /* body / muted text */
    --gold: #c9a96a;           /* brand gold accent */
    --gold-2: #966f2a;         /* darker gold for text on light */
    --line: rgba(93, 60, 45, 0.16);
    --r-card: 20px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ────────────────────────── THE STAGE ────────────────────────── */
.ps-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% 12%, rgba(201, 169, 106, 0.22), transparent 60%),
        radial-gradient(900px 700px at 8% 88%, rgba(233, 221, 198, 0.65), transparent 62%),
        linear-gradient(180deg, #fffdf9 0%, #faf5ea 100%);
    padding: 34px 0 96px;
    color: var(--ink);
}
.ps-hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, transparent 62%, rgba(201, 169, 106, 0.12) 100%);
}
.ps-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ps-sparkles i {
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(201, 169, 106, 0.8);
    opacity: 0;
}

.ps-crumbs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    margin-bottom: 26px;
}
.ps-crumbs a { color: var(--cream-dim); text-decoration: none; transition: color 0.3s var(--ease); }
.ps-crumbs a:hover { color: var(--gold-2); }
.ps-crumbs .is-current { color: var(--gold-2); font-weight: 600; }

.ps-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

/* Stage / image */
.ps-stage {
    position: relative;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
    will-change: transform;
}
.ps-spotlight {
    position: absolute;
    top: 6%;
    width: min(78vw, 420px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 106, 0.34), rgba(201, 169, 106, 0) 68%);
    filter: blur(6px);
    pointer-events: none;
}
.ps-stage-frame {
    position: relative;
    width: min(78vw, 430px);
    aspect-ratio: 4 / 5;
    border-radius: calc(var(--r-card) + 8px);
    padding: 12px;
    background: linear-gradient(160deg, #f3e6c9, #ffffff 45%, #eddfc0);
    box-shadow: 0 30px 70px rgba(93, 60, 45, 0.16);
    transform: translateZ(0);
}
.ps-stage-frame::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: calc(var(--r-card) + 3px);
    box-shadow: inset 0 0 0 1px rgba(150, 111, 42, 0.35);
    pointer-events: none;
}
.ps-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--ink-2);
}
.ps-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ps-frame-glow {
    position: absolute;
    inset: -28px;
    z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, rgba(201, 169, 106, 0.22), rgba(201, 169, 106, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}
.ps-float-badge {
    position: absolute;
    right: -6px;
    top: 8%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(93, 60, 45, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    will-change: transform;
}

/* Info */
.ps-info { max-width: 560px; }
.ps-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.ps-cat {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #fff;
}
.ps-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--gold-2);
    font-size: 12px;
}
.ps-rating b { color: var(--cream-dim); font-weight: 600; margin-left: 4px; }
.ps-title {
    margin: 0 0 18px;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.ps-title .ps-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.ps-title .ps-w > span { display: inline-block; will-change: transform; }

.ps-tagline {
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cream-dim);
    margin: 0 0 24px;
}

.ps-rental-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    margin: 0 0 24px;
    border: 1px dashed var(--gold);
    border-radius: 14px;
    background: rgba(201, 169, 106, 0.08);
}
.ps-rental-note i {
    flex: none;
    margin-top: 3px;
    color: var(--gold-2);
    font-size: 16px;
}
.ps-rental-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--cream-dim);
}
.ps-rental-note b { color: var(--ink); }

.ps-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 16px 26px;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    will-change: transform;
}
.ps-btn-gold {
    color: var(--ink);
    background: linear-gradient(135deg, #e9dcba 0%, var(--gold) 52%, #e6d3a3 100%);
    box-shadow: 0 12px 30px rgba(201, 169, 106, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.ps-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201, 169, 106, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ps-btn-gold:active { transform: translateY(0) scale(0.98); }
.ps-btn-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}
.ps-btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-2px); }
.ps-hero .ps-btn { transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.ps-hero .ps-btn-gold:hover,
.ps-hero .ps-btn-ghost:hover { transform: none; }
.ps-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #e9dcba;
    font-size: 13px;
}

.ps-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.ps-perks li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--cream-dim);
}
.ps-perks li i { color: var(--gold-2); font-size: 15px; }

/* Interactive attribute selector (cor / modelagem / estilo / tamanho) */
.ps-select {
    margin: 22px 0 26px;
    padding: 20px 20px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: #fff;
    box-shadow: 0 14px 34px rgba(93, 60, 45, 0.07);
}
.ps-select-group { margin: 0; min-width: 0; }
.ps-select-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 8px;
}
.ps-select-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-select-opts.is-color { gap: 10px; }
.ps-chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.ps-chip:hover { border-color: var(--gold-2); color: var(--gold-2); }
.ps-chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.ps-swatch {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--c, #ccc);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(93, 60, 45, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ps-swatch:hover { transform: scale(1.1); }
.ps-swatch.is-on { box-shadow: 0 0 0 3px var(--gold), inset 0 0 0 1px rgba(0, 0, 0, 0.1); transform: scale(1.1); }
.ps-select-note {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--cream-dim);
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.ps-select-note b { color: var(--gold-2); font-weight: 600; }

.ps-scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.ps-mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(93, 60, 45, 0.35);
    border-radius: 14px;
    position: relative;
}
.ps-mouse i {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: var(--gold-2);
    animation: ps-scroll 1.8s var(--ease) infinite;
}
@keyframes ps-scroll {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ────────────────────────── MARQUEE ────────────────────────── */
.ps-marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    background: var(--gold);
    color: var(--ink);
    padding: 14px 0;
    transform: translateY(-1px);
}
.ps-marquee-track { display: flex; width: max-content; animation: ps-marquee 26s linear infinite; }
.ps-marquee-set { display: flex; align-items: center; white-space: nowrap; }
.ps-marquee span {
    font-family: var(--title-font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 22px;
}
.ps-marquee i { font-style: normal; font-size: 14px; }
@keyframes ps-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ────────────────────────── THE STORY ────────────────────────── */
.ps-story {
    background: #fffdf9;
    color: var(--ink);
    padding: 96px 0;
}
.ps-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.ps-story-kicker,
.ps-services-kicker,
.ps-cta-kicker,
.ps-related-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 14px;
}
.ps-story-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 30px;
    color: var(--ink);
}
.ps-story-title em,
.ps-cta-inner h2 em { font-style: italic; color: var(--gold-2); }
.ps-story-copy {
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.85;
    color: var(--cream-dim);
}
.ps-story-copy p { margin: 0 0 20px; }
.ps-dropcap::first-letter {
    float: left;
    font-family: var(--title-font);
    font-size: 4.4em;
    line-height: 0.8;
    padding-right: 14px;
    padding-top: 8px;
    color: var(--gold-2);
}
.ps-story-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ps-stat {
    position: relative;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: #fff;
    box-shadow: 0 10px 30px rgba(93, 60, 45, 0.06);
    overflow: hidden;
}
.ps-stat::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.7;
}
.ps-stat b {
    display: block;
    font-family: var(--title-font);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 10px;
}
.ps-stat span { font-size: 14px; color: var(--cream-dim); }

/* ────────────────────────── THE SERVICE (cream) ────────────────────────── */
.ps-services {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 96px 0;
}
.ps-services-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}
.ps-services-head h2 {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--primary-color);
}
.ps-services-head p { font-size: 16px; line-height: 1.7; color: rgba(93, 60, 45, 0.78); margin: 0; }
.ps-services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}
.ps-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 30px 28px;
    border-radius: var(--r-card);
    background: #fff;
    box-shadow: 0 1px 2px rgba(93, 60, 45, 0.04);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ps-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(93, 60, 45, 0.16); }
.ps-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.ps-card:hover .ps-card-icon { background: var(--primary-color); color: var(--secondary-color); transform: translateY(-4px) rotate(-6deg); }
.ps-card-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(93, 60, 45, 0.35);
}
.ps-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: var(--primary-color); }
.ps-card p { font-size: 14px; line-height: 1.65; color: rgba(93, 60, 45, 0.72); margin: 0; }
.ps-card-featured { padding: 0; overflow: hidden; }
.ps-card-featured figure {
    margin: 0;
    height: 260px;
    overflow: hidden;
}
.ps-card-featured figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}
.ps-card-featured:hover figure img { transform: scale(1.06); }
.ps-card-featured .ps-card-body {
    position: relative;
    flex: 1;
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ps-card-featured .ps-card-num { color: rgba(93, 60, 45, 0.4); }

/* ────────────────────────── THE MOMENT · CTA ────────────────────────── */
.ps-cta {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    padding: 120px 0;
}
.ps-cta-bg {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(1.05);
    transform: scale(1.06);
    will-change: transform;
}
.ps-cta-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 90% at 50% 50%, rgba(255, 253, 249, 0.88), rgba(250, 245, 234, 0.95));
}
.ps-cta-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.ps-cta-inner h2 {
    font-family: var(--title-font);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--ink);
}
.ps-cta-inner > p { font-size: 17px; line-height: 1.7; color: var(--cream-dim); margin: 0 0 34px; }
.ps-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 44px;
}
.ps-btn-lg { padding: 18px 34px; font-size: 16px; }
.ps-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 40px;
    list-style: none;
    padding: 26px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
    color: var(--cream-dim);
    font-size: 14px;
}
.ps-trust li { display: inline-flex; align-items: center; gap: 7px; }
.ps-trust i { color: var(--gold-2); font-size: 12px; }
.ps-trust b { color: var(--gold-2); font-size: 18px; }
.ps-trust span { color: var(--ink); font-weight: 700; }

/* ────────────────────────── RELATED ────────────────────────── */
.ps-related {
    background: #fffdf9;
    padding: 96px 0;
}
.ps-related-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 44px;
}
.ps-related-head h2 {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0;
    color: var(--ink);
}
.ps-related .product-item-header { border-radius: 18px; }
.ps-related .product-item-image a,
.ps-related .product-item-image figure,
.ps-related .product-item-image img { border-radius: 18px; }
.ps-related .product-item-rating i { color: var(--gold-2); }

/* ────────────────────────── MOBILE STICKY BAR ────────────────────────── */
.ps-stickybar {
    display: none;
}

/* ────────────────────────── RESPONSIVE ────────────────────────── */
@media (min-width: 768px) {
    .ps-story-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .ps-services-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .ps-card-featured { grid-column: span 7; }
    .ps-card:nth-child(2) { grid-column: span 5; }
    .ps-card:nth-child(3) { grid-column: span 5; }
    .ps-card:nth-child(4) { grid-column: span 7; }
}

@media (min-width: 992px) {
    .ps-hero { padding: 56px 0 120px; }
    .ps-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px;
        align-items: stretch;
    }
    .ps-info { align-self: center; }
    .ps-stage-frame {
        width: min(44vw, 520px);
        height: 100%;
        aspect-ratio: auto;
    }
    .ps-float-badge { right: 2%; }
    .ps-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-story-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; }
}

@media (max-width: 767px) {
    .ps-stickybar {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 120;
        background: rgba(255, 253, 249, 0.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -12px 32px rgba(93, 60, 45, 0.1);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        transform: translateY(110%);
        transition: transform 0.4s var(--ease);
    }
    .ps-stickybar.is-visible { transform: translateY(0); }
    .ps-stickybar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        max-width: 600px;
        margin: 0 auto;
    }
    .ps-stickybar-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: var(--title-font);
        font-size: 16px;
        color: var(--ink);
    }
    .ps-stickybar .ps-btn { padding: 13px 18px; font-size: 14px; }
    .ps-stickybar .ps-btn-icon { width: 26px; height: 26px; }
    .ps-cta { padding: 88px 0; }
    .ps-services { padding: 72px 0; }
    .ps-story { padding: 72px 0; }
    .ps-related { padding: 72px 0; }
}

/* ────────────────────────── REDUCED MOTION ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ps-marquee-track { animation: none; }
    .ps-mouse i { animation: none; opacity: 1; }
    .ps-card, .ps-btn, .ps-card-icon, .ps-card-featured figure img { transition: none; }
}