/* ============================================
   LOJA INTEGRADA - TEMA AZUL ALTA CONVERSÃO
   Desenvolvido para máxima conversão
   ============================================ */

:root {
    --primary-blue: #0052CC;
    --blue-dark: #003A99;
    --blue-light: #E8F0FE;
    --accent-orange: #FF6B35;
    --success-green: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-light: #E5E7EB;
    --bg-light: #F9FAFB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 52, 153, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 52, 153, 0.15);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--blue-dark);
}

button, .btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header,
#header,
.navbar,
.header-top {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header,
#header {
    padding: 1rem 0;
}

.header-content,
.navbar-content,
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo,
.brand,
[class*="logo"] {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.nav,
.nav-menu,
.menu-header,
[class*="nav"] ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav a,
.nav-menu a,
.menu-header a,
[class*="nav"] a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after,
.menu-header a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.menu-header a:hover::after {
    width: 100%;
}

.btn-cta-header {
    background: var(--accent-orange);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-header:hover {
    background: #ff5520;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero,
.banner,
.jumbotron,
.page-banner,
[class*="hero"],
[class*="banner"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before,
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after,
.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content,
.banner-content,
.jumbotron-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title,
.banner-title,
.page-title,
[class*="hero"] h1,
[class*="banner"] h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle,
.banner-subtitle,
[class*="hero"] p,
[class*="banner"] p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideDown 0.8s ease-out 0.2s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons,
.banner-buttons,
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideDown 0.8s ease-out 0.4s both;
}

/* ============================================
   BUTTONS - ALTA CONVERSÃO
   ============================================ */

.btn-primary,
.btn-success,
[class*="btn-primary"],
[class*="add-cart"],
.buy-button,
.btn-comprar {
    background: var(--accent-orange);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-success:hover,
[class*="btn-primary"]:hover {
    background: #ff5520;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active,
.btn-success:active {
    transform: translateY(-1px);
}

.btn-secondary,
.btn-outline,
[class*="btn-secondary"] {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.9rem 2.3rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-ghost:hover {
    background: white;
    color: var(--primary-blue);
}

/* ============================================
   PRODUCTS - CARDS
   ============================================ */

.product,
.product-item,
.product-card,
[class*="product"] {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.product:hover,
.product-item:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.product-image,
.product-img,
[class*="product-image"] {
    position: relative;
    overflow: hidden;
    background: var(--blue-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img,
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover .product-image img,
.product:hover img {
    transform: scale(1.05);
}

.product-info,
.product-details,
[class*="product-info"] {
    padding: 1.5rem;
}

.product-name,
.product-title,
[class*="product-name"] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.product-price,
.price,
[class*="price"] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-description,
.product-desc,
[class*="description"] {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-badge,
.badge,
[class*="badge"] {
    display: inline-block;
    background: var(--success-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-badge.discount {
    background: var(--accent-orange);
}

/* ============================================
   CATEGORIES & FILTERS
   ============================================ */

.categories,
.category-list,
.filters,
[class*="category"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-item,
.category-card,
[class*="category-item"] {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    cursor: pointer;
}

.category-item:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--accent-orange);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-name,
.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ============================================
   SECTIONS
   ============================================ */

.section,
[class*="section"],
[class*="container"] {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title,
.section-heading,
h2[class*="section"] {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle,
[class*="subtitle"] {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.grid,
.products-grid,
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials,
.reviews,
[class*="testimonial"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card,
.review-card,
[class*="testimonial-item"] {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
}

.testimonial-stars,
.stars,
[class*="rating"] {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text,
.review-text,
[class*="testimonial-content"] {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author,
.review-author,
[class*="author"] {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

form,
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label,
[for] {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

input,
textarea,
select,
[type="text"],
[type="email"],
[type="tel"],
[type="password"] {
    padding: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert,
.message,
[class*="alert"],
[class*="message"] {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success,
[class*="success"] {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

.alert-error,
.alert-danger,
[class*="error"],
[class*="danger"] {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #DC2626;
}

.alert-info,
[class*="info"] {
    background: var(--blue-light);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* ============================================
   CART & CHECKOUT
   ============================================ */

.cart,
.shopping-cart,
[class*="cart"] {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.cart-item,
[class*="cart-item"] {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary,
[class*="summary"] {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-total {
    border-top: 2px solid var(--border-light);
    padding-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ============================================
   FOOTER
   ============================================ */

footer,
.footer,
[class*="footer"] {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content,
[class*="footer-content"] {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section,
[class*="footer-section"] {
    margin-bottom: 2rem;
}

.footer-title,
.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section a {
    color: #D1D5DB;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom,
[class*="footer-bottom"] {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* ============================================
   UTILS & HELPERS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-3 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 1.5rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-title,
    .section-title {
        font-size: 2rem;
    }

    .grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --shadow-lg: 0 5px 15px rgba(0, 52, 153, 0.08);
    }

    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .nav,
    .nav-menu {
        gap: 1rem;
    }

    .grid,
    .products-grid,
    .categories,
    .testimonials {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }

    input,
    textarea,
    select {
        font-size: 16px; /* Previne zoom em iOS */
    }

    .nav,
    .hero-content {
        flex-direction: column;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-in {
    animation: slideIn 0.3s ease-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para acessibilidade */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    footer,
    .cart,
    .nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}