:root {
    /* ONYX™ Master Palette */
    --primary: #6A0E2D;      /* Deep Royale Red */
    --secondary: #EDE3E2;    /* Soft Parchment Beige */
    --accent: #9B1B30;       /* Crimson Highlight */
    --neutral-dark: #332B2B; /* Deepest Umber */
    --white: #FFFFFF;
    --card-bg: #F9F7F6;      /* Subtle Card Contrast Background */
    
    /* Typography - Professional Scale */
    --font-serif: 'Fraunces', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing & Rhythm Tokens */
    --section-spacing: clamp(7rem, 18vh, 14rem); /* Meticulous Spatial Rhythm */
    --container-max: 1300px;
    --border-radius: 12px;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--secondary);
    color: var(--neutral-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Refined Announcement Bar --- */
.announcement-bar {
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 0.9rem 5%;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(237, 227, 226, 0.94);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(106, 14, 45, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100px; /* Taller Header for Refinement */
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-item {
    position: relative; /* Anchor for mega menu */
}

/* Mega Menu (Desktop) - Streamlined Vertical Layout */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 2rem 2.5rem;
    display: none;
    flex-direction: column;
    gap: 1.8rem;
    min-width: 240px; /* Thinner vertical profile */
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(106, 14, 45, 0.05);
    border-radius: 0 0 10px 10px;
    z-index: 999;
}

.nav-item:hover .mega-menu {
    display: flex;
}

.mega-column h4 {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(106, 14, 45, 0.05);
    padding-bottom: 0.3rem;
}

.mega-column a {
    display: block;
    text-decoration: none;
    color: var(--neutral-dark);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
    opacity: 0.7;
}

.mega-column a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 50%;
}

/* Mobile Dropdown (Full Screen Overlay) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.mobile-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    gap: 2.5rem;
    z-index: 2000;
    opacity: 0;
    transition: var(--transition);
}

.mobile-dropdown.active {
    display: flex;
    opacity: 1;
}

.mobile-dropdown a {
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
}

.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-toggle { display: block; }
}

/* --- Ethereal Hero Section --- */
.hero {
    min-height: 85vh; /* Accommodates more padding while keeping visual weight */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18rem 5% 15rem; /* Increased top padding significantly for h1 spacing */
    position: relative;
    border-bottom: 1px solid rgba(106, 14, 45, 0.05); /* Restored full-width keyline */
}

.hero-content {
    max-width: 850px;
}

.hero-pretitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 6rem);
    color: var(--primary);
    line-height: 1.05;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    margin: 0 auto 3.5rem;
    max-width: 600px;
    opacity: 0.8;
}

.hero-btn-group {
    display: flex;
    gap: 3rem; /* Spaced buttons as requested */
    justify-content: center;
}

/* --- Refined Product Grid & Cards --- */
.product-slider-section {
    padding: var(--section-spacing) 0;
    border-bottom: 1px solid rgba(106, 14, 45, 0.05); /* Section Keyline */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    font-weight: 300;
}

.section-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.8rem;
}

.view-all {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(106, 14, 45, 0.2);
    padding-bottom: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.product-card {
    background: var(--card-bg); /* Background for contrast */
    border-radius: var(--border-radius);
    padding: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(106, 14, 45, 0.03);
}

.product-card:hover {
    transform: translateY(-12px);
    background: var(--white);
    box-shadow: 0 30px 60px rgba(106, 14, 45, 0.06);
}

.product-image-wrapper {
    aspect-ratio: 4/5.5;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background: #F5F2F1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.badge-status {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    color: var(--primary);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border-radius: 4px;
}

.quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--secondary);
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(100%);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover .quick-add {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem 0.5rem 0.5rem;
    text-align: left;
}

.product-info h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-weight: 500;
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- Category Navigation (Seamless Full-Height) --- */
.category-nav {
    padding: 0; /* Removed vertical padding so cards fill section height */
    border-bottom: 1px solid rgba(106, 14, 45, 0.05); /* Section Keyline */
}

.category-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Removed gutter as requested */
}

.category-block {
    height: 600px; /* Taller as requested */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0; /* Removed round corners as requested */
}

.category-block img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
    transform: scale(1.1); /* Default zoom */
}

