/* =====================================
   CAMPUS PLUG - GLOBAL STYLES
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #166534;
    --primary-dark: #14532d;
    --accent: #a3e635;
    --background: #f8faf9;
    --surface: #ffffff;
    --text: #172b22;
    --muted: #64746b;
    --border: #e3eae5;
    --light-green: #dcfce7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* =====================================
   NAVIGATION
===================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-link {
    font-size: 13px;
    font-weight: 700;
}

.login-link:hover {
    color: var(--primary);
}

/* =====================================
   BUTTONS
===================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =====================================
   HERO SECTION
===================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 100px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(163, 230, 53, 0.12),
            transparent 35%
        ),
        var(--background);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    background: var(--light-green);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p {
    max-width: 570px;
    margin-top: 25px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.9;
}

/* =====================================
   SEARCH BAR
===================================== */

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    margin-top: 35px;
    max-width: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 15px;
    min-width: 0;
}

.search-input span {
    font-size: 18px;
}

.search-input input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.search-button {
    border: none;
    border-radius: 9px;
    padding: 13px 25px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* =====================================
   UNIVERSITY SELECTOR
===================================== */

.university-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.university-selector select {
    width: 100%;
    max-width: 320px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* =====================================
   HERO STATS
===================================== */

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 45px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 15px;
    font-weight: 800;
}

.hero-stats span {
    font-size: 12px;
    color: var(--muted);
}

/* =====================================
   HERO VISUAL
===================================== */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 430px;
    min-height: 450px;
    border-radius: 30px;
    padding: 45px;
    background: linear-gradient(
        145deg,
        #166534,
        #14532d
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 30px 70px rgba(22, 101, 52, 0.18);
}

.visual-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.75;
}

.visual-emoji {
    font-size: 105px;
    text-align: center;
    margin: 35px 0;
}

