 body {
        background-color: #f8f9fa;
    }
    
    /* --- Minimalist Market Header Section --- */
    .market-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e9ecef;
    }
    .market-title {
        font-size: 18px;
        font-weight: 700;
        color: #343a40;
        margin: 0;
    }
    .view-toggle-btn {
        background: #f1f3f5;
        border: 1px solid #ced4da;
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .view-toggle-btn:hover {
        background: #e9ecef;
    }
    
    /* Layout Switcher Icon State - Bold Green */
    .view-toggle-btn i {
        color: #28a745 !important;
        font-size: 16px;
    }

    /* --- Category Grid Layout Block --- */
    .categories-grid-section {
        background: #ffffff;
        padding: 16px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 12px;
    }
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 Columns matching app view layout */
        gap: 16px 12px;
        max-width: 600px;
        margin: 0 auto;
    }
    .category-grid-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none !important;
        color: #495057 !important;
        transition: transform 0.2s;
    }
    .category-grid-item:active {
        transform: scale(0.95);
    }
    .category-square-box {
        width: 60px;
        height: 60px;
        background: #eef2f7; /* Soft light gray framing background */
        border-radius: 16px; /* Smooth square corners */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 6px;
    }
    /* Restrict and scale png/jpg category icons perfectly inside the box frames */
    .category-square-box img {
        width: 65%;
        height: 65%;
        object-fit: contain;
    }
    .category-grid-label {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        color: #4a5056;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Grid Container Base Settings */
    .market-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
        transition: all 0.3s ease;
    }

    /* Tablet layout adjustment (Grid state) */
    @media (min-width: 768px) {
        .market-grid:not(.list-view) {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            padding: 12px;
        }
    }

    /* Desktop layout adjustment (Grid state) */
    @media (min-width: 1024px) {
        .market-grid:not(.list-view) {
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            padding: 16px;
            max-width: 1200px;
            margin: 0 auto;
        }
    }

    /* --- List View Mode Styles --- */
    .market-grid.list-view {
        grid-template-columns: 1fr !important;
        max-width: 650px;                     
        margin: 0 auto;
        gap: 16px;
        padding: 12px;
    }
    
    /* Card structural layout */
    .product-card {
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        border: 1px solid #f1f3f5;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-decoration: none !important;
        color: inherit !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .product-image-wrapper {
        position: relative;
        width: 100%;
        background: #f1f3f5;
        aspect-ratio: 1 / 1; 
        overflow: hidden;
    }

    .market-grid.list-view .product-image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .product-img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    /* --- Compact Blinking Hot Pill Badge --- */
    .hot-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        background: #ff6a00;
        color: #ffffff;
        font-size: 9.5px; 
        font-weight: 800;
        letter-spacing: 0.5px;
        padding: 2px 8px; 
        border-radius: 50px; 
        border: 1.5px solid #ffefe5;
        box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 2px;
        animation: hot-bling 1.5s infinite ease-in-out;
    }
    .hot-badge i {
        color: #ffd700; 
        font-size: 10px;
    }

    /* --- Bottom Right View Badge on Image --- */
    .views-image-badge {
        position: absolute;
        bottom: 6px;
        right: 6px;
        background: rgba(0, 0, 0, 0.55);
        color: #ffffff;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 4px;
        backdrop-filter: blur(2px);
    }
    .views-image-badge i {
        font-size: 11px;
    }

    /* Bling Pulse Keyframe */
    @keyframes hot-bling {
        0% {
            transform: scale(1);
            box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
            opacity: 1;
        }
        50% {
            transform: scale(1.04);
            box-shadow: 0 3px 10px rgba(255, 106, 0, 0.7);
            opacity: 0.9;
        }
        100% {
            transform: scale(1);
            box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
            opacity: 1;
        }
    }

    .product-details {
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .market-grid.list-view .product-title {
        font-size: 16px;
        font-weight: 600;
        height: auto;
        -webkit-line-clamp: unset; 
        margin-bottom: 8px;
    }
    .market-grid.list-view .product-price {
        font-size: 18px;
    }

    .product-price {
        font-size: 15px;
        font-weight: 700;
        color: #28a745;
        margin-bottom: 4px;
    }
    .product-title {
        font-size: 13px;
        font-weight: 500;
        color: #343a40;
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.6em;
    }
    
    /* --- Accurate Location Style --- */
    .product-meta {
        font-size: 13px; 
        font-weight: 500;
        color: #7a828a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: auto;
        display: flex;
        align-items: center;
    }

    /* Applied vibrant green and subtle side spacing directly to the fa-icon */
    .product-meta .green-pin {
        color: #28a745 !important;
        margin-right: 5px;
        font-size: 14px;
    }
    
    .bottom-spacing {
        height: 75px;
    }
  
    /* Slidable Popular Subcategories Styling */
    .popular-subcat-section { padding: 15px 10px 5px 10px; background-color: #ffffff; }
    .popular-subcat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-left: 5px; }
    .subcat-title { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; margin: 0; }
    .popular-subcat-slider { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; white-space: nowrap; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .popular-subcat-slider::-webkit-scrollbar { display: none; }
    .popular-subcat-slider { -ms-overflow-style: none; scrollbar-width: none; }
    .subcat-slider-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 75px; flex-shrink: 0; text-decoration: none !important; }
    .subcat-circle-box { width: 65px; height: 65px; background-color: #111424; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; transition: transform 0.2s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.1); }
    .subcat-slider-item:hover .subcat-circle-box { transform: scale(1.05); }
    .subcat-circle-box img { width: 65%; height: 65%; object-fit: contain; }
    .subcat-slider-label { font-size: 11px; font-weight: 500; color: #4a4a4a; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
    
    /* Slidable Buyer Requests Section Styles (Screenshot Style 2) */
    .buyer-requests-section {
        padding: 20px 15px;
        background-color: #fdfdfd;
    }
    .buyer-requests-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    .buyer-section-title {
        font-size: 22px;
        font-weight: 800;
        color: #1a2530;
        margin: 0;
    }
    .buyer-see-all {
        color: #f25c22;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none !important;
    }
    .buyer-requests-slider {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 4px 4px 15px 4px;
        -webkit-overflow-scrolling: touch;
    }
    .buyer-requests-slider::-webkit-scrollbar {
        display: none;
    }
    .buyer-requests-slider {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .buyer-request-card {
        flex-shrink: 0;
        width: 88vw;
        max-width: 350px;
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid #f0f0f0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.05);
        padding: 16px;
        display: flex;
        flex-direction: column;
    }
    .card-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    .badge-group {
        display: flex;
        gap: 6px;
    }
    .badge-hot {
        background: #ff7300;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 12px;
    }
    .badge-sub, .badge-cat {
        background: #f1f3f5;
        color: #6c757d;
        font-size: 10px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 12px;
    }
    .share-icon-btn {
        background: #f1f3f5;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #495057;
    }
    .buyer-tagline {
        background-color: #eafaf1;
        color: #28a745;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 6px;
        align-self: flex-start;
        margin-bottom: 10px;
        letter-spacing: 0.3px;
    }
    .buyer-card-title {
        font-size: 16px;
        font-weight: 700;
        color: #1a2530;
        line-height: 1.4;
        margin: 0 0 10px 0;
        min-height: 44px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .buyer-card-meta {
        display: flex;
        gap: 12px;
        color: #868e96;
        font-size: 12px;
        margin-bottom: 15px;
        border-bottom: 1px solid #f8f9fa;
        padding-bottom: 12px;
    }
    .pin-green { color: #28a745; }
    .card-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }
    .budget-block label {
        font-size: 10px;
        font-weight: 700;
        color: #adb5bd;
        margin: 0;
        display: block;
    }
    .budget-amount {
        font-size: 18px;
        font-weight: 800;
        color: #28a745;
    }
    .bid-action-btn {
        background-color: #28a745;
        color: #fff !important;
        font-weight: 700;
        font-size: 13px;
        padding: 7px 18px;
        border-radius: 20px;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .no-requests-msg {
        color: #868e96;
        font-size: 14px;
        padding: 10px;
    }
