/* Arquivo migrado para Tailwind CSS. As classes utilitárias agora são usadas diretamente no HTML. */
/* Se desejar, remova este arquivo ou mantenha apenas regras customizadas que não existam no Tailwind. */

/* Estilos principais do site público - catalogo/assets-publico.css */

body, html {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f8f9fa;
}
body {
    padding-top: 10px !important;
}
header.bg-primary {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    width: 100vw;
    min-height: 54px;
    background: var(--bs-primary, #0d6efd);
    box-sizing: border-box;
}
header .container-fluid {
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}
header .bi-bag {
    position: relative;
}
#mini-carrinho-toggle {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    position: relative;
    z-index: 1100;
    padding: 0 2px;
}
#mini-carrinho {
    box-shadow: 0 2px 12px #0001 !important;
    border-radius: 22px !important;
    min-width: 340px !important;
    max-width: 400px !important;
    width: 100%;
    right: 4px;
    left: auto;
    top: 100%;
    border-radius: 18px;
    display: none;
    z-index: 1090;
    color: #222 !important;
    background: #fff !important;
    font-size: 0.97rem !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    padding-bottom: 0.5rem;
}
#mini-carrinho-lista {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #fafbfc;
}
#mini-carrinho-lista::-webkit-scrollbar {
    width: 7px;
    background: #fafbfc;
}
#mini-carrinho-lista::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 8px;
}
.produto-carrinho-item {
    border-radius: 12px;
    border: 1px solid #f1f1f1;
    background: #fafbfc;
    margin-bottom: 14px;
    padding: 14px 12px 12px 12px;
    font-size: 1.08rem;
    align-items: flex-start !important;
    box-shadow: 0 2px 8px #0001;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.produto-carrinho-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.produto-carrinho-detalhes {
    min-width: 0;
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.produto-carrinho-titulo {
    font-size: 0.97rem !important;
    font-weight: 400 !important;
    color: #222 !important;
    margin-bottom: 0 !important;
    line-height: 1.2;
    word-break: break-word;
    margin-bottom: 2px;
}
.referencia {
    font-size: 0.97rem;
    color: #888;
    margin-bottom: 2px;
    display: block;
    word-break: break-word;
}
.produto-carrinho-qtd {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0 !important;
}
.produto-carrinho-preco {
    font-size: 0.97rem !important;
    font-weight: 500 !important;
    color: #222 !important;
    margin-left: 8px !important;
    white-space: nowrap;
}
#mini-carrinho-lista .btn, #mini-carrinho-lista .btn-outline-secondary {
    font-size: 1.08rem !important;
    font-weight: 400 !important;
    padding: 2px 12px !important;
    border-radius: 10px !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #222 !important;
    transition: background .2s, color .2s;
}
#mini-carrinho-lista .btn-outline-secondary:hover {
    background: #f1f1f1;
}
#mini-carrinho-lista .bi-trash {
    font-size: 1.18rem;
    color: #d32f2f !important;
}
#mini-carrinho-lista .mx-1 {
    margin-left: 8px !important;
    margin-right: 8px !important;
}
#mini-carrinho.show {
    display: block !important;
}

/* Badge do carrinho acima do ícone */
#mini-carrinho-toggle {
    position: relative;
}
#mini-carrinho-qtd-badge {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    min-width: 22px;
    height: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #0002;
    z-index: 20;
    border: 2px solid #fff;
    pointer-events: none;
}
@media (max-width: 600px) {
    #mini-carrinho-qtd-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.85rem;
        top: -14px;
    }
}