.visual-card h3 {
    font-size: 26px;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.visual-card p {
    font-size: 14px;
    opacity: 0.8;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    animation: float 5s ease-in-out infinite;
}

.card-one {
    top: 40px;
    left: -10px;
}

.card-two {
    top: 45%;
    right: -20px;
    animation-delay: 1s;
}

.card-three {
    bottom: 30px;
    left: 10px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* =====================================
   SECTION HEADINGS
===================================== */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: clamp(29px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.section-heading > p {
    color: var(--muted);
    max-width: 300px;
    font-size: 14px;
}

/* =====================================
   CATEGORIES
===================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(22, 101, 52, 0.06);
}

.category-card span {
    display: block;
    font-size: 35px;
    margin-bottom: 18px;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 700;
}

/* =====================================
   MARKETPLACE
===================================== */

.marketplace-section {
    background: #f0f5f1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.product-image {
    height: 200px;
    background: #e5ede7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.product-price {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-location {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 15px;
}

.product-button {
    display: block;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.product-button:hover {
    background: var(--primary-dark);
}

.marketplace-action {
    margin-top: 40px;
    text-align: center;
}

/* =====================================
   VENDORS SECTION
===================================== */

.vendors-section {
    background: white;
}

.vendor-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.vendor-container h2 {
    font-size: clamp(38px, 4vw, 52px);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.vendor-container p {
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.vendor-visual {
    min-height: 320px;
    background: var(--light-green);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
}

/* =====================================
   FOOTER
===================================== */

.footer {
    background: #10271b;
    color: white;
    padding-top: 75px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 65px;
}

.footer h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.footer h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer p {
    color: #aab9af;
    max-width: 300px;
    font-size: 13px;
}

.footer a {
    display: block;
    color: #aab9af;
    font-size: 13px;
    margin-bottom: 12px;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #294032;
    font-size: 12px;
    color: #aab9af;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 1100px) {

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-container {
        gap: 40px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vendor-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 70px 0;
    }

    .navbar {
        min-height: 72px;
    }

    .logo {
        font-size: 21px;
    }

    .login-link {
        display: none;
    }

    .nav-actions .btn {
        padding: 11px 15px;
        font-size: 11px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        padding: 10px;
    }

    .search-button {
        width: 100%;
    }

    .hero-stats {
        gap: 20px;
    }

    .visual-card {
        min-height: 350px;
        padding: 30px;
    }

    .visual-emoji {
        font-size: 80px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 15px;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-card {
        padding: 25px 12px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 240px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .floating-card {
        animation: none;
    }

    .btn,
    .category-card,
    .product-card {
        transition: none;
    }
}
/* ==============================
   CAMPUS PLUG BRAND LOGO
============================== */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: block;
    flex-shrink: 0;
}

.brand-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--text);
}

.brand-name > span {
    color: var(--primary);
}

/* MOBILE */

@media (max-width: 600px) {

    .brand-logo {
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 19px;
    }

}
/* ============================
   CAMPUS PLUG BRANDING
============================ */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--text);
    line-height: 1;
}

.brand-name > span {
    color: var(--primary);
}

.brand-logo:hover .logo-icon {
    transform: rotate(-8deg);
    transition: transform 0.3s ease;
}

/* MOBILE */

@media (max-width: 600px) {

    .brand-logo {
        gap: 8px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 19px;
    }

}
/* =====================================
   DEMO MARKETPLACE IMPROVEMENTS
===================================== */

.demo-label {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
}

.product-button:disabled {
    background: #a3b5a9;
    color: white;
    cursor: not-allowed;
}

.empty-message {
    grid-column: 1 / -1;
    padding: 50px 20px;
    background: white;
    border-radius: 14px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--border);
}
/* =====================================
   CAMPUS PLUG AUTHENTICATION PAGES
===================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f4f8f5;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: white;
    border: 1px solid #e3eae5;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.auth-logo {
    display: inline-block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.auth-logo span {
    color: #166534;
}

.auth-card h1 {
    font-size: 29px;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.auth-description {
    color: #64746b;
    font-size: 14px;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dce5df;
    border-radius: 9px;
    outline: none;
    background: white;
    color: #172b22;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #166534;
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    border: none;
    border-radius: 9px;
    background: #166534;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover {
    background: #14532d;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-message {
    margin-top: 15px;
    font-size: 13px;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #64746b;
}

.auth-footer a {
    color: #166534;
    font-weight: 700;
}

@media (max-width: 600px) {

    .auth-card {
        padding: 30px 22px;
    }

    .auth-card h1 {
        font-size: 25px;
    }

}
/* =====================================
   VENDOR DASHBOARD
===================================== */

.dashboard {
    padding-top: 70px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.dashboard-heading h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-top: 10px;
}

.dashboard-heading p {
    color: var(--muted);
    margin-top: 12px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
}

.dashboard-card span {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-card h2 {
    font-size: 30px;
    margin-top: 12px;
}

.dashboard-placeholder {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 45px;
    margin-top: 30px;
}

.dashboard-placeholder h2 {
    font-size: 25px;
    margin-bottom: 15px;
}

.dashboard-placeholder p {
    color: var(--muted);
    margin-bottom: 25px;
}

@media (max-width: 600px) {

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-placeholder {
        padding: 28px;
    }

}
/* =====================================
   DASHBOARD NAVIGATION IMPROVEMENTS
===================================== */

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {

    .dashboard-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
    }

}
/* =====================================
   AUTH PAGE NAVIGATION
===================================== */

.auth-home-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.auth-home-link:hover {
    opacity: 0.65;
}

.auth-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.auth-navigation .auth-home-link {
    margin-bottom: 0;
}
/* =====================================
   PRODUCT UPLOAD PAGE
===================================== */

.product-upload-page {
    max-width: 850px;
    padding-top: 70px;
    padding-bottom: 100px;
}

.upload-header {
    margin-bottom: 35px;
}

.upload-header h1 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
    margin-top: 12px;
}

.upload-header p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 15px;
}

