/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a76fdb; /*geral*/
    --primary-dark: #b788e46c; /*geral 2*/
    --white: #ffffff;
    --primary-color: #b788e4; /*nomes e faixa de cima*/
    --gray-light: #b788e46c;
    --gray: #b788e4; /*lupinha e slogan*/
    --gray-dark: #b788e4;
    --sale: #b788e4;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #28a745;
    --lilas: #b788e4;
}

.body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

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

/* Top Bar */
.top-bar {
    background: var(--gray-light);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-bar-links a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-image {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--gray);
    font-size: 12px;
    font-style: italic;
}

.menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.dropdown-menu a:hover {
    background: var(--gray-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 200px;
    transition: all 0.3s;
}

.search-box input:focus {
    width: 250px;
    outline: none;
    border-color: var(--primary-color);
}

.search-box i {
    position: absolute;
    right: 12px;
    color: var(--gray);
}

.account-dropdown, .cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-name {
    font-size: 14px;
    color: var(--gray);
}

.account-dropdown:hover .dropdown-menu,
.cart-icon:hover .dropdown-menu {
    display: block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sale);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-preview {
    padding: 20px;
    min-width: 300px;
}

.cart-preview h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}

.cart-total {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(182, 149, 192, 0.3);
}

/* Brands Section */
.brands-section {
    padding: 40px 0;
    background: var(--gray-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.brand-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--black);
}

.category-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--black);
}

.product-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.old-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.installment {
    font-size: 12px;
    color: var(--gray);
    display: block;
    margin-top: 5px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-comprar {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background: var(--primary-dark);
}

.btn-add-cart {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Offers Section */
.offers-section {
    padding: 75px 0;
}

.offer-banner {
    background: linear-gradient(135deg, var(--lilas) 0%, #b788e4 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(183, 136, 228, 0.3);
}

.offer-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-height: 300px;
    padding: 0 40px;
}

.offer-text {
    flex: 1;
    color: var(--white);
}

.offer-text h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.offer-text p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.offer-price {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--white);
}

.original-price {
    display: block;
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 30px;
    color: var(--white);
}

.offer-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.offer-placeholder span {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Botão específico "Aproveitar Oferta" */
.offer-banner .btn-primary {
    background: var(--white);
    color: var(--lilas);
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.offer-banner .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--lilas);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.newsletter-form button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--gray-dark);
}

/* Footer */
.footer {
    background: var(--gray-light);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links h4 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateX(5px);
}

.social-link i {
    font-size: 18px;
    width: 20px;
}

.security-seal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    background: #b788e4;
    border-radius: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-dark);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 600px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
}

.social-login {
    margin: 20px 0;
    text-align: center;
}

.social-login p {
    margin-bottom: 15px;
    color: var(--gray);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-google:hover {
    background: #db4437;
    color: white;
    border-color: #db4437;
}

.btn-facebook:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

/* Cart Modal */
.cart-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-items-modal {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-summary {
    border-top: 2px solid var(--border);
    padding-top: 20px;
}

.cart-total-modal {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    display: none;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: var(--sale);
    color: white;
}

.notification.warning {
    background: var(--warning);
    color: var(--black);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .offer-content {
        min-height: 250px;
        padding: 0 30px;
    }
    
    .offer-text h3 {
        font-size: 2rem;
    }
    
    .offer-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .search-box input {
        width: 150px;
    }

    .brands-grid,
    .categories-grid,
    .products-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .offer-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .offer-text {
        order: 2;
    }
    
    .offer-image {
        order: 1;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .brands-grid,
    .categories-grid,
    .products-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .search-box {
        display: none;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .offer-banner {
        border-radius: 15px;
    }
    
    .offer-text h3 {
        font-size: 1.5rem;
    }
    
    .offer-price {
        font-size: 2rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .logo-image {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-actions {
        gap: 15px;
    }
    
    .user-name {
        display: none;
    }
}