@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;1,300&family=Inter:wght@100;300;400;600&display=swap');

:root {
    --primary: #121212;
    --secondary: #707072;
    --bg-light: #fbfbfb;
    --white: #ffffff;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow: 0 10px 40px rgba(0,0,0,0.04);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--primary); overflow-x: hidden; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* CURSOR */
* { 
    cursor: auto; 
}

a, button, .method-option, select, .image-box {
    cursor: pointer;
}

@media (pointer: fine) {
    .custom-cursor {
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease-out, opacity 0.3s;
        opacity: 0.4;
    }

    /* O follower vira apenas um brilho de foco */
    .cursor-follower {
        width: 30px;
        height: 30px;
        background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, rgba(255,255,255,0) 70%);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, opacity 0.3s;
    }

    /* Quando passa sobre algo, o "brilho" aumenta levemente */
    .cursor-active .cursor-follower {
        width: 50px;
        background: radial-gradient(circle, rgba(0,0,0,0.12) 0%, rgba(255,255,255,0) 70%);
    }
}

/* HEADER */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 5%; transition: all 0.6s var(--ease);
}
.header.scrolled {
    background: rgba(255,255,255,0.7); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); padding: 15px 5%;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; letter-spacing: 5px; font-weight: 500; }
.logo-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.logo-tagline { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 3px; color: var(--secondary); margin-top: 2px; }

/* NAV & ACTIONS */
.nav-links .nav-item { text-decoration: none; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 15px; transition: 0.3s; opacity: 0.6; }
.nav-links .nav-item:hover { opacity: 1; }
.actions { display: flex; align-items: center; gap: 20px; }
.search-box { position: relative; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 5px 0; }
.search-box input { border: none; background: none; outline: none; font-size: 0.8rem; width: 100px; transition: 0.4s var(--ease); }
.search-box input:focus { width: 160px; }
.cart-btn { background: none; border: none; position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--primary); color: white; font-size: 0.6rem; min-width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* HERO */
.hero { height: 100vh; background: #f4f4f4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-bg-shimmer { position: absolute; inset: 0; background: linear-gradient(45deg, #f4f4f4 25%, #fcfcfc 50%, #f4f4f4 75%); background-size: 200% 200%; animation: shimmer 10s infinite linear; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hero-content { text-align: center; z-index: 2; }
.hero-subtitle { font-size: 0.7rem; letter-spacing: 6px; margin-bottom: 20px; color: var(--secondary); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 300; line-height: 1; margin-bottom: 40px; }

/* BUTTONS */
.btn-black { background: var(--primary); color: white; border: 1px solid var(--primary); padding: 18px 40px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.4s; }
.btn-black:hover { background: transparent; color: var(--primary); transform: translateY(-5px); }
.btn-outline { border: 1px solid var(--primary); background: none; padding: 18px 40px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.4s; }
.btn-outline:hover { background: var(--primary); color: white; }

/* GRID & CARDS */
.container { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.filter-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.curated-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 400; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 60px 40px; }
.card { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.card.show { opacity: 1; transform: translateY(0); }
.image-box { width: 100%; aspect-ratio: 3/4; background: #f0f0f0; overflow: hidden; position: relative; margin-bottom: 20px; cursor: pointer; }
.image-box img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s var(--ease); }
.card:hover .image-box img { transform: scale(1.08); }

/* Texto "Ver Detalhes" no hover */
.view-more {
    position: absolute; inset: 0; background: rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary);
}
.image-box:hover .view-more { opacity: 1; }

.quick-add { margin-top: 15px; background: none; border: none; border-bottom: 1px solid var(--primary); padding-bottom: 3px; font-size: 0.65rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.quick-add:hover { color: var(--secondary); border-color: var(--secondary); }

/* CART DRAWER */
.cart-drawer.active {
    transform: translateX(0) !important;
}
.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(100%, 480px);
    background: #ffffff;
    z-index: 2000;
    transform: translateX(105%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cabeçalho do Carrinho */
.cart-head {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cart-head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Lista de Itens */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #f9f9f9;
    align-items: center;
    transition: opacity 0.3s ease;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: #f7f7f7;
}

.cart-item-info p {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Controle de Quantidade */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 2px;
    border-radius: 0;
    margin-top: 10px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary);
    transition: background 0.2s;
}

.qty-control button:hover {
    background: #f5f5f5;
}

.qty-control span {
    font-size: 0.75rem;
    padding: 0 12px;
    min-width: 30px;
    text-align: center;
}

/* Rodapé do Carrinho (Resumo) */
.cart-summary {
    padding: 40px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-line.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #000;
    font-weight: 600;
    font-size: 1rem;
}

.btn-checkout {
    width: 100%;
    margin-top: 25px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 22px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.4s;
}

.btn-checkout:hover {
    background: #333;
    letter-spacing: 4px;
}

/* MODAL */
.product-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.5s var(--ease); }
.product-modal.active {
    opacity: 1 !important;
    pointer-events: all !important;
}
.modal-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); }
.modal-content {
    position: relative;
    background: var(--white);
    width: min(90%, 800px);
    max-height: 85vh; 
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transform: translateY(30px);
    transition: transform 0.6s var(--ease);
    border-radius: 4px;
}
.product-modal.active .modal-content { transform: translateY(0); }
.modal-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    align-items: center;
}
.modal-image {
    width: 100%;
    height: 100%;
    max-height: 500px; 
    overflow: hidden;
    display: flex;
}
.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}
.modal-info { padding: 60px 40px 60px 0; }
.modal-info h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 400; margin-bottom: 10px; }
.modal-price { font-size: 1.2rem; color: var(--secondary); margin-bottom: 30px; }
.modal-description p { font-size: 0.95rem; color: #444; margin-bottom: 40px; line-height: 1.8; }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; }

/* NOTIFICATION & OVERLAY */
#notification { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--primary); color: white; padding: 15px 35px; border-radius: 50px; font-size: 0.8rem; transition: 0.5s var(--ease); z-index: 4000; }
#notification.show { transform: translateX(-50%) translateY(0); }
.overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: 0.4s; z-index: 1500; }
.overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-info { padding: 40px 30px; }
}
/* Estilos do Controle de Quantidade */
.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}
.qty-control button {
    background: none;
    border: 1px solid #ddd;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.qty-control button:hover { background: var(--primary); color: white; }

.remove-btn {
    border: none;
    background: none;
    font-size: 1.5rem;
    opacity: 0.3;
    transition: 0.3s;
}
.remove-btn:hover { opacity: 1; color: #e74c3c; }

/* Checkout Form Styles */
.form-group { display: flex; flex-direction: column; gap: 12px; }
.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-group input {
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.form-group input:focus { border-color: var(--primary); }

.checkout-form { padding-right: 5%; border-right: 1px solid #eee; }
/* FOOTER */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 100px 5% 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-column h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 20px 0 40px;
    max-width: 250px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Newsletter */
.news-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-form {
    display: flex;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 8px;
    max-width: 300px;
}

.news-form input {
    border: none;
    background: none;
    flex: 1;
    font-size: 0.85rem;
    outline: none;
}

.news-form button {
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    padding-left: 10px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #f5f5f5;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credits {
    font-weight: 500;
    color: var(--primary);
}

/* Responsividade */
@media (max-width: 1024px) {
    .footer-grid-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .brand-col {
        grid-column: span 2;
        margin-bottom: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}