/**
 * Customer Section Styles
 * Centralized CSS for all customer area pages
 * 
 * All styles are scoped under .customer-pages to prevent conflicts with theme CSS.
 * 
 * Theme Integration (injected via View_Customer::generateThemeVariables()):
 * The customer section now automatically inherits theme settings from the main theme system.
 * 
 * CSS Variables Available:
 * - --customer-color-primary: Uses --color-primary if available, otherwise theme setting
 * - --customer-color-accent: Uses --color-accent if available, otherwise theme setting
 * - --customer-color-background: Uses --color-background if available, otherwise theme setting
 * - --customer-color-text: Uses --color-text if available, otherwise theme setting
 * - --customer-base-font-size: Uses --base-font-size if available, otherwise theme setting
 * - --customer-button-radius: Uses --button-rounding if available, otherwise theme setting
 * - --customer-gap: Base spacing unit from theme
 * - And many more status colors, shadows, and spacing variables...
 * 
 * Generic Components Available:
 * - .list-item: Generic item container (orders, wishlist, etc.)
 * - .status-badge: Status indicators with color variants
 * - .btn-action: Action buttons with hover states
 * - .price-*: Price display components
 * 
 * Legacy class names are maintained for backward compatibility
 * 
 * Usage Example:
 * .customer-pages .my-custom-element {
 *     background: var(--customer-color-primary);
 *     border-radius: var(--customer-button-radius);
 *     padding: var(--customer-gap);
 * }
 * 
 * Theme Compatibility:
 * This system is backward compatible with older themes that may use different CSS variable names.
 * The fallback values ensure the customer section always has appropriate styling.
 */

