/* Variáveis */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FECA57;
    --dark-color: #2C3E50;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* Cabeçalho da Categoria */
.category-header {
    padding: 2rem 0;
}

.category-header h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.category-header p {
    color: #666;
    font-size: 1.2rem;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.product-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-specs {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.product-specs p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.product-specs strong {
    color: var(--dark-color);
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price-sub {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}

.btn-details {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    width: 100%;
}

.btn-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
    color: white;
}

/* Badge */
.badge-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .product-body {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.5rem;
    }
}

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

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* Hover Effects */
.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.product-card:hover::after {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ============================================ */
/* CSS PARA CARDS CLICÁVEIS - ESTILO LINK     */
/* Adicione ao final do arquivo produtos.css  */
/* ============================================ */

/* Link wrapper do card - remove estilos de link */
.product-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: all 0.3s ease;
}

/* Card com cursor pointer */
.product-card-link .product-card {
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Hover no link - levanta o card */
.product-card-link:hover .product-card {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Botão dentro do card clicável */
.product-card-link .btn-details {
    transition: all 0.3s ease;
    pointer-events: none; /* Evita clique duplo */
}

/* Hover no botão quando passa sobre o card */
.product-card-link:hover .btn-details {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.6);
}

/* Efeito ao clicar no card */
.product-card-link:active .product-card {
    transform: translateY(-10px) scale(0.98);
    transition: all 0.1s ease;
}

/* Garantir que texto não mude de cor no hover */
.product-card-link:hover .product-title,
.product-card-link:hover .product-description,
.product-card-link:hover .product-price {
    color: inherit;
}

/* ============================================ */
/* FIM DO CSS                                  */
/* ============================================ */