/* Estilos Gerais */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --accent-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc;
    color: #333;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), #224abe) !important;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.card-discount {
    text-decoration: line-through;
    color: var(--danger-color);
    font-size: 0.9rem;
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a5ecc;
    border-color: #3a5ecc;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
}

/* Banners */
.banner-carousel .carousel-item {
    width: 100%;
    height: 400px;
}

.banner-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.banner-carousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
}

/* Seções */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Produtos */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-type {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Carrinho */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-summary {
    background-color: #f8f9fc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Checkout */
.payment-method-card {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.payment-method-card.active {
    border-color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.payment-method-card img {
    height: 40px;
    margin-right: 10px;
}

/* Perfil do usuário */
.profile-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-card .card-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Pedidos */
.order-card {
    margin-bottom: 20px;
}

.order-header {
    background-color: #f8f9fc;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #eee;
}

.order-body {
    padding: 15px;
}

.order-footer {
    background-color: #f8f9fc;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #eee;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .banner-carousel .carousel-item {
        height: 300px;
    }
    
    .banner-carousel .carousel-caption {
        max-width: 100%;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: #4e73df;
    min-height: calc(100vh - 56px);
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 20px;
}

.admin-card {
    border-left: 4px solid;
    border-radius: 5px;
}

.admin-card.primary {
    border-left-color: var(--primary-color);
}

.admin-card.success {
    border-left-color: var(--secondary-color);
}

.admin-card.warning {
    border-left-color: var(--accent-color);
}

.admin-card.danger {
    border-left-color: var(--danger-color);
}

.admin-card .card-icon {
    font-size: 2rem;
    opacity: .8;
}



/* OVERRIDE CLASSES  */
/* 
.bg-primary {
    background: #1c1 !important;
} */

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.breadcrumb {
    display: none !important;
}

.btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 25px;
  }


  
  :root {
    --primary-color: #4e73df;
    --primary-gradient: linear-gradient(135deg, #4e73df 0%, #6c5ce7 100%);
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --info-color: #36b9cc;
    --dark-color: #2c3e50;
    --light-color: #f8f9fc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(78, 115, 223, 0.1);
    --shadow-medium: 0 15px 35px rgba(78, 115, 223, 0.15);
    --shadow-heavy: 0 20px 50px rgba(78, 115, 223, 0.2);
}

/* Container principal com background futurístico */
.col-md-9 {
    background: linear-gradient(145deg, #f8f9fc 0%, #e3e6f0 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.col-md-9::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

/* Animações de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(78, 115, 223, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(78, 115, 223, 0.6);
    }
}

/* Cards modernos */
.card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    /* background: var(--primary-gradient); */
    color: black;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.card-body {
    padding: 2rem;
    position: relative;
}

/* Formulários futurísticos */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    border: 2px solid #e3e6f0;
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    background: white;
    transform: translateY(-2px);
}

.input-group-text {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px 0 0 15px;
    font-weight: 600;
}

.input-group .form-control {
    border-radius: 0 15px 15px 0;
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--primary-color);
}

/* Botões futurísticos */
.btn {
    border-radius: 15px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    animation: glow 2s infinite;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alertas modernos */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, rgba(28, 200, 138, 0.1) 0%, rgba(28, 200, 138, 0.05) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.1) 0%, rgba(246, 194, 62, 0.05) 100%);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 74, 59, 0.1) 0%, rgba(231, 74, 59, 0.05) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(54, 185, 204, 0.1) 0%, rgba(54, 185, 204, 0.05) 100%);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Badges modernos */
.badge {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.bg-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #f4b942 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #36b9cc 0%, #2980b9 100%) !important;
}

/* Tabelas futurísticas */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.table thead th {
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(78, 115, 223, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #e3e6f0;
}

/* Cards de pedidos especiais */
.order-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.order-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

.order-header {
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05) 0%, rgba(78, 115, 223, 0.02) 100%);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #e3e6f0;
}

.order-body {
    padding: 1.5rem;
}

.order-footer {
    background: #f8f9fc;
    padding: 1rem 1.5rem;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e3e6f0;
}

/* Código de gift card com efeito especial */
.code-text {
    font-family: 'Courier New', monospace;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: glow 3s infinite;
}

.copy-code-btn {
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    transform: scale(1.1);
    animation: pulse 1s infinite;
}

/* Paginação moderna */
.pagination .page-link {
    border: none;
    border-radius: 10px;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Verificações com ícones animados */
.alert .fa-check-circle,
.alert .fa-exclamation-triangle,
.alert .fa-whatsapp {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .col-md-9 {
        padding: 1rem;
        border-radius: 15px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }

    .order-card {
        margin-bottom: 1rem;
    }
}

/* Efeitos de hover para inputs */
.form-control:hover,
.form-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.1);
}

/* Animação de carregamento para botões */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Efeito de glass morphism para o container principal */
.modern-product-form {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0;
    margin-bottom: 2rem;
}

/* Transições suaves para elementos */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
