/* =========================================================================
   MARKETPLACE MODERN UI OVERRIDE
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --mp-primary: #1E1E2C; /* Navy 900 */
    --mp-primary-hover: #2D2D44; /* Navy 800 */
    --mp-secondary: #Fbbd08; /* Warm Yellow */
    --mp-secondary-hover: #E5A000; /* Warm Yellow Darker */
    --mp-bg: #f9f1df; /* Soft warm background for outer shell */
    --mp-surface: #FFFFFF;
    --mp-text-main: #1E1E2C; /* Navy / Dark */
    --mp-text-muted: #64748B; /* Slate 500 */
    --mp-border: #E2E8F0; /* Slate 200 */
    
    --mp-shadow-sm: 0 4px 10px rgb(0 0 0 / 0.05);
    --mp-shadow-md: 0 12px 24px rgb(0 0 0 / 0.08);
    --mp-shadow-lg: 0 16px 32px rgb(0 0 0 / 0.1);
    
    --mp-radius-sm: 10px;
    --mp-radius-md: 16px;
    --mp-radius-lg: 24px;
    --mp-radius-pill: 50px;
    --mp-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* App Shell Utilities */
.app-shell {
    background-color: var(--mp-primary) !important;
    color: #ffffff;
}
.app-shell .pera, .app-shell .title, .app-shell a, .app-shell i {
    color: #ffffff !important;
}
.app-shell .search-header-position .rounded-btn i {
    color: var(--mp-primary) !important;
}

.app-wrapper {
    background-color: var(--mp-surface);
    border-radius: 30px 30px 0 0;
    min-height: 100vh;
    padding-top: 30px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    padding-top: 8px;
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}


body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--mp-bg);
    color: var(--mp-text-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .title {
    font-family: 'Inter', sans-serif !important;
    color: var(--mp-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* =========================================================================
   CARDS & GRID
   ========================================================================= */
.marketplace-product-card {
    background: var(--mp-surface);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-sm);
    border: 1px solid var(--mp-border);
    transition: var(--mp-transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.marketplace-product-card:hover {
    box-shadow: var(--mp-shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.marketplace-product-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--mp-border);
    transition: var(--mp-transition);
}

.marketplace-product-card:hover .card-img-top {
    transform: scale(1.03);
}

.marketplace-product-card .img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: var(--mp-radius-lg) var(--mp-radius-lg) 0 0;
}

.marketplace-product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.marketplace-product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mp-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-product-card .card-company {
    font-size: 0.875rem;
    color: var(--mp-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.marketplace-product-card .card-desc {
    font-size: 0.9rem;
    color: var(--mp-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.marketplace-product-card .card-footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--mp-border);
    margin-top: auto;
}

.marketplace-product-card .card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mp-primary);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--mp-radius-pill);
    transition: var(--mp-transition);

    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.btn-modern-primary {
    background-color: var(--mp-secondary);
    color: var(--mp-primary) !important;
}

.btn-modern-primary:hover {
    background-color: var(--mp-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-md);
}

.btn-modern-secondary {
    background-color: var(--mp-secondary);
    color: #fff !important;
}

.btn-modern-secondary:hover {
    background-color: var(--mp-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-md);
}

.btn-modern-outline {
    background-color: transparent;
    border: 1px solid var(--mp-border);
    color: var(--mp-primary);
}

.btn-modern-outline:hover {
    background-color: var(--mp-bg);
    border-color: var(--mp-text-muted);
}

/* =========================================================================
   HEADER / NAVIGATION (GLASSMORPHISM)
   ========================================================================= */
.glass-header {
    background: var(--mp-primary) !important;
    border-bottom: 0px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.glass-header.app-shell {
    background: var(--mp-primary) !important;
}

.modern-nav-link {
    font-weight: 600;
    color: #fff;
    transition: var(--mp-transition);
    padding: 8px 16px;
    border-radius: var(--mp-radius-pill);
}

.modern-nav-link:hover {
    color: var(--mp-primary);
    background-color: var(--mp-secondary);
}

/* =========================================================================
   DETAIL PAGES
   ========================================================================= */
.detail-image-box {
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow: var(--mp-shadow-md);
    border: 1px solid var(--mp-border);
    background: #fff;
}

.detail-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

.detail-content-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-md);
    border: 1px solid var(--mp-border);
    position: sticky;
    top: 100px;
}

.company-banner {
    position: relative;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    background: var(--mp-primary);
    box-shadow: var(--mp-shadow-md);
}

.company-banner img, .company-banner video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.6;
}

.company-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.company-banner-content h2 {
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.modern-badge {
    padding: 6px 14px;
    border-radius: var(--mp-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--mp-secondary);
    color: var(--mp-primary);
}

.modern-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--mp-text-muted);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0;
}

