/**
 * Wholesale System Styles
 * Separated from PHP for better organization and caching
 * Controls the display and layout for wholesale users
 */

/* Hide pricing elements for wholesale users */
.wholesale-user .woocommerce-mini-cart__total {
    display: none !important;
}

.wholesale-user .cart-price {
    display: none !important;
}

.wholesale-user .price-wrapper {
    display: none !important;
}

.wholesale-user .woocommerce-price-amount {
    display: none !important;
}

/* Wholesale navigation styling */
.wholesale-menu-nav {
    background: #f8f9fa;
    border-bottom: 2px solid #007cba;
    padding: 10px 0;
}

.wholesale-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.wholesale-menu-nav li {
    margin: 0 15px;
}

.wholesale-menu-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wholesale-menu-nav a:hover {
    background: #007cba;
    color: white;
}

/* Wholesale badge/indicator */
.wholesale-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Wholesale-only product indicators */
.wholesale-only-product {
    position: relative;
}

.wholesale-only-product::before {
    content: "WHOLESALE ONLY";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007cba;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

/* Wholesale pricing table */
.wholesale-pricing-table {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wholesale-pricing-table h3 {
    color: #007cba;
    margin-bottom: 15px;
    font-size: 18px;
}

.wholesale-pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.wholesale-pricing-table th,
.wholesale-pricing-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.wholesale-pricing-table th {
    background: #007cba;
    color: white;
    font-weight: 600;
}

/* Wholesale category visibility */
.wholesale-category-hidden {
    display: none !important;
}

/* Wholesale user dashboard styles */
.wholesale-dashboard {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.wholesale-dashboard h2 {
    color: #007cba;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.wholesale-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wholesale-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #007cba;
}

.wholesale-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    display: block;
}

.wholesale-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wholesale-menu-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .wholesale-menu-nav li {
        margin: 5px 0;
    }
    
    .wholesale-indicator {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .wholesale-stats {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .wholesale-indicator,
    .wholesale-menu-nav {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wholesale-menu-nav {
        background: #000;
        border-color: #fff;
    }
    
    .wholesale-menu-nav a {
        color: #fff;
    }
    
    .wholesale-indicator {
        background: #000;
        border: 2px solid #fff;
    }
} 