* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: inherit; }

/* Header */
header { background: #2c3e50; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.5rem; }
nav a { color: white; margin-left: 1.5rem; font-size: 0.9rem; }
nav a:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, #34495e, #2c3e50); color: white; text-align: center; padding: 3rem 1rem; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { opacity: 0.8; }

/* Container */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

/* Filters */
.filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filters button { padding: 0.5rem 1rem; border: 2px solid #2c3e50; background: white; border-radius: 20px; cursor: pointer; font-size: 0.85rem; }
.filters button.active, .filters button:hover { background: #2c3e50; color: white; }

/* Product Grid */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 200px; object-fit: contain; background: #fff; padding: 0.5rem; }
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.card-body .category { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.card-body .specs { font-size: 0.85rem; color: #666; line-height: 1.5; margin-bottom: 0.8rem; }
.card-body .type-count { font-size: 0.8rem; font-weight: bold; color: #27ae60; margin-bottom: 0.8rem; }
.btn-detail { display: block; width: 100%; padding: 0.6rem; background: #2c3e50; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; text-align: center; }
.btn-detail:hover { background: #1a252f; }

/* Product Detail (Product -> Types -> Colors) */
.btn-back { display: inline-block; padding: 0.5rem 1rem; background: #ecf0f1; border-radius: 4px; margin-bottom: 1rem; color: #2c3e50; }
.btn-back:hover { background: #d5dbdb; }

.product-header { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.product-header .category { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.product-header h2 { color: #2c3e50; margin: 0.3rem 0 0.8rem; }
.product-header .product-intro { line-height: 1.7; color: #555; max-width: 720px; }

.types-heading { color: #2c3e50; margin-bottom: 1rem; }

/* Type cards */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.type-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.type-card img { width: 100%; height: 180px; object-fit: contain; background: #fff; padding: 0.5rem; }
.type-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.type-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.type-body h4 { font-size: 1.15rem; color: #2c3e50; }

/* Availability badges */
.badge { display: inline-block; font-size: 0.72rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.25rem 0.6rem; border-radius: 20px; white-space: nowrap; }
.badge.stock { background: #e4f5ea; color: #1e7a44; border: 1px solid #b6e2c6; }
.badge.pedido { background: #fdf1dc; color: #9a6a12; border: 1px solid #f0d9a8; }
.badge.ada { background: #e8f0fb; color: #2b6cb0; border: 1px solid #c2d8f2; }
.colors .consultar { font-size: 0.85rem; color: #9a6a12; font-style: italic; }

/* Availability legend / note */
.availability-note { background: #f7f9fa; border: 1px solid #e3e8ea; border-radius: 8px; padding: 1rem 1.2rem; margin-top: 1rem; }
.availability-note p { font-size: 0.85rem; color: #555; line-height: 1.5; margin: 0.3rem 0; }
.availability-note .badge { margin-right: 0.4rem; }

.empty { color: #888; padding: 1rem 0; }
.type-body .description { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 1rem; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.specs-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #eee; font-size: 0.85rem; }
.specs-table td:first-child { font-weight: bold; width: 40%; color: #555; }

/* Color swatches */
.colors { margin-top: auto; }
.colors-label { display: block; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin-bottom: 0.6rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; cursor: default; }
.swatch .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; transition: transform 0.15s; }
.swatch:hover .dot { transform: scale(1.12); box-shadow: 0 0 0 1px #2c3e50; }
.swatch-name { font-size: 0.7rem; color: #666; text-align: center; }

/* About & Contact */
.content-section { background: white; border-radius: 8px; padding: 2rem; margin: 2rem 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.content-section h2 { margin-bottom: 1rem; color: #2c3e50; }
.content-section p { line-height: 1.7; margin-bottom: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info li { list-style: none; padding: 0.5rem 0; }

/* Footer */
footer { background: #2c3e50; color: white; text-align: center; padding: 2rem; margin-top: 3rem; }
footer p { opacity: 0.7; font-size: 0.85rem; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}
