/* loja.css - Novo Design Moderno */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e3f2fd;
    --secondary-color: #6c757d;
    --accent-color: #ff6b35;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    background-color: #fff;
    padding-top: 0;
}

/* HEADER SUPERIOR */
.top-header {
    background: linear-gradient(to right, var(--dark-gray), var(--secondary-color));
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-header a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.top-header a:hover {
    color: var(--accent-color);
}

.social-icons a {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* HEADER PRINCIPAL */
.main-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
}

.logo-container img {
    max-height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo-container img:hover {
    transform: scale(1.03);
}

/* BUSCA MODERNA */
.search-modern {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-modern .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--medium-gray);
    font-size: 1rem;
    transition: var(--transition);
}

.search-modern .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
}

.search-modern .btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-modern .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* ICONES DO HEADER */
.header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.header-icon {
    position: relative;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.header-icon i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.header-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.user-dropdown .dropdown-toggle {
    border: none;
    background: transparent;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle:hover {
    background-color: var(--light-gray);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--medium-gray);
}

/* MENU PRINCIPAL */
.main-navbar {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-md);
}

.main-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: var(--transition);
    border-radius: 5px;
    margin: 0 2px;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.main-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: white;
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 3px;
}

.main-navbar .navbar-nav .nav-link:hover::after,
.main-navbar .navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

/* BANNER PRINCIPAL */
.hero-banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* SEÇÃO DE DESTAQUES */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* CARDS DE PRODUTO */
.product-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    background-color: white;
    margin-bottom: 1.5rem;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price .old-price {
    font-size: 1rem;
    color: var(--secondary-color);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-product {
    flex: 1;
    border-radius: 50px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-cart:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: scale(1.05);
}

.btn-details {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: white;
}

/* CATEGORIAS */
.category-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1.5rem 1rem;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    text-decoration: none;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.category-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* BANNERS INTERSEÇÃO */
.intersection-banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 3rem 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

.intersection-banner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 2rem;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* FOOTER */
.main-footer {
    background: linear-gradient(to right, var(--dark-gray), #2c3e50);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.75rem 1.25rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    background-color: var(--accent-color);
    border: none;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.newsletter-form .btn:hover {
    background-color: #e55a2b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .logo-container img {
        max-height: 60px;
    }
    
    .header-icons {
        gap: 1rem;
    }
    
    .header-icon span {
        display: none;
    }
    
    .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .main-footer .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .search-modern {
        margin: 1rem 0;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .intersection-banner img {
        height: 180px;
    }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* UTILITÁRIOS */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark)) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}