/* Marketplace Section - Two Column Layout */
.marketplace-section {
    background: linear-gradient(135deg, #fefaf5 0%, #fff6ed 100%);
    position: relative;
    padding: 0;
}

.marketplace-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* LEFT COLUMN - Sticky (stays in place while scrolling) */
.marketplace-left {
    width: 35%;
    position: sticky;
    top: 108px; /* Height of fixed header (top-bar + navbar) */
    height: calc(100vh - 108px);
    display: flex;
    align-items: center;
}

.marketplace-sticky-header {
    background: linear-gradient(135deg, #1e3a2f 0%, #2a4a3c 100%);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.marketplace-header-content {
    text-align: left;
}

.marketplace-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.marketplace-main-title span {
    color: #f7c35c;
}

.marketplace-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.5;
}

.marketplace-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-btn {
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
}

.category-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(8px);
}

.category-btn.active {
    background: #c57f1e;
    color: white;
    box-shadow: 0 4px 15px rgba(197, 127, 30, 0.4);
}

/* RIGHT COLUMN - Products (scrolls with main page) */
.marketplace-right {
    width: 65%;
    padding: 40px 30px 60px 40px;
    /* No overflow or max-height - scrolls naturally with page */
}

.marketplace-products-wrapper {
    width: 100%;
}

.marketplace-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0e3d6;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}

.product-img {
    background: linear-gradient(135deg, #eae1d3 0%, #f5ede3 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #4a6a3b;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e3a2f;
}

.product-desc {
    font-size: 0.85rem;
    color: #6b6b64;
    margin: 8px 0;
    line-height: 1.4;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c57f1e;
    margin: 12px 0;
}

.add-to-cart {
    width: 100%;
    background: #1e3a2f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart:hover {
    background: #c57f1e;
    transform: translateY(-2px);
}

/* Animation */
.product-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .marketplace-layout {
        flex-direction: column;
    }
    
    .marketplace-left {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        padding: 20px;
    }
    
    .marketplace-sticky-header {
        padding: 32px;
    }
    
    .marketplace-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .category-btn {
        width: auto;
        text-align: center;
    }
    
    .category-btn:hover {
        transform: translateY(-2px);
        transform: translateX(0);
    }
    
    .marketplace-right {
        width: 100%;
        padding: 30px 24px 60px;
    }
}

@media (max-width: 768px) {
    .marketplace-main-title {
        font-size: 1.8rem;
    }
    
    .marketplace-tagline {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .category-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .marketplace-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-img {
        height: 160px;
        font-size: 3rem;
    }
}