.mobile-gallery-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Tab navigation */
.mobile-gallery-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 5px;
    padding-bottom: 5px;
    gap: 8px;
    width: 100%;
}

.mobile-gallery-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-gallery-tab {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #464646;
    font-family: "Manrope", Sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    background-image: linear-gradient(to right, #dddddd, #f3f3f3, #dddddd);
    font-size: 0.9em;
    border: none;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-gallery-tab.active {
    background-image: linear-gradient(to right, #6eb6cb, #89c6da, #6eb6cb);
    color: white;
    box-shadow: 0 1px 4px rgb(0 0 0 / 19%);
}

/* Products grid */
.mobile-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

/* Product card */
.mobile-product-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15)!important;
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* Product image */
.mobile-product-card .product-image {
    position: relative;
    padding-top: 15px;
}

.mobile-product-card .product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    display: block;
    margin-top: 12px;
}

/* Prevent alt‑text from inheriting link color */
.mobile-product-card img {
    color: transparent !important;
}

/* Product material */
.mobile-product-card .product-material {
    position: absolute;
    top: 5px!important;
    left: 5px;
    z-index: 5;
    font-size: 0.9em;
    font-family: "Manrope", Sans-serif;
    font-weight: 500;
    color: #464646;
}

/* Color options */
.mobile-product-card .top-color-options {
    position: absolute;
    top: 5px!important;
    right: 5px;
    display: flex;
    gap: 4px;
    z-index: 5;
}

.mobile-product-card .color-image {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    padding: 0 !important;
    margin: 0 !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
    object-fit: cover;
}

/* Make sure image size is respected even with other CSS */
.mobile-product-card .top-color-options img.color-image {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

/* Product title */
.mobile-product-card .product-title {
    font-size: 1em;
    font-weight: 500;
    color: #464646;
    font-family: "Manrope", Sans-serif;
    margin: 10px 0 5px;
    height: 2.8em;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

/* Product price */
.mobile-product-card .product-price {
    color: #048CB5;
    font-family: "Manrope", Sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: auto;
    text-align: center;
}

/* Load more button container with view all link */
.mobile-gallery-load-more-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 10px;
    min-height: 48px; /* aprox. altura do botão */
}

/* Hide old JS‑only load‑more link */
.mobile-gallery-load-more a {
    display: none;
}

/* Show and style new button */
.mobile-gallery-load-more button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #096682;
    font-family: "Manrope", Sans-serif;
    font-size: 0.9em;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgba(109, 181, 202, 0.1);
    border: none;
    transition: all 0.3s ease;
    min-width: 80px;
}
.mobile-gallery-load-more button:hover {
    background-color: rgba(109, 181, 202, 0.2);
}
.mobile-gallery-load-more button svg {
    margin-right: 5px;
    width: 14px;
    height: 14px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading indicator */
.mobile-gallery-loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.mobile-gallery-loading:after {
    content: "⟳";
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 24px;
    color: #6eb6cb;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-gallery-container {
        display: none;
    }
}

/* Price visibility based on login status */
.logged-out .mobile-product-card .product-price,
.awaiting-approval .mobile-product-card .product-price {
    display: none;
}

/* Placeholder for when price is hidden */
.logged-out .mobile-product-card .price-placeholder,
.awaiting-approval .mobile-product-card .price-placeholder {
    text-align: center;
    font-size: 0.9em;
    color: #1a6a81;
    margin-top: auto;
    font-family: "Manrope", Sans-serif;
    font-weight: 600;
}



/* View All link */
.mobile-gallery-view-all {
    text-align: right;
}

.mobile-gallery-view-all a {
    color: #096682;
    font-family: "Manrope", Sans-serif;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgba(109, 181, 202, 0.1);
    transition: all 0.3s ease;
    min-width: 80px;
}

.mobile-gallery-view-all a:hover {
    background-color: rgba(109, 181, 202, 0.2);
}

.mobile-gallery-view-all a svg {
    margin-left: 5px;
    width: 14px;
    height: 14px;
}

/* Skeleton loading animation */
.mobile-product-card.skeleton {
    min-height: 260px;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: #fff; /* fundo branco */
}

.mobile-product-card.skeleton::before {
    display: none; /* desativa o gradiente e a animação */
}

@media (max-width: 769px) {
.product-material-ribbon {
  top: 4px!important;
  left: -15px!important;
  padding: 2px 12px!important;
}
}