@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

html {
    scrollbar-width: thin;
    scrollbar-color: #5c5c5c rgba(0, 0, 0, 0.856);
    scroll-behavior: smooth;
    overflow-y: scroll;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: black;
    overflow-x: clip;
}

/* ================= CART ================= */
.cart-btn1,
.cart-btn2 {
    padding-left: 16px;
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    position: relative;
}

.cart-btn2 {
    display: none;
}

.cart-count {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 17px;
    height: 17px;
    position: absolute;
    top: -1px;
    right: 0;
    background: var(--primary-light);
    color: black;
    border-radius: 50%;
    font-size: 12px;
}

.cart-drawer {
    position: absolute;
    top: calc(100% + 20px);
    right: max(20px, calc((100% - 1100px) / 2));
    width: 320px;
    background: var(--card);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    color: #f1f1f1;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 400ms cubic-bezier(.2, .9, .3, 1), transform 400ms cubic-bezier(.2, .9, .3, 1);
    pointer-events: none;
    z-index: 999;
}

.cart-drawer.open {
    opacity: 1;
    top: 102px;
    transform: translateY(0);
    pointer-events: auto;
}

/* ================= BOTTOM SHEET (MOBILE) ================= */
.cart-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: auto;
    max-height: min(80vh, 600px);
    min-height: 300px;
    background: var(--card);
    color: #f1f1f1;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    transition: bottom 0.3s ease;
    z-index: 1000;
    padding: 20px;
    display: none;
    overflow-y: auto;
}


.cart-bottom-sheet.open {
    bottom: 0;
}

.cart-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Estilo unificado para a caixa de itens do carrinho */
.cart-box {
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 10px -12px 0.75rem -12px;
    padding: 0 12px;
    max-height: calc(4 * 80px);
    /* Exibe 4 itens antes de rolar */
    scrollbar-gutter: stable;
    position: relative;
}

.cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-title {
    display: -webkit-box;
    min-height: 2.4em;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cart-item .thumb {
    height: 48px;
    width: 48px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    overflow: hidden;
    font-size: 12px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .thumb img {
    background-color: #FFF;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= MAIN ================= */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

/* ===========================
   🔍 BUSCA INTELIGENTE (UI)
   =========================== */
.search-suggestions {
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: var(--bg) 1px solid;
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    z-index: 200;
}

.suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f7f7f7;
}

.suggestion-item.product-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item.product-suggestion:hover {
    background: #f8f8f8;
}

.suggestion-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    line-height: 1.2;
}

.suggestion-price {
    font-size: 13px;
    color: #666;
}

.suggestion-separator {
    height: 2px;
    background: var(--bg);
    margin: 0 10px;
    border-radius: 50%;
}

/* ================= SIDEBAR ================= */
.sidebar {
    align-self: start;
    background-color: var(--containers);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.filter-group {
    margin-bottom: 8px;
}

.filter-group h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--primary);
}

.cat-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-toggle .arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    transition: transform 0.25s ease;
}

.cat-toggle.active .arrow {
    transform: rotate(180deg);
    border-top: 6px solid var(--primary);
}

.subcats {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        max-height 0.35s ease,
        opacity 0.3s ease,
        transform 0.35s ease;
}

.subcats.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* ================ CARROSSEL ================ */
.carrossel-de-propagandas {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 3;
    max-width: 980px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.carrossel-de-propagandas .carousel-track {
    display: flex;
    transition: transform 450ms ease;
    will-change: transform;
}

.carrossel-de-propagandas .carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carrossel-de-propagandas img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.carrossel-de-propagandas .carousel-btn {
    display: none;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    gap: 6px;
}

.carousel-dots button {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
}

.carousel-dots button.active {
    background: #fff;
}

.carrossel-de-propagandas-mobile {
    display: none;
}

/* ================= PRODUCTS ================= */

/* (EMPTY STATE) */
.no-products-container {
    grid-column: 1 / -1; /* Ocupa a largura total da grid de produtos */
    background: var(--containers);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    animation: fadeIn 0.35s ease-out forwards;
}

.no-products-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 146, 107, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.no-products-container h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.no-products-container p {
    margin: 0;
    font-size: 14px;
    color: var(--muted); 
    max-width: 400px;
    line-height: 1.5;
}

.no-products-container .btn {
    margin-top: 8px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap);
    align-items: stretch;
}

.card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(20, 55, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    animation: fadeIn 0.35s ease-out forwards;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #a9cdbd;
    box-shadow: 0 8px 20px rgba(20, 77, 56, 0.13);
}

.card .thumb {
    box-sizing: border-box;
    height: 164px;
    padding: 12px;
    border-radius: 0;
    border-bottom: 1px solid #e8efeb;
    background: #fff;
}

.card-info {
    box-sizing: border-box;
    flex: 0 0 100px;
    height: 100px;
    min-width: 0;
    padding: 12px 14px 0;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    color: #252e29;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.card-desc {
    font-size: 13px;
    color: #6f7973;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em; /* 2 linhas * 1.4 line-height */
    word-break: break-word;
    overflow-wrap: break-word;
}

