:root {
    /* Color Palette - Construction Premium */
    --primary: #0066FF; /* Blue Primary */
    --primary-dark: #004FCC;
    --primary-soft: rgba(0, 102, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #0099FF 100%);
    --secondary: #0F172A; /* Midnight Blue-Gray */
    --secondary-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --accent: #334155;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    
    /* Functional Colors */
    --success: #10B981;
    --danger: #EF4444;
    --whatsapp: #25D366;
    
    /* Shadows & Effects - Premium Soft */
    --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.04);
    --shadow: 0 10px 25px -5px rgb(0 0 0 / 0.06), 0 8px 10px -6px rgb(0 0 0 / 0.03);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.12);
    --shadow-primary: 0 15px 30px -10px rgba(0, 102, 255, 0.4);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Layout */
    --radius: 20px;
    --radius-sm: 10px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Accessibility */
    --focus-ring: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Glassmorphism Navigation */
header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -15px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
}

.mobile-only-link {
    display: none !important;
}

/* Mobile Toggle - Hamburger Animation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: var(--transition);
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--primary);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 2000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-links li {
        width: auto;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.7s; }
    .nav-links.active li:nth-child(8) { transition-delay: 0.8s; }

    .nav-links li.mobile-only-link {
        display: block !important;
    }

    .nav-links li a {
        font-size: 2.2rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        color: var(--secondary);
        border: none;
        padding: 0;
        letter-spacing: -1px;
    }

    .nav-links li a:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
        border-radius: 8px;
        padding: 0 10px;
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    .nav-badge {
        position: absolute;
        top: -10px;
        right: -25px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section - Heavy Impact */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem 5%;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 900px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-primary);
    overflow: hidden;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.4);
}

/* Catalog Layout */
.container {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.filter-bar h2 {
    font-size: 2.5rem;
    text-align: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 8px; /* Leve quebrada nos cantos em vez de pontas 90 graus */
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

/* Product Cards - Premium Elevation */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    line-height: 1.2;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.product-price.sob-consulta {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #1eb956;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

/* Detail View - Luxury Layout */
.product-detail-view {
    padding-top: 4rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-gallery {
    position: sticky;
    top: 120px;
}

@media (max-width: 768px) {
    .detail-gallery {
        position: static;
        top: auto;
    }
}

.detail-img {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-img img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.var-galery {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.var-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.var-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.var-thumb:hover, .var-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary);
}

.variation-tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 4px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.variation-tag.has-image {
    cursor: pointer;
}

.variation-tag.has-image:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.variation-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Admin Dashboard Polishing */
.admin-sidebar {
    background: var(--secondary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.admin-sidebar h2 { color: white; margin-bottom: 1rem; }

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    position: relative;
    padding: 2.5rem;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 500px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* Custom checkbox styling for table */
.product-checkbox, #select-all-products {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-checkbox:hover, #select-all-products:hover {
    transform: scale(1.1);
}

/* Footer - Dark & Elegant */
.main-footer {
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 6rem 5% 3rem;
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 6rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section p,
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
}

/* Cart System Styles */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 2000;
    transition: var(--transition);
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.cart-counter {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid var(--secondary);
}

/* End of stylesheet */