/* ============================================
   VARIÁVEIS E ESTILOS GLOBAIS
   ============================================ */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --gray-color: #999;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #fafafa;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.logo {
    width: 120px;
    height: auto;
}



@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Barra de Pesquisa */
.search-bar {
    display: flex;
    flex: 1;
    max-width: 400px;
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* Navegação */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   BANNER PRINCIPAL
   ============================================ */

.banner {
    background: linear-gradient(135deg, rgba(255,107,53,0.9) 0%, rgba(247,147,30,0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="150" r="150" fill="rgba(255,255,255,0.05)"/><circle cx="900" cy="400" r="200" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideDownFade 0.6s ease;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideDownFade 0.8s ease;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* ============================================
   SEÇÕES DE ANÚNCIOS
   ============================================ */

.ads-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.ads-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-card {
    background: white;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.ad-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255,107,53,0.2);
}

.ad-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.ad-card h3 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 10px;
}

.ad-card p {
    color: var(--gray-color);
}

/* ============================================
   SEÇÃO DE PRODUTOS
   ============================================ */

.featured-section {
    padding: 60px 20px;
}

.featured-section h2,
#catalog h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--gray-color);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-description {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}

.product-rating {
    color: #FFB800;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

/* ============================================
   FILTROS
   ============================================ */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin: 40px 0;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters h3 {
    margin-right: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--light-color);
    background: white;
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* ============================================
   PÁGINA SOBRE NÓS
   ============================================ */

#about {
    padding: 60px 20px;
}

#about h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 15px;
}

.feature i {
    font-size: 28px;
    color: var(--primary-color);
    min-width: 40px;
}

.feature h3 {
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    color: var(--gray-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.stat h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Seção de Contato */
.contact-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 40px;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    text-align: center;
    flex-direction: column;
}

.contact-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 16px;
    color: var(--text-color);
}

/* ============================================
   PÁGINA DE PERFIL
   ============================================ */

#profile {
    padding: 60px 20px;
}

#profile h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.profile-avatar {
    font-size: 80px;
    margin-bottom: 15px;
}

.profile-header h2 {
    margin-bottom: 5px;
}

.profile-header p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.profile-section {
    padding: 25px;
    border-bottom: 1px solid var(--light-color);
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section p {
    color: var(--gray-color);
    margin-bottom: 5px;
}

.order-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.order-item p {
    color: var(--text-color);
    margin-bottom: 5px;
}

.order-item small {
    color: var(--gray-color);
}

.coupon {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.coupon span {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.coupon p {
    font-size: 14px;
    opacity: 0.95;
}

.profile-card .btn-danger {
    width: 100%;
    margin-top: 15px;
}

/* ============================================
   MODAL DO CARRINHO
   ============================================ */

.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 ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: black;
}

#cartItems {
    margin: 25px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--gray-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-actions button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.cart-item-actions button:hover {
    background: var(--secondary-color);
}

.cart-item-actions .remove {
    background: var(--danger-color);
}

.cart-item-actions .remove:hover {
    background: #c0392b;
}

.cart-summary {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
}

.cart-summary .btn {
    width: 100%;
    margin-bottom: 12px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.empty-cart i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2a2a 100%);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,107,53,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ============================================
   FORMULÁRIO DE EDIÇÃO DE PERFIL
   ============================================ */

.edit-profile-modal {
    max-width: 500px;
}

.edit-profile-modal h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray-color);
    font-size: 12px;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    width: 100%;
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger-outline:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   PÁGINAS
   ============================================ */

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .nav {
        order: 4;
        width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-color);
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .nav-list.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters h3 {
        margin-right: 0;
        width: 100%;
    }

    .featured-section h2,
    #catalog h1 {
        font-size: 24px;
    }

    .modal-content {
        margin: 20% 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .profile-header {
        padding: 30px 15px;
    }

    .profile-avatar {
        font-size: 60px;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ============================================
   EFEITOS E ANIMAÇÕES EXTRAS
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-card {
    animation: slideInLeft 0.5s ease;
}
