/* Catálogo Audiocar */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor_gradiente_fundo_1);
    color: var(--fonte_primaria);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    background: #ffffff;
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    max-width: 150px;
}

.logo img {
    width: 100%;
}

.nav-placeholder {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-toggle {
    position: relative;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--cor_fundo_botao);
    color: var(--cor_fonte_botao);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 11px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 21px;
    text-align: center;
}

/* --- Hero Section --- */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    margin-top: 84px;
    margin-bottom: 36px;
}

.hero-content .timer {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--fonte_secundaria);
}

.hero-content .timer .time-num{
    background: #ffffff14;
    border: solid 1px #ffffff50;
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 6px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter Section --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 5rem;
}

.filter-section {
    background: var(--cor_fundo_filtros);
    padding: 2rem;
    border-radius: 6px;
    margin-top: -50px;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.filter-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fonte_secundaria);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pill:hover {
    border-color: var(--fonte_secundaria);
    background: rgba(56, 189, 248, 0.05);
}

.pill strong {
    color: var(--fonte_secundaria);
}

/* --- Product Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--cor_fundo_card);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.card-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.tag-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cor_fundo_botao);
    color: var(--cor_fonte_botao);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-brand {
    color: var(--fonte_secundaria);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-family: 'Oswald', sans-serif;
    text-overflow: ellipsis;
    display: -webkit-inline-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fonte_primaria);
}

.old-price{
    text-decoration: line-through;
    font-size: 14px;
    color: var(--fonte_primaria);
}

.buy-btn {
    background: var(--cor_fundo_botao);
    color: var(--cor_fonte_botao);
    width: 45px;
    height: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.buy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

.cart-add-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--cor_fundo_botao);
    border-radius: 6px;
    background: transparent;
    color: var(--cor_fundo_botao);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-add-btn:hover {
    background: var(--cor_fundo_botao);
    color: var(--cor_fonte_botao);
}

/* --- Footer --- */
footer {
    background: var(--cor_fundo_rodape);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    justify-content: space-between;
}

.footer-brand h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: var(--fonte_secundaria);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
    color: var(--fonte_primaria);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    font-size: 1rem;
    text-wrap: wrap;
    max-width: 200px;
}

.footer-links svg{
    color: var(--fonte_secundaria) !important;
}

.contato-link{
    font-size: 18px;
}

.footer-links a{
    color: var(--fonte_primaria);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero { height: 50vh; }
    .hero-content h1 { font-size: 3rem; }
    .filter-section { margin-top: -30px; padding: 1.5rem; }
    .nav-placeholder{
        font-size: 0.7rem;
    }
    header .container {
        gap: 0.7rem;
    }
    .logo {
        max-width: 120px;
    }
    .grid { gap: 1.5rem; }
    footer .logo{
        max-width: 250px !important;
    }
    footer {
        padding: 2rem 5% 2rem !important;
    }
    .footer-content{
        flex-direction: column;
        align-items: start;
    }
}

.partner-logo{
    max-width: 20px;
    position: relative;
}

.partner-logo img{
    width: 30px;
    height: auto;
    position: absolute;
    top: 0;
}

/* Estilização para Chrome, Edge e Safari */
::-webkit-scrollbar {
    width: 8px; /* Largura da barra vertical */
    height: 8px; /* Altura da barra horizontal */
}

::-webkit-scrollbar-track {
    background: var(--cor_gradiente_fundo_1); /* Cor do fundo da trilha */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Cor da barra em si */
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* Cria um espaçamento interno */
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Cor quando o mouse passa por cima */
}

/* Estilização para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.modal-product{
    opacity: 0;
    visibility: hidden;
    transition: 0.1s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-product.show{
    opacity: 1;
    visibility: visible;
    transition: 0.6s ease;
}

.modal-content{
    width: 1000px;
    height: fit-content;
    border-radius: 4px;
    background-color: var(--cor_fundo_card);
    color: var(--fonte_primaria);
    display: flex;
    flex-direction: column;
    align-items: start;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    max-height: 72vh;
    overflow: auto;
}

#modal-close{
    position: absolute;
    top: 5px;
    right: 5px;
    fill: #fff;
    cursor: pointer;
    z-index: 12;
}

.modal-gallery{
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(to bottom, #3b1e1e, #2a0f0f);
    border-radius: 10px 10px 0 0;
    max-width: 100%;
}

.modal-img{
    max-width: 100%;
    width: 100%;
    height: 400px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img img{
    width: 100%;
    height: auto;
    user-select: none;
}

.swiper-button-prev,
.swiper-button-next{
    background-color: transparent;
    color: var(--cor_fonte_botao);
    border: none;
}

.swiper-button-next:after,
.swiper-button-prev:after{
    font-size: 20px;
}

.modal-body{
    width: 100%;
    display: flex;
    align-items: start;
    flex-direction: column;
    padding: 2rem;
}

.modal-product-header{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.modal-product .card-specs{
    width: 100%;
    padding: 1rem;
}

.modal-product-footer{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.modal-buy-btn{
    text-decoration: none;
    background-color: var(--cor_fundo_botao);
    color: var(--cor_fonte_botao);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.modal-buy-btn:hover{
    filter: brightness(80%);
}

.modal-product .price-box{
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    width: 75%;
}

.modal-product .price-value{
    color: var(--fonte_secundaria);
}

.loading{
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(50px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}
.loading.show{
    opacity: 1;
    visibility: visible;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1100;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    padding: 1.5rem;
    background: var(--cor_fundo_card);
    color: var(--fonte_primaria);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

.cart-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-open .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header,
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-kicker {
    color: var(--fonte_secundaria);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-drawer-header h2 {
    margin: 0.2rem 0 0;
}

.cart-close {
    border: 0;
    background: transparent;
    color: var(--fonte_primaria);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.cart-empty {
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
}

.cart-empty[hidden] {
    display: none;
}

.cart-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cart-item img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.cart-item-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cart-item-info b {
    color: var(--fonte_secundaria);
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.cart-item-actions button {
    min-width: 25px;
    height: 25px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 3px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cart-item-actions .cart-remove {
    border: 0;
    margin-left: auto;
    color: #dc2626;
    font-size: 0.75rem;
}

.cart-drawer-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-total strong {
    color: var(--fonte_secundaria);
    font-size: 1.35rem;
}

.cart-whatsapp {
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 0.85rem 1rem;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 800;
    cursor: pointer;
}

.cart-whatsapp:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.loader {
  height: 15px;
  aspect-ratio: 5;
  background: radial-gradient(closest-side at 37.5% 50%,var(--cor_gradiente_fundo_1) 94%,#0000) 0/calc(80%/3) 100%;
  animation: l47 .75s infinite;
}
@keyframes l47 {
  100% {background-position: 36.36%}
}