:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #F8F8F8;
    --light-gray: #EEEEEE;
    --accent: #1A1A1A;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.5rem, 6vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.8rem, 4vw, 2.2rem); }

p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}


/* Marketplace Hero */
.marketplace-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    padding-top: 16rem !important;
}

.marketplace-hero h1 {
    margin-bottom: 1.5rem;
}

.marketplace-hero p {
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.filter-group {
    display: flex;
    gap: 1.5rem;
}

.filter-select {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--light-gray);
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--white);
    min-width: 180px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.5rem;
    border: 1px solid var(--light-gray);
    font-family: var(--sans);
    font-size: 1rem;
}

.search-bar:before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* ===== MINIMAL PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 4rem; /* Massive gap between cards */
    margin: 4rem 0;
}

.product-card {
    border: 0.5px solid rgba(0,0,0,0.08); /* Hairline border */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image-container {
    height: 240px; /* Taller image area */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fafafa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-info {
    padding: 0 1.8rem;
}

.product-category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    margin-bottom: 0.8rem;
    font-weight: 300; /* Ultra thin */
}

.product-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400; /* Regular weight */
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--black);
}

.product-author {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.6);
    font-weight: 300; /* Ultra thin */
    margin-bottom: 1.2rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding-top: 1.2rem;
}

.product-price {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.product-actions {
    display: flex;
    gap: 0.8rem;
}

.product-action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-action-btn:hover {
    background: rgba(0,0,0,0.03);
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
body {
    font-weight: 300; /* Base font weight set to thin */
}

h1, h2, h3 {
    font-weight: 400; /* Keep headings regular (not bold) */
}

/* ===== LAYOUT SPACING ===== */
.marketplace-hero {
    padding: 8rem 0 6rem;
}

.container--narrow {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.pagination-btn.active,
.pagination-btn:hover {
    background: var(--accent, #7a6efa);
    color: #fff;
    border-color: var(--accent, #7a6efa);
}

/* Categories Section */
.categories {
    background: var(--gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    padding: 2rem;
    background: var(--white);
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: var(--black);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.footer-column h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.5);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    nav {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
 