/* Sorra Moda Chic — Estilo inspirado Shopee, paleta rose gold */

:root {
    --rose: #b76e79;
    --rose-light: #d4a5ad;
    --rose-pale: #fadadd;
    --rose-bg: #fff5f6;
    --black: #1a1a1a;
    --gray: #666;
    --gray-light: #f0f0f0;
    --white: #ffffff;
    --shopee: #ee4d2d;
    --shein: #222;
    --shadow: 0 2px 12px rgba(183, 110, 121, 0.12);
    --radius: 12px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-sticky-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--rose-bg);
    color: var(--black);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: env(safe-area-inset-top, 0);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    height: auto;
    padding: 6px 0;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--black);
    flex-shrink: 0;
    min-width: 0;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--rose);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    line-height: 1;
    gap: 0;
    flex-shrink: 0;
}

.logo-text-main,
.logo-text-chic {
    display: block;
    font-size: 1.1rem;
    line-height: 1.06;
    letter-spacing: 0.02em;
}

.logo-text-main {
    white-space: nowrap;
}

.logo-text-chic {
    text-align: center;
}

/* Marcas parceiras ao lado do nome — SHOPEE + SHEIN */
.logo-partners {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-shopee {
    color: #ee4d2d;
}

.logo-shein {
    color: #000000;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--rose);
    background: var(--rose-pale);
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--rose);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.btn-admin:hover {
    background: #9d5a64;
    transform: translateY(-1px);
}

.btn-admin-text { display: inline; }

.site-main { flex: 1; }

/* Busca — fixa abaixo do header ao rolar a página */
.hero-search {
    position: sticky;
    top: calc(var(--header-sticky-height) + env(safe-area-inset-top, 0px));
    z-index: 99;
    padding: 20px 0 12px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.1);
}

.search-wrapper { max-width: 640px; margin: 0 auto; }

.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--rose-pale);
    border-radius: 50px;
    padding: 4px 4px 4px 16px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--rose);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 8px 10px 16px;
    background: transparent;
    font-family: inherit;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--rose);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
    background: #9d5a64;
    transform: scale(1.04);
}

.search-btn:active {
    transform: scale(0.96);
}

/* Carrossel */
.carousel-section { padding: 12px 0 8px; }

.carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/7;
    max-height: 360px;
    background: var(--gray-light);
    touch-action: pan-y pinch-zoom;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: var(--white);
}

.carousel-caption h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.carousel-caption p { font-size: 0.9rem; opacity: 0.9; margin-top: 4px; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--rose);
    transition: background 0.2s;
}

.carousel-btn:hover { background: var(--white); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Categorias */
.categories-section { padding: 16px 0; }

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    padding: 10px 14px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    box-shadow: var(--shadow);
    transition: all 0.2s;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.chip-icon { font-size: 1.4rem; }

.category-chip:hover {
    border-color: var(--rose-pale);
    color: var(--rose);
}

.category-chip.active {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
}

.categories-scroll::-webkit-scrollbar { display: none; }

/* Grade de produtos — carregamento */
.products-section.is-loading .products-grid {
    opacity: 0.55;
    pointer-events: none;
}

.products-grid.is-loading {
    position: relative;
    min-height: 100px;
}

.products-section.is-loading .products-header::after {
    content: 'Carregando...';
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rose);
    animation: pulse-loading 1s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Grid de produtos — 2 colunas mobile estilo Shopee */
.products-section { padding: 8px 0 40px; }

.products-header .section-title {
    scroll-margin-top: 72px;
    outline: none;
}

.products-header .section-title:focus {
    box-shadow: 0 0 0 2px rgba(183, 110, 121, 0.35);
    border-radius: 4px;
}

.products-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.products-count {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.2);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image { transform: scale(1.05); }

.platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.platform-shopee { background: var(--shopee); color: var(--white); }
.platform-shein  { background: var(--shein); color: var(--white); }
.platform-outro  { background: var(--rose); color: var(--white); }

.destaque-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: gold;
    color: var(--black);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.product-info { padding: 10px 12px 12px; }

.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--shopee);
    margin-top: 6px;
}

.product-cta {
    display: block;
    font-size: 0.72rem;
    color: var(--rose);
    font-weight: 600;
    margin-top: 6px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray); font-size: 0.9rem; }

.load-more-wrap { text-align: center; margin-top: 24px; }

.btn-load-more {
    background: var(--white);
    border: 2px solid var(--rose);
    color: var(--rose);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--rose);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--rose-pale);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--rose);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--rose); }

.social-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--rose-pale);
    color: var(--rose);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.social-btn:hover { background: var(--rose-light); color: var(--white); }
