


body {
    height: auto !important;
    overflow-y: auto !important;
}

.page {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 100vh;
    justify-content: flex-start !important;
    padding: 40px !important;
}

.centered-header {
    margin-top: 5px !important; 
    margin-bottom: 20px !important;
}


.marketplace-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 0 60px 0; 
    margin-top: 10px;
    box-shadow: none !important;
    width: 100%;
}


.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.search-box {
    flex: 1;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box:focus-within {
    background: white;
    box-shadow: 0 15px 45px rgba(47, 122, 79, 0.15);
    transform: translateY(-2px) scale(1.01);
}

.search-icon { font-size: 20px; opacity: 0.6; }

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-dropdown label:hover { background: #f5f5f5; }


.cart-bubble {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    right: 10px;
    overflow: hidden;
    z-index: 50;
}

.cart-bubble:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(39, 174, 96, 0.5);
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.cart-icon { font-size: 20px; }
.cart-text { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }


.section-title {
    font-family: 'Fredoka', cursive;
    font-size: 2.8rem;
    color: #1a1a1a;
    text-align: center;
    margin: 60px auto 40px;
    position: relative;
    width: fit-content;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
}


.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 0 35px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar { display: none; }


.view-food-btn:hover { background: #2f7a4f; color: white; }


.ngo-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ngo-card:hover {
    transform: translateY(-12px) rotate(1.5deg);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(95, 191, 143, 0.2);
}

.ngo-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ngo-avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 10px auto 16px;
}

.ngo-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: white;
}

.verified-tick {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #5fbf8f;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 3px solid white;
}

.ngo-name {
    font-family: 'Fredoka', cursive;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.ngo-profile {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.ngo-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ngo-stats span {
    font-size: 12px;
    background: rgba(47, 122, 79, 0.08);
    color: #2f7a4f;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 600;
}

.ngo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donate-btn {
    flex: 1;
    background: linear-gradient(135deg, #ff4757, #ff6b81) !important;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

.donate-btn:hover {
    background: linear-gradient(135deg, #ff6b81, #ff4757) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.ngo-icon-links {
    display: flex;
    gap: 8px;
}

.ngo-icon-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    text-decoration: none;
}

.ngo-icon-links a:hover {
    background: rgba(0,0,0,0.08);
    transform: scale(1.1);
}


.ngo-grid, .food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px 0 40px 0;
}


@media (max-width: 1400px) {
    .food-grid, .ngo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .food-grid, .ngo-grid { grid-template-columns: repeat(2, 1fr); }
    .marketplace-content { padding: 30px 40px; }
}

@media (max-width: 768px) {
    .food-grid, .ngo-grid { grid-template-columns: 1fr; }
    .marketplace-content { padding: 20px; }
    .section-title { font-size: 1.8rem !important; margin: 30px auto 20px !important; }
}


.food-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    animation: cardFadeIn 0.5s ease backwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.food-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(90, 61, 43, 0.12), 
                0 0 0 1px rgba(95, 191, 143, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.9);
}


.community-footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  margin: 30px 0;
  background: transparent !important;
  backdrop-filter: none !important;
  border-radius: 24px;
  border: 4px solid rgba(47, 122, 79, 0.1); 
}

.community-footer h3 {
  font-family: 'Fredoka', cursive;
  color: #2f7a4f;
  font-size: 20px;
  margin-bottom: 8px;
}

.add-btn:hover {
    background: #219150;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}



.loading-state { font-style: italic; color: #777; padding: 20px; }


.no-results-premium {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    animation: cardFadeIn 0.6s ease;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.no-results-premium h3 {
    font-family: 'Fredoka', cursive;
    font-size: 1.8rem;
    color: #2f7a4f;
}

.no-results-premium p {
    color: var(--light-text-primary, #110b08);
    max-width: 500px;
    line-height: 1.6;
    font-size: 1.05rem;
    opacity: 0.8;
}

.reset-filter-btn {
    margin-top: 10px;
    padding: 12px 30px;
    background: #2f7a4f;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(47, 122, 79, 0.2);
}

.reset-filter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(47, 122, 79, 0.3);
    background: #27ae60;
}

body.dark .no-results-premium {
    background: rgba(23, 23, 23, 0.8);
    border-color: rgba(212, 175, 55, 0.2);
}

body.dark .no-results-premium h3 {
    color: #D4AF37 !important;
}

body.dark .no-results-premium p {
    color: #e0d0a0 !important;
}

body.dark .reset-filter-btn {
    background: #D4AF37;
    color: #000;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}


body.dark .marketplace-content { 
    background: transparent !important; 
}
body.dark .search-box { 
    background: rgba(30, 30, 30, 0.6) !important; 
    border-color: rgba(212, 175, 55, 0.3) !important;
}
body.dark .search-box input {
    color: #D4AF37 !important;
}
body.dark .ngo-card, body.dark .food-card { 
    background: rgba(23, 23, 23, 0.8) !important; 
    border-color: rgba(212, 175, 55, 0.2) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.05) !important;
}

body.dark .ngo-card:hover {
    transform: translateY(-12px) rotate(1.5deg);
    background: rgba(30, 30, 30, 0.9) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}

body.dark .ngo-name, body.dark .food-name { 
    color: #FFD700 !important; 
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

body.dark .ngo-profile, body.dark .food-desc {
    color: #e0d0a0 !important;
}

body.dark .ngo-avatar {
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

body.dark .verified-tick {
    background: #D4AF37 !important;
    color: #000 !important;
    border-color: #171717 !important;
}

body.dark .ngo-badge {
    background: linear-gradient(135deg, #FFD700, #B8860B) !important;
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

body.dark .ngo-stats span {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #D4AF37 !important;
}

body.dark .section-title { 
    color: #D4AF37 !important; 
}

body.dark .ngo-icon-links a {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #D4AF37 !important;
}

body.dark .cart-bubble {
    background: linear-gradient(135deg, #b8860b, #daa520) !important; 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25) !important;
}



