/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Variáveis de cor */
:root {
    --primary: #ff1717;
    --primary-dark: #c51e1e;
    --secondary: #fff;
    --text: #333;
    --text-light: #666;
    --bg-card: #fff;
    --border: #ddd;
    --success: #19be6b;
    --warning: #ff9f43;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav {
    display: flex;
    gap: 30px;
}

.navbar-nav a {
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--primary);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-count {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    margin-top: 70px;
    padding: 150px 20px 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-search {
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    max-width: 500px;
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.stat-number:hover {
    transform: scale(1.1);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Products Section */
.products-section {
    padding: 60px 20px;
    background: white;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header .ver-todas {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: all 0.3s;
}

.section-header .ver-todas:hover {
    background: var(--primary);
    color: white;
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-info {
    padding: 15px 20px;
}

.product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    height: 36px; /* 2 lines */
    overflow: hidden;
}

.product-info p {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-info .price-old {
    font-size: 0.7rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 5px;
}

.product-info .price-new {
    display: block;
}

.product-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.product-rating .star {
    color: #ffc107;
    font-size: 0.7rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-carrinho {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-carrinho:hover {
    background: var(--primary-dark);
}

.btn-quick-view {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 10px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-quick-view:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Categories Section */
.categories-section {
    padding: 60px 20px;
    background: #fafafa;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card:hover .category-icon svg {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.category-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: #888;
    margin-bottom: 10px;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

.payment-methods img {
    vertical-align: middle;
    margin-left: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-search {
        margin: 0 auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .navbar-actions {
        display: none;
    }
}
