/* ==========================================
   MY MARKET - VENDOR LOGIN
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    margin-left: 270px;
    margin-top: 80px;
    padding: 30px;
    width: calc(100% - 270px);
    min-height: calc(100vh - 80px);
    overflow-x: auto;
}

body {
    margin: 0;
    background: #f4f7fb;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: fadeIn .6s ease;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

.login-card h2 {
    color: #0D47A1;
    font-size: 30px;
    margin-bottom: 8px;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Input */

.input-box {
    position: relative;
    margin-bottom: 25px;
}

.input-box input {
    width: 100%;
    height: 60px;
    border: 2px solid #d9d9d9;
    border-radius: 15px;
    padding: 0 55px 0 50px;
    font-size: 16px;
    outline: none;
}

.input-box .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #0D47A1;
    font-size: 20px;
}

#togglePassword {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0D47A1;
    font-size: 18px;
    z-index: 10;
}

#togglePassword:hover {
    color: #16A34A;
}

/* Button */

.login-btn {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #0D47A1, #16A34A);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 71, 161, .30);
}

/* Forgot Password */

.forgot {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot a {
    text-decoration: none;
    color: #0D47A1;
    font-size: 14px;
}

.forgot a:hover {
    color: #16A34A;
}

/* Footer */

.footer {
    margin-top: 25px;
    color: #888;
    font-size: 13px;
}

/* Animation */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==========================================
   Responsive Design
========================================== */

/* Laptop */

@media (max-width:1200px) {

    .login-card {
        max-width: 400px;
    }

}

/* Tablet */

@media (max-width:992px) {

    body {
        padding: 30px;
    }

    .login-card {
        max-width: 420px;
        padding: 35px 30px;
    }

    .logo {
        width: 130px;
    }

    .login-card h2 {
        font-size: 28px;
    }

}

/* Mobile */

@media (max-width:768px) {

    body {
        padding: 20px;
    }

    .login-container {
        width: 100%;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 30px 25px;
        border-radius: 15px;
    }

    .logo {
        width: 120px;
    }

    .login-card h2 {
        font-size: 26px;
    }

    .login-card p {
        font-size: 14px;
    }

    .input-box input {
        height: 55px;
        font-size: 15px;
        padding: 0 50px;
    }

    .input-box .input-icon {
        left: 15px;
        font-size: 18px;
    }

    #togglePassword {
        right: 15px;
        font-size: 18px;
    }

    .login-btn {
        height: 52px;
        font-size: 16px;
    }

}

/* Small Mobile */

@media (max-width:480px) {

    body {
        padding: 15px;
    }

    .login-card {
        padding: 25px 18px;
    }

    .logo {
        width: 100px;
    }

    .login-card h2 {
        font-size: 22px;
    }

    .login-card p {
        font-size: 13px;
    }

    .input-box {
        margin-bottom: 20px;
    }

    .input-box input {
        height: 50px;
        font-size: 14px;
    }

    .login-btn {
        height: 48px;
        font-size: 15px;
    }

    .forgot a,
    .footer {
        font-size: 12px;
    }

}


/* ===========================
   My Market Vendor Sidebar
=========================== */


/* Sidebar */

.sidebar {

    width: 270px;
    height: 100vh;
    background: #ffffff;

    position: fixed;
    left: 0;
    top: 0;

    border-right: 1px solid #e5e7eb;

    box-shadow: 0 0 15px rgba(0, 0, 0, .08);

}

/* Logo */

.logo-section {

    text-align: center;
    padding: 25px;

    border-bottom: 1px solid #eeeeee;

}

.logo-section img {

    width: 90px;

}

.logo-section h2 {

    margin-top: 10px;

    color: #0D47A1;

    font-size: 22px;

}

/* Menu */

.menu {

    list-style: none;

    padding: 20px;

}

.menu li {

    margin-bottom: 15px;

}

/* Links */

.menu li a {

    display: flex;

    align-items: center;

    gap: 15px;

    text-decoration: none;

    color: #444;

    background: #f8f9fa;

    padding: 15px 18px;

    border-radius: 12px;

    transition: .3s;

    font-size: 16px;

    font-weight: 600;

}

/* Icons */

.menu li a i {

    width: 25px;

    font-size: 18px;

    text-align: center;

    color: #0D47A1;

}

/* Hover */

.menu li a:hover {

    background: #E8F1FF;

    color: #0D47A1;

    transform: translateX(5px);

}

.menu li a:hover i {

    color: #16A34A;

}

