/* Unified Dashboard Styles */
.mw-dashboard-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.mw-unified-dashboard-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mw-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mw-user-welcome h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 600;
}

.mw-user-email {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.mw-dashboard-actions .mw-logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.mw-dashboard-actions .mw-logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Tabs */
.mw-dashboard-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mw-tab {
    padding: 15px 25px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.mw-tab:hover {
    color: #495057;
    background: #e9ecef;
}

.mw-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

/* Content */
.mw-dashboard-content {
    padding: 30px;
}

/* Login/Register Forms */
.mw-login-form-container,
.mw-register-form-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mw-login-header,
.mw-register-header {
    text-align: center;
    margin-bottom: 30px;
}

.mw-login-header h2,
.mw-register-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.mw-login-header p,
.mw-register-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Elements */
.mw-form-group {
    margin-bottom: 20px;
}

.mw-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.mw-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mw-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.mw-form-row {
    display: flex;
    gap: 15px;
}

.mw-form-col {
    flex: 1;
}

.mw-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.mw-checkbox-label input {
    margin-right: 8px;
}

/* Buttons */
.mw-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mw-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mw-btn-primary:hover {
    opacity: 0.9;
    color: white;
}

.mw-btn-secondary {
    background: #6c757d;
    color: white;
}

.mw-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.mw-btn-block {
    display: block;
    width: 100%;
}

.mw-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.mw-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Alerts */
.mw-alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mw-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mw-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mw-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Membership Cards */
.mw-memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mw-membership-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mw-membership-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mw-membership-card.expiring-soon {
    border-color: #f0ad4e;
}

.mw-membership-card.expiring-month {
    border-color: #5bc0de;
}

.mw-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-subject-name {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.mw-status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.mw-card-body {
    padding: 20px;
}

.mw-membership-details {
    display: grid;
    gap: 10px;
}

.mw-detail {
    display: flex;
    justify-content: space-between;
}

.mw-label {
    color: #666;
    font-size: 14px;
}

.mw-value {
    color: #333;
    font-weight: 500;
}

.mw-value.warning {
    color: #d9534f;
    font-weight: bold;
}

.mw-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.mw-btn-renew {
    background: #28a745;
    color: white;
}

.mw-btn-renew:hover {
    background: #218838;
    color: white;
}

/* Empty States */
.mw-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.mw-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mw-empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.mw-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Tables */
.mw-orders-table-container {
    overflow-x: auto;
}

.mw-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.mw-orders-table th,
.mw-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.mw-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.mw-orders-table tr:hover {
    background: #f8f9fa;
}

.mw-btn-view {
    background: #17a2b8;
    color: white;
}

.mw-btn-view:hover {
    background: #138496;
    color: white;
}

.mw-btn-pay {
    background: #28a745;
    color: white;
    margin-left: 5px;
}

.mw-btn-pay:hover {
    background: #218838;
    color: white;
}

/* Account Forms */
.mw-account-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mw-account-form-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mw-form-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.mw-form-help {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 12px;
}

.mw-form-actions {
    margin-top: 25px;
}

.mw-form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.mw-form-response.success {
    background: #d4edda;
    color: #155724;
}

.mw-form-response.error {
    background: #f8d7da;
    color: #721c24;
}

/* Stats */
.mw-account-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
}

.mw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.mw-stat-item {
    text-align: center;
}

.mw-stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.mw-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mw-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .mw-dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .mw-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .mw-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mw-memberships-grid {
        grid-template-columns: 1fr;
    }
    
    .mw-account-forms {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FIX: Hide related products on cart page
   Keeps WooCommerce shop for physical products only
   ============================================ */

/* Hide cross-sells and upsells on cart page */
.woocommerce-cart .cross-sells,
.woocommerce-cart .upsells,
.woocommerce-cart .cart-collaterals .cross-sells {
    display: none !important;
}

/* Also hide related products section */
.woocommerce-cart .related.products,
.woocommerce-cart .up-sells.products {
    display: none !important;
}

/* Clean up cart page - remove extra product recommendations */
.woocommerce-cart .cart-collaterals {
    clear: both;
}

/* If using WooCommerce blocks, hide related products block */
.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
    /* Keep sidebar clean */
}

/* Optional: Hide "You may also like" sections */
.woocommerce-cart section.related,
.woocommerce-cart section.upsells {
    display: none !important;
}

/* Ensure cart items are displayed cleanly */
.woocommerce-cart .cart_item {
    border-bottom: 1px solid #e9ecef;
}

/* Style the cart totals area */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* ============================================
   END OF FIXES
   ============================================ */

/* Hide cross-sells on cart page */
.woocommerce-cart .cross-sells,
.woocommerce-cart .upsells,
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .cart_totals {
    display: none !important;
}

/* Show cart items properly */
.woocommerce-cart .cart_item {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Hide related products section */
.woocommerce-cart section.related,
.woocommerce-cart section.upsells {
    display: none !important;
}


/* ============================================
   AGGRESSIVE FIX: Hide cross-sells on cart page
   ============================================ */

/* Hide all cross-sells and upsells */
.woocommerce-cart .cross-sells,
.woocommerce-cart .upsells,
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .upsells,
.woocommerce-cart section.related,
.woocommerce-cart section.upsells,
.woocommerce-cart .woocommerce-cross-sells,
.woocommerce-cart .cart-collaterals .cart_totals .cross-sells,
.cross-sells,
.upsells,
.related.products,
.up-sells.products {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Show cart items properly */
.woocommerce-cart .cart_item {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Cart totals styling */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* Remove any related products sections */
.woocommerce-cart .cart-collaterals {
    clear: both;
}

/* ============================================
   END OF FIXES
   ============================================ */