.upload-card {
    background: white;
    padding: 45px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.035);
}

.upload-card textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dce5df;
    border-radius: 9px;
    outline: none;
    resize: vertical;
    font: inherit;
    font-size: 14px;
}

.upload-card textarea:focus {
    border-color: var(--primary);
}

.upload-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 18px;
    border-radius: 10px;
    margin: 25px 0;
}

.upload-notice strong {
    color: #166534;
    font-size: 13px;
}

.upload-notice p {
    color: #64746b;
    font-size: 12px;
    margin-top: 5px;
}

.page-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

@media (max-width: 600px) {

    .product-upload-page {
        padding-top: 45px;
        padding-bottom: 70px;
    }

    .upload-card {
        padding: 25px 20px;
    }

}
/* =====================================
   PRODUCT IMAGE UPLOAD
===================================== */

.image-help {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.image-preview {
    width: 100%;
    max-width: 350px;
    height: 230px;
    margin-top: 18px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: #f5f8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ===========================
   VENDOR DASHBOARD PRODUCTS
=========================== */

.dashboard-products {
  margin-top: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.dashboard-section-header h2 {
  font-size: 23px;
  color: #172b22;
  margin-bottom: 6px;
}

.dashboard-section-header p {
  color: #64746b;
  font-size: 14px;
}

.dashboard-add-btn {
  background: #166534;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-add-btn:hover {
  background: #14532d;
}

.vendor-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.vendor-product-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s ease;
}

.vendor-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
}

.vendor-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f0fdf4;
}

.vendor-product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vendor-product-details h3 {
  font-size: 16px;
  color: #172b22;
}

.vendor-product-details strong {
  color: #166534;
  font-size: 18px;
}

.product-category {
  color: #64746b;
  font-size: 12px;
}

.product-status {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 30px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.empty-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: #f8faf9;
  border-radius: 14px;
}

.empty-products h3 {
  margin-bottom: 10px;
}

.empty-products p {
  margin-bottom: 20px;
  color: #64746b;
}

.empty-products a {
  display: inline-block;
  background: #166534;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .dashboard-products {
    padding: 20px;
  }

  .dashboard-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-add-btn {
    width: 100%;
    text-align: center;
  }
}
/* REALISTIC HOMEPAGE MARKETPLACE IMAGE */

.hero-marketplace-image {
  width: 100%;
  height: 440px;

  object-fit: cover;
  object-position: center;

  border-radius: 22px;

  box-shadow: 0 20px 50px rgba(22, 101, 52, 0.12);
}

@media (max-width: 768px) {
  .hero-marketplace-image {
    height: 280px;
    border-radius: 16px;
  }
}
/* ============================================
   HERO GREEN BOX WITH MARKETPLACE PHOTOGRAPH
   ============================================ */

/* Make the green box a positioning context */
.hero-visual,
.hero-card,
.visual-box {
    position: relative;
    overflow: visible; /* Allows floating cards to hang outside */
    isolation: isolate;
}

/* The marketplace photograph - fills the green box */
.hero-marketplace-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    z-index: 0;
}

/* Dark green overlay for text readability */
.hero-visual::before,
.hero-card::before,
.visual-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(20, 83, 45, 0.92) 0%,
        rgba(20, 83, 45, 0.55) 45%,
        rgba(20, 83, 45, 0.15) 100%
    );
    border-radius: inherit;
    z-index: 1;
}

/* Keep the text content above the overlay */
.hero-visual > div:not(.floating-card):not(.visual-emoji),
.hero-card > div:not(.floating-card):not(.visual-emoji),
.visual-box > div:not(.floating-card):not(.visual-emoji) {
    position: relative;
    z-index: 2;
}

