/* assets/css/loja.css - VERSÃO MELHORADA E COMPLETA */
@import url('colors.css');

/* ============================================ */
/* RESET E BASE */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--branco);
    color: var(--neutral-700);
    line-height: 1.6;
}

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

/* ============================================ */
/* TIPOGRAFIA */
/* ============================================ */
h1, h2, h3, h4, .logo-text, .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* ============================================ */
/* HEADER MELHORADO */
/* ============================================ */
.header {
    background: var(--azul-escuro);
    border-bottom: 3px solid var(--dourado);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(13, 45, 49, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: all 0.3s;
}

/* Logo com animação */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dourado);
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--terracota);
    display: block;
    letter-spacing: 2px;
}

/* Menu com efeito */
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dourado);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--dourado);
}

/* Actions com hover */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-actions > a {
    color: var(--branco);
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
}

.header-actions > a:hover {
    color: var(--dourado);
    transform: translateY(-2px);
}

/* Carrinho com badge animado */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--terracota);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    color: var(--branco);
    padding: 5px 10px;
    border-radius: 40px;
    transition: background 0.3s;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--dourado), var(--dourado-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-escuro);
    transition: transform 0.3s;
}

.user-menu:hover .user-avatar {
    transform: scale(1.05);
}

.user-menu span {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    overflow: hidden;
}

.user-menu:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--azul-escuro);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-menu a i {
    width: 20px;
    font-size: 1rem;
}

.dropdown-menu a:hover {
    background: var(--terracota-soft);
    color: var(--terracota);
    padding-left: 25px;
}

/* ============================================ */
/* BOTÕES MELHORADOS */
/* ============================================ */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(198, 93, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 93, 59, 0.4);
}

.btn-outline {
    border: 2px solid var(--terracota);
    background: transparent;
    color: var(--terracota);
}

.btn-outline:hover {
    background: var(--terracota);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(198, 93, 59, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-escuro-dark));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 45, 49, 0.3);
}

/* ============================================ */
/* PRODUTOS - COM EFEITOS PREMIUM */
/* ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.lancamento {
    background: var(--terracota);
    color: white;
}

.product-badge.desconto {
    background: var(--dourado);
    color: white;
}

/* Info produto */
.product-info {
    padding: 20px;
}

.product-marca {
    color: var(--azul-escuro-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-nome {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
    color: var(--azul-escuro);
    line-height: 1.3;
}

.product-detalhes {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-bottom: 10px;
}

/* Preços */
.product-preco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--neutral-200);
}

.preco-atual {
    color: var(--dourado);
    font-size: 1.4rem;
    font-weight: 700;
}

.preco-antigo {
    color: var(--neutral-500);
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Botão adicionar ao carrinho */
.btn-add-cart {
    background: var(--terracota);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--terracota-dark);
    transform: scale(1.1) rotate(90deg);
}

/* ============================================ */
/* CATEGORIAS - COM EFEITO */
/* ============================================ */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.categoria-card {
    text-align: center;
    padding: 35px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--neutral-200);
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--terracota);
}

.categoria-card i {
    font-size: 2.5rem;
    color: var(--terracota);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.categoria-card:hover i {
    transform: scale(1.1);
}

.categoria-card h3 {
    color: var(--azul-escuro);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.categoria-card p {
    color: var(--neutral-500);
    font-size: 0.85rem;
}

/* ============================================ */
/* SECTION TITLE MELHORADO */
/* ============================================ */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--azul-escuro);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracota), var(--dourado));
    border-radius: 3px;
}

.section-title::after {
    content: '✦';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--terracota);
    font-size: 1rem;
    background: var(--branco);
    padding: 0 10px;
}

/* ============================================ */
/* CARROSSEL MELHORADO */
/* ============================================ */
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 650px;
    margin-left: 10%;
    color: white;
    animation: slideUp 0.8s ease;
}

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

.carousel-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--dourado);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 300;
}

.carousel-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-title span {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
}

.carousel-description {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1rem;
    max-width: 500px;
}

.carousel-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--terracota);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s;
    font-weight: 600;
}

.carousel-btn:hover {
    background: var(--terracota-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Controles do carrossel */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: var(--terracota);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.indicator.active {
    background: var(--dourado);
    width: 80px;
}

.indicator:hover {
    background: var(--terracota);
}

/* ============================================ */
/* NEWSLETTER */
/* ============================================ */
.newsletter {
    background: linear-gradient(135deg, var(--terracota), var(--azul-escuro));
    color: white;
    text-align: center;
    padding: 60px 0;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: white;
    color: var(--terracota);
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* FOOTER MELHORADO */
/* ============================================ */
.footer {
    background: var(--azul-escuro);
    color: var(--branco-off);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: var(--dourado);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--branco-off);
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col a {
    color: var(--branco-off);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
    opacity: 0.8;
}

.footer-col a:hover {
    color: var(--dourado);
    opacity: 1;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--dourado);
    color: var(--azul-escuro);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================ */
/* RESPONSIVO */
/* ============================================ */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-content {
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .user-menu span {
        display: none;
    }
}

/* ============================================ */
/* UTILITÁRIOS */
/* ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }