:root {
    --primary: #000000;
    --primary-hover: #171717;
    --bg-body: #ffffff;
    --bg-surface: #fafafa;
    --text-dark: #000000;
    --text-main: #404040;
    --text-muted: #8c8c8c;
    --border: #eaeaea;
    --accent-blue: #006fee;
    --whatsapp-green: #25d366;
    --radius: 14px;
    --radius-lg: clamp(16px, 4vw, 28px);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Fluid Typography Tokens */
    --fs-h1: clamp(2.4rem, 8vw, 4.8rem);
    --fs-h2: clamp(2rem, 5vw, 3rem);
    --fs-h3: clamp(1.5rem, 4vw, 2.25rem);
    --fs-body: clamp(0.95rem, 1.2vw, 1.15rem);

    /* Fluid Spacing Tokens */
    --space-sec: clamp(4rem, 10vw, 8rem);
}

section,
footer,
.v-space {
    padding-top: var(--space-sec);
    padding-bottom: var(--space-sec);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    background-image:
        radial-gradient(var(--border) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    /* Subtle grid for technical/industrial feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding-left: clamp(1.2rem, 5vw, 2rem);
    padding-right: clamp(1.2rem, 5vw, 2rem);
    width: 100%;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* --- HEADER --- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo span {
    color: var(--text-muted);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-trigger {
    background: var(--text-dark);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cart-trigger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#cart-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Loader */
#app-root {
    min-height: 85vh;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    flex-direction: column;
    gap: 1.5rem;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- TRUST BAR --- */
.trust-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.trust-flex {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-item svg {
    color: var(--accent-blue);
}

/* --- HERO SECTION --- */
.hero-wrapper {
    background: var(--bg-body);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)), url('hero_main.png');
    background-size: cover;
    background-position: center;
    margin-bottom: var(--space-sec);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: var(--fs-h1);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-text p {
    font-size: var(--fs-body);
    color: var(--text-main);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--text-dark);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #171717;
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background: var(--bg-surface);
}

.hero-image-wrap {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- FULL WIDTH BANNERS --- */
.immersive-banner {
    position: relative;
    height: clamp(450px, 70vh, 700px);
    width: 100%;
    margin-bottom: var(--space-sec);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.immersive-banner.quality {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner-content h2 {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.banner-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.split-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.split-text h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.split-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.catalog-section {
    display: block;
    /* Garante que a secção se comporta como bloco no fluxo unificado */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.25s;
}

.filter-btn:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    /* Espaço interno para a paginação/filtros se existirem */
}

.p-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.p-img-wrap {
    width: 100%;
    aspect-ratio: 4/4;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-bottom: 1px solid var(--border);
}

.p-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s ease;
}

.p-card:hover .p-img {
    transform: scale(1.05);
}

.p-info {
    padding: 2rem;
    flex-grow: 1;
}

.p-cat {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: block;
}

.p-name {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.p-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
}

.p-price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.2rem;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 6rem 0;
    align-items: start;
}

.pd-img-wrap {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-sm);
}

.pd-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.pd-info {
    padding-top: 2rem;
}

.pd-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 2rem;
}

.pd-info h1 {
    font-size: var(--fs-h1);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1;
    color: var(--text-dark);
}

.pd-price {
    font-size: var(--fs-h2);
    font-weight: 900;
    margin-bottom: 2.5rem;
}

.pd-options {
    margin: 2.5rem 0;
}

.checkout-input,
.size-selector {
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 1rem;
    background: white;
    font-weight: 500;
    transition: 0.2s;
}

.checkout-input:focus {
    border-color: var(--text-dark);
    outline: none;
}

.pd-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pd-desc {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- INFO TABS --- */
.info-section {
    padding: 8rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.info-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.info-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.i-tab {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.i-tab.active {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.info-tab-content {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.tab-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
}

.info-tab-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.info-tab-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.info-tab-content ul {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.info-tab-content li {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-tab-content li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--text-dark);
    border-radius: 50%;
}

/* --- CART SLIDER --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-slider {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    max-width: 90%;
    background: white;
    z-index: 300;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-slider.active {
    transform: translateX(0);
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-weight: 800;
}

.close-cart {
    background: var(--bg-surface);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.c-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.c-item-img {
    width: 70px;
    height: 70px;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 0.5rem;
    object-fit: contain;
}

.c-item-title {
    font-weight: 700;
    font-size: 1rem;
}

.c-item-price {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.c-remove {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-weight: 700;
    cursor: pointer;
}

.cart-footer {
    padding: 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.1rem;
}

.huge-price {
    font-size: 1.8rem;
    font-weight: 900;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border);
}

/* --- NEWSLETTER --- */
.newsletter-section {
    background: var(--text-dark);
    color: white;
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* --- REVIEWS --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #ffb800;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 6vw, 6rem);
    margin-bottom: 6rem;
}

.f-col h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.f-col a,
.f-col p {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Otimizações Mobile mantêm-se para casos específicos de UX, mas o layout agora é fluido por natureza */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hero-wrapper {
        padding: clamp(4rem, 15vw, 6rem) 0;
    }

    .hero-btns {
        flex-direction: column;
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}