/* The heading and paragraph specifically */
.hero-visual h3,
.hero-visual p,
.hero-card h3,
.hero-card p,
.visual-box h3,
.visual-box p {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

/* The section label at the top */
.hero-visual .section-label,
.hero-card .section-label,
.visual-box .section-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
}

/* Floating cards stay on top of everything */
.floating-card {
    position: absolute;
    z-index: 10;
    /* Keep your existing styles */
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Position the floating cards to hang outside the green box */
.card-one {
    top: -20px;
    left: -30px;
}

.card-two {
    top: 40%;
    right: -40px;
}

.card-three {
    bottom: 80px;
    left: -25px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-marketplace-image {
        border-radius: 16px;
    }

    .card-one {
        top: -15px;
        left: 10px;
        font-size: 12px;
        padding: 8px 14px;
    }

    .card-two {
        right: 10px;
        font-size: 12px;
        padding: 8px 14px;
    }

    .card-three {
        left: 10px;
        bottom: 60px;
        font-size: 12px;
        padding: 8px 14px;
    }
}
/* ========================================
   CAMPUS PLUG — PROFESSIONAL HERO VISUAL
======================================== */

.hero-visual {
    position: relative;
    min-height: 480px;
    border-radius: 28px;
    overflow: visible;
    isolation: isolate;
    background: #14532d;
    box-shadow: 0 24px 55px rgba(20, 83, 45, 0.15);
}

/* Marketplace photograph */
.hero-marketplace-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    border-radius: inherit;
    z-index: -2;
}

/* Professional gradient overlay */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(
        180deg,
        rgba(6, 37, 21, 0.28) 0%,
        rgba(6, 37, 21, 0.08) 35%,
        rgba(6, 37, 21, 0.45) 65%,
        rgba(6, 37, 21, 0.94) 100%
    );

    z-index: -1;
    pointer-events: none;
}

/* Top label */
.hero-visual .section-label {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Text content */
.hero-visual h3 {
    position: relative;
    z-index: 2;

    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.3;
    font-weight: 800;

    color: #ffffff;
    max-width: 360px;
    margin-top: 260px;
    margin-bottom: 12px;
}

.hero-visual p {
    position: relative;
    z-index: 2;

    font-size: 14px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.9);
    max-width: 340px;
}

/* Floating category cards */
.hero-visual .floating-card {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;

    background: #ffffff;
    color: #172b22;

    padding: 13px 18px;
    border-radius: 13px;

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Floating positions */
.hero-visual .card-one {
    top: 40px;
    left: -30px;
}

.hero-visual .card-two {
    top: 43%;
    right: -25px;
}

.hero-visual .card-three {
    bottom: 65px;
    left: -25px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-visual {
        min-height: 420px;
        border-radius: 20px;
    }

    .hero-marketplace-image {
        object-position: 60% center;
    }

    .hero-visual h3 {
        margin-top: 215px;
        font-size: 25px;
    }

    .hero-visual .floating-card {
        padding: 9px 12px;
        font-size: 11px;
    }

    .hero-visual .card-one {
        top: 30px;
        left: -8px;
    }

    .hero-visual .card-two {
        top: 40%;
        right: -8px;
    }

    .hero-visual .card-three {
        bottom: 100px;
        left: -8px;
    }
}
/* ========================================
   REAL MARKETPLACE PRODUCT CARDS
======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f0fdf4;
    display: block;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-category {
    font-size: 12px;
    color: #64746b;
}

.product-info h3 {
    font-size: 16px;
    color: #172b22;
    font-weight: 700;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: #166534;
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card img {
        height: 150px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
}
/* ======================================
   CAMPUS PLUG VENDOR INFORMATION
====================================== */

.marketplace-vendor-name {
    font-size: 13px;
    font-weight: 700;
    color: #172b22;
}

.marketplace-vendor-campus {
    font-size: 12px;
    color: #64746b;
    line-height: 1.5;
}

.marketplace-whatsapp-btn {
    display: block;
    width: 100%;

    margin-top: 12px;
    padding: 12px 14px;

    background: #166534;
    color: #ffffff;

    border-radius: 10px;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s ease;
}

.marketplace-whatsapp-btn:hover {
    background: #14532d;
    color: #ffffff;
}

.marketplace-whatsapp-btn.disabled {
    background: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
    pointer-events: none;
}

/* Keep cards aligned */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-info {
    flex: 1;
}

.marketplace-whatsapp-btn {
    margin-top: auto;
}

@media (max-width: 600px) {
    .marketplace-vendor-name {
        font-size: 12px;
    }

    .marketplace-vendor-campus {
        font-size: 11px;
    }

    .marketplace-whatsapp-btn {
        padding: 11px 7px;
        font-size: 11px;
    }
}
/* MOBILE LOGIN BUTTON */

.mobile-login-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 10px 14px;
        background: #ffffff;
        color: #166534;

        border: 1px solid #166534;
        border-radius: 9px;

        font-size: 11px;
        font-weight: 700;
        text-decoration: none;

        white-space: nowrap;
    }

    .mobile-login-btn:hover {
        background: #dcfce7;
    }
}
/* ===== CAMPUS PLUG MOBILE IMPROVEMENTS ===== */