.thumb {
    height: 160px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= TOPBAR ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-mobile {
    display: none;
}

.search {
    flex: 1;
    min-width: 200px;
}

.products {
    display: none;
}

/* ================= PAGINATION (MINIMALISTA) ================= */
.pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
}

.pagination button {
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
    user-select: none;
}

.pagination button[disabled] {
    cursor: default;
    opacity: 0.5;
}

.pagination button:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.pagination button.active {
    color: #5c5c5c;
    font-weight: 700;
    transform: translateY(-2px);
}

.pagination button.nav {
    font-size: 14px;
    color: var(--muted);
    opacity: 0.8;
}

.pagination button.nav:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
    opacity: 1;
}


/* ================= WIDGET CARRINHO ARRASTÁVEL ================= */
.draggable-cart-widget {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: linear-gradient(135deg, var(--card), var(--header));
    border-radius: 50%;
    box-shadow: 0 2px 20px rgba(27, 27, 27, 0.4);
    cursor: grab;
    z-index: 900;
    touch-action: none;
    user-select: none;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    transition: box-shadow 0.2s ease;
    transform: none !important;
}

.draggable-cart-widget:active {
    cursor: grabbing;
}

.draggable-cart-widget.dragging {
    box-shadow: 0 5px 30px var(--card);
}

.draggable-cart-widget.animating .draggable-cart-header img {
    animation: blackhole-out 420ms cubic-bezier(.4, 0, .2, 1);
    transform-origin: center center;
}

.draggable-cart-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.draggable-cart-widget img {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease, opacity 0.25s ease, filter 0.25s ease;
    transform-origin: center center;
}

.draggable-cart-widget.is-open .draggable-cart-header img {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.draggable-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-light);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
}

.draggable-cart-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.draggable-cart-widget:hover .draggable-cart-tooltip {
    opacity: 1;
}

/* ================= ANIMAÇÕES ================= */
@keyframes blackhole-out {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    60% {
        transform: scale(0.8) rotate(260deg);
        opacity: 0.85;
        filter: blur(2px);
    }

    100% {
        transform: scale(0) rotate(720deg);
        opacity: 0;
        filter: blur(8px);
        border-radius: 50%;
    }
}

.cart-icon.animating {
    animation: blackhole-out 420ms cubic-bezier(.4, 0, .2, 1);
    transform-origin: center center;
}

.anim-blackhole {
    animation: blackhole-out 420ms cubic-bezier(.4, 0, .2, 1);
    transform-origin: center center;
    display: inline-block;
}

@keyframes pop-in {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.anim-pop-in {
    animation: pop-in 260ms ease-out;
}

@keyframes jump {
    0% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-8px) scale(1.06);
    }

    60% {
        transform: translateY(3px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.anim-jump {
    animation: jump 520ms cubic-bezier(.34, 1.56, .64, 1);
}

/* ================= STATUS DE ESTOQUE (LOJA) ================= */
.stock-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    align-self: flex-start;
}

.card .meta {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 14px;
}

.card .stock-status {
    margin: 0;
}

.stock-status.em-estoque {
    color: var(--primary);
    background-color: #e6fff6;
    /* Cor de fundo suave para Em Estoque */
}

.stock-status.esgotado {
    color: #d00;
    /* Vermelho para Esgotado */
    background-color: #ffe6e6;
    /* Cor de fundo suave para Esgotado */
}

.card .actions button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ================= DESTAQUE DE PREÇO (CARDS) ================= */
.price-container-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 3px;
    margin: 8px 0 12px;
}

.price-old {
    flex-basis: auto;
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.price-discounted {
    font-size: 20px;
    font-weight: 700;
    color: #d00;
    line-height: 1.2;
}

.discount-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background-color: #e6fff6;
    padding: 3px 6px;
    border-radius: 4px;
    align-self: flex-start;
    margin: 0;
}

.card .actions {
    margin-top: auto;
}

.card .actions button {
    width: 100%;
    min-height: 42px;
}

/* ================= RADIOS CUSTOMIZADOS ================= */
.cat-all {
    margin-top: 10px;
    padding-left: 13px;
}

.radio-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-rot {
    display: inline-flex;
}

.radio-rot input[type="radio"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    border-radius: 35%;
}

.radio-rot input[type="radio"]:checked {
    background: var(--card);
    border: 2px solid var(--primary-light);
}

.radio-rot input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

label {
    display: flex;
    align-items: center;
    /* alinha verticalmente */
    gap: 6px;
    /* espaço entre o radio e o texto */
}

/* CONTAINER */
.custom-select-wrapper {
    position: relative;
}

.custom-options-list {
    position: absolute;
    width: 100%;
    max-width: 208px;
    top: calc(100% + 4px);
    left: 0;
    list-style: none;
    padding: 5px;
    margin-top: 4px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    z-index: 300;
    display: none;
    /* começa fechado */
}

#sort-button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

#sort-button:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 146, 107, 0.1);
}