.modern-tabs .nav-link.active {
    color: var(--mp-primary);
    border-bottom-color: var(--mp-primary);
    background: transparent;
}

.modern-tabs .nav-link:hover:not(.active) {
    border-bottom-color: var(--mp-border);
}

/* =========================================================================
   CART & CHECKOUT
   ========================================================================= */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.modern-table th {
    font-weight: 600;
    color: var(--mp-text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    padding: 12px 20px;
}

.modern-table tbody tr {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: var(--mp-radius-md);
    transition: var(--mp-transition);
}

.modern-table tbody tr:hover {
    box-shadow: var(--mp-shadow-md);
    transform: translateY(-2px);
}

.modern-table td {
    padding: 20px;
    vertical-align: middle;
    border: none;
}

.modern-table td:first-child {
    border-top-left-radius: var(--mp-radius-md);
    border-bottom-left-radius: var(--mp-radius-md);
}

.modern-table td:last-child {
    border-top-right-radius: var(--mp-radius-md);
    border-bottom-right-radius: var(--mp-radius-md);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    background: var(--mp-bg);
    border-radius: var(--mp-radius-md);
    border: 1px solid var(--mp-border);
    padding: 4px 8px;
}

.qty-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--mp-text-main);
    cursor: pointer;
    padding: 0 8px;
    transition: var(--mp-transition);
}

.qty-controls button:hover {
    color: var(--mp-secondary);
}

.qty-controls input {
    background: transparent;
    border: none;
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--mp-primary);
}

/* =========================================================================
   PROGRESS TRACKER OVERRIDE
   ========================================================================= */
.progress-container-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}
.progress-container-horizontal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--mp-border);
    z-index: 1;
}
.progress-container-horizontal .step {
    position: relative;
    z-index: 2;
    text-align: center;
    background: transparent;
    text-decoration: none;
    flex: 1;
}
.progress-container-horizontal .step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mp-surface);
    border: 2px solid var(--mp-border);
    color: var(--mp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    transition: var(--mp-transition);
}
.progress-container-horizontal .step.completed .step-number,
.progress-container-horizontal .step.current .step-number {
    background: var(--mp-secondary);
    border-color: var(--mp-secondary);
    color: var(--mp-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.progress-container-horizontal .step.current p {
    color: var(--mp-primary);
    font-weight: 700;
}
.progress-container-horizontal .step p {
    font-size: 0.85rem;
    color: var(--mp-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}

/* =========================================================================
   FORMS OVERRIDE
   ========================================================================= */
.contact-input, .form-control {
    border-radius: var(--mp-radius-md) !important;
    border: 1px solid var(--mp-border) !important;
    padding: 14px 20px !important;
    font-size: 0.95rem;
    transition: var(--mp-transition);
    background: var(--mp-surface) !important;
    color: var(--mp-text-main);
}
.contact-input:focus, .form-control:focus {
    border-color: var(--mp-secondary) !important;
    box-shadow: 0 0 0 3px rgba(251, 189, 8, 0.2) !important;
    outline: none;
}
.contact-label {
    font-weight: 600;
    color: var(--mp-primary);
    margin-bottom: 8px;
    display: inline-block;
}


