:root {
    --primary-color: var(--cor-principal);
    --secondary-color: var(--cor-secundaria);
    --text-color: var(--cor-texto);
    --background-color: #FFFFFF;
    --hover-color: var(--cor-secundaria);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navbar customization */
.navbar {
    padding: 1rem 0;
    background-color: var(--background-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav {
    margin-left: 2rem;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

/* Hero Slider */
.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Quando não há imagem de fundo */
.hero-slide:not([style*="background-image"]) {
    background: linear-gradient(45deg, var(--cor-principal), var(--cor-secundaria));
}

.hero-slide:not([style*="background-image"])::before {
    display: none;
}

/* Container Box*/
.container.py-4 {
        margin-top: 30px;
}

/* Protudos Cards*/
h5.card-title{
    color: var(--cor-texto);
    font-size: 1.1rem;
}

/* Product Grid */
.product-card {
    transition: transform 0.2s;
    height: 100%;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.card-img-wrapper {
    position: relative;
    padding-top: 100%; /* Aspecto 1:1 */
    overflow: hidden;
    background: #f8f9fa;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.card-text.category {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.card-text.sizes {
    color: #495057;
    margin-bottom: 0.5rem;
}

.price-cart-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.btn-add-cart {
    padding: 0.375rem 0.75rem;
    background-color: var(--cor-principal);
    border: none;
    color: var(--cor-terciaria);
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background-color: var(--cor-secundaria);
    color: #fff !important;
}

.btn-add-cart i {
    font-size: 1.2rem;
}

/* Filtros */
.filter-section {
    margin-bottom: 2rem;
}

.filter-section h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cor-principal);
}

.filter-section .form-check {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-label {
    color: #495057;
    cursor: pointer;
}

.filter-section .form-check-input:checked + .form-check-label {
    color: var(--cor-principal);
    font-weight: 500;
}

/* Estilo do contador do carrinho */
.nav-item {
    position: relative;
}

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.cart-button .bi-cart3 {
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
    padding: 3px 5px;
    line-height: 1;
}

/* Animação de loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .bi-cart-plus::before {
    content: "\F130";
    animation: spin 1s linear infinite;
}

/* Toast customization */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-container {
    z-index: 1050;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Filtros Laterais */
.filter-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h6 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-check-input:checked {
    background-color: var(--cor-principal);
    border-color: var(--cor-principal);
}

.form-check-input:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 0.2rem rgba(var(--cor-principal-rgb), 0.25);
}

.form-check-label {
    color: var(--cor-texto);
    cursor: pointer;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:hover {
    border-color: var(--cor-principal);
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Ícones de redes sociais */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--cor-principal);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--cor-secundaria);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--cor-principal);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    color: var(--cor-principal);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--cor-secundaria);
    transform: translateY(-3px);
}

.footer p {
    margin-bottom: 0;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer address {
    color: #6c757d;
    line-height: 1.8;
}

.footer address p {
    margin-bottom: 0.5rem;
}

.footer address i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer .btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

.footer .btn-whatsapp i {
    font-size: 1.2rem;
}

.footer hr {
    margin: 2rem 0;
    opacity: 0.1;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer h5 {
        margin-top: 1.5rem;
    }
    
    .footer address {
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        margin: 0 auto 1rem;
        display: block;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 300px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .btn-add-cart {
        width: 35px;
        height: 35px;
    }
}

/* Carrinho página */
.cart-page {
    padding-top: 5rem !important;
}

.cart-page h4 {
    color: var(--text-color);
}

/* Passos do carrinho */
.cart-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}

.cart-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.cart-steps .step.active {
    color: var(--cor-principal);
}

.cart-steps .step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cart-steps .step.active .step-icon {
    background-color: var(--cor-principal);
    border-color: var(--cor-principal);
    color: white;
}

.cart-steps .step-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Itens do carrinho */
.cart-items .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.cart-items .card-body {
    padding: 1.5rem;
}

.cart-items .card img {
    max-height: 100px;
    object-fit: cover;
}

.cart-items .input-group {
    width: 120px;
}

.cart-items .input-group input {
    text-align: center;
}

.cart-items .btn-link {
    color: var(--danger);
    padding: 0;
}

.cart-items .btn-link:hover {
    color: var(--danger-dark);
}

/* Resumo do pedido */
.cart-summary .card {
    border: none;
    border-radius: 1rem;
}

.cart-summary .card-body {
    padding: 2rem;
}

.cart-total {
    color: var(--cor-principal);
}

/* Responsivo */
@media (max-width: 768px) {
    .cart-steps {
        gap: 1.5rem;
    }
    
    .cart-steps .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .cart-steps .step-text {
        font-size: 0.8rem;
    }
}