/* Active */

.menu li.active a {

    background: linear-gradient(90deg, #0D47A1, #16A34A);

    color: #fff;

    box-shadow: 0 8px 18px rgba(13, 71, 161, .25);

}

.menu li.active a i {

    color: #fff;

}

/* Logout */

.logout {

    margin-top: 35px;

}

.logout a {

    background: #FFF1F1;

    color: #DC2626;

}

.logout a i {

    color: #DC2626;

}

.logout a:hover {

    background: #DC2626;

    color: #fff;

}

.logout a:hover i {

    color: #fff;

}

/* Mobile Menu Button */

.menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #0D47A1;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2001;
}

/* Overlay */

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 999;
}

/* Mobile */

@media(max-width:768px) {

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: .3s;
        z-index: 2000;
    }

    .sidebar.active {
        transform: translateX(0);
    }


    .header {
        left: 0;
        width: 100%;
        padding-left: 70px;
    }

    .main-content {
        margin-left: 0;
    }

    .search-box {
        display: none;
    }

}

/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 270px;
    width: calc(100% - 270px);
    height: 80px;
    background: #ffffff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 30px;

    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);

    z-index: 1000;
}

.header-left h2 {
    color: #0D47A1;
    font-size: 28px;
}

/* Right Side */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Search Box */

.search-box {
    position: relative;
}

.search-box input {
    width: 280px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0 15px 0 45px;
    outline: none;
    background: #fff;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.header-right .header-search-group .topbar-search-box {
    min-width: 0;
    flex: 0 0 auto;
}

.header-right .header-search-group .topbar-search-box input {
    width: 190px !important;
    height: 40px !important;
    padding: 0 8px 0 30px !important;
    border-radius: 999px !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    font-size: 11px !important;
}

.header-right .header-search-group .topbar-search-box i {
    left: 10px !important;
    font-size: 11px !important;
    color: #2563eb !important;
}

.topbar-search-box i {
    color: #2563eb;
}

/* Notification */

.icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F3F6FA;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.icon i {
    color: #0D47A1;
    font-size: 20px;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: red;
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Profile */

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.profile h4 {
    font-size: 15px;
    color: #333;
}

.profile small {
    color: #666;
}

/* ==========================================
   Responsive Header
========================================== */

/* Laptop */

@media (max-width:1200px) {

    .header {
        left: 270px;
        width: calc(100% - 270px);
        padding: 0 20px;
    }

    .search-box input {
        width: 200px;
    }

}

/* Tablet */

@media (max-width:992px) {

    .header {
        left: 220px;
        width: calc(100% - 220px);
        padding: 0 15px;
    }

    .header-right {
        gap: 15px;
    }

    .search-box input {
        width: 170px;
    }

    .profile h4 {
        font-size: 14px;
    }

}

/* Mobile */

@media (max-width:768px) {

    .header {
        position: fixed;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 0 15px 0 70px;
        /* Space for hamburger */
    }

    .header-left h2 {
        font-size: 22px;
    }

    .search-box {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .profile h4 {
        display: none;
    }

    .profile img {
        width: 40px;
        height: 40px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

}

/* Small Mobile */

@media (max-width:480px) {

    .header {
        height: 65px;
        padding: 0 12px 0 65px;
    }

    .header-left h2 {
        font-size: 18px;
    }

    .profile {
        gap: 5px;
    }

    .profile img {
        width: 35px;
        height: 35px;
    }

    .icon {
        width: 36px;
        height: 36px;
    }

    .icon i {
        font-size: 16px;
    }

    .badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

}

/* ===========================
   Dashboard Cards
=========================== */

.dashboard-cards {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 260px;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
}

/* Icon Colors */

.products {
    background: #0D47A1;
}

.orders {
    background: #16A34A;
}

.payments {
    background: #F59E0B;
}



.card-content p {
    color: #666;
    font-size: 16px;
}

/* ==========================================
   Responsive Dashboard Cards
========================================== */

/* Laptop */

@media (max-width:1200px) {

    .dashboard-cards {
        gap: 20px;
    }

    .card {
        min-width: 220px;
        padding: 20px;
    }

    .card-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

}

/* Tablet */

@media (max-width:992px) {

    .dashboard-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        min-width: 100%;
    }

}

/* Mobile */

@media (max-width:768px) {

    .dashboard-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        width: 100%;
        padding: 20px;
        gap: 15px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .card-content h2 {
        font-size: 24px;
    }

    .card-content p {
        font-size: 15px;
    }

}

/* Small Mobile */

@media (max-width:480px) {

    .dashboard-cards {
        gap: 15px;
    }

    .card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .card-content h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .card-content p {
        font-size: 14px;
    }

}


/* ========== ANALYTICS SECTION ========== */
.analytics-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card h3 i {
    color: #4f46e5;
}

/* ========== BAR CHART ========== */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 220px;
    padding: 10px 0 30px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14%;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    max-width: 45px;
    border-radius: 8px 8px 0 0;
    transition: height 0.6s ease, transform 0.3s;
    position: relative;
    cursor: pointer;
}

.bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.1);
}

