/* =============================================
   ESTILOS DAS LOJAS - NOVE DE JULHO MARKETPLACE
   =============================================
   Arquivo: assets/css/lojas.css
   Descrição: Estilos para a página de lojas
   Data: 2024
*/

/* Filters Section */
.filters-section {
    background: white;
    border-bottom: 1px solid #dee2e6;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters .form-select {
    min-width: 200px;
}

/* View Options */
.view-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group .btn {
    border: 2px solid #dee2e6;
    background: white;
    color: #666;
    transition: all 0.3s ease;
}

.btn-group .btn:hover,
.btn-group .btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Stores Section */
.stores-section {
    background: #f8f9fa;
    min-height: 60vh;
}

/* Store Cards */
.store-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.store-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.store-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-card:hover .store-cover {
    transform: scale(1.05);
}

.store-logo {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.store-body {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.store-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.store-category {
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.store-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
}

.store-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.store-actions .btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
}

.store-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Store Badge */
.store-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* List View */
.store-list-item {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.store-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.store-list-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.store-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-list-item:hover .store-list-image img {
    transform: scale(1.05);
}

.store-list-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-list-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.store-list-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-right: 1rem;
}

.store-list-info {
    flex: 1;
}

.store-list-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.store-list-category {
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.store-list-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-list-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.store-list-actions {
    display: flex;
    gap: 0.5rem;
}

.store-list-actions .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Pagination */
.pagination-section {
    background: white;
    border-top: 1px solid #dee2e6;
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    border: 2px solid #dee2e6;
    color: #666;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading and Empty States */
.loading-indicator {
    text-align: center;
    padding: 4rem 0;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.no-results i {
    margin-bottom: 1rem;
}

.no-results h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters .form-select {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }

    .view-options {
        justify-content: center;
        margin-top: 1rem;
    }

    .store-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .store-actions {
        flex-direction: column;
    }

    .store-actions .btn {
        width: 100%;
    }

    .store-list-item {
        flex-direction: column;
    }

    .store-list-image {
        width: 100%;
        height: 200px;
    }

    .store-list-header {
        flex-direction: column;
        text-align: center;
    }

    .store-list-logo {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }

    .store-list-stats {
        justify-content: center;
        text-align: center;
    }

    .store-list-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .store-body {
        padding: 2.5rem 1rem 1rem;
    }

    .store-name {
        font-size: 1.1rem;
    }

    .store-stats {
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .store-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .store-list-content {
        padding: 1rem;
    }

    .store-list-name {
        font-size: 1rem;
    }
}

/* Animation Classes */
.store-card {
    animation: fadeInUp 0.6s ease-out;
}

.store-card:nth-child(2) {
    animation-delay: 0.1s;
}

.store-card:nth-child(3) {
    animation-delay: 0.2s;
}

.store-card:nth-child(4) {
    animation-delay: 0.3s;
}

.store-card:nth-child(5) {
    animation-delay: 0.4s;
}

.store-card:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Animation */
.filters .form-select {
    transition: all 0.3s ease;
}

.filters .form-select:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Print Styles */
@media print {
    .filters-section,
    .pagination-section,
    .cta-section {
        display: none !important;
    }

    .store-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 1rem !important;
    }

    .store-actions {
        display: none !important;
    }
}
