@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --gradient-brand: linear-gradient(135deg, #ff4070 0%, #ff8c5a 100%);
    --primary: #ff4070;
    --primary-dark: #e12f61;
    --primary-soft: #fff1f5;
    --text-dark: #242424;
    --text-soft: #6b7280;
    --bg: #fcfcfd;
    --card: #ffffff;
    --line: #ececec;
    --success: #25d366;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
    --font-main: 'Inter', Arial, sans-serif;
    --font-brand: 'Pacifico', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text-dark);
    padding-bottom: 92px;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar-luxury {
    background: #2d1635;
    color: #fff;
    font-size: 0.92rem;
    overflow: hidden;
    position: relative;
    z-index: 1300;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-track {
    display: flex;
    gap: 34px;
    white-space: nowrap;
    padding: 10px 18px;
    animation: marqueeLuxury 26s linear infinite;
    width: max-content;
    font-weight: 600;
}

.topbar-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.96;
}

@keyframes marqueeLuxury {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40%); }
}

/* HEADER HOME */
.site-header {
    background: var(--gradient-brand);
    padding: 18px 14px 16px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 8px 25px rgba(255, 64, 112, 0.22);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.brand img {
    width: min(320px, 72vw);
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.search-container {
    max-width: 560px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    outline: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
    font-size: 15px;
    background: rgba(255,255,255,0.96);
}

.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 72px;
    z-index: 1100;
}

.filter-btn {
    border: 1px solid #f1d9e0;
    background: #fff;
    color: #555;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.banner-container {
    background: linear-gradient(180deg, #fff6f8 0%, #fff 100%);
    border-bottom: 1px solid #ffe4eb;
    padding: 32px 18px;
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h2 {
    font-family: var(--font-brand);
    color: var(--primary);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.banner-content p {
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.btn-cta {
    display: inline-flex;
    margin-top: 16px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 999px;
    padding: 11px 22px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 64, 112, 0.18);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 14px 24px;
}

.products-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    background: #f8f8f8;
    aspect-ratio: 3 / 4;
}

.card-media-off::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: grayscale(40%);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-overlay,
.badge-new,
.badge-last-units {
    position: absolute;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    padding: 7px 11px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.01em;
}

.status-overlay {
    inset: auto 12px 12px 12px;
    text-align: center;
    background: rgba(36, 36, 36, 0.88);
}

.badge-new {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4070 0%, #ff8c5a 100%);
}

.badge-last-units {
    top: 12px;
    right: 12px;
    background: #ff9800;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
    flex: 1;
}

.card-category {
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-title {
    font-size: 0.98rem;
    line-height: 1.35;
    min-height: 2.7em;
}

.card-price-vista {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: auto;
}

.card-price-card {
    color: var(--text-soft);
    font-size: 0.84rem;
}

/* PÁGINA PRODUTO */
.product-header {
    position: sticky;
    top: 0;
    z-index: 1250;
    background: var(--gradient-brand);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    min-height: 74px;
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    padding: 10px 14px;
    box-shadow: 0 8px 25px rgba(255, 64, 112, 0.18);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
}

.product-brand {
    margin: 0;
    justify-self: center;
}

.product-brand img {
    width: min(240px, 42vw);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.header-cart-btn {
    justify-self: end;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    cursor: pointer;
    position: relative;
    font-size: 1.05rem;
}

.header-cart-btn span {
    position: absolute;
    top: -5px;
    right: -3px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.product-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 16px 14px 110px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--text-soft);
}

.product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.product-gallery-box,
.product-info-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 28px;
    box-shadow: 0 10px 26px rgba(17,24,39,0.05);
}

.product-gallery-box {
    padding: 18px;
}

.product-main-image-wrap {
    position: relative;
    background: linear-gradient(180deg, #fff7fa 0%, #fff 100%);
    border-radius: 24px;
    padding: 18px;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-badge-top {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: linear-gradient(135deg, #ff4070 0%, #ff8c5a 100%);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 12px 20px rgba(255,64,112,0.18);
}

.product-main-image {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    cursor: pointer;
    z-index: 3;
    font-size: 1rem;
}

.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.thumb-btn {
    width: 84px;
    height: 104px;
    border: 2px solid #ececec;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.thumb-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,64,112,0.10);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-box {
    padding: 24px;
}

.section-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: #fff2f6;
    color: var(--primary);
    border: 1px solid #ffdce8;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.86rem;
    font-weight: 800;
}

.product-title-page {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 14px;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-soft);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.product-fabric-page {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.price-box {
    background: linear-gradient(180deg, #fff7fa 0%, #fff 100%);
    border: 1px solid #ffe0ea;
    border-radius: 20px;
    padding: 18px 18px 16px;
    margin-bottom: 22px;
}

.price-vista-big {
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
}

.price-vista-label {
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 10px;
}

.price-card-big {
    font-size: 1.05rem;
    color: var(--text-soft);
}

.product-status-box {
    background: #fff1f4;
    color: #c22c58;
    border: 1px solid #ffd8e2;
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.option-block {
    margin-bottom: 22px;
}

.option-block h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
}

.color-list-page {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-circle-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.color-circle-btn.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,64,112,0.12);
}

.color-circle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.size-list-page {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-pill {
    border: 1px solid #d8dce3;
    border-radius: 999px;
    background: #fff;
    min-width: 64px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
}

.size-pill.selected {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

.size-empty {
    color: var(--text-soft);
    font-weight: 700;
    padding: 12px 0;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.btn-primary,
.btn-outline,
.close-btn {
    border: none;
    cursor: pointer;
}

.btn-primary,
.btn-outline,
.btn-big {
    width: 100%;
    border-radius: 999px;
    padding: 16px 18px;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 12px 22px rgba(255,64,112,0.20);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-outline {
    background: #fff;
    color: #25d366;
    border: 1px solid #d7f1df;
}

.btn-outline:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.related-section {
    margin-top: 34px;
}

.related-header {
    margin-bottom: 16px;
}

.related-header h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.related-header p {
    color: var(--text-soft);
}

.mobile-fixed-buy {
    display: none;
}

/* CARRINHO */
#cartFloat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2100;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(255, 64, 112, 0.30);
    cursor: pointer;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

#cartCount {
    position: absolute;
    top: -7px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.70);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.cart-modal-panel {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 26px;
    padding: 22px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f7f7f7;
    font-size: 1.5rem;
}

.cart-title {
    font-family: var(--font-brand);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.cart-items {
    max-height: 360px;
    overflow: auto;
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item img {
    width: 64px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-info small {
    color: var(--text-soft);
}

.cart-info span {
    color: var(--primary);
    font-weight: 700;
}

.btn-remove {
    border: none;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 20px 0;
}

.cart-footer-box {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 10px;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.1rem;
}

/* FOOTER */
footer {
    margin-top: 18px;
    padding: 26px 16px 34px;
    text-align: center;
    color: var(--text-soft);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.15rem;
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-btn.whatsapp {
    background: #25d366;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-main-image-wrap {
        min-height: 480px;
    }

    .product-main-image {
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 100px;
    }

    .topbar-luxury {
        font-size: 0.82rem;
    }

    .topbar-track {
        gap: 22px;
        padding: 9px 14px;
    }

    .site-header {
        padding: 16px 12px 14px;
    }

    .filters {
        top: 68px;
        padding: 12px;
    }

    .products-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-title {
        font-size: 0.92rem;
    }

    .card-price-vista {
        font-size: 1rem;
    }

    .product-header {
        grid-template-columns: 76px 1fr 76px;
        min-height: 68px;
        padding: 10px 10px;
    }

    .back-link span {
        display: none;
    }

    .product-brand img {
        width: min(180px, 40vw);
    }

    .product-page {
        padding: 12px 10px 120px;
    }

    .breadcrumb {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .product-gallery-box,
    .product-info-box {
        border-radius: 22px;
    }

    .product-gallery-box {
        padding: 10px;
    }

    .product-main-image-wrap {
        min-height: 350px;
        padding: 12px;
        border-radius: 18px;
    }

    .product-badge-top {
        top: 12px;
        left: 12px;
        padding: 7px 12px;
        font-size: 0.74rem;
    }

    .product-main-image {
        max-height: 320px;
        width: auto;
        max-width: 100%;
    }

    .gallery-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.92rem;
    }

    .gallery-arrow.prev { left: 8px; }
    .gallery-arrow.next { right: 8px; }

    .product-thumbs {
        gap: 8px;
        margin-top: 12px;
    }

    .thumb-btn {
        width: 64px;
        height: 82px;
        border-radius: 12px;
    }

    .product-info-box {
        padding: 16px;
    }

    .section-mini-badge {
        font-size: 0.78rem;
        padding: 7px 11px;
        margin-bottom: 10px;
    }

    .product-title-page {
        font-size: 1.9rem;
        line-height: 1.12;
        margin-bottom: 10px;
    }

    .product-meta-line {
        gap: 8px;
        font-size: 0.84rem;
        margin-bottom: 10px;
    }

    .product-fabric-page {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .price-box {
        padding: 14px;
        margin-bottom: 16px;
    }

    .price-vista-big {
        font-size: 2.5rem;
    }

    .price-card-big {
        font-size: 0.96rem;
    }

    .option-block {
        margin-bottom: 18px;
    }

    .option-block h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .color-circle-btn {
        width: 52px;
        height: 52px;
    }

    .size-pill {
        min-width: 56px;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .desktop-actions {
        display: none;
    }

    .related-section {
        margin-top: 24px;
    }

    .related-header h2 {
        font-size: 1.4rem;
    }

    .mobile-fixed-buy {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2200;
        padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
        background: linear-gradient(180deg, rgba(252,252,253,0.10), rgba(252,252,253,0.98) 26%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-fixed-buy-inner {
        max-width: 1220px;
        margin: 0 auto;
        background: #fff;
        border: 1px solid #f0d8e2;
        border-radius: 22px;
        box-shadow: 0 14px 30px rgba(17,24,39,0.10);
        padding: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-fixed-price {
        min-width: 110px;
        display: flex;
        flex-direction: column;
        padding-left: 4px;
    }

    .mobile-fixed-price small {
        color: var(--text-soft);
        font-size: 0.74rem;
        margin-bottom: 2px;
    }

    .mobile-fixed-price strong {
        color: var(--primary);
        font-size: 1.1rem;
        line-height: 1;
    }

    .mobile-buy-button {
        flex: 1;
        padding: 15px 16px;
        font-size: 0.96rem;
    }

    #cartFloat {
        display: none !important;
    }

    .cart-modal-panel {
        border-radius: 22px;
        padding: 18px;
    }
}
