/* ==================================
   INJETOPLASTIC - CUSTOM CSS
   ================================== */

/* Variáveis CSS - Baseadas no design Injetoplastic */
:root {
    --primary: #003d82;        /* Azul principal Injetoplastic */
    --primary-dark: #002855;   /* Azul mais escuro */
    --secondary: #FFB800;      /* Amarelo/Dourado */
    --accent-orange: #FF6B35;  /* Laranja para CTAs */
    --accent-pink: #E91E63;    /* Rosa para categoria meninas */
    --accent-blue: #2196F3;    /* Azul para categoria meninos */
    --accent-purple: #9C27B0;  /* Roxo para jogos educativos */
    --accent-green: #4CAF50;   /* Verde para PET */
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFB800;
    --info: #0288D1;
    --light: #F8F9FA;
    --dark: #1a1a1a;
    --gray: #6c757d;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: var(--font-family);
    color: var(--dark);
    line-height: 1.6;
}

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
}

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

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-cta {
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-cta:hover {
    background-color: #ff5722;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: var(--transition);
}

.categoria-card {
    border: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.categoria-card:hover::before {
    left: 100%;
}

.categoria-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,61,130,0.15);
    border-color: transparent;
}

.categoria-card .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,61,130,0.08);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.categoria-meninas .icon-wrapper { background: rgba(233, 30, 99, 0.1); color: #E91E63; }
.categoria-meninas:hover .icon-wrapper { background: rgba(233, 30, 99, 0.2); transform: scale(1.1); }

.categoria-meninos .icon-wrapper { background: rgba(33, 150, 243, 0.1); color: #2196F3; }
.categoria-meninos:hover .icon-wrapper { background: rgba(33, 150, 243, 0.2); transform: scale(1.1); }

.categoria-educativos .icon-wrapper { background: rgba(156, 39, 176, 0.1); color: #9C27B0; }
.categoria-educativos:hover .icon-wrapper { background: rgba(156, 39, 176, 0.2); transform: scale(1.1); }

.categoria-pet .icon-wrapper { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.categoria-pet:hover .icon-wrapper { background: rgba(76, 175, 80, 0.2); transform: scale(1.1); }

.categoria-utilidades .icon-wrapper { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.categoria-utilidades:hover .icon-wrapper { background: rgba(255, 152, 0, 0.2); transform: scale(1.1); }

.categoria-todos .icon-wrapper { background: rgba(0, 61, 130, 0.1); color: #003d82; }
.categoria-todos:hover .icon-wrapper { background: rgba(0, 61, 130, 0.2); transform: scale(1.1); }

.produto-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.produto-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-orange), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.produto-card:hover::after {
    transform: scaleX(1);
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-orange);
}

.produto-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.produto-card:hover .card-img-top {
    transform: scale(1.05);
}

.btn-add-cart {
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: scale(1.1);
}

/* Icon Styles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.icon-wrapper i {
    font-size: 2.5rem;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Page Header */
.page-header {
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray);
}
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,61,130,0.85) 0%, rgba(0,61,130,0.4) 100%);
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--dark);
}

.footer a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    opacity: 0.7;
    color: white;
}

.footer h5 {
    color: white;
    font-weight: 700;
}

/* CTA Orçamento */
.cta-orcamento {
    background: linear-gradient(135deg, var(--secondary) 0%, #FFD54F 100%);
    border-radius: 8px;
}

.cta-orcamento h3 {
    color: var(--primary-dark);
    font-weight: 700;
}

.cta-orcamento p {
    color: var(--dark);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 88, 0.15);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Dashboard */
.dashboard-card {
    border-left: 4px solid var(--primary);
}

.dashboard-card.success {
    border-left-color: var(--success);
}

.dashboard-card.warning {
    border-left-color: var(--warning);
}

.dashboard-card.danger {
    border-left-color: var(--danger);
}

/* Table Responsive */
.table-responsive {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Badge Customization */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Utility Classes */
.shadow-custom {
    box-shadow: var(--shadow-md);
}

.hover-scale {
    transition: var(--transition);
}

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

/* Print Styles */
@media print {
    .whatsapp-button,
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
}

/* ==========================================
   LIGHTBOX para Zoom de Imagens
   ========================================== */

.produto-imagem-container {
    position: relative;
    cursor: pointer;
}

.produto-imagem-zoom {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.produto-imagem-zoom img {
    transition: transform 0.3s ease;
}

.produto-imagem-zoom:hover img {
    transform: scale(1.05);
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 61, 130, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    cursor: pointer;
}

.produto-imagem-zoom:hover .zoom-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.7)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #FF6B35;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

/* Detalhes do Produto */
.produto-detalhes {
    min-height: 60vh;
}

.caracteristica-item {
    transition: all 0.3s ease;
}

.caracteristica-item:hover {
    background-color: #e8f4f8 !important;
    transform: translateX(5px);
}

.produto-compartilhar .btn {
    transition: all 0.3s ease;
}

.produto-compartilhar .btn:hover {
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}
