:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --background-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; }
section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 300;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-title::after {
    content: ''; display: block; width: 70px; height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.btn-secondary { background-color: #fff; color: var(--primary-color); border-color: #fff; }
.btn-secondary:hover { background-color: transparent; color: #fff; }

/* --- HEADER --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 30px; }
.main-nav ul li a {
    text-transform: uppercase; font-weight: 600; font-size: 14px;
    color: var(--primary-color); position: relative; padding: 5px 0;
}
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0;
    height: 2px; background-color: var(--accent-color); transition: width 0.4s ease;
}
.main-nav ul li a:hover::after { width: 100%; }
#cart-link { display: flex; align-items: center; }
#cart-count {
    background-color: var(--accent-color); color: white;
    font-size: 12px; font-weight: bold; width: 20px; height: 20px;
    border-radius: 50%; display: flex; justify-content: center;
    align-items: center; margin-left: 8px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default for larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://images.unsplash.com/photo-1506744038136-46273834b3fb?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb);
    background-size: cover; background-position: center; color: #fff;
    display: flex; align-items: center; justify-content: center; text-align: center;
    height: 85vh; padding: 0 20px;
}
.hero-content { animation: fadeIn 1.5s ease-in-out; }
.hero-section h1 {
    font-size: 4rem; font-weight: 700; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 3px;
}
.hero-section p {
    font-size: 1.3rem; font-weight: 300; margin-bottom: 30px;
    max-width: 900px;
}

/* --- SERVICES SECTION --- */
.services-section { background-color: var(--secondary-color); }
.services-section .container { display: flex; justify-content: space-around; text-align: center; gap: 40px; flex-wrap: wrap; }
.service-item { max-width: 300px; margin-bottom: 30px; }
.service-icon { height: 60px; margin-bottom: 20px; }
.service-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-item p { color: var(--text-light); }

/* --- PRODUCT CARD --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 30px; }
.product-card {
    background: #fff; border: 1px solid #eee; border-radius: var(--border-radius);
    overflow: hidden; text-align: center; transition: all 0.4s ease; position: relative;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.product-image-container { overflow: hidden; }
.product-card img {
    width: 100%; height: 280px; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-card-content { padding: 25px 20px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.product-card .price { font-size: 1.2rem; font-weight: 700; color: var(--accent-color); }
.btn-add-to-cart {
    position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color); color: #fff;
    padding: 10px 20px; border-radius: 5px; opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap; /* Prevents text wrapping */
}
.product-card:hover .btn-add-to-cart { bottom: 20px; opacity: 1; }

/* --- TESTIMONIALS --- */
.testimonials-section { background-color: var(--secondary-color); text-align: center; }
.testimonial blockquote {
    font-size: 1.3rem; font-style: italic; line-height: 1.8;
    max-width: 800px; margin: 0 auto 20px;
}
.testimonial cite { font-weight: 700; color: var(--accent-color); }

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #434343);
    color: #fff; text-align: center;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-section p { margin-bottom: 30px; }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color); color: #ccc;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-column h4 {
    font-size: 1.2rem; color: #fff; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 1px;
}
.footer-column p, .footer-column ul li { margin-bottom: 10px; }
.footer-column ul { list-style: none; }
.footer-column a { color: #ccc; }
.footer-column a:hover { color: var(--accent-color); }
.social-icons a { margin-right: 15px; font-size: 1.5rem; }
.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid #444; font-size: 14px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Formulários, Tabelas, etc (manter os estilos anteriores) --- */
.form-container {
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 40px auto;
}
.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-actions {
    text-align: center;
    margin-top: 30px;
}
.form-actions .btn {
    width: auto;
    padding: 14px 40px;
}

.table-container {
    overflow-x: auto;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Ensures rounded corners apply to content */
}
.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.table thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}
.table tbody tr:nth-child(even) {
    background-color: var(--secondary-color);
}
.table tbody tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}


/* --- RESPONSIVE DESIGN --- */

/* Extra Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0; /* Remove padding on very large screens if not needed */
    }
}

/* Large devices (laptops, desktops 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-nav ul li {
        margin-left: 20px;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .main-nav ul li {
        margin-left: 15px;
    }
    .main-nav ul li a {
        font-size: 13px;
    }
    .hero-section {
        height: 70vh;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .services-section .container {
        flex-direction: column;
        align-items: center;
    }
    .service-item {
        max-width: 80%; /* Adjust for better spacing on tablets */
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .testimonial blockquote {
        font-size: 1.1rem;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Small devices (phones, 600px and up) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Header adjustments for mobile */
    .main-header .container {
        flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    }
    .main-nav {
        order: 3; /* Move navigation to the bottom or below logo */
        width: 100%;
        margin-top: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #eee;
        padding: 20px 0;
        display: none; /* Hidden by default */
    }
    .main-nav.active ul {
        display: flex; /* Show when active */
    }
    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .main-nav ul li a {
        font-size: 16px;
        padding: 10px 0;
        display: block; /* Make links full width */
    }
    #cart-link {
        order: 2; /* Position cart link next to logo or toggle */
        margin-left: auto; /* Push to the right */
        margin-right: 15px;
    }
    .menu-toggle {
        display: flex; /* Show hamburger menu on small screens */
    }
    .logo {
        order: 1;
    }

    /* Hero section */
    .hero-section {
        height: 60vh;
        padding: 0 15px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Services section */
    .services-section .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .service-item {
        max-width: 90%;
        margin-bottom: 20px;
    }

    /* Product grid */
    .product-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .product-card {
        margin-bottom: 20px;
    }
    .product-card:hover .btn-add-to-cart {
        bottom: 10px; /* Adjust button position on mobile hover */
    }

    /* Testimonials */
    .testimonial blockquote {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 1.6rem;
    }
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column for footer on mobile */
        text-align: center;
    }
    .footer-column {
        margin-bottom: 30px;
    }
    .footer-column ul li {
        margin-bottom: 8px;
    }
    .social-icons {
        margin-top: 15px;
    }
    .social-icons a {
        margin: 0 8px;
    }
    .footer-bottom {
        font-size: 13px;
        padding-top: 15px;
    }
    .form-container {
        padding: 20px;
        margin: 20px auto;
    }
    .table-container {
        padding: 0 10px;
    }
    .table th, .table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Extra Small devices (portrait phones, less than 600px) */
@media (max-width: 599px) {
    .section-title {
        font-size: 1.6rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    .logo img {
        height: 40px;
    }
    #cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}