:root {
    /* Soft Pastel Palette */
    --primary-color: #ff8fa3;
    /* Soft Pink */
    --primary-hover: #ff758f;
    --secondary-color: #80ed99;
    /* Soft Green */
    --accent-color: #ffb3c1;
    /* Lighter Pink */
    --bg-cream: #fffdf9;
    /* Warm Cream Background */
    --bg-white: #ffffff;
    --text-dark: #2d3436;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --bg-pastel-pink: #fff5f5;
}

/* Prevent horizontal overflow on mobile */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.2s;
    text-decoration: none;
}

.nav-icon:hover {
    background-color: var(--bg-pastel-pink);
    color: var(--primary-color);
}

/* --- Seller Discovery Strip --- */
.seller-strip-container {
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.seller-strip-container::-webkit-scrollbar {
    display: none;
}

.seller-card-mini {
    background: white;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-width: max-content;
    transition: transform 0.2s;
}

.seller-card-mini:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Hero Banner --- */
.marketplace-hero {
    background: linear-gradient(135deg, #fff0f3 0%, #fff5f5 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
}

.blob-pink {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.blob-green {
    background: var(--secondary-color);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

/* --- Marketplace Categories --- */
.category-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-bubble-icon {
    width: 70px;
    height: 70px;
    border-radius: 35%;
    /* Soft rounded square */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.category-bubble:hover .category-bubble-icon {
    transform: rotate(5deg) scale(1.05);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Active state for selected category */
.category-bubble.active .category-bubble-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.category-bubble.active span {
    color: var(--primary-color);
}

/* --- Partner Highlight Card --- */
.partner-card-wide {
    background: linear-gradient(90deg, #ebfbee 0%, #d3f9d8 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* --- Product Feed --- */
.product-card-market {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.product-card-market:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-market:hover img {
    transform: scale(1.05);
}

.seller-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Vendor Collections --- */
.vendor-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.vendor-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.vendor-banner {
    height: 80px;
    border-radius: var(--radius-sm);
    background-color: #f0f0f0;
    margin-bottom: -40px;
    object-fit: cover;
}

.vendor-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 1rem;
    background: white;
    object-fit: cover;
}

/* --- Occasion Blobs (New Shapes) --- */
.occasion-blob-card {
    position: relative;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Blob shape */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.occasion-blob-card:hover {
    border-radius: 50%;
    transform: scale(1.05);
}

.occasion-blob-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occasion-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
.footer-market {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- Responsive --- */
@media (min-width: 992px) {
    body {
        padding-top: 80px;
        /* For fixed header */
    }

    .marketplace-header {
        padding: 1rem 0;
        height: 80px;
    }
}

/* =====================================
   MOBILE FIRST RESPONSIVE STYLES
   ===================================== */

/* Mobile Marketplace Header */
@media (max-width: 991.98px) {
    body {
        padding-top: 0;
        overflow-x: hidden !important;
    }

    /* Fix for content being cut off */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .marketplace-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        padding: 10px 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .marketplace-header .navbar-brand {
        font-size: 1.1rem;
    }

    .marketplace-header .nav-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 50%;
        color: #333;
    }

    .location-bar-header {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        cursor: pointer;
    }

    /* Mobile Hero Banner */
    .marketplace-hero {
        min-height: auto;
        padding: 30px 20px !important;
        margin: 0 10px;
    }

    .marketplace-hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .marketplace-hero .lead {
        font-size: 0.9rem;
    }

    .marketplace-hero .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .marketplace-hero .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }

    /* Mobile Seller Strip */
    .seller-strip-container {
        padding: 10px 0;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .seller-card-mini {
        padding: 8px 12px 8px 8px;
        gap: 8px;
    }

    .seller-avatar {
        width: 35px;
        height: 35px;
    }

    /* Mobile Product Cards */
    .product-card-market {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .product-card-market .p-3 {
        padding: 10px !important;
    }

    .product-card-market h6 {
        font-size: 0.85rem;
        margin-bottom: 5px !important;
    }

    .product-card-market p {
        font-size: 0.75rem;
        margin-bottom: 8px !important;
    }

    .product-card-market .fs-6 {
        font-size: 0.9rem !important;
    }

    .product-card-market .btn-sm {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* Mobile Grid */
    .row-cols-2>* {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .g-3 {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }

    /* Mobile Sections */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    section h4,
    .container h4 {
        font-size: 1.1rem;
    }

    section h5,
    .container h5 {
        font-size: 1rem;
    }

    /* Mobile Category Bubbles */
    .category-bubble-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .category-bubble span {
        font-size: 0.7rem;
    }

    /* Mobile Vendor Cards */
    .vendor-card {
        padding: 1rem;
    }

    .vendor-logo-large {
        width: 60px;
        height: 60px;
    }

    .vendor-card h5 {
        font-size: 0.9rem;
    }

    /* Mobile Spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Mobile Footer */
    .footer-market {
        padding: 2rem 0 1rem;
    }

    /* Hide desktop elements on mobile */
    .d-lg-block {
        display: none !important;
    }

    /* Mobile navigation - hide only the main site desktop header */
    .desktop-header {
        display: none !important;
    }

    /* Mobile Add to Cart Button */
    .add-to-cart-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-to-cart-btn i {
        font-size: 0.75rem;
    }

    /* Seller Badge Mobile */
    .seller-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Mobile Blobs Hidden */
    .hero-blob {
        display: none;
    }

    /* Load More Button Mobile */
    #loadMoreBtn {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Extra small devices (phones, under 576px) */
@media (max-width: 575.98px) {
    .marketplace-hero h1 {
        font-size: 1.4rem !important;
    }

    .product-card-market h6 {
        font-size: 0.8rem;
    }

    .product-card-market .fs-6 {
        font-size: 0.85rem !important;
    }

    .product-card-market .btn-sm {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .seller-card-mini {
        padding: 6px 10px 6px 6px;
    }

    .seller-avatar {
        width: 30px;
        height: 30px;
    }

    .seller-card-mini .small {
        font-size: 0.7rem !important;
    }

    .seller-card-mini .btn {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
}