/* ===== TEMA INFANTIL DBKIDS ===== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Quicksand:wght@400;600;700&display=swap');

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FFC75F;
    --accent-color: #845EC2;
    --light-bg: #FFF8F3;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --border-radius: 20px;
}

* {
    font-family: 'Quicksand', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* ===== HEADER ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
    margin-right: 10px;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
        background: transparent;
    }
    
    .navbar-toggler-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-collapse {
        padding-top: 10px;
    }
    
    .nav-link {
        padding: 8px 0;
        margin: 5px 0;
    }
    
    /* Reduzir altura do header mobile */
    header > div {
        padding: 15px 0 !important;
    }
    
    header > div > .container > div {
        margin-bottom: 15px !important;
    }
    
    header img {
        max-height: 60px !important;
    }
    
    
    /* Ajustar overlay do carousel para mobile */
    .product-info-overlay {
        padding: 30px 0 !important;
    }
    
    .product-info-overlay > div {
        padding: 0 20px !important;
        gap: 20px !important;
        flex-direction: column !important;
    }
    
    .product-carousel-promo {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        letter-spacing: 1px !important;
    }
    
    .product-carousel-title {
        font-size: 28px !important;
        margin-bottom: 10px !important;
        margin-top: 15px !important;
    }
    
    .product-carousel-desc {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .product-carousel-link {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
    
    .product-info-overlay > div > div:last-child {
        min-height: 250px !important;
    }
    
    .product-carousel-image {
        max-height: 250px !important;
        max-width: 250px !important;
    }
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 25px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF5A8A 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFB84D 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 199, 95, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
    color: white;
}

.btn-outline-secondary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 20px;
}

.card-header h5 {
    color: white;
    margin: 0;
}

/* ===== PRODUTOS ===== */
.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-stock {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1E272E 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

footer a {
    color: #DFE6E9;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #95A5A6;
}

/* ===== BADGES E TAGS ===== */
.badge {
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 12px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF5A8A 100%);
}

.badge-success {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.badge-warning {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFB84D 100%);
}

/* ===== INPUTS ===== */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #E8E8E8;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    color: var(--text-dark);
    border-left: 4px solid var(--accent-color);
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    color: var(--text-dark);
    border-left: 4px solid #4ECDC4;
}

.alert-warning {
    background: linear-gradient(135deg, #FFF3E0 0%, #FCE4EC 100%);
    color: var(--text-dark);
    border-left: 4px solid var(--secondary-color);
}

.alert-danger {
    background: linear-gradient(135deg, #FFEBEE 0%, #FCE4EC 100%);
    color: var(--text-dark);
    border-left: 4px solid #FF6B6B;
}

/* ===== TABELAS ===== */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 700;
    padding: 15px;
}

.table tbody tr {
    border-bottom: 1px solid #E8E8E8;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 22px;
    }

    .nav-link {
        font-size: 14px;
        margin: 5px 0;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .product-image {
        height: 200px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.bounce {
    animation: bounce 0.6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}