.bar-label {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.bar.mon {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    height: 65%;
}

.bar.tue {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    height: 80%;
}

.bar.wed {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    height: 45%;
}

.bar.thu {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    height: 90%;
}

.bar.fri {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
    height: 70%;
}

.bar.sat {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    height: 55%;
}

.bar.sun {
    background: linear-gradient(180deg, #ec4899, #db2777);
    height: 40%;
}

/* ========== PIE CHART ========== */
.pie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.pie-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(#4f46e5 0% 40%,
            #22c55e 40% 65%,
            #f59e0b 65% 85%,
            #ef4444 85% 100%);
    position: relative;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
}

.pie-chart::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.pie-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.pie-center-text strong {
    display: block;
    font-size: 20px;
    color: #111;
}

.pie-center-text span {
    font-size: 12px;
    color: #6b7280;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-item span {
    font-weight: 500;
}

.legend-item small {
    color: #9ca3af;
    margin-left: auto;
    padding-left: 15px;
}

/* ========== TOP PRODUCTS HORIZONTAL BAR ========== */
.top-products-card {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-top: 5px;
}

.top-products-card h3 {
    margin: 0 0 25px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-products-card h3 i {
    color: #4f46e5;
}

.product-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}

.product-name {
    width: 180px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-bar-track {
    flex: 1;
    height: 28px;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.product-bar-fill {
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: width 0.8s ease;
}

.product-bar-fill.p1 {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    width: 92%;
}

.product-bar-fill.p2 {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    width: 78%;
}

.product-bar-fill.p3 {
    background: linear-gradient(90deg, #d97706, #f59e0b);
    width: 65%;
}

.product-bar-fill.p4 {
    background: linear-gradient(90deg, #db2777, #ec4899);
    width: 48%;
}

.product-bar-fill.p5 {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    width: 35%;
}

.product-sold {
    width: 70px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.lead-badge {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 992px) {
    .analytics-section {
        grid-template-columns: 1fr;
    }

    .product-name {
        width: 120px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .pie-container {
        flex-direction: column;
    }

    .product-bar-row {
        flex-wrap: wrap;
    }

    .product-name {
        width: 100%;
    }

    .product-sold {
        width: auto;
    }
}

/* ===========================
   Vendor ID Badge
=========================== */

.vendor-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 20px;
    padding: 10px 18px;
    background: #eef4ff;
    border: 1px solid #c7dbff;
    border-radius: 50px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .08);
}

.vendor-info i {
    font-size: 15px;
    color: #2563eb;
}

/* ===========================
   Load More
=========================== */

.load-more-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#loadMore {
    min-width: 180px;
    height: 48px;
    padding: 0 30px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

#loadMore:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, .35);
}

#loadMore:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

#loadMore i {
    font-size: 14px;
}

/* ===========================
   My Products
=========================== */


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    color: #0D47A1;
}

.add-btn {
    background: linear-gradient(90deg, #0D47A1, #16A34A);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.add-btn:hover {
    opacity: .9;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.product-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.product-table th {
    background: #0D47A1;
    color: #fff;
    padding: 15px;
    text-align: left;
}

.product-table td {
    padding: 6px;
    border-bottom: 2px solid #eee;
}

.product-table tr:hover {
    background: #f9fbff;
}

.product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
}

.status.active {
    background: #16A34A;
}

.status.inactive {
    background: #EF4444;
}

.edit-btn,
.delete-btn {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background: #0D47A1;
    color: #fff;
}

.delete-btn {
    background: #EF4444;
    color: #fff;
}

.edit-btn:hover,
.delete-btn:hover {
    opacity: .85;
}

/* ==========================================
   Responsive - My Products
========================================== */

/* Laptop */

@media (max-width:1200px) {

    .product-table {
        min-width: 850px;
    }

    .product-table th,
    .product-table td {
        padding: 12px;
    }

}

/* Tablet */

@media (max-width:992px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .add-btn {
        padding: 10px 30px;
        font-size: 14px;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-table {
        min-width: 800px;
    }

}

/* ===========================
   Responsive Table
=========================== */

@media (max-width:768px) {

    .main-content {
        margin-left: 0;
        margin-top: 70px;
        width: 100%;
        padding: 15px;
    }

    .table-container {
        overflow-x: auto;
    }

    .product-table {
        min-width: 900px;
    }

}

@media (max-width:992px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .add-btn {
        margin-top: 20px;
    }

    .product-table {
        min-width: 850px;
    }

    .product-table th,
    .product-table td {
        padding: 12px;
        font-size: 14px;
    }

    .product-img {
        width: 50px;
        height: 50px;
    }

}

@media (max-width:768px) {

    .product-table {
        min-width: 750px;
    }

    .product-table th,
    .product-table td {
        padding: 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .product-img {
        width: 45px;
        height: 45px;
    }

    .edit-btn,
    .delete-btn {
        width: 34px;
        height: 34px;
    }

}

@media (max-width:480px) {

    .product-table {
        min-width: 650px;
    }

    .product-table th,
    .product-table td {
        padding: 8px;
        font-size: 12px;
    }

    .product-img {
        width: 40px;
        height: 40px;
    }

    .status {
        font-size: 11px;
        padding: 4px 8px;
    }

    .edit-btn,
    .delete-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ==========================================
   Vendor Profile
========================================== */

.profile-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.profile-top img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0D47A1;
    background: #f5f5f5;
}

.vendor-info {
    flex: 1;
}

.vendor-info h2 {
    color: #0D47A1;
    font-size: 30px;
    margin-bottom: 15px;
}

.vendor-info p {
    margin: 12px 0;
    color: #555;
    font-size: 16px;
}

.vendor-info p i {
    width: 28px;
    color: #16A34A;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-box {
    background: #f8fbff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: .3s;
}

.detail-box:hover {
    border-color: #0D47A1;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(13, 71, 161, .10);
}

.detail-box label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.detail-box span {
    color: #222;
    font-size: 17px;
    font-weight: 600;
    word-break: break-word;
}

/* ==========================================
   Responsive
========================================== */

@media(max-width:992px) {

    .profile-top {
        gap: 20px;
    }

    .profile-top img {
        width: 120px;
        height: 120px;
    }

    .vendor-info h2 {
        font-size: 26px;
    }

    .profile-details {
        gap: 15px;
    }

}

@media(max-width:768px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .add-btn {
        width: 100%;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-top {
        flex-direction: column;
        text-align: center;
    }

    .vendor-info h2 {
        font-size: 24px;
    }

    .vendor-info p {
        font-size: 15px;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

}

@media(max-width:480px) {

    .profile-card {
        padding: 15px;
    }

    .profile-top img {
        width: 100px;
        height: 100px;
    }

    .vendor-info h2 {
        font-size: 20px;
    }

    .vendor-info p {
        font-size: 14px;
    }

    .detail-box {
        padding: 15px;
    }

    .detail-box label {
        font-size: 13px;
    }

    .detail-box span {
        font-size: 15px;
    }

}

/* ===========================
   Add Product
=========================== */

.product-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: .3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0D47A1;
    box-shadow: 0 0 5px rgba(13, 71, 161, .2);
}

.form-group textarea {
    resize: vertical;
}

@media(max-width:768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-form-card {
        padding: 20px;
    }

    .add-btn {
        width: 50%;
    }

}

/* ===========================
   Sidebar Submenu
=========================== */

.has-submenu>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    font-size: 12px;
    transition: .3s;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 18px;
    margin-top: 8px;
}

.submenu li {
    margin: 8px 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    background: #f8f9fa;
    font-size: 15px;
}

.submenu li a:hover {
    background: #E8F1FF;
    color: #0D47A1;
}

.has-submenu.active .submenu {
    display: block;
}

.has-submenu.active .arrow {
    transform: rotate(180deg);
}

.date-time-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.date-time-box i {
    color: #0d6efd;
    font-size: 18px;
}

.menu .menu-label {
    margin: 24px 12px 8px;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Marketplace category search */
.category-search-wrap {
    position: relative;
}

.category-search-wrap input {
    padding-left: 42px;
}

.category-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 1;
}

.category-results {
    position: absolute;
    z-index: 1001;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 280px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
}

.category-option,
.category-empty {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 7px;
    cursor: pointer;
}

.category-option:hover,
.category-option.is-active {
    background: #e8f1ff;
    color: #0d47a1;
}

.category-option small,
.selected-category-info {
    color: #64748b;
}

.selected-category-info {
    display: block;
    margin-top: 8px;
}

.selected-category-info.is-selected {
    color: #198754;
    font-weight: 600;
}


#responseMsg {
    margin-bottom: 15px;
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}




/* Mobile */
@media (max-width: 768px) {
    .date-time-box {
        display: none;
    }
}



.view-btn,
.edit-btn {

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    color: #fff;

    margin-right: 5px;

    transition: .3s;

}

.view-btn {

    background: #0d6efd;

}

.view-btn:hover {

    background: #0b5ed7;

}

.edit-btn {

    background: #28a745;

}

.edit-btn:hover {

    background: #218838;

}

/*====================================
PRODUCT VIEW MODAL
====================================*/

.product-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.product-modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    padding: 18px 25px;
}

.product-modal .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.product-modal .modal-title i {
    color: #0d6efd;
    margin-right: 8px;
}

.product-modal .modal-body {
    background: #f7f9fc;
    padding: 25px;
}


/*====================================
IMAGE CARD
====================================*/

.product-image-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.main-product-image {

    width: 100%;
    height: 360px;

    object-fit: contain;

    background: #fff;

    padding: 20px;
}


/*====================================
THUMBNAILS
====================================*/

.thumb-gallery {

    display: flex;
    justify-content: center;
    gap: 12px;

    padding: 18px;
    flex-wrap: wrap;
}

.thumb {

    width: 65px;
    height: 65px;

    border-radius: 10px;

    border: 2px solid transparent;

    object-fit: cover;

    cursor: pointer;

    transition: .3s;
}

.thumb:hover {

    transform: scale(1.08);

    border-color: #0d6efd;

}

.thumb.active {

    border-color: #0d6efd;

}


/*====================================
INFO CARD
====================================*/

.info-card {

    border: none;
    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

}

.info-card .card-body {

    padding: 30px;

}

.info-card h3 {

    font-size: 28px;

    font-weight: 700;

    color: #222;

}


/*====================================
BADGES
====================================*/

.badge-section {

    margin: 18px 0;

}

.badge-section .badge {

    font-size: 14px;

    padding: 8px 14px;

    margin-right: 8px;

    border-radius: 30px;

}


/*====================================
DETAIL GRID
====================================*/

.detail-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-top: 20px;

}

.detail-grid label {

    display: block;

    font-size: 13px;

    color: #777;

    margin-bottom: 6px;

    text-transform: uppercase;

    font-weight: 600;

}

.detail-grid p {

    margin: 0;

    font-size: 17px;

    font-weight: 600;

    color: #222;

}


/*====================================
PRICE CARD
====================================*/

.price-card {

    border: none;

    border-radius: 16px;

    background: linear-gradient(135deg, #0d6efd, #3f8cff);

    color: #fff;

    box-shadow: 0 10px 25px rgba(13, 110, 253, .25);

}

.price-card h6 {

    color: #d9e9ff;

    font-weight: 500;

}

.price-card h4 {

    font-weight: 700;

    margin-top: 10px;

}


/*====================================
DESCRIPTION
====================================*/

.product-modal .card {

    border: none;

    border-radius: 16px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .07);

}

.product-modal .card-header {

    background: #fff;

    border-bottom: 1px solid #ececec;

    font-size: 17px;

    font-weight: 600;

}

.product-modal .card-body {

    font-size: 15px;

    color: #555;

    line-height: 28px;

}


/*====================================
FOOTER
====================================*/

.product-modal .modal-footer {

    border-top: 1px solid #ececec;

    background: #fff;

    padding: 18px 25px;

}

.product-modal .btn {

    border-radius: 10px;

    padding: 10px 25px;

    font-weight: 600;

}


/*====================================
HOVER EFFECT
====================================*/

.product-image-card,
.info-card,
.price-card,
.product-modal .card {

    transition: .35s;

}

.product-image-card:hover,
.info-card:hover,
.price-card:hover,
.product-modal .card:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);

}


/*====================================
SCROLLBAR
====================================*/

.product-modal ::-webkit-scrollbar {

    width: 8px;

}

.product-modal ::-webkit-scrollbar-thumb {

    background: #0d6efd;

    border-radius: 30px;

}


/*====================================
MOBILE
====================================*/

@media(max-width:992px) {

    .main-product-image {

        height: 260px;

    }

    .detail-grid {

        grid-template-columns: 1fr;

    }

    .price-card .col-md-4 {

        margin-bottom: 20px;

    }

    .info-card h3 {

        font-size: 24px;

    }

}

/* Vendor product quick-view modal */
body.vendor-modal-open {
    overflow: hidden;
}

.vendor-product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.vendor-product-modal.is-open {
    display: flex;
}

.vendor-product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(3px);
}

