/* style.css */

:root {
    --primary-color: #1976d2; /* Cor principal da loja */
    --font-color: #1a1a1a;    /* Cor da fonte principal */
    --light-bg: #f8f9fa;      /* Cor de fundo claro */
}

body {
    background-color: var(--light-bg);
    padding-bottom: 80px; /* Espaço para o menu de navegação inferior */
}

/* Header */
.app-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    color: var(--font-color);
}
.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navegação Inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    text-decoration: none;
    position: relative;
}
.bottom-nav-item.active {
    color: var(--primary-color);
}
.bottom-nav-label {
    font-size: 0.7rem;
}

/* Banner da Página Principal */
.banner-card {
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    color: white;
}
.banner-card .banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.8);
    transform: scale(1.1);
    z-index: 0;
}
.banner-card .card-img {
    position: relative;
    max-height: 350px;
    width: 100%;
    object-fit: contain;
    z-index: 1;
}
.banner-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    justify-content: flex-end;
    z-index: 2;
}

/* Rolagem de Categorias */
.categories-scroll {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}
.categories-scroll .btn {
    flex: 1 1 auto;
    min-width: fit-content;
}

/* Card de Produto */
.product-card {
    text-decoration: none;
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    width: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-card-img-container {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card-img-container .product-card-img-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.8);
    transform: scale(1.1);
    z-index: 0;
}
.product-card .card-img-top {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--font-color);
    min-height: 3em; /* Para alinhar os cards */
}
.product-description {
    font-size: 0.85rem;
    color: #666;
    min-height: 2.5em; /* Para alinhar os cards */
}

/* Responsividade dos Cards de Produto */
@media (min-width: 576px) {
    .product-card {
        width: calc(50% - 0.75rem); /* 2 colunas em tablets pequenos */
    }
}

@media (min-width: 768px) {
    .product-card {
        width: calc(33.333% - 1rem); /* 3 colunas em tablets */
    }
}

@media (min-width: 992px) {
    .product-card {
        width: calc(25% - 1.125rem); /* 4 colunas em desktops */
    }
}

/* Página de Detalhes do Produto */
#productCarousel .carousel-item {
    position: relative;
    overflow: hidden;
}
#productCarousel .carousel-item .product-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.8);
    transform: scale(1.1);
    z-index: 0;
}
#productCarousel .carousel-item img {
    position: relative;
    height: 350px;
    object-fit: contain;
    z-index: 1;
}

/* Controles de Quantidade do Produto */
#productQuantity {
    border-left: none;
    border-right: none;
    font-weight: 600;
    -moz-appearance: textfield; /* Remove spinner no Firefox */
}
#productQuantity::-webkit-outer-spin-button,
#productQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#decreaseQty, #increaseQty {
    border-color: #dee2e6;
    transition: all 0.2s;
}
#decreaseQty:hover, #increaseQty:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
#decreaseQty:active, #increaseQty:active {
    transform: scale(0.95);
}

/* Botões de Ação do Produto */
#addToCartBtn {
    font-weight: 600;
    transition: all 0.3s;
    border-width: 2px;
}
#addToCartBtn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
#addToCartBtn:active:not(:disabled) {
    transform: translateY(0);
}
#buyNowBtn {
    font-weight: 600;
    transition: all 0.3s;
    background-color: #25d366;
    border-color: #25d366;
}
#buyNowBtn:hover:not(:disabled) {
    background-color: #1fb855;
    border-color: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
#buyNowBtn:active:not(:disabled) {
    transform: translateY(0);
}
#addToCartBtn:disabled, #buyNowBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Página do Carrinho */
.cart-item-card {
    height: 150px;
    overflow: hidden;
}
.cart-item-card .row {
    height: 100%;
    margin: 0;
}
.cart-item-card .col-3,
.cart-item-card .col-9 {
    padding: 0;
}
.cart-item-card .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem 0 0 0.375rem;
}
.cart-item-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0.75rem;
}
.cart-item-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.2;
}
.cart-item-card .card-text {
    margin-bottom: 0.5rem;
}
.cart-item-card .btn-link {
    padding: 0;
    line-height: 1;
}
.cart-item-card .input-group-sm {
    font-size: 0.8rem;
}
.cart-item-card .input-group-sm .btn {
    padding: 0.25rem 0.5rem;
}
.cart-item-card .input-group-sm input {
    padding: 0.25rem;
    font-size: 0.8rem;
}
.cart-item-card small {
    font-size: 0.75rem;
}

/* Página Sobre */
.about-header-card {
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
}
.about-header-card .card-body {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}
.about-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: -50px;
}
.social-card {
    border-radius: 0.75rem;
}
.whatsapp-card { background-color: #25d366!important; }
.facebook-card { background-color: #3b5998!important; }
.tiktok-card { background-color: #000000!important; }
.maps-card { background-color: #4285F4!important; }
.instagram-card { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: gray;
}
