/* Reset WordPress styles for vendor dashboard */
#stats * {
    box-sizing: border-box;
}

#stats ul,
#stats li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#stats p {
    margin: 0;
    padding: 0;
}

/* Dashboard Styles */
.vendor-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: #333;
}

.vendor-dashboard h1 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 28px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Dashboard Navigation Tabs */
.dashboard-navigation {
    margin-bottom: 30px;
}

.dashboard-navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 1px solid #e1e1e1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-navigation ul li {
    margin-right: 5px;
}

.dashboard-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
    position: relative;
}

.message-counter {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dashboard-navigation ul li a i {
    margin-right: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.dashboard-navigation ul li a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
}

.dashboard-navigation ul li a:hover i {
    background-color: rgba(44, 62, 80, 0.1);
    transform: scale(1.1);
}

.dashboard-navigation ul li a.active {
    border-bottom: 3px solid #3498db;
    color: #3498db;
    background-color: #f8f9fa;
}

/* Enhanced active tab styling */
.dashboard-navigation ul li a.active i {
    color: #fff;
    background-color: #3498db;
    transform: scale(1.1);
}

.dashboard-navigation ul li a.external-link {
    background-color: #3498db;
    color: #fff;
    border-bottom: 3px solid #2980b9;
}

.dashboard-navigation ul li a.external-link i {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dashboard-navigation ul li a.external-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 40px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 22px;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-section h2 i {
    margin-right: 10px;
    font-size: 20px;
    color: #3498db;
}

.dashboard-section h2 .button {
    font-size: 14px;
    margin-bottom: 0;
}

.dashboard-section .button {
    display: inline-block;
    margin-bottom: 20px;
    background-color: #3498db;
    transition: background-color 0.3s ease;
}

.dashboard-section .button:hover {
    background-color: #2980b9;
}

/* Tables Styling */
.vendor-products,
.vendor-orders,
.messages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.vendor-products th,
.vendor-orders th,
.messages-table th {
    background-color: #f5f7fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e3e8ef;
}

.vendor-products td,
.vendor-orders td,
.messages-table td {
    padding: 15px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.vendor-products tr:hover td,
.vendor-orders tr:hover td,
.messages-table tr:hover td {
    background-color: #f9fafb;
}

.vendor-products tr:last-child td,
.vendor-orders tr:last-child td,
.messages-table tr:last-child td {
    border-bottom: none;
}

.vendor-products a,
.vendor-orders a,
.messages-table a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vendor-products a:hover,
.vendor-orders a:hover,
.messages-table a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 40px;
    padding: 0;
}

.profile-picture-upload {
    flex: 0 0 200px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-picture-upload h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.profile-details {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.profile-details p {
    margin-bottom: 20px;
}

.profile-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.profile-details input[type="text"],
.profile-details textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dce0e5;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.profile-details input[type="text"]:focus,
.profile-details textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.profile-details textarea {
    min-height: 120px;
    resize: vertical;
}

.current-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.current-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

input[type="file"] {
    margin: 15px 0;
    padding: 12px;
    border: 2px dashed #dce0e5;
    border-radius: 8px;
    width: 100%;
    background-color: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

input[type="file"]:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

input[type="file"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.description {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Upload Progress Styles */
.upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border: 2px solid #4a6da7;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 300px;
}

.upload-progress-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.upload-progress-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-progress-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    width: 0%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Compression notification styles */
.compress-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

.compress-notification.success {
    background: #2ecc71;
}

.compress-notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Banner Section */
.banner-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.current-banner {
    margin: 15px 0;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.current-banner img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

/* Message Tabs */
.message-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e1e1e1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.message-tabs li {
    margin-right: 5px;
}

.message-tabs li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.message-tabs li a i {
    margin-right: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.message-tabs li a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
}

.message-tabs li a.active {
    border-bottom: 3px solid #3498db;
    color: #3498db;
    background-color: #f8f9fa;
}

.message-tabs li a.active i {
    color: #fff;
    background-color: #3498db;
    transform: scale(1.1);
}

.message-tab-content {
    margin-bottom: 30px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.message-tab-content.active {
    display: block;
}

.messages-table tr.unread {
    font-weight: 600;
    background-color: #edf7ff;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .profile-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .profile-picture-upload,
    .profile-details {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .vendor-dashboard {
        padding: 20px 15px;
    }
    
    .dashboard-navigation ul {
        flex-wrap: nowrap;
        margin-bottom: 20px;
    }
    
    .dashboard-navigation ul li {
        flex: 1 0 auto;
        margin-right: 3px;
    }
    
    .dashboard-navigation ul li a {
        padding: 10px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    .vendor-products th,
    .vendor-orders th,
    .messages-table th {
        padding: 10px;
    }
    
    .vendor-products td,
    .vendor-orders td,
    .messages-table td {
        padding: 10px;
    }
    
    .profile-picture-upload,
    .profile-details {
        padding: 15px;
    }
    
    .dashboard-section h2 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-section h2 .button {
        margin-top: 10px;
    }
    
    /* Responsive tables */
    .vendor-products,
    .vendor-orders,
    .messages-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Vendor Shop Page - Complete Redesign */
.vendor-shop {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Hero Banner Section */
.vendor-banner {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
}

.vendor-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.vendor-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.vendor-banner-content {
    max-width: 800px;
    padding: 0 20px;
 
}

.vendor-banner-content h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.vendor-banner-content .vendor-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vendor-banner-content .contact-vendor-button {
    display: inline-block;
    padding: 14px 30px;
    background: #fff;
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.vendor-banner-content .contact-vendor-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Vendor Info Section */
.vendor-info-section {
    background: #fff;
    padding: 40px 0;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.vendor-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.vendor-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-top: -100px;
}

.vendor-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.vendor-stat {
    text-align: center;
}

.vendor-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.vendor-stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Section */
.vendor-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.vendor-products h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.vendor-products h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* Product Grid Styles */
/* .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

 .woocommerce ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
} 

.woocommerce ul.products li.product:hover img {
    transform: scale(1.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px 20px 10px;
    font-size: 1.2em;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    padding: 0 20px;
    color: #3498db;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .button {
    margin: 0;
    width: 100%;
    text-align: center;
    background: #3498db;
    color: #fff;
    padding: 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
    background: #2980b9;
    transform: none;
} */

/* Product Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .vendor-banner {
        height: 350px;
    }
    
    .vendor-banner-content h1 {
        font-size: 2.5em;
    }
    
    .vendor-info-container {
        flex-direction: column;
        text-align: center;
    }
    
    .vendor-profile-picture {
        margin: -100px auto 0;
    }
    
    .vendor-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .vendor-banner {
        height: 300px;
    }
    
    .vendor-banner-content h1 {
        font-size: 2em;
    }
    
    .vendor-banner-content .vendor-description {
        font-size: 1em;
    }
    
    .vendor-info-section {
        margin-top: -50px;
        padding: 30px 0;
    }
    
    .vendor-profile-picture {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }
    
    .vendor-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .vendor-stat {
        flex: 1 0 40%;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .vendor-banner {
        height: 250px;
    }
    
    .vendor-banner-content h1 {
        font-size: 1.8em;
    }
    
    .vendor-info-section {
        margin-top: -30px;
        padding: 20px 0;
    }
    
    .vendor-profile-picture {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }
    
    .vendor-stat {
        flex: 1 0 100%;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .woocommerce ul.products li.product img {
        height: 220px;
    }
}

/* Message System Styles */
.message-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.message-form input[type="text"],
.message-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.message-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.message-meta {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.message-content {
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
}

.message-reply {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Form Styles */
.button {
    display: inline-block;
    padding: 10px 18px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #2980b9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.submit-button {
    margin-top: 30px;
    text-align: center;
}

.submit-button .button {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Success Messages */
.message-success {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

/* Product Vendor Info */
.product-vendor-info {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.product-vendor-info h3 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 18px;
    color: #333;
    border: none;
}

.vendor-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.vendor-profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.vendor-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-profile .vendor-name {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
}

.vendor-profile .vendor-name strong {
    display: block;
    margin-top: 4px;
    font-size: 1.2em;
    color: #333;
}

.vendor-buttons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.vendor-buttons a {
    flex: 1;
    padding: 12px 20px;
    background-color: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.vendor-buttons a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

@media (max-width: 480px) {
    .product-vendor-info {
        padding: 20px;
    }

    .vendor-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .vendor-buttons a {
        width: 100%;
    }
}

/* Add spacing between add to cart and vendor info */
.woocommerce div.product form.cart {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

/* Ensure proper spacing after vendor info */
.product-vendor-info + .product_meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Product table with thumbnails */
.product-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-thumbnail {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #edf0f5;
}

.product-title {
    font-weight: 500;
}

/* Vendor Statistics Styles - Fixed */
.dashboard-section#stats {
    /* Do not force display - let the tab system handle visibility */
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 30px !important;
}

.stat-card {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07) !important;
    padding: 25px !important;
    transition: transform 0.3s ease !important;
}

.stat-card:hover {
    transform: translateY(-5px) !important;
}

.stat-card h3 {
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #edf0f5 !important;
    color: #2c3e50 !important;
    font-size: 18px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.stat-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px !important;
}

.stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 15px !important;
    border-radius: 8px !important;
    background-color: #f8f9fa !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    height: 100% !important;
}

.stat-item i {
    font-size: 28px !important;
    color: #3498db !important;
    margin-bottom: 12px !important;
}

.stat-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    background-color: #edf7fd !important;
}

.stat-label {
    color: #666 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    font-weight: 500 !important;
    order: 2 !important;
}

.stat-value {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 24px !important;
    order: 1 !important;
}

.top-products-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

.top-products-list li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 15px !important;
    border-radius: 8px !important;
    background-color: #f8f9fa !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    height: 100% !important;
}

.top-products-list li i {
    font-size: 24px !important;
    color: #f1c40f !important;
    margin-bottom: 12px !important;
}

.top-products-list li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    background-color: #fff9e6 !important;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.sales-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-content {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .top-products-list {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .stat-content {
        grid-template-columns: 1fr !important;
    }
}

/* Vendors List Page Styles */
.vendors-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vendors-header {
    text-align: center;
    margin-bottom: 50px;
}

.vendors-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.vendors-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vendor-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vendor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vendor-card-header {
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
}

.vendor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f4fd;
    color: #3498db;
}

.vendor-avatar-placeholder i {
    font-size: 32px;
}

.vendor-name {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.vendor-description {
    padding: 0 25px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.vendor-description p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.vendor-meta {
    display: flex;
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    background-color: #f8f9fa;
}

.vendor-meta .vendor-stat {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.vendor-meta .vendor-stat i {
    margin-right: 8px;
    color: #3498db;
    font-size: 16px;
}

.vendor-actions {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.vendor-actions .visit-shop-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #3498db;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.vendor-actions .visit-shop-button i {
    margin-right: 8px;
}

.vendor-actions .visit-shop-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-vendors-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 18px;
    color: #666;
}

/* Responsive Styles for Vendors List */
@media (max-width: 768px) {
    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .vendors-header h1 {
        font-size: 30px;
    }
    
    .vendors-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .vendors-grid {
        grid-template-columns: 1fr;
    }
    
    .vendors-header {
        margin-bottom: 30px;
    }
    
    .vendors-header h1 {
        font-size: 26px;
    }
}

/* Custom Product Template Styles */
.custom-product-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.custom-product-header {
    margin-bottom: 30px;
}

.custom-product-breadcrumb {
    color: #777;
    font-size: 14px;
}

.custom-product-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.custom-product-breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.custom-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.custom-product-gallery {
    flex: 1;
    min-width: 40%;
    position: relative;
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.main-image {
    background-color: #fff;
    text-align: center;
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-badge.in-stock {
    background-color: #e8f7ef;
    color: #27ae60;
}

.stock-badge.out-of-stock {
    background-color: #fbe9e7;
    color: #e74c3c;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    margin-bottom: 15px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer !important;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover::after {
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item.active {
    border-color: #3498db;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.thumbnail-item.active::after {
    background: rgba(52, 152, 219, 0.2);
    opacity: 1;
}

.custom-product-summary {
    flex: 1;
    min-width: 45%;
}

.product-title {
    font-size: 28px;
    margin: 0 0 20px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
}

.star-rating {
    color: #f39c12;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.star-rating i {
    display: inline-block;
    margin-right: 2px;
}

.rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: #777;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.product-price del {
    font-size: 18px;
    opacity: 0.7;
    margin-right: 10px;
}

.product-short-description {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.product-vendor-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.product-vendor-info h3 {
    font-size: 16px;
    margin: 0 0 15px;
    color: #666;
    font-weight: 600;
}

.vendor-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vendor-profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.vendor-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e8f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 20px;
}

.vendor-info {
    flex: 1;
}

.vendor-name {
    font-size: 16px;
    color: #2c3e50;
}

.vendor-buttons {
    display: flex;
    gap: 10px;
}

.vendor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vendor-button i {
    margin-right: 6px;
}

.vendor-shop-button {
    background-color: #3498db;
    color: #fff;
}

.vendor-shop-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.vendor-message-button {
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.vendor-message-button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.product-meta-data {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 14px;
    color: #666;
}

.product-categories,
.product-tags {
    margin-bottom: 8px;
}

.meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.meta-label i {
    margin-right: 5px;
    color: #3498db;
}

/* Add to cart section styling */
.single_add_to_cart_button {
    background-color: #d70000 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.single_add_to_cart_button:hover {
    background-color: #b50000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.quantity .qty {
    border-radius: 5px !important;
    height: 42px !important;
    width: 70px !important;
    border: 1px solid #ddd !important;
}

/* Product tabs */
.product-tabs {
    margin-bottom: 50px;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e1e1e1;
}

.tab-nav-item {
    padding: 12px 20px;
    margin-right: 5px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tab-nav-item i {
    margin-right: 6px;
    font-size: 16px;
}

.tab-nav-item:hover {
    color: #3498db;
}

.tab-nav-item.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    padding: 30px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.product-description {
    color: #666;
    line-height: 1.7;
}

.product-description p,
.product-description ul,
.product-description ol {
    margin-bottom: 20px;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
    margin: 25px 0 15px;
    color: #2c3e50;
}

/* Related products styling */
.related.products > h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.related.products > h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 60px;
    background-color: #3498db;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.related.products ul.products li.product {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    padding-bottom: 15px !important;
}

.related.products ul.products li.product:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.related.products ul.products li.product img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 !important;
}

.related.products ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    padding: 15px 15px 5px !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.related.products ul.products li.product .price {
    padding: 0 15px !important;
    color: #3498db !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.related.products ul.products li.product .price del {
    opacity: 0.6 !important;
    margin-right: 5px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    color: #777 !important;
}

.related.products ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #e74c3c !important;
}

.related.products ul.products li.product .button {
    margin: 0 auto !important;
    width: 80% !important;
    text-align: center !important;
    background-color: #d70000 !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.related.products ul.products li.product .button:hover {
    background-color: #b50000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Product Badge */
.related.products ul.products li.product .onsale {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background-color: #e74c3c !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    border: none !important;
}

@media (max-width: 991px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .related.products ul.products li.product img {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Related Products Section Wrapper */
.related-products-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .custom-product-container {
        flex-direction: column;
    }
    
    .custom-product-gallery,
    .custom-product-summary {
        width: 100%;
    }
    
    .vendor-buttons {
        flex-direction: column;
    }
    
    .tab-nav-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-title {
        font-size: 22px;
    }
}

/* Customer Dashboard Specific Styles */
.customer-dashboard .dashboard-section#wishlist .wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.customer-dashboard .wishlist-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.customer-dashboard .wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-dashboard .wishlist-item-image {
    text-align: center;
    margin-bottom: 15px;
}

.customer-dashboard .wishlist-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.customer-dashboard .wishlist-item-info h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.customer-dashboard .wishlist-item-info .price {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #3498db;
}

.customer-dashboard .wishlist-item-info .button {
    display: inline-block;
    margin-right: 5px;
    padding: 8px 12px;
    font-size: 13px;
}

.customer-dashboard .dashboard-section#reviews .customer-reviews {
    display: grid;
    gap: 20px;
}

.customer-dashboard .review-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.customer-dashboard .review-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-dashboard .review-product {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.customer-dashboard .review-product-image {
    width: 80px;
    margin-right: 15px;
}

.customer-dashboard .review-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.customer-dashboard .review-product-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.customer-dashboard .review-content {
    color: #555;
}

.customer-dashboard .review-date {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}

.customer-dashboard .profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.customer-dashboard .profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.customer-dashboard .profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-dashboard .profile-name h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 20px;
}

.customer-dashboard .profile-name p {
    margin: 0;
    color: #7f8c8d;
}

.customer-dashboard .form-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.customer-dashboard .form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.customer-dashboard .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.customer-dashboard .form-group {
    padding: 0 10px;
    margin-bottom: 20px;
    flex: 1;
    min-width: 200px;
}

.customer-dashboard .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.customer-dashboard .form-group input[type="text"],
.customer-dashboard .form-group input[type="tel"],
.customer-dashboard .form-group input[type="email"],
.customer-dashboard .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.customer-dashboard .form-group input[type="text"]:focus,
.customer-dashboard .form-group input[type="tel"]:focus,
.customer-dashboard .form-group input[type="email"]:focus,
.customer-dashboard .form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.customer-dashboard .help-text {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.customer-dashboard .form-actions {
    text-align: right;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .customer-dashboard .form-row {
        display: block;
    }
    
    .customer-dashboard .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .customer-dashboard .profile-picture {
        margin: 0 auto 15px;
    }
    
    .customer-dashboard .dashboard-section#wishlist .wishlist-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .customer-dashboard .form-actions {
        text-align: center;
    }
    
    .customer-dashboard .wishlist-item-info .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Order product thumbnails in table */
.vendor-orders .order-products {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vendor-orders .product-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
   
    border: 1px solid #eee;
}

.vendor-orders .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Order details modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 900px;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.order-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* Order details styling */
.order-details-container {
    margin-bottom: 20px;
}

.order-invoice h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.order-items {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.order-items th,
.order-items td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-items th {
    background-color: #f9f9f9;
}

.order-items .product-info {
    display: flex;
    align-items: center;
}

.order-items .product-thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.order-items .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-items .product-details {
    flex: 1;
}

.order-items .product-name {
    display: block;
    font-weight: bold;
}

.order-items .product-variation {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.order-items .product-variation span {
    display: block;
}

.order-items tfoot tr:last-child {
    font-weight: bold;
}

.order-status-update {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    text-align: right;
    margin-top: 15px;
}

.notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.notice-success {
    background-color: #dff2bf;
    color: #4f8a10;
    border: 1px solid #4f8a10;
}

.notice-error {
    background-color: #ffbaba;
    color: #d8000c;
    border: 1px solid #d8000c;
}

/* View order button styling */
.view-order-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-order-btn:hover {
    background-color: #45a049;
    color: white;
}

/* Order status styling */
.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-completed {
    background-color: #dff2bf;
    color: #4f8a10;
}

.status-processing {
    background-color: #bde5f8;
    color: #00529b;
}

.status-on-hold {
    background-color: #feefb3;
    color: #9f6000;
}

.status-pending {
    background-color: #e6e6e6;
    color: #666;
}

.status-failed {
    background-color: #ffbaba;
    color: #d8000c;
}

.status-cancelled {
    background-color: #ffcccc;
    color: #d8000c;
}

.status-refunded {
    background-color: #d5f5e3;
    color: #196f3d;
}

/* Order Messages Styles */
.order-messages-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.order-message-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.order-message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.order-message.vendor-message {
    background-color: #e3f2fd;
    margin-left: 20px;
}

.order-message.customer-message {
    background-color: #f5f5f5;
    margin-right: 20px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.message-sender {
    font-weight: 600;
    color: #2c3e50;
}

.message-date {
    color: #7f8c8d;
}

.message-content {
    color: #34495e;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.order-message-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.order-message-form h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.order-message-form .form-row {
    margin-bottom: 15px;
}

.order-message-form label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    font-weight: 500;
}

.order-message-form textarea,
.order-message-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.order-message-form textarea {
    resize: vertical;
    min-height: 100px;
}

.order-message-form .send-message-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.order-message-form .send-message-btn:hover {
    background-color: #2980b9;
}

.order-message-form .send-message-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.order-message-form .notice {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.order-message-form .notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-message-form .notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .order-message.vendor-message,
    .order-message.customer-message {
        margin-left: 0;
        margin-right: 0;
    }
    
    .message-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* Order Status Updates Styles */
.order-status-updates {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.status-checkbox-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.status-checkbox:hover {
    background-color: #f0f0f0;
}

.status-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.delivery-date-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-date-group label {
    font-weight: 500;
    color: #2c3e50;
}

.delivery-date-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.delivery-date-group input[type="date"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

/* Status update notification */
.status-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.status-update-notification i {
    font-size: 20px;
}

/* Become a Vendor Button */
.become-vendor-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.become-vendor-button {
    background-color: #4e73df !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 24px !important;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none !important;
}

.become-vendor-button:hover {
    background-color: #375abd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.become-vendor-button i {
    margin-right: 8px;
}

.become-vendor-info {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    padding: 0 15px;
    flex: 1;
}

@media (max-width: 768px) {
    .become-vendor-section {
        flex-direction: column;
        text-align: center;
    }
    
    .become-vendor-button {
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .become-vendor-info {
        padding: 0;
    }
}