/* ===== SHOP INDEX PAGE CSS ===== */

.shop-page {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* Hero Banner - In container, rotunjit */
.shop-hero {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
    padding: 1.75rem;
    border-radius: 20px;
    margin-bottom: 1.75rem;
    margin-top: 1rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.shop-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.shop-hero p {
    opacity: 0.9;
    margin: 0;
    position: relative;
    font-size: 0.95rem;
}

/* Categories - Marite 10% */
.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1.4rem;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--shop-primary);
    border-radius: 3px;
}

.category-chip {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-chip:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 58, 92, 0.3);
}

.category-chip i {
    font-size: 1rem;
}

/* Filters Bar - Marit 10% */
.filters-bar {
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.result-count {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
}

.result-count span {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 0.82rem;
    color: #475569;
}

.active-filter a {
    color: #ef4444;
    text-decoration: none;
}

.sort-select {
    padding: 9px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 175px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--shop-primary);
}

/* Products Grid - Carduri mai mari */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Empty State */
.empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 4.5rem;
    color: #cbd5e1;
    margin-bottom: 1.4rem;
}

.empty-state h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

/* Pagination - Marit 10% */
.pagination-section {
    margin-top: 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.pagination-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
    border-color: transparent;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-info {
    color: #64748b;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .shop-hero {
        padding: 1.4rem;
        border-radius: 16px;
        margin-top: 0.75rem;
    }
    
    .shop-hero h1 {
        font-size: 1.35rem;
    }
    
    .filters-bar {
        padding: 0.85rem;
    }
    
    .category-chip {
        padding: 9px 16px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
