.loja-body {
    background: linear-gradient(135deg, var(--creme) 0%, var(--creme-escuro) 100%);
    color: var(--texto-escuro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: pageFadeIn 0.8s ease forwards;
}

@keyframes pageFadeIn {
    to {
        opacity: 1;
    }
}

.loja-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 234, 224, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(92, 48, 32, 0.08);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    z-index: 1100;
    height: 65px;
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    gap: 12px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: max-content;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transicao-rapida);
}

.auth-logo:hover {
    transform: scale(1.02);
}

.auth-logo-texto {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.auth-logo .logo-tua {
    font-size: 2.2rem;
}

.auth-logo .logo-pele {
    font-size: 1.6rem;
}

.auth-lema {
    font-family: var(--fonte-titulo);
    font-size: 0.95rem;
    color: var(--marrom);
    font-weight: 300;
    margin-top: -6px;
    margin-left: 20px;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1;
}

.logo-tua {
    font-family: var(--fonte-script), cursive;
    color: var(--marrom);
    line-height: 1;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.logo-pele {
    font-family: var(--fonte-titulo), serif;
    font-weight: 900;
    color: var(--marrom);
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 0.03em var(--marrom);
}

.header-search-container {
    flex-grow: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.search-categories-btn {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid var(--marrom-palido);
    background: var(--branco);
    padding: 0 15px;
    color: var(--marrom);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(92, 48, 32, 0.02);
}

.search-categories-btn:hover {
    border-color: var(--marrom);
    box-shadow: 0 0 0 3px rgba(92, 48, 32, 0.05);
}

.search-categories-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    color: var(--marrom-claro);
    font-weight: 500;
}

.search-categories-text i {
    color: var(--marrom);
    flex-shrink: 0;
}

.search-categories-text .category-slide {
    display: inline-block;
    animation: slideInOut 4s infinite ease-in-out;
    opacity: 0;
    position: absolute;
    left: 40px;
    right: 15px;
    color: var(--texto-medio);
}

@keyframes slideInOut {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    20% {
        opacity: 1;
        transform: translateX(0);
    }

    80% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.hamburger-btn {
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.05);
    color: var(--marrom);
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(92, 48, 32, 0.1);
}

.hamburger-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-2px);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    backdrop-filter: blur(5px);
    z-index: 1450;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transicao-lenta);
}

.drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1500;
    background: var(--creme-claro);
    box-shadow: var(--sombra-xl);
    padding: var(--space-12) var(--space-6);
    transition: left var(--transicao-lenta);
    border-right: 1px solid rgba(92, 48, 32, 0.12);
}

.nav-drawer.aberto {
    left: 0;
}

.drawer-brand {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: var(--space-10);
}

.drawer-brand .logo-tua {
    font-size: 2.5rem;
}

.drawer-brand .logo-pele {
    font-size: 1.8rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-full);
    color: var(--marrom);
    font-family: var(--fonte-corpo);
    font-size: var(--texto-md);
    font-weight: 700;
    transition: all var(--transicao-normal);
    text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--marrom);
    color: var(--creme);
    transform: translateX(4px);
}

.content-wrapper {
    min-height: calc(100vh - 180px);
    padding-top: 85px;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: contentSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes contentSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-family: var(--fonte-titulo);
    font-size: 26px;
    font-weight: 700;
    color: var(--marrom);
    margin: 15px 0 25px 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--marrom-palido), transparent);
    border-radius: 2px;
}

.horizontal-section {
    margin-bottom: 35px;
}

.products-horizontal-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 10px 20px 20px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}

.products-horizontal-grid::-webkit-scrollbar {
    display: none;
}

.products-horizontal-grid .product-card {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    margin-bottom: 0;
    height: auto;
}

@media (max-width: 768px) {
    .products-horizontal-grid .product-card {
        flex: 0 0 170px;
        width: 170px;
        min-width: 170px;
    }
}

.filters-wrapper {
    position: sticky;
    top: 65px;
    z-index: 1050;
    background: transparent;
    margin-bottom: 20px;
    width: 100%;
}

.filters-container {
    background: transparent;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1400px;
    margin: 0 auto;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.filters-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    background: var(--branco);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(92, 48, 32, 0.05);
}