.social-btn.instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: var(--white);
}
.social-btn.instagram:hover {
    background: linear-gradient(135deg, #e07520, #c9246a, #702da0);
    color: var(--white);
}
.social-btn.whatsapp { background: #dcf8c6; color: #25d366; }

.nav-link-instagram {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.nav-link-instagram:hover,
.nav-link-instagram:focus-visible {
    color: inherit;
    background: transparent;
}

.icon-instagram {
    flex-shrink: 0;
    display: block;
}

/* Botão instalar PWA (mobile) */
.btn-install-app {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid var(--rose-light);
    border-radius: 999px;
    background: var(--rose-pale);
    color: var(--rose);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.btn-install-app.is-visible {
    display: inline-flex;
}

.btn-install-app:hover,
.btn-install-app:focus-visible {
    background: var(--white);
    border-color: var(--rose);
    outline: none;
}

.btn-install-app svg {
    flex-shrink: 0;
}

body.pwa-installed .btn-install-app {
    display: none !important;
}

/* Modal de instalação no iPhone (Safari) */
.pwa-install-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(26, 26, 26, 0.45);
}

.pwa-install-modal[hidden] {
    display: none !important;
}

.pwa-install-modal.is-open {
    display: flex;
}

.pwa-install-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 16px 16px 12px 12px;
    padding: 20px 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.pwa-install-dialog h3 {
    font-family: var(--font-serif);
    color: var(--rose);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pwa-install-dialog p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.pwa-install-steps {
    margin: 0 0 12px 18px;
    font-size: 0.88rem;
    color: var(--black);
}

.pwa-install-steps li {
    margin-bottom: 6px;
}

.pwa-install-note {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
}

.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
}

/* Busca em largura total no mobile — alinhada ao header, visual retangular */
@media (max-width: 599px) {
    :root {
        --header-sticky-height: 56px;
    }

    .hero-search {
        padding: 0;
        background: var(--white);
        border-bottom: 1px solid var(--rose-pale);
        box-shadow: 0 2px 8px rgba(183, 110, 121, 0.08);
    }

    .hero-search .container {
        max-width: none;
        padding: 0;
    }

    .search-wrapper {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .search-form {
        min-height: 52px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--rose-pale);
        box-shadow: none;
        padding: 4px 12px 4px 16px;
    }

    .search-form:focus-within {
        border-color: transparent;
        box-shadow: inset 0 -2px 0 var(--rose);
    }

    .search-input {
        font-size: 0.95rem;
        padding: 10px 8px 10px 0;
    }

    .search-btn {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
}

/* Header compacto no mobile */
@media (max-width: 599px) {
    .site-header .container {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .header-inner {
        gap: 6px;
        min-height: 60px;
        padding: 6px 0;
        align-items: center;
    }

    .logo-link {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 86px);
        align-items: center;
        gap: 7px;
    }

    .logo-img {
        width: 42px;
        height: 42px;
        align-self: center;
    }

    .logo-brand {
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 0;
        min-width: 0;
    }

    .logo-text {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.28em;
        width: auto;
        max-width: 100%;
        line-height: 1.1;
        white-space: nowrap;
    }

    .logo-text-main,
    .logo-text-chic {
        display: inline;
        font-size: clamp(1rem, 4.6vw, 1.24rem);
        line-height: 1.1;
        letter-spacing: 0.02em;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .logo-text-chic {
        font-weight: 600;
    }

    .logo-partners {
        display: inline-flex;
        font-size: 0.46rem;
        letter-spacing: 0.01em;
        margin-top: 1px;
    }

    .header-nav {
        gap: 6px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .header-nav > a.nav-link:not(.nav-link-instagram) {
        display: none;
    }

    .nav-link-instagram span {
        display: none;
    }

    .nav-link-instagram {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .nav-link-instagram .icon-instagram {
        width: 28px;
        height: 28px;
    }

    .btn-install-app span {
        display: none;
    }

    .btn-install-app {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 6px;
    }

    .btn-admin {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .btn-admin-text {
        display: none;
    }
}

@media (min-width: 600px) {
    .btn-install-app {
        display: none !important;
    }
}

.footer-bottom {
    background: var(--rose-bg);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-disclaimer { margin-top: 4px; font-size: 0.75rem !important; }

/* Tablet */
@media (min-width: 600px) {
    .header-inner {
        height: 64px;
        padding: 0;
        gap: 16px;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo-brand {
        gap: 10px;
    }

    .logo-text-main,
    .logo-text-chic {
        font-size: 1.45rem;
        line-height: inherit;
    }

    .logo-partners {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .logo-text {
        max-width: none;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35em;
        line-height: normal;
    }

    .logo-text-main,
    .logo-text-chic {
        display: inline;
        width: auto;
        font-size: 1.45rem;
        line-height: inherit;
        text-align: left;
        align-self: auto;
        letter-spacing: 0.03em;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .btn-admin-text { display: inline; }

    .category-chip {
        min-width: 88px;
        font-size: 0.8rem;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .section-title { font-size: 1.6rem; }

    .carousel { aspect-ratio: 21/7; }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Overlay ao abrir Admin (header Entrar) */
.site-nav-loading {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 245, 246, 0.94);
}

.site-nav-loading.is-visible {
    display: flex;
}

body.site-nav-busy {
    overflow: hidden;
}

.site-nav-loading-box {
    text-align: center;
    background: var(--white);
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(183, 110, 121, 0.22);
    min-width: 220px;
}

.site-nav-loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 4px solid var(--rose-pale);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: site-nav-spin 0.85s linear infinite;
}

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

.site-nav-loading-text {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}

.site-nav-loading-sub {
    font-size: 0.85rem;
    color: var(--gray);
}

.site-nav-loading-dots {
    animation: site-nav-dots 1.2s steps(4, end) infinite;
}

@keyframes site-nav-dots {
    0%, 20% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}
