/* Fundo definitivo para a página */
html {
    background-color: #f3f4f6; /* bg-gray-100 */
}

/* --- Abas da Loja --- */
#store-tabs .tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563; /* gray-600 */
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
#store-tabs .tab:hover {
    color: #1f2937; /* gray-800 */
}
#store-tabs .tab.active {
    color: #1d4ed8; /* blue-700 */
    border-color: #1d4ed8;
    font-weight: 600;
}

/* --- Botões de Rolagem de Categoria --- */
.category-scroll-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #374151; /* gray-700 */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db; /* gray-300 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
}

.category-scroll-btn:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.category-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* --- Filtros de Categoria --- */
#category-scroller-container {
    /* Gradiente para suavizar as bordas e indicar que há mais conteúdo */
    -webkit-mask-image: linear-gradient(to right, transparent, black 2.5rem, black calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, transparent, black 2.5rem, black calc(100% - 2.5rem), transparent);
}
#category-scroller-container.no-scroll-right {
    -webkit-mask-image: linear-gradient(to right, transparent, black 2.5rem, black 100%, black);
    mask-image: linear-gradient(to right, transparent, black 2.5rem, black 100%, black);
}
#category-scroller-container.no-scroll-left {
    -webkit-mask-image: linear-gradient(to right, black, black 0, black calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, black, black 0, black calc(100% - 2.5rem), transparent);
}
#category-scroller-container.no-scroll-both {
    -webkit-mask-image: none;
    mask-image: none;
}

#category-filters {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: grab; /* Indica que a área é arrastável */
    user-select: none; /* Previne seleção de texto ao arrastar */
    scroll-behavior: smooth;
    padding: 0 0.5rem; /* Adiciona um pequeno respiro nas laterais */
}
#category-filters.active-drag {
    cursor: grabbing; /* Muda o cursor durante o arraste */
    scroll-behavior: auto; /* Para o arrastar não parecer lento */
}
#category-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
#category-filters a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    color: #374151; /* gray-700 */
    background-color: #e5e7eb; /* gray-200 */
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
#category-filters a:hover {
    background-color: #d1d5db; /* gray-300 */
}
#category-filters a.active {
    background-color: #1d4ed8; /* blue-700 */
    color: white;
    font-weight: 600;
}

/* --- Card de Produto --- */
.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    border: 1px solid #e5e7eb; /* gray-200 */
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Etiqueta de Frete --- */
.shipping-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem; /* 11.2px */
    font-weight: 600;
    border-radius: 9999px;
    color: white;
}
.shipping-label.national {
    background-color: #16a34a; /* green-600 */
}
.shipping-label.international {
    background-color: #ea580c; /* orange-600 */
}

/* --- Sticky Header Shrink Effect --- */
#header-content > .flex, 
#header-logo, 
#category-filters-section {
    transition: all 0.3s ease-in-out;
}

#sticky-header-wrapper.header-shrunk #header-content > .flex {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

#sticky-header-wrapper.header-shrunk #header-logo {
    height: 2.5rem; /* h-10 */
}

#sticky-header-wrapper.header-shrunk #category-filters-section {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid #f3f4f6; /* Adiciona uma linha fina de separação no estado encolhido */
}

/* --- Scroll to Top Button --- */
#scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    background-color: #2563eb; /* blue-600 */
    color: white;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top-btn:hover {
    background-color: #1d4ed8; /* blue-700 */
}