.vendor-product-modal__panel {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 25px 65px rgba(15, 23, 42, .32);
}

.vendor-product-modal__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
}

.vendor-product-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.vendor-product-modal__header {
    padding: 28px 80px 22px 30px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.vendor-product-modal__header p {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.vendor-product-modal__header h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 25px;
}

.vendor-product-modal__status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.vendor-product-modal__status.is-active {
    background: #dcfce7;
    color: #15803d;
}

.vendor-product-modal__status.is-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.vendor-product-modal__body {
    padding: 28px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.vendor-product-modal__gallery {
    grid-row: span 2;
}

.vendor-product-modal__main-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.vendor-product-modal__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.vendor-product-modal__thumb {
    padding: 0;
    width: 45px;
    height: 45px;
    border: 2px solid transparent;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.vendor-product-modal__thumb.is-selected {
    border-color: #0d6efd;
}

.vendor-product-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-product-modal__summary {
    color: #475569;
    line-height: 1.6;
}

.vendor-product-modal__summary p {
    margin: 0;
}

.vendor-product-modal__prices {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.vendor-product-modal__prices div {
    padding: 12px 15px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.vendor-product-modal__prices span, .vendor-product-modal__details span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

.vendor-product-modal__prices strong {
    color: #15803d;
    font-size: 18px;
}

.vendor-product-modal__prices s {
    color: #64748b;
}

.vendor-product-modal__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.vendor-product-modal__details div {
    padding: 13px 15px;
    background: #fff;
}

.vendor-product-modal__details strong {
    color: #1e293b;
    font-size: 14px;
}

.vendor-product-modal__description {
    grid-column: 1/-1;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    line-height: 1.65;
}

.vendor-product-modal__description h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 16px;
}

.vendor-product-modal__description p {
    margin: 0;
}

.vendor-product-modal__state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
}

.vendor-product-modal__state i {
    color: #0d6efd;
    font-size: 26px;
}

.vendor-product-modal__state.is-error i {
    color: #dc2626;
}

@media(max-width:640px) {
    .vendor-product-modal {
        padding: 12px;
    }

    .vendor-product-modal__header {
        padding: 22px 64px 18px 20px;
    }

    .vendor-product-modal__header h2 {
        font-size: 21px;
    }

    .vendor-product-modal__body {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .vendor-product-modal__gallery {
        grid-row: auto;
    }

    .vendor-product-modal__main-image {
        height: 210px;
    }

    .vendor-product-modal__details {
        grid-template-columns: 1fr;
    }
}


.status-btn {

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    color: #fff;

    transition: .3s;

}

.approved {

    background: #198754;

}

.pending {

    background: #ffc107;

    color: #222;

}

.status-btn:hover {

    transform: scale(1.08);

}


/*==========================
Dashboard Cards
==========================*/

.dashboard-cards {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 30px;

}

.dashboard-cards .card {

    background: #fff;

    border-radius: 14px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);

    transition: .3s;

    border: 1px solid #f1f1f1;

}

.dashboard-cards .card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);

}

.card-icon {

    width: 60px;

    height: 60px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    color: #fff;

    flex-shrink: 0;

}

.card-content {

    flex: 1;

}

.card-content h2 {

    margin: 0;

    font-size: 28px;

    font-weight: 700;

    color: #222;

    line-height: 1;

}

.card-content p {

    margin-top: 8px;

    color: #777;

    font-size: 14px;

    font-weight: 500;

}

/* Card Colors */

.products {

    background: #0d6efd;

}

.orders {

    background: #fd7e14;

}

.payments {

    background: #198754;

}

.reviews {

    background: #6f42c1;

}

/*==========================
Responsive
==========================*/

@media(max-width:1200px) {

    .dashboard-cards {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:576px) {

    .dashboard-cards {

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

    }

    .dashboard-cards .card {

        flex-direction: column;

        text-align: center;

        padding: 15px;

    }

    .card-icon {

        width: 50px;

        height: 50px;

        font-size: 20px;

    }

    .card-content h2 {

        font-size: 22px;

    }

    .card-content p {

        font-size: 13px;

        margin-top: 6px;

    }

}

.product-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.product-search {
    display: flex;
    align-items: center;
    width: min(420px, 100%);
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background: #fff;
    color: #64748b;
}

.product-search:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

.product-search input {
    width: 100%;
    padding: 12px 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.product-count {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

.product-load-more-wrap {
    text-align: center;
    padding: 18px 0 4px;
}

.product-load-more {
    min-width: 145px;
    padding: 11px 20px;
    border: 0;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font: 600 14px inherit;
    cursor: pointer;
}

.product-load-more:hover {
    background: #0b5ed7;
}

.product-load-more:disabled {
    opacity: .65;
    cursor: wait;
}

.product-list-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-brand {
    color: #777;
}

.product-sku, .product-mrp {
    color: #999;
}

.product-mrp {
    text-decoration: line-through;
}

.product-selling-price {
    color: #28a745;
}

.product-stock {
    font-weight: 600;
}

.product-stock.is-in-stock {
    color: green;
}

.product-stock.is-out-of-stock {
    color: red;
}

.product-table-state {
    padding: 30px !important;
    text-align: center;
    color: #64748b;
}

.product-table-state.is-error {
    color: #dc2626;
}

@media(max-width:640px) {
    .product-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-search {
        width: 100%;
    }

    .product-count {
        padding-left: 2px;
    }
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.active {
    background: #28a745;
}

.status-dot.inactive {
    background: #dc3545;
}

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.profile-menu {
    position: relative;
    margin-left: 8px;
}

.topbar-menu {
    position: relative;
}

.topbar-menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: .3s ease;
    list-style: none;
}

.topbar-menu-toggle::-webkit-details-marker {
    display: none;
}

.topbar-menu[open] .topbar-menu-toggle {
    background: #2563eb;
    color: #fff;
}

.topbar-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
}

.topbar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    transition: .2s ease;
}

.topbar-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.topbar-menu-item--danger {
    color: #dc2626;
}

.topbar-menu-item--danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}




.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 15px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 46px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 0 18px 0 45px;
    font-size: 15px;
    outline: none;
    transition: .3s;
    background: #fff;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-box select,
.filter-box input[type="date"] {
    height: 46px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 0 14px;
    min-width: 160px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: .3s;
    box-sizing: border-box;
}

.filter-box select:focus,
.filter-box input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

#resetFilter {
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: .3s;
    white-space: nowrap;
}

