/* ============================================================
   Pó de Lua — home.css
   ============================================================ */
:root {
    --header-h: 68px;
    --night: #221d1a;
    --night-2: #342b25;
}

.cart-count.bump {
    animation: bump .5s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes bump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.7);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- Hero: night sky ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding: 40px 0 78px;
    color: var(--cream);
    background: radial-gradient(120% 140% at 82% 0%, var(--night-2) 0%, var(--night) 60%);
    border: 0;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
}

#dust {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-inner {
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.hero-copy .eyebrow {
    display: none;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 16px;
    color: var(--cream-soft);
}

.ln {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.ln > span {
    display: inline-block;
    transform: translateY(110%);
    animation: lineUp 1s cubic-bezier(.2, .7, .2, 1) .15s forwards;
}

.ln:nth-child(2) > span {
    animation-delay: .32s;
}

@keyframes lineUp {
    to {
        transform: none;
    }
}

.hero-copy h1 em {
    font-style: italic;
    background: linear-gradient(100deg, #d8bb7c 20%, #fff3d2 45%, #d8bb7c 70%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s ease-in-out 1.4s infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 100% 0;
    }
    50% {
        background-position: 0 0;
    }
}

.hero-copy p {
    color: #cfc4b3;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 50ch;
    margin: 0 0 22px;
    opacity: 0;
    animation: fadeIn .9s ease .7s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeIn .9s ease .9s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero .btn-ghost {
    color: var(--cream-soft);
    border-color: rgba(216, 187, 124, .6);
    padding: 12px 24px;
}

.hero .btn-ghost:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--night);
}

.phase-divider {
    display: none;
}

/* moon = the logo, floating, glowing, with an orbiting spark */
.hero-visual {
    position: relative;
}

.hero-visual::before {
    display: none;
}

.moon {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fffaf0, var(--cream-soft) 55%, #e6dcc8);
    box-shadow: 0 0 0 10px rgba(247, 242, 234, .07), 0 0 60px 10px rgba(216, 187, 124, .28), inset -14px -16px 30px rgba(156, 94, 60, .15);
    animation: float 7s ease-in-out infinite, moonrise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.moon {
    overflow: visible;
}

.moon img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
    max-width: none;
}

@keyframes float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -12px;
    }
}

@keyframes moonrise {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.9);
    }
}

.orbit {
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 1px dashed rgba(216, 187, 124, .35);
    animation: spin 18s linear infinite;
}

.orbit i {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px 3px rgba(216, 187, 124, .8);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* marquee */
.marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    overflow: hidden;
    opacity: .75;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 36s linear infinite;
}

.marquee span {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    padding: 0 22px;
    white-space: nowrap;
}

.marquee span::after {
    content: "☾";
    margin-left: 44px;
    font-style: normal;
    opacity: .6;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Sticky toolbar ---------- */
.shop-section {
    padding: 0 0 70px;
}

.section-heading, .shop-section > .container > div[style] {
    display: none;
}

.shop-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 22px;
    background: rgba(242, 235, 224, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.shop-toolbar .category-bar {
    margin: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-toolbar .category-bar::-webkit-scrollbar {
    display: none;
}

.pill {
    white-space: nowrap;
    padding: 9px 18px;
    transition: background .3s, color .3s, border-color .3s, transform .2s;
}

.pill:hover {
    transform: translateY(-2px);
}

.pill.active {
    box-shadow: 0 8px 18px -10px rgba(42, 37, 33, .7);
}

.shop-toolbar .sort-bar {
    margin: 0;
    flex-shrink: 0;
}

.shop-toolbar .sort-bar label {
    display: none;
}

/* ---------- Cards: reveal, tilt, glare ---------- */
.product-grid {
    gap: 22px;
    perspective: 1200px;
}

.product-card {
    border-radius: 18px;
    --ty: 0px;
    --rx: 0deg;
    --ry: 0deg;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
    transform-style: preserve-3d;
    transition: transform .25s ease-out, box-shadow .3s, border-color .3s;
    will-change: transform;
}

.product-card:hover {
    --ty: -6px;
    box-shadow: var(--shadow-lift);
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 244, 214, .45), transparent 60%);
    mix-blend-mode: soft-light;
}

.product-card:hover::after {
    opacity: 1;
}

html.fx .product-card:not(.in) {
    opacity: 0;
}

html.fx .product-card.in {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both;
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 34px;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        translate: 0 0;
        filter: none;
    }
}

.carousel {
    border-radius: 18px 18px 0 0;
}

.card-body {
    padding: 16px 16px 18px;
    gap: 4px;
}

.card-category {
    display: none;
}

.card-name {
    font-size: 1.2rem;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .82rem;
}

.card-price {
    font-size: 1.2rem;
}

.add-btn {
    transition: background .25s, color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.add-btn:hover {
    transform: rotate(90deg) scale(1.08);
}

.trust-strip {
    background: var(--cream-soft);
    margin-bottom: 0;
    padding: 48px 0;
    border-bottom: 0;
}

.trust-icon {
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.trust-grid > div:hover .trust-icon {
    transform: translateY(-6px) rotate(-8deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 62px;
    }

    /* Hero (mobile): more air, a gold rule, a soft moon glow, and the marquee as its own strip */
    .hero {
        padding: 40px 0 84px;
        border-radius: 0 0 28px 28px;
        background: radial-gradient(circle at 104% -6%, rgba(216, 187, 124, .26) 0 70px, rgba(216, 187, 124, .08) 71px 112px, transparent 113px),
        radial-gradient(120% 140% at 82% 0%, var(--night-2) 0%, var(--night) 62%);
    }

    .hero-copy::before {
        content: "";
        display: block;
        width: 36px;
        height: 1px;
        margin-bottom: 20px;
        background: #d8bb7c;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 8.4vw, 2.4rem);
        line-height: 1.12;
        margin: 0 0 16px;
    }

    .hero-copy p {
        max-width: 36ch;
        margin: 0;
        font-size: .95rem;
        line-height: 1.7;
    }

    .hero-actions {
        display: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 58px;
        height: 1px;
        background: rgba(216, 187, 124, .2);
    }

    .marquee {
        bottom: 22px;
        opacity: .9;
    }

    .marquee span {
        font-size: .98rem;
    }

    .shop-toolbar {
        position: static;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 0 12px;
        margin-top: 6px;
    }

    .shop-toolbar .category-bar, .shop-toolbar .sort-bar {
        width: 100%;
    }

    .product-card:hover {
        --ty: 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moon, .orbit, .marquee-track, .hero-copy h1 em {
        animation: none !important;
    }

    .ln > span, .hero-copy p, .hero-actions {
        transform: none;
        opacity: 1;
        animation: none !important;
    }

    html.fx .product-card:not(.in) {
        opacity: 1;
    }

    html.fx .product-card.in {
        animation: none;
    }
}