:root {
    --brand: #8b5aa7;
    --brand-deep: #51366d;
    --brand-soft: #f4eafa;
    --accent: #d7ad52;
    --accent-soft: #fff6df;
    --rose: #f4cad8;
    --mint: #dceec8;
    --ink: #1e2022;
    --ink-soft: #59616b;
    --ink-mute: #7f8790;
    --line: rgba(81, 54, 109, 0.14);
    --line-strong: rgba(81, 54, 109, 0.26);
    --paper: #fffdf9;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(58, 36, 76, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(244, 202, 216, 0.52), transparent 32rem),
        radial-gradient(circle at top right, rgba(220, 238, 200, 0.6), transparent 28rem),
        linear-gradient(180deg, #fff9fb 0%, #fffdf9 42%, #f7f0fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.brand-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(139, 90, 167, 0.08), transparent 36%),
        linear-gradient(245deg, rgba(215, 173, 82, 0.13), transparent 34%);
}

.site-header {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 30px;
    text-align: center;
}

.brand-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand-deep);
    font-family: "Handlee", cursive;
    font-size: 1.6rem;
    font-weight: 400;
}

.availability-chip,
.product-badge,
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-deep);
    box-shadow: 0 10px 32px rgba(81, 54, 109, 0.08);
}

.availability-chip {
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
}

.availability-chip span,
.product-badge span,
.stock-badge span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(215, 173, 82, 0.18);
}

h1,
h2,
h3 {
    font-family: "Handlee", cursive;
    letter-spacing: 0;
}

.site-header h1 {
    max-width: 920px;
    margin: 18px auto 8px;
    color: var(--brand-deep);
    font-size: clamp(3rem, 8vw, 5.8rem);
    font-weight: 400;
    line-height: 1;
}

.site-header p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 18px;
    color: var(--ink-mute);
    font-size: 0.92rem;
}

.header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.actions-bar,
.filters,
.catalog-shell {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.primary-action,
.secondary-action,
.wa-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-action,
.wa-button {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: var(--white);
    box-shadow: 0 16px 34px rgba(81, 54, 109, 0.25);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
    color: var(--brand-deep);
}

.primary-action:hover,
.secondary-action:hover,
.wa-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(81, 54, 109, 0.2);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-button {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
}

.filter-button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--white);
}

.catalog-shell {
    padding-bottom: 76px;
}

.catalog-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.catalog-summary h2 {
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
}

.catalog-summary p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.catalog-summary span {
    color: var(--ink-mute);
    font-size: 0.92rem;
    white-space: nowrap;
}

.catalog-grid,
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.catalog-sections {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.category-section {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 400;
    line-height: 1;
}

.section-heading span {
    color: var(--ink-mute);
    font-size: 0.92rem;
    white-space: nowrap;
}

.product-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    animation: riseIn 560ms ease both;
}

.product-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--brand-soft);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.product-card:hover .product-media img {
    transform: scale(1.04);
}

.badge-row {
    position: absolute;
    inset: 12px 12px auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.product-badge,
.stock-badge {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 800;
}

.stock-badge {
    margin-left: auto;
    color: #6e520f;
    background: rgba(255, 246, 223, 0.92);
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.category-label {
    margin: 0;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.product-for,
.product-description,
.social-proof,
.guarantee {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.product-description {
    color: var(--ink);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-list li {
    display: flex;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.35;
}

.product-list li::before {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.bonus {
    margin: 0;
    border: 1px solid rgba(215, 173, 82, 0.3);
    border-radius: 8px;
    background: var(--accent-soft);
    padding: 10px 12px;
    color: #5e4818;
    font-size: 0.9rem;
    line-height: 1.45;
}

.bonus strong {
    color: var(--ink);
}

.price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-top: auto;
    padding-top: 8px;
}

.price-line strong {
    color: var(--brand-deep);
    font-family: "Handlee", cursive;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
}

.price-line span {
    color: var(--ink-mute);
    font-size: 0.9rem;
}

.wa-button {
    width: 100%;
    margin-top: 2px;
}

.loading-text,
.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    padding: 28px;
    color: var(--ink-soft);
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 16px 44px;
    color: var(--ink-mute);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer p:first-child {
    color: var(--brand-deep);
    font-family: "Handlee", cursive;
    font-size: 1.45rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .catalog-grid,
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 34px;
    }

    .actions-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .catalog-summary,
    .section-heading {
        display: block;
    }

    .catalog-summary span,
    .section-heading span {
        display: inline-flex;
        margin-top: 8px;
        white-space: normal;
    }

    .catalog-grid,
    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #fff;
    }

    .brand-glow,
    .actions-bar,
    .filters,
    .wa-button {
        display: none !important;
    }

    .site-header,
    .catalog-shell {
        width: 100%;
    }

    .catalog-grid,
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        box-shadow: none;
        break-inside: avoid;
    }
}