#resetFilter:hover {
    background: #bb2d3b;
}

.table-responsive {
    background: #fff;
    border-radius: 12px;
    overflow: auto;

    -webkit-overflow-scrolling: touch;
    /* smooth scroll on iOS */
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    /* prevents columns from crushing on small screens */
}

.product-table thead {
    background: #0d6efd;
}

.product-table th {
    color: #fff;
    padding: 14px 15px;
    font-size: 14px;
    white-space: nowrap;
    text-align: left;
}

.product-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #ececec;
    white-space: nowrap;
    font-size: 14px;
}

.product-table tbody tr {
    transition: .3s;
}

.product-table tbody tr:hover {
    background: #f5f9ff;
}

/* ========== Tablet (≤ 991px) ========== */
@media (max-width: 991px) {
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .search-box {
        min-width: 100%;
        width: 100%;
    }

    .filter-box {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .filter-box select,
    .filter-box input[type="date"],
    #resetFilter {
        width: 100%;
        min-width: 0;
    }

    /* Make reset button span full width on tablet if desired */
    #resetFilter {
        grid-column: 1 / -1;
    }
}

/* ========== Mobile (≤ 576px) ========== */
@media (max-width: 576px) {
    .table-toolbar {
        gap: 12px;
        margin-bottom: 16px;
    }

    .search-box input {
        height: 44px;
        font-size: 14px;
        padding-left: 42px;
    }

    .search-box i {
        left: 13px;
        font-size: 14px;
    }

    .filter-box {
        grid-template-columns: 1fr;
        /* stack everything */
        gap: 10px;
    }

    .filter-box select,
    .filter-box input[type="date"],
    #resetFilter {
        height: 44px;
        font-size: 14px;
        width: 100%;
    }

    .product-table th,
    .product-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .table-responsive {
        border-radius: 10px;
        margin: 0 -4px;
        /* slight edge-to-edge feel on very small screens */
    }
}