/* Customer pages wrapper - all styles scoped under this to prevent theme conflicts */
.customer-pages {
    font-size: var(--base-font-size, 1rem);
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.customer-pages h1,
.customer-pages h2,
.customer-pages h3,
.customer-pages h4,
.customer-pages h5,
.customer-pages h6 {
    font-weight: var(--heading-font-weight, 700);
}

 /* Content Header Styles */
.customer-pages .content-header {
    margin-bottom: 2rem;
}

.customer-pages .content-header h1 {
    font-size: 1.875rem;
    margin: 0 0 0.5rem;
}

.customer-pages .content-header p {
    margin: 0 0 1rem;
}

/* Card Styles */
.customer-pages .card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.customer-pages .card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

/* Table Styles */
.customer-pages .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.customer-pages .table th,
.customer-pages .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.customer-pages .table th {
    font-weight: bold;
    color: #374151;
    background: #f9fafb;
}

.customer-pages .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.customer-pages .table-responsive .table {
    width: 100%;
    min-width: 100%;
    margin-top: 0;
}

/* Button Styles */
.customer-pages .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.customer-pages .btn-primary {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.customer-pages .btn-primary:hover {
    background: #000;
    color: white;
    text-decoration: none;
}

.customer-pages .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.customer-pages .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
    text-decoration: none;
}

.customer-pages .btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.customer-pages .btn-outline:hover {
    background: #2563eb;
    text-decoration: none;
}

/* Customer Layout - Fallback for themes without customer.mustache */
.customer-pages {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}

.customer-pages a {
    color: var(--primary-color, #3b82f6);
}

.customer-pages .customer-fallback-nav,
.customer-pages .card.customer-fallback-nav {
    display: flex;
    flex-direction: column;
    order: 1;
}

.customer-pages .customer-fallback-main {
    display: flex;
    flex-direction: column;
    order: 2;
    flex: 1;
}

/* Mobile: Hide navigation on sub-pages (they have back buttons), show only on index */
@media (max-width: 1023px) {
    /* Hide navigation by default on mobile */
    .customer-fallback-nav {
        display: none !important;
    }
    
    /* Show navigation on mobile ONLY for index/home page */
    .customer-page-index .customer-fallback-nav {
        display: block !important;
    }
}

/* Desktop: Navigation always visible on left, content on right */
@media (min-width: 1024px) {
    .customer-pages {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
    
    .customer-fallback-nav {
        order: 1;
        display: block !important; /* Always visible on desktop */
    }
    
    .customer-fallback-main {
        order: 2;
    }
}

.customer-layout {
    display: flex;
    gap: 2rem;
}

.customer-nav-sidebar {
    flex: 0 0 20%;
    max-width: 20%;
}

.customer-main-content {
    flex: 1;
    max-width: 80%;
}

/* Customer Navigation Styles */
.customer-nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.customer-nav-avatar {
    width: 40px;
    height: 40px;
}

.customer-nav-avatar img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

.customer-nav-info {
    display: flex;
    flex-direction: column;
}

.customer-nav-name {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.customer-nav-sub {
    font-size: 0.875rem;
    opacity: 0.5;
}

.customer-nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.customer-nav-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

a.customer-nav-item {
    color: inherit;
}

.customer-nav-item:last-child {
    border-bottom: none;
}

.customer-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Active navigation item - uses theme primary color */
.customer-nav-item-active {
    /* Fallback for browsers that don't support color-mix */
    background: rgba(59, 130, 246, 0.08) !important;
    background: color-mix(in srgb, var(--primary-color, #3b82f6) 8%, transparent) !important;
    color: var(--primary-color, #3b82f6) !important;
    border-right: 3px solid var(--primary-color, #3b82f6) !important;
}

.customer-nav-item-active:hover {
    /* Fallback for browsers that don't support color-mix */
    background: rgba(59, 130, 246, 0.12) !important;
    background: color-mix(in srgb, var(--primary-color, #3b82f6) 12%, transparent) !important;
    color: var(--primary-color, #3b82f6) !important;
    text-decoration: none;
}

.customer-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Generic Item List Component - Base for Orders, Wishlist, etc. */
.customer-pages .item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-pages .item-list-stats {
    margin-bottom: 1rem;
}

.customer-pages .item-list-stats p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.customer-pages .list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.customer-pages .list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.customer-pages .list-item-image {
    flex-shrink: 0;
}

.customer-pages .list-item-image img {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.customer-pages .list-item-images {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.customer-pages .list-item-images img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.customer-pages .list-item-content {
    flex: 1;
    min-width: 0;
}

.customer-pages .list-item-title {
    font-size: 1rem;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.customer-pages .list-item-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.customer-pages .list-item-description {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.customer-pages .list-item-meta {
    text-align: right;
    flex-shrink: 0;
    margin-right: 1rem;
}

.customer-pages .list-item-actions {
    flex-shrink: 0;
}

/* Status Badge Component */
.customer-pages .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.customer-pages .status-badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.customer-pages .status-badge-completed {
    background: #dcfce7;
    color: #166534;
}

.customer-pages .status-badge-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Price Component */
.customer-pages .price-container {
    text-align: right;
}

.customer-pages .price-regular {
    font-weight: bold;
    font-size: 1rem;
}

.customer-pages .price-original {
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.customer-pages .price-sale {
    font-weight: bold;
    color: #dc2626;
    font-size: 1rem;
}

.customer-pages .price-amount {
    font-weight: bold;
    font-size: 1rem;
}

/* Action Buttons */
.customer-pages .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.customer-pages .btn-action:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    text-decoration: none;
}

.customer-pages .btn-action-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.customer-pages .btn-action-view:hover {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Legacy Support - Keep existing class names for backward compatibility */
.customer-pages .order-item,
.customer-pages .wishlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.customer-pages .order-images,
.customer-pages .list-item-images {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.customer-pages .order-images img,
.customer-pages .list-item-images img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.customer-pages .order-details,
.customer-pages .wishlist-item-info,
.customer-pages .list-item-content {
    flex: 1;
    min-width: 0;
}

.customer-pages .order-id,
.customer-pages .wishlist-item-title,
.customer-pages .list-item-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.customer-pages .order-date,
.customer-pages .list-item-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.customer-pages .order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.customer-pages .order-amount,
.customer-pages .price-amount {
    font-weight: bold;
    color: #1e293b;
    font-size: 1rem;
    text-align: right;
    flex-shrink: 0;
}

.customer-pages .wishlist-stats,
.customer-pages .item-list-stats {
    margin-bottom: 1rem;
}

.customer-pages .wishlist-stats p,
.customer-pages .item-list-stats p {
    opacity: 0.5;
    font-size: 0.875rem;
    margin: 0;
}

.customer-pages .wishlist-list,
.customer-pages .item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-pages .wishlist-item:last-child,
.customer-pages .list-item:last-child {
    border-bottom: none;
}

.customer-pages .wishlist-item-image,
.customer-pages .list-item-image {
    flex-shrink: 0;
}

.customer-pages .wishlist-item-image img,
.customer-pages .list-item-image img {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.customer-pages .wishlist-item-placeholder {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.customer-pages .wishlist-item-placeholder svg {
    width: 24px;
    height: 24px;
    color: #9ca3af;
}

.customer-pages .wishlist-item-description,
.customer-pages .list-item-description {
    font-size: 0.875rem;
    opacity: 0.5;
    margin: 0;
    line-height: 1.4;
}

.customer-pages .wishlist-item-price,
.customer-pages .list-item-meta {
    text-align: right;
    flex-shrink: 0;
    margin-right: 1rem;
}

.customer-pages .wishlist-item-actions,
.customer-pages .list-item-actions {
    flex-shrink: 0;
}

.customer-pages .btn-remove-large,
.customer-pages .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.customer-pages .btn-remove-large:hover,
.customer-pages .btn-action-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
    text-decoration: none;
}

/* Message Styles */
.customer-pages .message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.customer-pages .message-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.customer-pages .message-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.customer-pages .message-info {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Form Styles */
.customer-pages .form-group {
    margin-bottom: 1rem;
}

.customer-pages .form-label {
    display: block;
    color: #374151;
    margin-bottom: 0.5rem;
}

.customer-pages .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.customer-pages .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* Alert Styles */
.customer-pages .alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.customer-pages .alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.customer-pages .alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.customer-pages .alert-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.customer-pages .doughnut-chart-progress {
    stroke: var(--primary-color, #3b82f6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-pages .content-header h1 {
        font-size: 1.5rem;
    }
    
    .customer-pages .customer-nav-menu {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .customer-pages .order-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .customer-pages .order-amount {
        text-align: left;
        align-self: stretch;
    }
    
    .customer-pages .card {
        padding: 1rem;
    }
    
    .customer-pages .table th,
    .customer-pages .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Desktop: Show desktop date, hide mobile date */
    .customer-pages .desktop-date { 
        display: none; 
    }
    .customer-pages .mobile-date { 
        display: block !important; 
    }
    
    /* Adjust grid for mobile - remove date column */
    .customer-pages .current-orders-item {
        grid-template-columns: auto 1fr 1fr 1fr auto !important;
    }
    
    /* Mobile responsive styles for cards */
    .customer-pages .card .grid-auto-fit {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .customer-pages .mobile-progress {
        display: block !important;
    }
    
    /* List items mobile responsiveness */
    .customer-pages .list-item,
    .customer-pages .order-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .customer-pages .list-item-image {
        align-self: center;
        margin-bottom: 1rem;
    }

    .customer-pages .list-item-images,
    .customer-pages .order-images {
        align-self: center;
        margin-bottom: 1rem;
    }

    .customer-pages .list-item-content,
    .customer-pages .order-details {
        text-align: center;
        margin-bottom: 1rem;
    }

    .customer-pages .list-item-meta,
    .customer-pages .order-amount {
        text-align: center;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .customer-pages .list-item-actions,
    .customer-pages .order-actions {
        align-self: center;
    }

    /* Wishlist mobile: compact horizontal layout */
    .customer-pages .wishlist-item {
        display: grid;
        grid-template-columns: 50px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 0.75rem;
        align-items: start;
        padding: 0.75rem;
    }

    .customer-pages .wishlist-item-image {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: center;
        margin-bottom: 0;
    }

    .customer-pages .wishlist-item-image img,
    .customer-pages .wishlist-item-placeholder {
        width: 50px;
        height: 50px;
    }

    .customer-pages .wishlist-item-info {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        margin-bottom: 0;
        min-width: 0;
    }

    .customer-pages .wishlist-item-info .wishlist-item-title {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .customer-pages .wishlist-item-info .wishlist-item-description {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .customer-pages .wishlist-item-price {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        margin-right: 0;
        margin-bottom: 0;
    }

    .customer-pages .wishlist-item-price .price-regular,
    .customer-pages .wishlist-item-price .price-sale {
        font-size: 0.875rem;
    }

    .customer-pages .wishlist-item-price .price-original {
        font-size: 0.75rem;
        display: inline;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }

    .customer-pages .wishlist-item-price .price-sale {
        display: inline;
    }

    .customer-pages .wishlist-item-actions {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: center;
    }

    .customer-pages .wishlist-item-actions .btn-remove-large {
        width: 32px;
        height: 32px;
    }

    .customer-pages .wishlist-item-actions .btn-remove-large svg {
        width: 16px;
        height: 16px;
    }

    .customer-pages .wishlist-list {
        gap: 0;
    }
}

/* Desktop styles for date display */
.customer-pages .desktop-date { 
    display: block; 
}
.customer-pages .mobile-date { 
    display: none; 
}

/* Utility Classes */
.customer-pages .text-center {
    text-align: center;
}

.customer-pages .text-right {
    text-align: right;
}

.customer-pages .mb-0 {
    margin-bottom: 0 !important;
}

.customer-pages .mb-1 {
    margin-bottom: 0.25rem;
}

.customer-pages .mb-2 {
    margin-bottom: 0.5rem;
}

.customer-pages .mb-3 {
    margin-bottom: 0.75rem;
}

.customer-pages .mb-4 {
    margin-bottom: 1rem;
}

.customer-pages .mt-0 {
    margin-top: 0;
}

.customer-pages .mt-1 {
    margin-top: 0.25rem;
}

.customer-pages .mt-2 {
    margin-top: 0.5rem;
}

.customer-pages .mt-3 {
    margin-top: 0.75rem;
}

.customer-pages .mt-4 {
    margin-top: 1rem;
}

.customer-pages .flex {
    display: flex;
}

.customer-pages .flex-wrap {
    flex-wrap: wrap;
}

.customer-pages .gap-1 {
    gap: 0.25rem;
}

.customer-pages .gap-2 {
    gap: 0.5rem;
}

.customer-pages .gap-3 {
    gap: 0.75rem;
}

.customer-pages .gap-4 {
    gap: 1rem;
}

/* Tailwind-inspired Display Utilities 
 * 
 * Usage Examples:
 * - hidden: Always hidden
 * - block: Always visible as block
 * - md:hidden: Hidden on medium screens and up (768px+)
 * - md:block: Visible as block on medium screens and up (768px+)
 * - lg:hidden sm:block: Hidden on large screens (1024px+), visible as block on small screens (640px+)
 *
 * Breakpoints:
 * - sm: 640px+
 * - md: 768px+ 
 * - lg: 1024px+
 * - xl: 1280px+
 *
 * Common Patterns:
 * - Mobile-first: Use base classes, then override with larger breakpoints
 * - Hide on mobile, show on desktop: "hidden md:block"
 * - Show on mobile, hide on desktop: "block md:hidden"
 * - Show only on tablet: "hidden sm:block md:hidden"
 */
.customer-pages .block {
    display: block;
}

.customer-pages .inline-block {
    display: inline-block;
}

.customer-pages .inline {
    display: inline;
}

.customer-pages .flex {
    display: flex;
}

.customer-pages .inline-flex {
    display: inline-flex;
}

.customer-pages .grid {
    display: grid;
}

.customer-pages .hidden {
    display: none;
}

@media (min-width: 1024px) {
    .customer-pages .lg\:block {
        display: block;
    }
}

/* Small screens and up (sm: 640px+) */
@media (max-width: 639px) {
    .customer-pages .orders-list-item {
        grid-template-columns: auto 1fr 1fr 30px !important;
    }

    .customer-pages .xs\:visible {
        display: block !important;
    }
    
    .customer-pages .xs\:inline-block {
        display: inline-block !important;
    }
    
    .customer-pages .xs\:inline {
        display: inline !important;
    }
    
    .customer-pages .xs\:flex {
        display: flex !important;
    }
    
    .customer-pages .xs\:inline-flex {
        display: inline-flex !important;
    }
    
    .customer-pages .xs\:grid {
        display: grid !important;
    }
    
    .customer-pages .xs\:hidden {
        display: none !important;
    }
}
/* Small screens and up (sm: 640px+) */
@media (min-width: 640px) {
    .customer-pages .orders-list-item {
        grid-template-columns: auto 1fr 1fr 1fr 30px !important;
    }

    .customer-pages .sm\:visible {
        display: block !important;
    }
    
    .customer-pages .sm\:inline-block {
        display: inline-block !important;
    }
    
    .customer-pages .sm\:inline {
        display: inline !important;
    }
    
    .customer-pages .sm\:flex {
        display: flex !important;
    }
    
    .customer-pages .sm\:inline-flex {
        display: inline-flex !important;
    }
    
    .customer-pages .sm\:grid {
        display: grid !important;
    }
    
    .customer-pages .sm\:hidden {
        display: none !important;
    }
}

/* Medium screens and up (md: 768px+) */
@media (min-width: 768px) {
    .customer-pages .orders-list-item {
        grid-template-columns: auto 1fr 1fr 1fr 1fr 1fr 30px !important;
    }

    .customer-pages .md\:visible {
        display: block !important;
    }
    
    .customer-pages .md\:inline-block {
        display: inline-block !important;
    }
    
    .customer-pages .md\:inline {
        display: inline !important;
    }
    
    .customer-pages .md\:flex {
        display: flex !important;
    }
    
    .customer-pages .md\:inline-flex {
        display: inline-flex !important;
    }
    
    .customer-pages .md\:grid {
        display: grid !important;
    }
    
    .customer-pages .md\:hidden {
        display: none !important;
    }   
}

/* Large screens and up (lg: 1024px+) */
@media (min-width: 1024px) {
    .customer-pages .lg\:visible {
        display: block !important;
    }
    
    .customer-pages .lg\:inline-block {
        display: inline-block !important;
    }
    
    .customer-pages .lg\:inline {
        display: inline !important;
    }
    
    .customer-pages .lg\:flex {
        display: flex !important;
    }
    
    .customer-pages .lg\:inline-flex {
        display: inline-flex !important;
    }
    
    .customer-pages .lg\:grid {
        display: grid !important;
    }
    
    .customer-pages .lg\:hidden {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .customer-pages .customer-nav-sidebar {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .customer-pages.customer-page-subpage .customer-nav-sidebar {
        display: none;
    }

    .customer-pages .card.customer-fallback-nav {
        padding: 0;
    }

    .customer-pages .current-orders-item {
      grid-template-columns: 50px 1fr auto auto !important;
      gap: 0.75rem !important;
      padding: 0.75rem !important;
      min-height: 60px !important;
      cursor: pointer !important;
    }
  
    .customer-pages .current-orders-item > div:nth-child(3),
    .customer-pages .current-orders-item > div:nth-child(5),
    .customer-pages .current-orders-item > div:nth-child(6) {
      display: none !important;
    }
  
    .customer-pages .mobile-date {
      display: block !important;
      margin-top: 0.25rem !important;
    }
  
    .customer-pages .current-orders-item > div:nth-child(4) {
      text-align: right !important;
    }
  
    .customer-pages .current-orders-item > div:nth-child(4) span {
      padding: 0.25rem 0.5rem !important;
      font-weight: bold !important;
    }
  
    .customer-pages .current-orders-item > div:first-child {
      align-self: flex-start !important;
    }
  
    .customer-pages .current-orders-item > div:nth-child(2) > div:first-child {
      font-weight: bold !important;
      margin-bottom: 0.125rem !important;
    }
  
    .customer-pages .current-orders-item > div:nth-child(2) > div:nth-child(2) {
      color: #64748b !important;
    }
  
    .customer-pages .current-orders-item + .current-orders-item {
      margin-top: 0.5rem !important;
    }
  
    .customer-pages .current-orders-item:active {
      transform: translateY(1px) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) !important;
    }
  
    .customer-pages .content-header {
      margin-bottom: 1rem !important;
    }
  
    .customer-pages .content-header h1 {
      font-size: 1.5rem !important;
      margin-bottom: 0.5rem !important;
    }
  
    .customer-pages .content-header p {
      font-size: 0.9rem !important;
    }
  }
  
  @media (max-width: 480px) {
    .customer-pages .current-orders-item {
      padding: 0.5rem;
      gap: 0.5rem;
    }
  
    .customer-pages .current-orders-item > div:nth-child(4) span {
      padding: 0.2rem 0.4rem;
    }
  
    .customer-pages .card h3 {
      font-size: 1.1rem;
      margin-bottom: 1rem;
    }
  
    .customer-pages .card > .grid-auto-fit {
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }

    .customer-pages .card > .grid-auto-fit > div:last-child > div:first-child {
      font-size: 1.25rem;
    }
  }
  
  /* Additional mobile improvements for customer club */
  @media (max-width: 768px) {
    .customer-pages .mobile-progress {
      display: block;
    }
  }

/* ============================================================================
   New Utility Classes - Using opacity for colors
   ============================================================================ */

/* Back Button Component */
.customer-pages .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    opacity: 0.5;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .customer-pages .back-link {
        display: none;
    }
}

.customer-pages .back-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Text Color Classes - Using Opacity */
.customer-pages .text-muted {
    opacity: 0.5;
}

.customer-pages .text-secondary {
    opacity: 0.7;
}

.customer-pages .text-primary {
    opacity: 0.9;
}

.customer-pages .text-bold {
    font-weight: 600;
}

.customer-pages .text-semibold {
    font-weight: 500;
}

/* Margin Utilities */
.customer-pages .mb-0-5rem {
    margin-bottom: 0.5rem;
}

.customer-pages .mb-1rem {
    margin-bottom: 1rem;
}

.customer-pages .mb-1-5rem {
    margin-bottom: 1.5rem;
}

.customer-pages .mb-2rem {
    margin-bottom: 2rem;
}

.customer-pages .mt-0-5rem {
    margin-top: 0.5rem;
}

.customer-pages .mt-1rem {
    margin-top: 1rem;
}

.customer-pages .mt-1-5rem {
    margin-top: 1.5rem;
}

.customer-pages .mt-2rem {
    margin-top: 2rem;
}

/* Padding Utilities */
.customer-pages .p-1rem {
    padding: 1rem;
}

.customer-pages .p-1-5rem {
    padding: 1.5rem;
}

.customer-pages .p-2rem {
    padding: 2rem;
}

.customer-pages .pt-1-5rem {
    padding-top: 1.5rem;
}

.customer-pages .pb-1-5rem {
    padding-bottom: 1.5rem;
}

/* Border Utilities */
.customer-pages .border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Display Utilities */
.customer-pages .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-pages .flex-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-pages .flex-column {
    display: flex;
    flex-direction: column;
}

.customer-pages .flex-gap-1rem {
    gap: 1rem;
}

.customer-pages .flex-gap-0-75rem {
    gap: 0.75rem;
}

.customer-pages .flex-wrap {
    flex-wrap: wrap;
}

/* Grid Utilities */
.customer-pages .grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.customer-pages .grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Form Input Styles */
.customer-pages .form-input-default {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-input-background, rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-pages .form-input-default:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.customer-pages .form-label-default {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.customer-pages .form-helper {
    margin-top: 0.5rem;
    opacity: 0.5;
}

/* Alert/Message Styles - Using opacity */
.customer-pages .alert-info-light {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.customer-pages .alert-info-text {
    color: #0369a1;
}

.customer-pages .alert-success-light {
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    color: #059669;
}

.customer-pages .alert-error-light {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #dc2626;
}

/* Status Badge Styles - Using opacity for backgrounds */
.customer-pages .status-badge-info {
    display: inline-block;
    padding: 0.1rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.customer-pages .status-unpaid {
    color: #374151;
    background: rgba(55, 65, 81, 0.1);
}

.customer-pages .status-processing {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}

.customer-pages .status-shipped {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.customer-pages .status-cancelled {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* Stats Card Styles */
.customer-pages .stats-card {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.customer-pages .stats-card-lg {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.customer-pages .stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.customer-pages .stats-value-lg {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.customer-pages .stats-label {
    opacity: 0.5;
    font-weight: 500;
}

/* Comment/Note Box */
.customer-pages .comment-box {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Icon Styles */
.customer-pages .icon-default {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.customer-pages .icon-success {
    color: #059669;
}

.customer-pages .icon-muted {
    color: #000;
    opacity: 0.4;
}

/* Empty State Styles */
.customer-pages .empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.customer-pages .empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    opacity: 0.2;
}

.customer-pages .empty-state-title {
    opacity: 0.7;
    margin: 0 0 1rem;
}

.customer-pages .empty-state-description {
    margin: 0 0 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
}

/* Order Progress Styles */
.customer-pages .progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.customer-pages .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 1s ease-in-out;
}

/* Link Styles */
.customer-pages .link-primary {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    transition: opacity 0.2s;
}

.customer-pages .link-primary:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Security Tips / Info Grid */
.customer-pages .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.customer-pages .info-item {
    display: flex;
    gap: 0.75rem;
}

.customer-pages .info-item-title {
    font-weight: 500;
    opacity: 0.8;
}

.customer-pages .info-item-description {
    opacity: 0.5;
}

/* Table Cell Styles */
.customer-pages .table-cell-label {
    font-weight: 500;
}

/* Order Summary Grid */
.customer-pages .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.customer-pages .summary-label {
    font-weight: 500;
    opacity: 0.8;
}

.customer-pages .summary-value {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Chart Styles */
.customer-pages .chart-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.customer-pages .chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.customer-pages .chart-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.customer-pages .chart-label {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.25rem;
}

/* Order Items Grid */
.customer-pages .order-item-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.customer-pages .order-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-pages .order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.customer-pages .order-item-details {
    display: flex;
    flex: 1;
    gap: 1rem;
    min-width: 0;
}

.customer-pages .order-item-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.customer-pages .order-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.customer-pages .order-item-title a:hover {
    color: var(--primary-color, inherit);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .customer-pages .grid-3-cols {
        grid-template-columns: 1fr;
    }
    
    .customer-pages .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-pages {
        flex-direction: column;
    }

    .customer-nav-sidebar,
    .customer-main-content {
        flex: inherit;
        max-width: 100%;
        width: 100%;
    }
}
  