.category-label {
    position: relative;
    z-index: 2;
    color: var(--secondary);
    font-family: var(--font-serif);
    font-size: 2.2rem;
    background: rgba(106, 14, 45, 0.1); /* Initial light overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* CORREÇÃO AQUI: Sintaxe de background corrigida para rgba */
.category-block:hover .category-label {
    background: rgba(29, 29, 31, 0.3);
    backdrop-filter: blur(5px);
}

.category-block:hover img {
    transform: scale(1);
}

/* --- Brand Story (Calibrated Spacing) --- */
.brand-story {
    padding: var(--section-spacing) 0;
    background: var(--card-bg); /* Changed from white to subtle contrast beige */
    text-align: center;
    border-bottom: 1px solid rgba(106, 14, 45, 0.05); /* Section Keyline */
}

.story-inner {
    max-width: 900px; /* Wider container for better text rhythm */
    margin: 0 auto;
    padding: 6rem 5%; /* Increased internal breathing room */
}

.story-text {
    font-size: 1.5rem; /* Larger for high-end narrative */
    line-height: 2.4; /* More leading for readability */
    font-weight: 300;
    color: var(--neutral-dark);
    margin: 4rem 0; /* Spacing around the main block */
}

/* --- Narrative Modal Specific Styling --- */
.narrative-modal-content {
    background: var(--white);
    max-width: 900px;
    height: auto; /* Hug content for narrative */
    max-height: 120vh;
    padding: 0;
}

.narrative-body {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.narrative-header {
    text-align: center;
}

.narrative-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.narrative-section h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.narrative-section p {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.8;
}

.narrative-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .narrative-body { padding: 4rem 2rem; }
    .narrative-content { grid-template-columns: 1fr; gap: 3rem; }
    .story-text { font-size: 1.2rem; }
}

/* --- Social Proof --- */
.reviews-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    border-bottom: 1px solid rgba(106, 14, 45, 0.05); /* Section Keyline */
}

.rating-score {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    color: var(--primary);
}

.stars {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.trust-icons {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

/* --- Footer Refinement --- */
.footer {
    background: #2D2626;
    color: var(--secondary);
    padding: 10rem 5% 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 6rem;
}

.footer .nav-logo {
    position: static;
    transform: none;
    color: var(--secondary); /* Lighter logo for footer as requested */
    opacity: 0.9;
    font-size: 1.8rem;
    display: block;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-serif);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a {
    display: block;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 1.2rem;
    opacity: 0.5;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(4px);
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(237, 227, 226, 0.2);
}

.newsletter-form input {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 0.8rem 0;
    flex-grow: 1;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(237, 227, 226, 0.05);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

/* --- UI Overlays & Components --- */
#blobCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 5rem;
    transition: var(--transition);
    box-shadow: -40px 0 80px rgba(0,0,0,0.08);
}

.cart-sidebar.active { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.cart-header h3 { font-family: var(--font-serif); font-size: 2.2rem; }

#cartClose {
    font-size: 3rem; /* Significantly bigger as requested */
    font-weight: 200;
    line-height: 1;
    opacity: 0.3;
}

#cartClose:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.cart-items { flex-grow: 1; overflow-y: auto; }

.cart-footer { padding-top: 2.5rem; border-top: 1px solid #f0f0f0; }

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* --- Refined Product Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 38, 38, 0.5);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1150px;
    height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition);
    box-shadow: 0 50px 120px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    opacity: 0.4;
    transition: var(--transition);
}

.modal-close:hover { opacity: 1; transform: rotate(90deg); }

.modal-body { display: flex; height: 100%; }

.modal-gallery-side {
    flex: 1.3;
    background: #F9F7F6;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.main-display { flex-grow: 1; overflow: hidden; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.main-display img { width: 100%; height: 100%; object-fit: cover; }

.thumb-strip { display: flex; gap: 1.5rem; justify-content: center; }
.thumb-strip img { width: 80px; height: 80px; object-fit: cover; cursor: pointer; border-radius: 6px; opacity: 0.5; transition: var(--transition); }
.thumb-strip img.active { opacity: 1; box-shadow: 0 0 0 2px var(--primary); }

.modal-info-side {
    flex: 1;
    padding: 5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); opacity: 0.5; margin-bottom: 0.5rem; display: block; }
.modal-info-side h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--primary); margin-bottom: 1.0rem; font-weight: 300; }
.modal-price { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-bottom: 3rem; display: block; }
.modal-description { font-size: 1.1rem; line-height: 1.8; color: var(--neutral-dark); opacity: 0.8; margin-bottom: 4rem; font-weight: 300; }

.modal-actions { display: flex; flex-direction: column; gap: 1.5rem; }

/* --- Global Utilities --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { opacity: 0.85; transform: translateY(-4px); }

.btn-outline { background: transparent; color: var(--primary); border: 1px solid rgba(106, 14, 45, 0.2); }
.btn-outline:hover { border-color: var(--primary); transform: translateY(-4px); }

@media (max-width: 992px) {
    .modal-body { flex-direction: column; }
    .modal-content { height: 90vh; overflow-y: auto; }
    .modal-gallery-side { height: 50vh; flex: none; }
    .category-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 100%; right: -100%; }
    .nav-container { height: 80px; }
}
/* FORÇAR CURSOR CORRETO NOS BOTÕES E LINKS */
a, button, .btn, .quick-add, .nav-link, .action-btn, [role="button"] {
    cursor: pointer !important;
}

/* DESATIVAR MODAIS INVISÍVEIS QUE POSSAM ESTAR TRAVADOS NA FRENTE */
.modal-overlay:not(.active), 
.cart-sidebar:not(.active), 
.mobile-dropdown:not(.active) {
    display: none !important;
    pointer-events: none !important;
}

/* GARANTIR QUE O CANVAS NÃO COBRA OS CLIQUES */
#blobCanvas {
    pointer-events: none !important;
    z-index: -9999 !important;
}