* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #4a4a4a;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --accent-color: #ffffff;
    --success-color: #4caf50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #000000;
    color: #a16f27;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #a16f27;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #8a8a8a);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Galeria Hero */
.hero-galeria {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.galeria-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
}

.galeria-slide {
    display: none;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    animation: fadeIn 0.5s;
}

.galeria-slide.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.galeria-imagem {
    font-size: 8rem;
    margin-bottom: 1rem;
}

.galeria-info {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
}

.galeria-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.galeria-info p {
    font-size: 1.3rem;
    color: #FFD700;
    font-weight: bold;
}

.galeria-nav {
    background-color: rgba(161, 111, 39, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-nav:hover {
    background-color: #a16f27;
    transform: scale(1.1);
}

.galeria-nav:active {
    transform: scale(0.95);
}

.galeria-indicadores {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.active {
    background-color: #a16f27;
    width: 30px;
    border-radius: 6px;
}

.indicador:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Filtros */
.filters-section {
    background-color: #2a2a2a;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid #444;
}

.filters-section h3 {
    margin-bottom: 1.5rem;
    color: #a16f27;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.filter-group select,
.filter-group input {
    padding: 0.7rem;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.filter-group input[type="range"] {
    cursor: pointer;
}

#precoValue {
    margin-top: 0.5rem;
    color: #a16f27;
    font-weight: bold;
}

/* Catálogo */
.catalogo {
    padding: 3rem 0;
}

.catalogo h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #a16f27;
}

.motos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Card de Moto */
.moto-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #444;
}

.moto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border-color: #a16f27;
}

.moto-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #a0a0a0 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    overflow: hidden;
}

.moto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moto-info {
    padding: 1.5rem;
}

.moto-marca {
    color: #a16f27;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.moto-modelo {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #e0e0e0;
}

.moto-tipo {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.moto-specs {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin: 0.8rem 0;
    line-height: 1.5;
}

.moto-preco {
    font-size: 1.8rem;
    color: #FFD700;
    font-weight: bold;
    margin: 1rem 0;
}

.moto-actions {
    display: flex;
    gap: 0.5rem;
}

.moto-actions button {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart:hover {
    background-color: #b71c1c;
}

.btn-details {
    background-color: var(--secondary-color);
    color: white;
}

.btn-details:hover {
    background-color: #1565c0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
    border: 1px solid #444;
}

.modal-large {
    max-width: 800px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #a0a0a0;
    transition: color 0.3s;
}

.close:hover {
    color: #a16f27;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #a16f27;
}

/* Carrinho */
.cart-items {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-color);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.cart-item-info h4 {
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: #666;
}

.cart-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-item-actions button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-item-actions button:hover {
    background-color: #b71c1c;
}

.cart-total {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: right;
}

.cart-total h3 {
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Detalhes da Moto */
.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.details-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.details-info h2 {
    margin-bottom: 0.5rem;
    color: #a16f27;
}

.details-marca {
    color: #a16f27;
    font-weight: bold;
    margin-bottom: 1rem;
}

.details-preco {
    font-size: 2rem;
    color: #FFD700;
    font-weight: bold;
    margin: 1rem 0;
}

.details-specs {
    background-color: #3a3a3a;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid #444;
}

.details-specs h4 {
    margin-bottom: 0.5rem;
    color: #a16f27;
}

.details-specs p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.details-descricao {
    margin: 1rem 0;
    line-height: 1.8;
    color: #a0a0a0;
}

.details-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.details-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

/* Rodapé */
.footer {
    background-color: #000000;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #a16f27;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Responsivo */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .motos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .details-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .details-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .motos-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}