.navbar {
    position: relative;
    z-index: 50;
}

.mobile-header-actions,
.navbar .nav-links .mobile-menu-sell {
    display: none;
}

@media (max-width: 860px) {
    /* Navigation */
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 68px;
    }

    .navbar .brand-logo {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }

    .navbar .brand-logo .logo-icon {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }

    .navbar .brand-logo .brand-name {
        font-size: 18px;
        white-space: nowrap;
    }

    .navbar .nav-actions {
        display: none;
    }

    .navbar .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .navbar .mobile-login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 11px;
        border: 1px solid #166534;
        border-radius: 9px;
        background: #fff;
        color: #166534;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
    }

    .navbar .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid #dce7df;
        border-radius: 9px;
        background: #fff;
        color: #166534;
        font-size: 22px;
        cursor: pointer;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 35px rgba(20, 83, 45, 0.15);
    }

    .navbar .nav-links.is-open {
        display: flex;
    }

    .navbar .nav-links a {
        display: block;
        padding: 12px;
        border-radius: 9px;
        color: #172b22;
        font-weight: 600;
        text-decoration: none;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a:focus-visible {
        background: #f0fdf4;
    }

    .navbar .nav-links .mobile-menu-sell {
        display: block;
        margin-top: 5px;
        background: #166534;
        color: #fff;
        text-align: center;
    }

    .navbar .nav-links .mobile-menu-sell:hover,
    .navbar .nav-links .mobile-menu-sell:focus-visible {
        background: #14532d;
        color: #fff;
    }

    /* Search */
    .hero-content {
        min-width: 0;
    }

    .hero-search {
        display: flex;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .hero-search .search-input {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .hero-search .search-input input {
        width: 100%;
        min-width: 0;
        font-size: 16px; /* Prevents automatic zoom on some phones */
    }

    .hero-search .search-button {
        min-height: 48px;
        flex-shrink: 0;
    }

    .university-selector,
    .university-selector select {
        max-width: 100%;
        min-width: 0;
    }

    .university-selector select {
        font-size: 16px;
    }

    /* Marketplace cards */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card {
        min-width: 0;
    }

    .product-card img {
        width: 100%;
        height: 185px;
        object-fit: cover;
    }

    .product-info {
        min-width: 0;
        padding: 14px;
        gap: 8px;
    }

    .product-info h3,
    .marketplace-vendor-name,
    .marketplace-vendor-campus {
        overflow-wrap: anywhere;
    }

    .marketplace-whatsapp-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 560px) {
    /* One readable product card per row on smaller phones */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 210px;
    }

    /* Bigger, easier-to-use mobile search */
    .hero-search {
        flex-direction: column;
    }

    .hero-search .search-input {
        min-height: 50px;
        width: 100%;
    }

    .hero-search .search-button {
        width: 100%;
        min-height: 48px;
    }

    /* Keep floating labels from creating horizontal scrolling */
    .hero-visual .card-one,
    .hero-visual .card-three {
        left: 8px;
    }

    .hero-visual .card-two {
        right: 8px;
    }
}

@media (max-width: 360px) {
    .navbar .brand-logo .logo-icon {
        width: 30px;
        height: 30px;
    }

    .navbar .brand-logo .brand-name {
        font-size: 15px;
    }

    .navbar .mobile-login-btn {
        padding: 8px 9px;
        font-size: 12px;
    }
}
/* SEARCHABLE UNIVERSITY SELECTOR */

.university-filter {
    margin-top: 20px;
    max-width: 450px;
}

.university-filter label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #172b22;
    margin-bottom: 8px;
}