/* ========== Extra small phones (≤ 400px) ========== */
@media (max-width: 400px) {
    .product-table {
        min-width: 600px;
    }

    .product-table th,
    .product-table td {
        padding: 10px 8px;
        font-size: 12.5px;
    }
}

/*==================================
        PROFILE FORM
==================================*/

.profile-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
    border: 1px solid #ececec;
}

/*==================================
        PROFILE IMAGE
==================================*/

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0d6efd;
    padding: 5px;
    background: #fff;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(13, 110, 253, .18);
}

.profile-photo:hover {
    transform: scale(1.04);
}

#shop_photo {
    margin-top: 18px;
    padding: 10px;
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    width: 260px;
    max-width: 100%;
}

/*==================================
        FORM GRID
==================================*/

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 35px;
}

/*==================================
        FORM GROUP
==================================*/

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    transition: .3s;
    box-sizing: border-box;

}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);

}

.form-group input[readonly] {
    background: #f5f7fb;
    cursor: not-allowed;
}

.full {
    grid-column: 1/-1;
}

/*==================================
        BUTTON
==================================*/

.save-btn {

    background: linear-gradient(90deg, #0D47A1, #16A34A);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

.save-btn:hover {

    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, .30);

}

.save-btn:active {

    transform: scale(.98);

}

/*==================================
        TABLET
==================================*/

@media(max-width:991px) {

    .profile-form {

        padding: 25px;

    }

    .form-grid {

        grid-template-columns: repeat(2, 1fr);
        gap: 18px;

    }

    .profile-photo {

        width: 140px;
        height: 140px;

    }

}

/*==================================
        MOBILE
==================================*/

@media(max-width:768px) {

    .profile-form {

        padding: 20px;

    }

    .form-grid {

        grid-template-columns: 1fr;
        gap: 18px;

    }

    .profile-photo {

        width: 120px;
        height: 120px;

    }

    #shop_photo {

        width: 100%;

    }

    .save-btn {

        width: 100%;
        padding: 15px;
        font-size: 15px;

    }

}