.custom-option {
    padding: 5px 7px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 2px;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.custom-option.disabled {
    color: var(--muted);
    pointer-events: none;
    opacity: 0.55;
}

.custom-option:hover,
.custom-option:focus {
    background: #6e6e6e7a;
    color: #fff;
    outline: none;
}

.custom-option.selected {
    background: rgba(71, 255, 206, 0.12);
    color: var(--primary);
    font-weight: bold;
}

.custom-select-trigger.is-open .arrow-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.arrow-icon {
    color: var(--muted);
    transition: transform 0.3s;
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    .cart-drawer {
        display: none;
    }

    .cart-bottom-sheet {
        display: block;
    }

    .anim-blackhole {
        transform-origin: 60% 50%;
    }

    .logo {
        max-height: 60px;
    }

    .draggable-cart-widget {
        display: flex;
    }

    main {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .topbar {
        display: none;
    }

    section {
        order: 3;
    }

    #sort-container {
        position: relative;
        z-index: 300;
    }

    .custom-options-list {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        max-width: calc(100% - 12px);
        display: none;
        background: #fff;
        border: 1px solid #d0d0d0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        padding: 5px;
        z-index: 9999;
    }

    .custom-options-list.show {
        display: block;
    }

    .sidebar {
        align-self: stretch;
        order: 1;
        display: block;
        margin-bottom: 10px;
        overflow: visible;
    }

    .radio {
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 35%;
        border: 2px solid var(--primary);
        background: #fff;
        display: grid;
        place-items: center;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        position: relative;
    }

    /* Núcleo interno quando checked */
    .radio::after {
        content: "";
        width: calc(22px - 8px);
        height: calc(22px - 8px);
        border-radius: 35%;
        background: transparent;
        transform: scale(0.6);
        transition: transform 160ms ease, background 160ms ease;
    }

    /* Estados */
    .radio:checked {
        border-color: var(--primary);
        background: #f0f1ff;
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18);
    }

    .radio:checked::after {
        background: var(--primary);
        transform: scale(1);
    }

    .radio:focus-visible {
        outline: none;
        box-shadow: 0 0 0 calc(2px + 2px) rgba(79, 70, 229, 0.35);
        border-color: var(--primary);
    }

    .category-item {
        margin-bottom: 8px;
        cursor: pointer;
    }

    .category-item .category-title {
        display: inline-block;
        font-weight: 700;
        color: var(--primary);
    }

    .subcategory-list {
        display: none;
        padding-left: 12px;
        margin-top: 6px;
    }

    .category-item.open .subcategory-list {
        display: block;
    }

    .category-item label {
        display: block;
        margin: 6px 0;
        font-weight: 500;
        color: #333;
        cursor: pointer;
    }

    .category-item .category-title:hover {
        color: var(--primary-light);
    }


    .topbar-mobile {
        order: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 8px;
        border-radius: var(--radius);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }

    .products {
        display: block;
        padding-bottom: 15px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        position: relative;
    }

    .hamburger {
        padding-left: 12px;
        display: flex;
    }

    .navbar {
        flex-direction: column;
        align-items: end;
        background-color: #111111;
        width: 100%;
        order: 10;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 300px;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
        padding: 10px 20px;
    }

    .cart-btn1 {
        display: none;
    }

    .cart-btn2 {
        display: block;
        margin-left: auto;
        position: relative;
        z-index: 2;
        width: 44px;
        height: 44px;
        padding: 0;
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-btn2 .cart-icon {
        width: 35px;
        height: 35px;
        padding-left: 0 !important;
        object-fit: contain;
    }

    .cart-btn2 .cart-count {
        top: 0;
        right: 0;
    }

    .carrossel-de-propagandas {
        display: none;
    }

    .carrossel-de-propagandas-mobile {
        display: block;
        max-width: 100%;
        margin: 0 auto 12px;
        border-radius: 8px;
        aspect-ratio: 12 / 7;
        height: auto;
        overflow: hidden;
        background: #111;
        touch-action: pan-y;
        position: relative;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    }

    .carrossel-de-propagandas-mobile .carousel-track-mobile {
        display: flex;
        transition: transform 450ms ease;
        will-change: transform;
        min-width: 100%;
        box-sizing: border-box;
        height: 100%;
    }

    .carousel-slide-mobile {
        flex: 0 0 100%;
        min-width: 100%;
        height: 100%;
    }

    .carrossel-de-propagandas-mobile img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    .carousel-dots button {
        width: 9px;
        height: 9px;
        background: rgba(255, 255, 255, 0.45);
    }
}

@media (max-width: 420px) {
    .carrossel-de-propagandas {
        aspect-ratio: 14 / 8;
    }
}


/* Animação suave de surgimento dos cards */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(12px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Esqueleto de carregamento (Skeleton Screen) */
@keyframes skeletonPulse {
    0% { background-color: #e8e8e8; }
    50% { background-color: #f5f5f5; }
    100% { background-color: #e8e8e8; }
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-box {
    animation: skeletonPulse 1.4s infinite ease-in-out;
    border-radius: 6px;
}

.skeleton-img { height: 180px; width: 100%; }
.skeleton-title { height: 18px; width: 85%; }
.skeleton-desc { height: 14px; width: 60%; }
.skeleton-price { height: 24px; width: 40%; margin-top: auto; }