/* Lojita Mobile Optimizations */

/* Container principal responsivo */
.lojita-container {
    padding: 1rem;
}

@media (min-width: 640px) {
    .lojita-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lojita-container {
        padding: 2rem;
    }
}

/* Header da lojita */
.lojita-header {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .lojita-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .lojita-header {
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

/* Título responsivo */
.lojita-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .lojita-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .lojita-title {
        font-size: 2.25rem;
    }
}

/* Botão toggle de filtros */
.toggle-filters-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .toggle-filters-btn {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Seção de filtros */
.filters-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .filters-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

/* Campos de filtro */
.filter-input {
    padding: 0.75rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .filter-input {
        padding: 1rem;
    }
}

/* Grid de categorias */
.categories-grid {
    max-height: 10rem;
    padding: 0.75rem;
}

@media (min-width: 640px) {
    .categories-grid {
        max-height: 12rem;
        padding: 1rem;
    }
}

/* Categoria checkbox */
.category-checkbox {
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .category-checkbox {
        font-size: 0.875rem;
    }
}

/* Filtro de preço */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .price-filter {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.price-input {
    flex: 1;
    width: 100%;
}

@media (min-width: 640px) {
    .price-input {
        width: auto;
    }
}

/* Botões de ação dos filtros */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .filter-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.filter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Resultados da busca */
.search-results {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .search-results {
        padding: 1rem;
        margin-bottom: 2rem;
    }
}

.search-results-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .search-results-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
}

/* Header da categoria */
.category-header {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .category-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.category-description {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .category-description {
        font-size: 1rem;
    }
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card do produto */
.product-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Container da imagem */
.product-image-container {
    position: relative;
    height: 12rem;
    background-color: #f3f4f6;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-image-container {
        height: 16rem;
    }
}

/* Imagem do produto */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

/* Badges */
.price-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .price-badge {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 1.125rem;
    }
}

.category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .category-badge {
        top: 0.75rem;
        left: 0.75rem;
    }
}

/* Informações do produto */
.product-info {
    padding: 1rem;
}

@media (min-width: 640px) {
    .product-info {
        padding: 1.5rem;
    }
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-name {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

.product-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
}

/* Preço destacado */
.price-highlight {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .price-highlight {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.price-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #059669;
}

@media (min-width: 640px) {
    .price-value {
        font-size: 1.5rem;
    }
}

.price-with-fee {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .action-buttons {
        gap: 0.75rem;
    }
}

.action-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
}

/* Cores dos botões */
.btn-amazon {
    background: #f97316;
    color: white;
}

.btn-amazon:hover {
    background: #ea580c;
}

.btn-store {
    background: #2563eb;
    color: white;
}

.btn-store:hover {
    background: #1d4ed8;
}

.btn-disabled {
    background: #9ca3af;
    color: white;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #9ca3af;
    transform: none;
}

/* Estados vazios */
.empty-state {
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .empty-state {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .empty-state {
        padding: 3rem;
    }
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

@media (min-width: 640px) {
    .empty-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .empty-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.empty-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .empty-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Melhorias para touch */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-image {
        transform: none;
    }
    
    .action-btn:hover {
        transform: none;
    }
    
    .action-btn:active {
        transform: scale(0.98);
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 375px) {
    .lojita-container {
        padding: 0.5rem;
    }
    
    .lojita-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .lojita-title {
        font-size: 1.25rem;
    }
    
    .products-grid {
        gap: 0.75rem;
    }
    
    .product-image-container {
        height: 10rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .price-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
    
    .action-btn {
        padding: 0.5rem;
        font-size: 0.625rem;
    }
}

/* Melhorias para telas médias */
@media (min-width: 640px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Melhorias para telas grandes */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Melhorias para telas muito grandes */
@media (min-width: 1536px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
} 

/* --- Carrossel Lojita --- */
.lojita-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.lojita-carousel {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 320px;
}
.carousel-slides {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
    width: auto;
    min-width: 100%;
}
.product-card {
    min-width: 250px;
    max-width: 320px;
    margin: 0 0.5rem;
    flex-shrink: 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.carousel-nav {
    top: 20%;
    transform: translateY(-20%);
    background: rgba(250,210,233,1.0);
    z-index: 1000;
    width: 2.5rem;
    height: 2.5rem;
    display: flex !important;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: background 0.2s;
}
.carousel-nav:hover {
    background: #fad2e9;
}
.carousel-nav:active {
    background: #fad2e9;
}
.carousel-indicators {
    margin-top: 0.5rem;
}
.carousel-indicators button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
    margin: 0 0.25rem;
    border: none;
    transition: background 0.2s;
}
.carousel-indicators .bg-green-500 {
    background: #16a34a !important;
}
@media (max-width: 640px) {
    .carousel-slides {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-card {
        min-width: 66vw !important;
        max-width: 70vw !important;
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
    }
    .product-card:first-child {
        margin-left: 0 !important;
    }
    .lojita-carousel {
        min-height: 260px;
    }
    .carousel-nav {
        background: rgba(252,231,243,1.0) !important;
        top: 1.5rem;
        transform: none;
        width: 2rem;
        height: 2rem;
        z-index: 1000;
        display: flex !important;
    }
    .carousel-slides {
        width: auto !important;
        min-width: 0 !important;
    }
    .carousel-nav {
        top: 50%;
        transform: translateY(-50%) scale(0.9);
    }
    .carousel-prev {
        left: -2.5rem !important;
        right: auto !important;
    }
    .carousel-next {
        right: -2.5rem !important;
        left: auto !important;
    }
} 