@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    /* Paleta Monocromática Premium */
    --bg-color: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-main: #111111;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    
    /* Espaçamento e Layout */
    --container-width: 1400px;
    --header-height: 80px;
    --radius: 0px; /* Estética Industrial - Sem bordas arredondadas */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 40px;
}

/* --- Header Minimalista --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
    filter: grayscale(100%) contrast(120%); /* Força logo P&B */
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0 1.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

header nav ul li a:hover {
    opacity: 0.5;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar { 
    display: block; 
    width: 25px; 
    height: 2px; 
    margin: 6px auto; 
    transition: all 0.3s ease-in-out; 
    background-color: var(--text-main); 
}

/* --- Hero Section Editorial --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/ruah1.jpg') no-repeat 50% 25%/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0; /* Reset margin */
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #fff;
}

.btn:hover {
    background-color: transparent;
    color: #fff;
}

.btn-small {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.btn-small:hover {
    background-color: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* --- Seções e Grids --- */
.featured-products {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.featured-products h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.collection-page {
    padding: 8rem 0 4rem; /* Mais padding top por causa do header fixo */
}

.collection-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* --- Cards de Produto (Estilo Stone Island/ACG) --- */
.product-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
    background-color: var(--bg-secondary);
    margin-bottom: 1rem;
}

.product-card h3 {    
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-main);
}
.product-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* --- Sobre --- */
.about {
    background-color: var(--bg-secondary);
    padding: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    filter: grayscale(100%);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--text-main);
}

.social-icons a {
    margin-right: 15px;
    display: inline-block;
    line-height: 0;
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: #000000;
    transition: opacity 0.3s ease;
}

.social-icons a:hover svg {
    opacity: 0.6;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom a{
    color: var(--text-secondary);
}

/* --- Estilos para Animação de Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries para Responsividade --- */

@media (max-width: 768px) {
    /* Ajustes no Cabeçalho */
    header nav ul {
        position: fixed;
        right: -100%;
        left: auto;
        top: var(--header-height);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }

    header nav ul.active {
        right: 0;
    }

    header nav ul li {
        padding: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo {
        height: 40px;
    }

    /* Ajustes no Rodapé */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Ajustes na Seção Sobre */
    .about-content {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* Regra geral para mobile: 1 coluna */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Regra específica para a página de coleção: 2 colunas */
    .collection-page .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
}

/* --- Estilos para a Página de Checkout --- */
.checkout-form-container {
    max-width: 700px;
    margin: 120px auto 50px;
    background-color: var(--bg-color);
    padding: 0;
}

.checkout-form-container h1 {
    font-size: 2.5rem;
    text-align: left;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
}

.checkout-subtitle {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.checkout-summary {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.checkout-summary h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.checkout-form-container form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.checkout-form-container form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-family: 'Inter', sans-serif;
}

.checkout-form-container form input:focus {
    outline: none;
    border-color: var(--text-main);
}

.checkout-form-container form .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    background-color: var(--text-main);
    color: #fff;
    border: none;
}

.checkout-totals {
    font-weight: bold;
    text-align: right;
    margin-top: 1rem;
}

.checkout-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

/* --- Estilos para a Página de Compra (Refatorado) --- */
.purchase-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 50px 40px;
    max-width: 1400px;
    margin: 100px auto 50px;
    align-items: flex-start;
}

.product-image-section {
    flex: 1.5;
    min-width: 300px;
}

.product-image-section img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
}

.product-details-section {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 120px;
}

.product-details-section h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.color-selector h4, .size-selector h4 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.color-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 15px 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
}

.size-option:hover {
    border-color: #000;
}

.size-option.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.btn-comprar-agora {
    width: 100%;
    padding: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
}

.btn-comprar-agora:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .purchase-container {
        flex-direction: column;
        padding: 20px;
    }
}
