/* --- Marketplace Header & Filters --- */
.marketplace-header { padding: 60px 0 20px; }

.category-filter {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* --- Product Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    margin-bottom: 15px;
}

.cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    height: 2.8rem; /* Keeps cards aligned if names are long */
    overflow: hidden;
}

/* --- Price Protection Logic --- */
.price-wrapper {
    margin-bottom: 20px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.price-locked a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.btn--outline-sm {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}