/*==================================
        SMALL MOBILE
==================================*/

@media(max-width:480px) {

    .profile-form {

        padding: 15px;
        border-radius: 12px;

    }

    .form-group label {

        font-size: 13px;

    }

    .form-group input,
    .form-group textarea,
    .form-group select {

        font-size: 14px;
        padding: 12px;

    }

    .profile-photo {

        width: 100px;
        height: 100px;

    }

    .save-btn {

        font-size: 14px;
        padding: 14px;

    }

}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.pending {
    background: #ffc107;
    color: #000;
}

.approved {
    background: #28a745;
}

.rejected {
    background: #dc3545;
}


/* =========================================
   ORDERS TOOLBAR
========================================= */

.order-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-search {
    position: relative;
    width: 420px;
    max-width: 100%;
}

.order-search>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b95a7;
    font-size: 14px;
}

.order-search input {
    width: 100%;
    height: 44px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 0 42px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: 0.2s ease;
}

.order-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    border: 0;
    border-radius: 50%;

    background: #f1f3f5;
    color: #666;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}

.order-result-info {
    color: #697386;
    font-size: 13px;
}


/* =========================================
   ORDER TABLE
========================================= */

.order-table {
    min-width: 1100px;
}

.order-id {
    color: #2563eb;
}

.customer-name {
    font-weight: 600;
    color: #252b36;
}

.customer-mobile {
    display: block;
    margin-top: 3px;
    color: #8a94a6;
    font-size: 12px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.order-product-image,
.order-product-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f3f5;
    color: #8b95a7;
}

.order-product span {
    font-weight: 500;
}


/* =========================================
   LOAD MORE
========================================= */

.load-more-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 80px;

    margin-top: 10px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 22px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.load-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.load-more-loader {
    display: none;
    color: #6b7280;
    font-size: 14px;
}

.no-more-orders {
    display: none;
    color: #9ca3af;
    font-size: 13px;
}


/* =========================================
   EMPTY / LOADING
========================================= */

.loading-row,
.empty-row {
    text-align: center !important;
    padding: 50px 20px !important;
    color: #7b8494;
}

.loading-row i {
    margin-right: 8px;
}

.empty-order-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #c5cad3;
}

.empty-row strong {
    display: block;
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 5px;
}

.empty-row small {
    display: block;
    color: #9ca3af;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .order-toolbar {
        align-items: stretch;
    }

    .order-search {
        width: 100%;
    }

    .order-result-info {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

}