/* Footer Moderno */
footer.modern-footer {
    font-size: 1rem;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 16px #0001;
    margin-top: 3rem;
}
.modern-footer-row {
    display: flex;
    flex-wrap: wrap !important;
    gap: 2rem 1.5rem;
    justify-content: center;
    align-items: flex-start;
}
.modern-footer-col {
    border-right: none !important;
    min-width: 200px !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
    flex: 1 1 220px;
    box-sizing: border-box;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 1.2rem 1rem 1rem 1rem;
    box-shadow: 0 1px 6px #0001;
    transition: box-shadow .2s;
}
.modern-footer-col:hover {
    box-shadow: 0 4px 16px #0002;
}
.modern-footer-title {
    font-size: 1.12em;
    font-weight: 600;
    color: #2d3a4a;
    letter-spacing: 0.01em;
}
.modern-footer-item {
    font-size: 1em;
    color: #444;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modern-footer-frete {
    color: #1eaa52 !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.modern-footer-mapa iframe {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.modern-footer-hr {
    border-top: 1.5px solid #e5e7eb;
    margin-top: 2rem !important;
    margin-bottom: 1.2rem !important;
}
.modern-footer-copy {
    font-size: 0.98em;
    color: #888;
    text-align: center;
    letter-spacing: 0.01em;
}
@media (min-width: 992px) {
    .modern-footer-row {
        flex-wrap: nowrap !important;
        gap: 0 2.5rem;
    }
    .modern-footer-col {
        min-width: 180px !important;
        max-width: 400px !important;
        margin-bottom: 0;
    }
}
@media (max-width: 991px) {
    .modern-footer-row > div { min-width: 180px !important; max-width: 100% !important; }
    .modern-footer-copy { font-size: 0.95em; }
}
@media (max-width: 575px) {
    .modern-footer-row {
        flex-direction: column !important;
        gap: 1.2rem 0;
        align-items: stretch;
    }
    .modern-footer-col {
        min-width: 0 !important;
        max-width: 100% !important;
        margin-bottom: 1.2rem;
        border-right: none !important;
        padding: 1.2rem 2.2rem 1rem 2.2rem; /* padding lateral maior para afastar bem do canto */
        box-shadow: none;
        background: transparent;
    }
    .modern-footer-title, .modern-footer-item, .modern-footer-frete, .modern-footer-copy {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    .modern-footer-title {
        margin-bottom: 0.7rem;
        font-size: 1.08em;
    }
    .modern-footer-item {
        font-size: 1em;
        margin-bottom: 0.25rem;
        gap: 0.7rem;
    }
    .modern-footer-frete {
        margin-top: 0.5rem;
        font-size: 0.98em;
    }
    .modern-footer-hr {
        margin-left: 2.2rem !important;
        margin-right: 2.2rem !important;
    }
    .modern-footer-copy {
        padding-left: 2.2rem;
        padding-right: 2.2rem;
        text-align: left !important;
    }
}

/* Checkout Moderno, Responsivo e Agradável */
.checkout-main {
    max-width: 100vw;
    margin: 0 auto;
    background: #f4f6fa;
    min-height: 100vh;
    padding: 0 0.5rem;
}
.checkout-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0001;
    padding: 1.2rem 0.7rem 1.1rem 0.7rem;
    margin-bottom: 1.2rem;
}
.checkout-card label.form-label {
    font-weight: 500;
    color: #2d3a4a;
    margin-bottom: 0.3rem;
}
.checkout-card .form-control, .checkout-card .form-select {
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    font-size: 1.08em;
    padding: 1rem 1.2rem;
    background: #fafbfc;
    margin-bottom: 0.7rem;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 4px #0001;
    width: 100%;
    min-width: 0;
}
.checkout-card .form-control:focus, .checkout-card .form-select:focus {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 2px #0d6efd22;
    background: #fff;
}
.checkout-card textarea.form-control {
    min-height: 60px;
    resize: vertical;
}
.checkout-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a2a3a;
    letter-spacing: 0.01em;
}
.checkout-card h5 {
    font-size: 1.13rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    color: #2d3a4a;
}
.checkout-card .btn-primary {
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.9rem 0;
    margin-top: 1.2rem;
    box-shadow: 0 2px 8px #0d6efd22;
    transition: background .2s, box-shadow .2s;
    letter-spacing: 0.01em;
}
.checkout-card .btn-primary:hover {
    background: #0b5ed7;
    box-shadow: 0 4px 16px #0d6efd22;
}
.checkout-card .list-group-item {
    background: #fafbfc;
    border: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px #0001;
    padding: 0.8rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.checkout-card .card-header {
    background: #f8f9fb;
    border-radius: 12px 12px 0 0;
    font-size: 1.13em;
    font-weight: 600;
    color: #2d3a4a;
    border: none;
    padding: 0.8rem 1rem;
}
.checkout-card .card-footer {
    background: #f8f9fb;
    border-radius: 0 0 12px 12px;
    border: none;
    font-size: 1.13em;
    font-weight: 500;
    color: #2d3a4a;
    padding: 0.8rem 1rem;
}
.checkout-card .badge {
    font-size: 1.08em;
    border-radius: 8px;
    padding: 0.5em 1em;
}
.checkout-card .fw-semibold {
    font-weight: 600 !important;
}
.checkout-card .fw-bold {
    font-weight: 700 !important;
}
.checkout-card .img-produto-carrinho {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
}
.pedido-resumo-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0001;
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.2rem;
}
.pedido-resumo-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 1.2rem;
}
.pedido-resumo-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pedido-resumo-lista li {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f1f1;
    padding: 0.7rem 0;
}
.pedido-resumo-lista img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
.pedido-resumo-titulo {
    font-weight: 600;
    font-size: 1.05em;
    color: #222;
}
.pedido-resumo-qtd {
    font-size: 1em;
    color: #555;
}
.pedido-resumo-preco {
    font-weight: 600;
    color: #1eaa52;
    min-width: 90px;
    text-align: right;
}
.pedido-resumo-total {
    font-size: 1.13em;
    font-weight: 700;
    color: #0d6efd;
}
.checkout-cupom {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 8px #0001;
    padding: 1.1rem 1rem 1rem 1rem;
    margin-bottom: 1.1rem;
}
.checkout-cupom .input-group {
    display: flex;
    gap: 0.5rem;
}
.checkout-cupom input {
    flex: 1 1 0%;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    padding: 0.7rem 1rem;
    font-size: 1em;
}
.checkout-cupom button {
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    background: #e5e7eb;
    color: #888;
    border: none;
}
.checkout-cupom button:enabled {
    background: var(--bs-primary, #0d47a1);
    color: #fff;
    cursor: pointer;
}
.btn-primary, .btn[style*='background:#0d47a1'] {
    background: #0d47a1 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px #0d47a122;
}

/* Estilos migrados de produto.php */
.produto-image {
    cursor: pointer;
    transition: all 0.2s ease;
}
.produto-image:hover {
    border-color: #1d4ed8;
}
.produto-image.active {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px #1d4ed8;
}
.card-produto {
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-produto:hover {
    transform: translateY(-5px);
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#quantidade::-webkit-outer-spin-button,
#quantidade::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#quantidade {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Toast carrinho */
#toast-carrinho {
    display: none;
    position: fixed;
    z-index: 9999;
    bottom: 32px;
    right: 32px;
    min-width: 260px;
    max-width: 90vw;
    background: #fff;
    border-left: 5px solid #22c55e;
    box-shadow: 0 4px 24px #0002;
    padding: 18px 24px 18px 18px;
    border-radius: 12px;
    gap: 12px;
    align-items: center;
    transition: all .3s;
    opacity: 0;
    pointer-events: none;
}
.toast-carrinho-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-carrinho-icon {
    background: #22c55e;
    padding: 7px 10px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
}
.toast-carrinho-msg {
    font-weight: 600;
    color: #222;
    font-size: 1em;
}
.toast-carrinho-acao {
    margin-top: 2px;
    font-size: .95em;
    color: #666;
}
.toast-carrinho-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}
/* Títulos e descrições de produto */
.produto-titulo {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.produto-descricao {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Estilos migrados de catalogos.php */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f8f9fa;
}
.catalogo-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.letra-indice {
    width: 40px;
    height: 40px;
    /* Adicione outros estilos conforme necessário */
}

/* Ajustes responsivos para o slide/banner da página inicial */
@media (max-width: 768px) {
  .banner-swiper {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  .banner-swiper img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: contain !important;
    display: block;
    background: #fff;
  }
  .swiper-button-prev,
  .swiper-button-next {
    top: 50% !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.3em !important;
    background: rgba(255,255,255,0.85) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px #0002 !important;
    color: #1857c2 !important;
    transform: translateY(-50%);
  }
  .swiper-pagination {
    bottom: 8px !important;
  }
}
@media (max-width: 480px) {
  .banner-swiper img {
    max-height: 140px !important;
  }
}
