body.theme-marketplace {
    background: #f3f4f6 !important;
    color: #111827;
}

/* Improve readability for sections that still use light text utility classes */
.theme-marketplace .text-gray-100,
.theme-marketplace .text-gray-200 {
    color: #111827 !important;
}

.theme-marketplace .text-gray-300,
.theme-marketplace .text-gray-400,
.theme-marketplace .text-gray-500 {
    color: #4b5563 !important;
}

body.theme-marketplace::before,
body.theme-marketplace .bg::before {
    opacity: 0 !important;
    background: none !important;
}

.theme-marketplace .section-container,
.theme-marketplace .section-elevated,
.theme-marketplace .newsletter-section,
.theme-marketplace .brands-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Make footer callouts section more pronounced */
.theme-marketplace .footer-dark-section {
    position: relative;
    background: linear-gradient(145deg, #05070b 0%, #0b1220 55%, #111827 100%) !important;
    border: 1px solid #0b1220 !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55) !important;
    border-radius: 16px;
    overflow: hidden;
}

.theme-marketplace .footer-dark-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 45%, #fbbf24 100%);
}

.theme-marketplace .footer-dark-section .callout-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px;
}

/* Keep default site header light, but do not affect dedicated marketplace hero header */
.theme-marketplace header:not(.market-header) {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

/* Dedicated marketplace header/nav must stay transparent over hero */
.theme-marketplace .market-header,
.theme-marketplace .market-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.theme-marketplace .market-nav a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.theme-marketplace .market-nav .login-link {
    color: #f59e0b !important;
}

.theme-marketplace #mobileMenu {
    background: #ffffff !important;
    color: #111827 !important;
}

.theme-marketplace #menuOverlay {
    background: rgba(17, 24, 39, 0.72) !important;
    backdrop-filter: blur(3px);
}

.theme-marketplace #mobileMenu a,
.theme-marketplace #mobileMenu button,
.theme-marketplace #mobileMenu .text-white,
.theme-marketplace #mobileMenu .text-gray-100 {
    color: #111827 !important;
}

.theme-marketplace #mobileMenu .border-white\/10 {
    border-color: #e5e7eb !important;
}

.theme-marketplace #mobileMenu .bg-indigo-600 {
    background-color: #111827 !important;
}

.theme-marketplace .bg-indigo-600 {
    background-color: #f97316 !important;
}

.theme-marketplace .hover\:bg-indigo-500:hover {
    background-color: #ea580c !important;
}

.theme-marketplace .text-indigo-600,
.theme-marketplace .hover\:text-indigo-600:hover {
    color: #f97316 !important;
}

.theme-marketplace .ring-indigo-200,
.theme-marketplace .focus\:ring-indigo-200:focus,
.theme-marketplace .focus\:border-indigo-500:focus {
    --tw-ring-color: rgba(249, 115, 22, 0.25) !important;
    border-color: #f97316 !important;
}

.theme-marketplace .bg-pink-600,
.theme-marketplace .hover\:bg-pink-800:hover {
    background-color: #111827 !important;
}

.theme-marketplace footer {
    background: #ffffff !important;
    backdrop-filter: none;
}

@media (max-width: 640px) {
    .theme-marketplace main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .theme-marketplace .grid {
        gap: 0.75rem;
    }
}
