:root {
    --primary-color: #ffc107; /* Amarelo Construção */
    --dark-bg: #1a1a1a;
    --light-bg: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
.main-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-weight: 900;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://http2.mlstatic.com/D_NQ_NP_2X_626750-MLA99986030113_112025-F.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #e0a800;
}

/* Products Grid */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary-color);
    display: inline-block;
}

.products-section .container {
    display: block;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.card-btn {
    background-color: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s;
}

.card-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--dark-bg);
    z-index: 10;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
}

.modal-info {
    flex: 1;
    padding: 40px;
    min-width: 300px;
}

.specs-list {
    list-style: none;
    margin: 20px 0;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.specs-list strong {
    color: var(--dark-bg);
}

.tag {
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #888;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .modal-body { flex-direction: column; }
    .modal-image img { max-height: 250px; }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}