/**
 * Gingongo IT e Serviços - CSS Moderno
 * Design profissional e atraente
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #334155;
    background: #ffffff;
    line-height: 1.6;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* ==================== NAVBAR ==================== */
.navbar {
    padding: 1rem 0;
    background: white !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.brand-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.brand-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light);
    color: var(--primary) !important;
}

.nav-link i {
    margin-right: 0.25rem;
}

/* Carrinho Button */
.btn-cart {
    position: relative;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: var(--gradient);
    padding: 80px 0;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary);
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==================== SECTIONS ==================== */
.section-categories,
.section-promocoes,
.section-destaques,
.section-vantagens {
    padding: 80px 0;
}

.section-categories {
    background: var(--light);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
}

.product-badge.promo {
    background: var(--danger);
    color: white;
}

.product-badge.stock {
    background: var(--warning);
    color: white;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--light);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-price {
    margin-bottom: 1rem;
}

.price-old {
    font-size: 0.875rem;
    color: var(--secondary);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger);
    display: block;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.product-actions {
    margin-top: auto;
}

/* ==================== VANTAGENS ==================== */
.section-vantagens {
    background: var(--light);
}

.vantagem-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s;
}

.vantagem-card:hover {
    transform: translateY(-5px);
}

.vantagem-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.vantagem-icon i {
    font-size: 2rem;
    color: white;
}

.vantagem-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.vantagem-card p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 0;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contacts {
    list-style: none;
    padding: 0;
}

.footer-contacts li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 2rem 0;
    font-size: 0.875rem;
}

.payment-methods {
    color: #94a3b8;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card {
    animation: fadeIn 0.5s ease-out;
}

/* ==================== LOADING ==================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

/* ==================== CARRINHO ==================== */
.text-nowrap {
    white-space: nowrap !important;
}

/* Garantir que valores grandes não quebrem */
.card-body strong,
.card-body .h4,
.card-body .h5 {
    white-space: nowrap;
}

/* Melhorar responsividade dos valores */
@media (max-width: 768px) {
    .card-body {
        font-size: 0.9rem;
    }
    .card-body .h4 {
        font-size: 1.25rem;
    }
}

/* ==================== RATING SYSTEM ==================== */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #cbd5e1;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #f59e0b;
}

/* ==================== ALERTAS ==================== */
.alerta-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.alerta-banner .btn-close {
    filter: brightness(0) invert(1);
}