#universitySearch {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
    outline: none;
}

#universitySearch:focus {
    border-color: #166534;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.university-filter .university-selector {
    width: 100%;
    max-width: 100%;
}

.university-filter select {
    width: 100%;
}

@media (max-width: 600px) {
    .university-filter {
        max-width: 100%;
    }

    #universitySearch {
        font-size: 16px;
    }
}
/* VISIT STORE BUTTON */

.marketplace-store-btn {
    display: block;
    width: 100%;
    padding: 11px 14px;

    border: 1px solid #166534;
    background: #ffffff;
    color: #166534;

    border-radius: 10px;

    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    transition: 0.2s ease;
}

.marketplace-store-btn:hover {
    background: #dcfce7;
}

.marketplace-store-btn.disabled {
    border-color: #e5e7eb;
    color: #94a3b8;
    pointer-events: none;
}

@media (max-width: 600px) {
    .marketplace-store-btn {
        font-size: 11px;
        padding: 10px;
    }
}
/* ======================================
   VENDOR PROFILE IMAGE UPLOAD
====================================== */

.profile-image-upload {
    margin-top: 25px;
    padding: 22px;
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.profile-image-upload label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #172b22;
    margin-bottom: 15px;
}

.profile-image-preview-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dcfce7;
    background: #ffffff;
    margin-bottom: 16px;
}

#profileImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profileImage {
    width: 100%;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 13px;
}

.profile-image-upload small {
    display: block;
    color: #64746b;
    font-size: 12px;
    line-height: 1.6;
}

/* Mobile */

@media (max-width: 600px) {
    .profile-image-upload {
        padding: 18px;
    }

    .profile-image-preview-wrapper {
        width: 100px;
        height: 100px;
    }
}
/* ======================================
   LOGGED-IN NAVIGATION
====================================== */

/* Respect HTML hidden attributes */

[hidden] {
    display: none !important;
}

/* Mobile dashboard button */

.mobile-dashboard-btn {
    display: none;
}

@media (max-width: 860px) {

    .navbar .mobile-dashboard-btn:not([hidden]) {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 10px 12px;

        background: #166534;
        color: #ffffff;

        border-radius: 9px;

        font-size: 12px;
        font-weight: 700;
        text-decoration: none;

        white-space: nowrap;
    }

    .navbar .mobile-dashboard-btn:hover {
        background: #14532d;
    }
}
/* ======================================
   FEATURED PRODUCTS STYLING
====================================== */

.featured-section {
    margin-bottom: 40px;
    padding: 28px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 20px;
}

.featured-header {
    margin-bottom: 22px;
}

.featured-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #166534;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.featured-header h2 {
    font-size: 24px;
    color: #14532d;
}

.featured-header p {
    color: #166534;
    font-size: 14px;
    margin-top: 4px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.featured-card {
    background: #ffffff;
    border: 2px solid #a3e635;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.1);
    transition: transform 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #166534;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

@media (max-width: 600px) {
    .featured-section {
        padding: 18px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}