/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3730a3 50%, #312e81 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #fff;
    border: none;
    padding: 0;
}

.hero h1 span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.85);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
}

.hero .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.hero .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Section header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 2.5rem 0 1.5rem;
}

.section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.results-count {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Active filter tags */
.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-tag a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.6;
}

.filter-tag a:hover {
    opacity: 1;
}

/* Product card improvements */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-top {
    margin-bottom: 0.5rem;
}

.product-card-top h3 {
    font-size: 1.05rem;
    margin: 0.25rem 0 0;
    line-height: 1.3;
}

.product-category-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.product-card .product-description {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
    margin: 0 0 0.75rem;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.product-card .product-seller {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-align: right;
    line-height: 1.2;
}

.product-card .product-seller:hover {
    color: var(--color-primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.empty-state p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.35rem;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: background 0.15s;
}

.page-num:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.page-num.active {
    background: var(--color-primary);
    color: #fff;
}

/* Footer grid */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: 3rem;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: #94a3b8;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 3rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .pagination { flex-wrap: wrap; }
    .section-header { flex-direction: column; gap: 0.25rem; }
}