.filter-btn:hover {
    background: var(--creme-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--marrom) 0%, var(--marrom-medio) 100%);
    color: var(--creme);
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.2);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.product-card {
    background: var(--branco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(92, 48, 32, 0.06);
    border: 1px solid rgba(92, 48, 32, 0.05);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.product-card.reveal-hidden {
    opacity: 0 !important;
    transform: translateY(40px) !important;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(92, 48, 32, 0.12);
    border-color: rgba(92, 48, 32, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--creme-escuro);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge.destaque {
    background: linear-gradient(135deg, var(--marrom), #3a1e14);
    color: var(--creme);
}

.card-badge.promo {
    background: var(--erro);
    color: var(--branco);
}

.card-badge.erro {
    background: #666;
    color: #fff;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--fonte-titulo);
    font-size: 22px;
    font-weight: 600;
    color: var(--marrom);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-bottom: 0;
}

.stock-info {
    font-family: var(--fonte-corpo);
    font-size: 12px;
    font-weight: 700;
    color: var(--texto-suave);
    background: var(--creme-escuro);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.meta-item {
    background: rgba(92, 48, 32, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--marrom-claro);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 13px;
    color: var(--texto-medio);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.price-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--sucesso);
}

.old-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: var(--texto-suave);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 600;
}

.discount-badge {
    background: var(--erro);
    color: white;
    padding: 2px 6px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
}

.stock-urgent {
    margin-top: 8px;
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    color: var(--erro);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.promo-anim-container {
    position: relative;
    height: 20px;
    width: 100%;
    margin-bottom: 2px;
    overflow: hidden;
}

.promo-anim-container .old-price-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.promo-anim-container .promo-countdown {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--erro);
    font-size: 11px;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.1);
    padding: 0 6px;
    border-radius: 4px;
    width: max-content;
    opacity: 0;
}

.promo-anim-container.animate .old-price-line {
    animation: fadeOutUp 8s infinite;
}

.promo-anim-container.animate .promo-countdown {
    animation: fadeInUp 8s infinite;
}

@keyframes fadeOutUp {

    0%,
    45% {
        opacity: 1;
        transform: translateY(0);
    }

    50%,
    95% {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes fadeInUp {

    0%,
    45% {
        opacity: 0;
        transform: translateY(10px);
    }

    50%,
    95% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.selection-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.selection-modal-content {
    background: var(--creme-claro);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(92, 48, 32, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.selection-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.selection-modal-header h3 {
    font-size: 18px;
    color: var(--marrom);
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--marrom);
    opacity: 0.6;
}

.selection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
}

.selection-list::-webkit-scrollbar {
    display: none;
}

.selection-option {
    background: var(--branco);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.05);
    transition: all 0.2s;
}

.selection-option:hover {
    background: var(--creme);
}

.selection-option.active {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 4px 12px rgba(92, 48, 32, 0.15);
}

.loja-footer {
    background: var(--texto-escuro);
    color: rgba(245, 234, 224, 0.6);
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.loja-footer .auth-logo {
    display: inline-flex;
    margin-bottom: 15px;
}

.loja-footer .logo-tua {
    color: var(--creme);
}

.loja-footer .logo-pele {
    color: var(--creme);
    -webkit-text-stroke: 0.03em var(--creme);
}

.loja-footer p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-dev {
    margin-top: 20px;
    font-size: 12px;
}

.dev-link {
    color: var(--creme);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    margin-top: 6px;
}

.message {
    text-align: center;
    padding: 30px;
    color: var(--texto-medio);
    font-weight: 600;
    background: var(--branco);
    border-radius: 16px;
    margin: 20px;
    border: 1px dashed rgba(92, 48, 32, 0.15);
}

@media (max-width: 768px) {
    .loja-header {
        padding: 8px 12px;
    }

    .icon-btn,
    .hamburger-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .auth-logo-texto .logo-tua {
        font-size: 1.6rem;
    }

    .auth-logo-texto .logo-pele {
        font-size: 1.1rem;
    }

    .auth-lema {
        display: none;
    }

    .search-categories-btn {
        height: 36px;
        font-size: 13px;
    }

    .filters-wrapper {
        top: 65px;
    }

    .filters-container {
        padding: 8px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price {
        font-size: 17px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card,
.product-card * {
    box-sizing: border-box;
}

.product-card {
    min-width: 0;
}

.product-info,
.product-title-row,
.price-container,
.product-meta,
.old-price-line,
.promo-anim-container,
.promo-anim-container .old-price-line {
    min-width: 0;
    max-width: 100%;
}

.product-title-row {
    align-items: flex-start;
}

.product-title {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.stock-info {
    flex-shrink: 0;
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.product-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.meta-item {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    min-width: 0;
    max-width: 100%;
}

.price-container {
    gap: 2px;
    overflow: hidden;
}

.product-price {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.old-price-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.old-price {
    display: block;
    flex: 0 1 auto;
    
    min-width: 0;
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discount-badge {
    flex: 0 0 auto;
    
    white-space: nowrap;
    border-radius: 30px !important;
    
}

.promo-anim-container .promo-countdown {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .product-meta {
        gap: 4px;
    }

    .meta-item {
        font-size: 9px;
        padding: 3px 6px;
    }
}

.products-horizontal-grid .product-meta,
.products-horizontal-grid .product-description {
    display: none;
}

.products-horizontal-grid .product-title {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.products-horizontal-grid .product-price,
.products-horizontal-grid .old-price {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile: a altura de cada card da grelha principal fica independente do vizinho */
@media (max-width: 768px) {
    .products-grid {
        align-items: start;
    }

    .products-grid .product-card {
        height: auto !important;
        align-self: start;
    }
}


/* Mobile masonry: cards em colunas independentes, sem alinhamento forçado por linha */
@media (max-width: 768px) {
  .products-grid.masonry-grid {
    display: block !important;
    column-count: 2;
    column-gap: 12px;
    padding-inline: 16px;
  }

  .products-grid.masonry-grid .product-card {
    display: inline-flex;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    height: auto !important;
    align-self: auto !important;
    vertical-align: top;
  }
}

@media (max-width: 400px) {
  .products-grid.masonry-grid {
    column-count: 1;
  }
}

/* Ajuste final mobile: masonry por colunas com prioridade de linha
   1º card à esquerda, 2º à direita, depois empilha por coluna. */
.products-grid.row-priority-masonry .masonry-column {
    display: contents;
}

@media (max-width: 768px) {
    .products-grid.row-priority-masonry {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-inline: 16px;
        column-count: initial !important;
        column-gap: initial !important;
        align-items: start;
    }

    .products-grid.row-priority-masonry .masonry-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .products-grid.row-priority-masonry .product-card {
        width: 100%;
        margin: 0 !important;
        height: auto !important;
        align-self: stretch;
        display: flex;
    }

    .filters-container {
        overflow-x: auto;
        padding-inline: 16px;
        scroll-snap-type: x proximity;
    }

    .filters-inner,
    .filter-buttons,
    #dynamicFilters {
        width: max-content;
        min-width: max-content;
        flex-wrap: nowrap;
    }

    .filter-btn,
    .promo-toggle,
    .status-toggle {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .product-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-meta::-webkit-scrollbar {
        display: none;
    }

    .meta-item {
        flex: 0 0 auto;
        max-width: none;
    }
}

/* Ajuste final: respiro entre colunas/cards no mobile mantendo prioridade de linha */
@media (max-width: 768px) {
    .products-grid.row-priority-masonry {
        column-gap: 18px !important;
        row-gap: 18px !important;
        gap: 18px !important;
        padding-inline: 16px !important;
    }

    .products-grid.row-priority-masonry .masonry-column {
        gap: 18px !important;
    }
}

@media (max-width: 380px) {
    .products-grid.row-priority-masonry {
        column-gap: 14px !important;
        row-gap: 16px !important;
        gap: 16px 14px !important;
        padding-inline: 14px !important;
    }

    .products-grid.row-priority-masonry .masonry-column {
        gap: 16px !important;
    }
}

/* Restaura reticências nas etiquetas dos cards sem afetar os filtros do topo */
.product-card .product-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    overflow: hidden;
    align-items: center;
    scrollbar-width: none;
}

.product-card .product-meta::-webkit-scrollbar {
    display: none;
}

.product-card .product-meta .meta-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .product-card .product-meta {
        overflow: hidden !important;
    }

    .product-card .product-meta .meta-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}
