/* =============================================================================
   WooCommerce Account Navigation & Maker Products - Optimized Styles
   Version: 2.0
   Reorganized for clarity, performance, and maintainability
============================================================================= */

/* =============================================================================
   TABLE OF CONTENTS
   1. CSS Variables & Base Styles
   2. Account Navigation
   3. Account Layout
   4. Headers & Badges
   5. Stats & Profile
   6. Filters
   7. Product Grid & Cards
   8. Events
   9. Modals
   10. Pagination
   11. Utility Classes
   12. Animations
   13. Accessibility
   14. Responsive Design (Mobile-First)
   15. Print Styles
============================================================================= */


/* =============================================================================
   1. CSS VARIABLES & BASE STYLES
============================================================================= */

:root {
    /* Colors */
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #f97316;
    --secondary-hover: #ea580c;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Specific Use */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}


/* =============================================================================
   2. ACCOUNT NAVIGATION
============================================================================= */

/* .woocommerce-MyAccount-navigation {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    max-width: 280px;
    overflow: hidden;
} */

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.icon-label .uad-stat-label {
    margin-top: 10px;
}
svg.store--list {
    color: #d29a5c;
}
svg.svg-event {
    color: #2563eb;
}
.woocommerce-MyAccount-navigation ul li {
    padding: 0;
    margin: 0;
}

/* User Profile Header */
.account-user-header {
    padding: var(--spacing-md) 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
}

.account-user-avatar {
    width: 52px;
    height: 52px;
    background: #fef3c7;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: #d97706;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.account-user-info {
    flex: 1;
    min-width: 0;
}

.account-user-info h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.uad-stat-number {
    font-size: 24px;
    color: #000;
    font-weight: bold;
    text-align: right;
}

.account-user-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Navigation Links */
.woocommerce-MyAccount-navigation-link {
    margin: 0;
    border-bottom: 1px solid var(--border-light);
}

.woocommerce-MyAccount-navigation-link:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    padding: 13px 24px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    line-height: 1.5;
    border: none;
    /* transition: all var(--transition-fast); */
}

/* Navigation Icons */
.woocommerce-MyAccount-navigation-link a::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    opacity: 0.7;
    /* transition: opacity var(--transition-fast); */
}

/* Individual Navigation Icons */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '📊'; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: '📋'; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: '📥'; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '🔧'; }
.woocommerce-MyAccount-navigation-link--payment-methods a::before { content: '💳'; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '👤'; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '🚪'; }
.woocommerce-MyAccount-navigation-link--maker-products a::before,
.woocommerce-MyAccount-navigation-link--add-maker-product a::before { content: '🎁'; }
.woocommerce-MyAccount-navigation-link--add-maker-product a::before { content: '➕'; }
.woocommerce-MyAccount-navigation-link--my-products a::before { content: "📦"; }
.woocommerce-MyAccount-navigation-link--my-store a::before { content: "🏪"; }
.woocommerce-MyAccount-navigation-link--my-maker a::before { 
    content: "👤"; 
    /* filter: grayscale(30%);  */
}
.woocommerce-MyAccount-navigation-link--add-product a::before { content: "➕"; }
.woocommerce-MyAccount-navigation-link--all-events a::before { content: "📅"; }

/* Hover & Active States */
.woocommerce-MyAccount-navigation-link a:hover {
    background: #fefce8;
    color: var(--gray-900);
}

.woocommerce-MyAccount-navigation-link a:hover::before {
    opacity: 1;
}

/* .woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-MyAccount-navigation-link.is-active a:hover {
    background: #fef3c7;
    color: var(--gray-900);
    font-weight: 600;
} */

.woocommerce-MyAccount-navigation-link.is-active a::before {
    opacity: 1;
}

/* Logout Link Styles */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--danger-color);
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fef2f2;
    color: var(--primary-hover);
}

/* Focus States for Accessibility */
/* .woocommerce-MyAccount-navigation-link a:focus,
.woocommerce-MyAccount-navigation-link a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
    background: #fef3c7;
} */


/* =============================================================================
   3. ACCOUNT LAYOUT
============================================================================= */
span.svg-flex {
    display: flex;
}
.woocommerce-account .woocommerce {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}
.uad-quick-actions {
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}
.cst-woocomerce .account-tab-content {
    padding: var(--spacing-md) 0;
}
.cst-woocomerce  .products-filters {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: unset !important;
}

select#store-category {
    border: 1px solid #dddddd;
    border-radius: 7px;
}
.cst-woocomerce  .uad-actions-grid .uad-btn-primary {
    background: #00000000 !important;
    border: 1px solid #e9e9e9;
    color: #000;
    max-width: fit-content;
}
.cst-woocomerce nav.woocommerce-MyAccount-navigation ul {
    padding: 15px;
}
.cst-woocomerce .uad-actions-grid .uad-btn-primary:hover {
    background: transparent;
}
.cst-woocomerce li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout {
    border-bottom: 0;
}
.cst-woocomerce * {
    font-family: "Montserrat", sans-serif;
}
.cst-woocomerce .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a {
    color: #000000;
    font-weight: 600;
}
.cst-woocomerce .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:hover, .cst-woocomerce li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    color: #ce965d;
    background: #fffbeb;
}
body .cst-woocomerce .woocommerce-MyAccount-navigation-link {
    border: 0;
}
body .cst-woocomerce nav.woocommerce-MyAccount-navigation {
    background: #ffffff !important;
}
.cst-woocomerce li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard.is-active
/* =============================================================================
   4. HEADERS & BADGES
============================================================================= */

/* Tab Headers */
.tab-header,
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.header-left h2,
.tab-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.header-left p,
.tab-header .info-text,
.tab-header .product-count {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.product-count {
    font-size: 16px;
}

.count-current {
    color: #2271b1;
    font-weight: bold;
    font-size: 18px;
}

.count-limit {
    font-weight: bold;
}

/* Action Buttons in Header */
.header-right .button-add-product {
    background: #d29a5c !important;
    color: var(--bg-white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.header-right .button-add-product::before {
    content: '+';
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.header-right .button-add-product:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    color: var(--bg-white);
}

/* Disabled Button State */
.button-disabled,
.button-add-product:disabled,
.button-add-product.button-disabled {
    background: var(--gray-300) !important;
    color: var(--gray-400) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.button-disabled:hover,
.button-add-product:disabled:hover,
.button-add-product.button-disabled:hover {
    background: var(--gray-300) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Badges */
.badge,
.package-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
}

.package-badge,
.badge-advanced {
    background: var(--info-color);
    color: white;
}

.badge-free {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-premium {
    background: var(--accent-color);
    color: white;
}

.badge-pending {
    background: var(--warning-color);
    color: var(--bg-white);
}

.badge-draft {
    background: var(--gray-500);
    color: var(--bg-white);
}

.badge-verified {
    background: var(--success-color);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified::before {
    content: '✓';
    font-weight: bold;
    font-size: 13px;
}

.badge-enhanced {
    background: var(--secondary-color);
    color: var(--bg-white);
}


/* =============================================================================
   5. STATS & PROFILE
============================================================================= */

/* Dashboard Stats */
.user-account-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.uad-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.uad-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.uad-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}
.icon-label-svg {
    display: flex;
}
.uad-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    /* box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.1); */
    transition: all var(--transition-base);
    justify-content: space-between;
    border: 1px solid #e5e5e5;
}
.uad-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.uad-stat-icon {
    font-size: 48px;
}

.uad-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.uad-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Quick Actions */
.uad-quick-actions h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-md);
}

.uad-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.uad-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--bg-white);
    transition: all var(--transition-base);
}

.uad-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.uad-btn-primary {
    background: var(--info-color);
}

.uad-btn-secondary {
    background: var(--success-color);
}

.uad-btn-upgrade {
    background: var(--accent-color);
}

/* Profile Stats Section */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid #f0f0f0;
}
.cst-woocomerce .btn-view,
.cst-woocomerce .btn-edit {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e5e5e5;
}
.cst-woocomerce .maker-action-btn.btn-delete {
    color: var(--danger-color);
    border-color: #d300004d;
    border: 1px solid #d300004d;
}
.stat-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
    border: 1px solid #e5e5e5;
}
.stat-box:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-box::after {
    content: '↗';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: var(--gray-300);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-box:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}


/* =============================================================================
   6. FILTERS
============================================================================= */

.products-filters {
    display: flex;
    gap: 15px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.products-filters input[type="text"],
.products-filters select,
.filter-group input,
.filter-group select,
#event-search,
#event-category,
#event-status {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.products-filters input[type="text"]:focus,
.products-filters select:focus,
.filter-group input:focus,
.filter-group select:focus,
#event-search:focus,
#event-category:focus,
#event-status:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 2px;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select dropdown styling */
#event-status {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%234b5563" d="M8 11l-5-5h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.products-filters .button,
.products-filters button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

#filter-btn {
    background: #2271b1;
    color: white;
}

#filter-btn:hover {
    background: #135e96;
}

#reset-btn {
    background: #f0f0f0;
    color: var(--gray-700);
}

#reset-btn:hover {
    background: #e0e0e0;
}


/* =============================================================================
   7. PRODUCT GRID & CARDS
============================================================================= */

/* Maker Cards Grid */
.maker-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Individual Maker Card */
.maker-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.maker-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gray-300);
}

/* Event card states */
.maker-card.event-upcoming {
    border-color: var(--success-color);
}

.maker-card.event-upcoming .maker-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.maker-card.event-past {
    opacity: 0.7;
}

.maker-card.event-past:hover {
    opacity: 1;
}

/* Keyboard navigation */
.maker-card:focus-within {
    outline: 2px solid var(--info-color);
    outline-offset: 4px;
}

/* Maker Image Container */
.maker-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-50);
}

.maker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.maker-card:hover .maker-image img {
    transform: scale(1.05);
}

/* Badges Container */
.maker-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    z-index: 2;
}

.maker-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    /* text-transform: lowercase; */
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

/* Location Badge */
.maker-location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.maker-location::before {
    content: '📍';
    font-size: 14px;
}

/* Event date badge */
.maker-location.event-date {
    background: rgba(59, 130, 246, 0.95);
    color: var(--bg-white);
}

.maker-location.event-date::before {
    content: '📅';
    font-size: 14px;
}

.event-date.event-upcoming {
    background: rgba(16, 185, 129, 0.95) !important;
}

.event-date.event-past {
    background: rgba(107, 114, 128, 0.95) !important;
}

/* Maker Content Section */
.maker-content {
    padding: var(--spacing-md);
}

.maker-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.maker-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.maker-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Event Meta Information */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: 10px 0 15px 0;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--info-color);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Maker Action Buttons */
.maker-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs);
    margin-top: 15px;
}

.maker-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    gap: 5px;
}

.maker-action-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.maker-action-btn.btn-view::before {
    content: '👁';
    font-size: 14px;
}

.maker-action-btn.btn-edit::before {
    content: '✏️';
    font-size: 14px;
}

.maker-action-btn.btn-delete {
    color: var(--danger-color);
    border-color: #fecaca;
}

.maker-action-btn.btn-delete::before {
    content: '🗑';
    font-size: 14px;
}

.maker-action-btn.btn-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: var(--primary-hover);
}

/* Legacy Product Actions (for backward compatibility) */
.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions a,
.product-actions .button {
    flex: 1;
    text-align: center;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

/* Legacy Product Status */
.product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-publish {
    background: var(--success-color);
    color: white;
}

.status-pending {
    background: var(--warning-color);
    color: var(--gray-700);
}

.status-draft {
    background: var(--gray-500);
    color: white;
}

.event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}


/* =============================================================================
   8. EVENTS
============================================================================= */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: box-shadow var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.event-actions {
    margin-top: auto;
    display: flex;
    gap: var(--spacing-xs);
}


/* =============================================================================
   9. MODALS
============================================================================= */

.listing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--gray-700);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.modal-loading .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--gray-100);
    border-top: 4px solid #2271b1;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.modal-loading p {
    color: var(--text-secondary);
    font-size: 16px;
}

#modal-content {
    display: none;
}

/* Body class when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Form styling inside modal */
.modal-body .geodir-add-listing-form {
    max-width: 100%;
}

.modal-body .geodir-form-row {
    margin-bottom: var(--spacing-md);
}

.modal-body .button,
.modal-body input[type="submit"] {
    min-width: 150px;
}


/* =============================================================================
   10. PAGINATION
============================================================================= */

.maker-pagination,
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.pagination {
    gap: 5px;
    margin-top: 25px;
    padding: 0;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background: var(--gray-100);
    border-color: #2271b1;
}

.page-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.pagination .page-btn.active {
    background: var(--info-color);
    border-color: var(--info-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =============================================================================
   11. UTILITY CLASSES
============================================================================= */

/* Empty States */
.no-products,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
}

.no-results {
    padding: var(--spacing-xl);
    background: #f9f9f9;
}

.woocommerce-info {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.woocommerce-info p {
    margin: 0 0 25px 0;
    color: #075985;
    font-size: 16px;
    font-weight: 500;
}

.woocommerce-info .button {
    background: #0ea5e9;
    color: var(--bg-white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.woocommerce-info .button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    color: var(--bg-white);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: var(--spacing-xl);
    font-size: 16px;
    color: var(--text-secondary);
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-100);
    border-top: 3px solid #2271b1;
    border-radius: var(--radius-full);
    margin-left: 10px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

.loading-spinner:before {
    content: "⏳";
    font-size: 24px;
    margin-right: 10px;
}

/* Buttons */
.button-upgrade {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.button-upgrade:hover {
    background: #f57c00;
}

.button-primary {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.button-primary:hover {
    background: #135e96;
}

.button-small {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.button-warning {
    background: var(--warning-color) !important;
    color: white !important;
}

.button-warning:hover {
    background: var(--accent-hover) !important;
}

.btn-edit {
    background: #2271b1;
    color: white;
}

.btn-edit:hover {
    background: #135e96;
    color: white;
}

.btn-view {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-view:hover {
    background: #e0e0e0;
    color: var(--gray-700);
}

/* Upgrade Required Boxes */
.upgrade-required-box,
.upgrade-required {
    background: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.upgrade-required-box {
    background: #fff3cd;
    border-color: #ffc107;
}

.upgrade-required-box h2,
.upgrade-required h2 {
    color: #92400e;
    margin-top: 0;
}

.upgrade-required-box h2 {
    color: #856404;
}

.upgrade-required-box p,
.upgrade-required p {
    color: #92400e;
    font-size: 16px;
    margin-bottom: var(--spacing-md);
}

.upgrade-required-box p {
    color: #856404;
}

/* GeoDirectory Upgrade Notice */
.gd-upgrade-notice {
    background: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    color: #92400e;
    font-size: 15px;
    line-height: 1.6;
}

.gd-upgrade-notice a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: underline;
}

.gd-upgrade-notice a:hover {
    color: #b45309;
}

/* Notice Boxes */
.uad-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    padding: 15px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.error-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.error-message p {
    color: #856404;
    margin: 0;
    font-size: 16px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* =============================================================================
   12. ANIMATIONS
============================================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}


/* =============================================================================
   13. ACCESSIBILITY
============================================================================= */

/* Focus states for filter inputs */
#event-search:focus,
#event-category:focus,
#event-status:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 2px;
    border-color: var(--info-color);
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--info-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .maker-card {
        border-width: 2px;
    }
    
    .maker-action-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =============================================================================
   14. RESPONSIVE DESIGN (Mobile-First Approach)
============================================================================= */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .maker-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .uad-stats-grid,
    .uad-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .woocommerce-MyAccount-navigation {
        max-width: 100%;
        border-bottom:1px solid #e2e8f0;
        position: static !important;
    }
.woocommerce-MyAccount-navigation ul {
    padding: 15px;
}
    .account-user-header {
        padding: 18px 20px;
    }

    .account-user-avatar {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .account-user-info h3 {
        font-size: 15px;
    }

    .account-user-info p {
        font-size: 12px;
    }

    .woocommerce-MyAccount-navigation-link a {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Layout */
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 20px;
    }

    /* Headers */
    .tab-header,
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .button,
    .header-right .button-add-product {
        width: 100%;
        justify-content: center;
    }

    .header-left h2,
    .tab-header h2 {
        font-size: 24px;
    }

    /* Grids */
    .maker-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .uad-stats-grid,
    .uad-actions-grid {
        grid-template-columns: 1fr;
    }

    /* Events */
    .event-card {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        height: 200px;
    }

    .event-meta {
        padding: 10px;
    }

    .event-meta-item {
        font-size: 12px;
    }

    /* Filters */
    .products-filters {
        flex-direction: column;
        gap: 12px;
    }

    .products-filters input,
    .products-filters select,
    .products-filters button {
        width: 100%;
    }

    .filter-group {
        min-width: 100%;
    }

    /* Modal */
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: var(--spacing-md);
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: var(--spacing-md);
    }

    .listing-modal {
        padding: 10px;
    }

    /* Notices */
    .gd-upgrade-notice {
        padding: 15px;
        font-size: 14px;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    /* Images */
    .maker-image {
        height: 200px;
    }

    /* Content */
    .maker-content {
        padding: 15px;
    }

    .maker-content h3 {
        font-size: 16px;
    }

    .maker-description {
        font-size: 13px;
    }

    /* Actions */
    .maker-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Stats */
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Event Date */
    .maker-location.event-date {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Typography */
    .header-left h2 {
        font-size: 20px;
    }

    .uad-header h2 {
        font-size: 24px;
    }

    /* Spacing adjustments */
    :root {
        --spacing-md: 15px;
        --spacing-lg: 20px;
        --spacing-xl: 30px;
    }
}


/* =============================================================================
   15. PRINT STYLES
============================================================================= */

@media print {
    /* Hide interactive elements */
    .maker-actions,
    .products-filters,
    .maker-pagination,
    .pagination,
    .button-add-product,
    .woocommerce-MyAccount-navigation,
    .modal-overlay,
    .modal-close {
        display: none !important;
    }

    /* Adjust card layout */
    .maker-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .maker-badges {
        position: static !important;
    }

    /* Ensure readable colors */
    * {
        color: #000 !important;
        background: #fff !important;
    }

    .maker-image {
        border: 1px solid #ddd;
    }

    /* Add page breaks */
    .tab-header,
    .products-header {
        page-break-after: avoid;
    }
}
/* ==========04-Feb========== */

/* ================== */

/* ===== My Account Wrapper ===== */
.woocommerce {
    max-width: 1200px !important;
    margin: 10px auto ;
    display: flex;
    gap: 30px !important;
    font-family: "Inter", sans-serif;
}

/* ===== Sidebar Navigation ===== */
.woocommerce-MyAccount-navigation {
    width: 200px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 1px 1px 5px 4px rgb(0 0 0 / 2%);
    padding: 0px;
}
.woocommerce-account .ast-container {
    background: #f8fafc;
}

/* User Header */
.account-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    background: #fffbeb;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

/* Avatar */
.account-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D29A5C 0%, #E2B37A 50%, #C4874E 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Info */
.account-user-info h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.account-user-info p {
    font-size: 13px;
    color: #777;
    margin: 4px 0 0;
}

/* Navigation Links */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover {
    background: #fffbeb;
    color: #D29A5C;
    font-weight: 500;
}
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #e13b48 !important;
}

/* ===== Content Area ===== */
.woocommerce-MyAccount-content {
    flex: 1;
    border-radius: 16px;
    padding: 0 20px;
}
/* ===== Form Styling ===== */
.woocommerce form .form-row {
    margin-bottom: 8px;
}

.woocommerce label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce input:focus {
    border-color: #D29A5C;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    outline: none;
}

/* ===== Password Fieldset ===== */
.woocommerce fieldset {
    margin-top: 30px;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #eee;
}

.woocommerce fieldset legend {
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
}

/* ===== Button ===== */
.woocommerce button.button {
    background: linear-gradient(135deg, #D29A5C 0%, #E2B37A 50%, #C4874E 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}

/* ============ */

/* ===== Login Page Wrapper ===== */
.woocommerce-form-login.cst-login {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    font-family: "Inter", sans-serif;
}

/* Heading */
.woocommerce-form-login.cst-login h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

/* Form Rows */
/* Labels */
.woocommerce-form-login.cst-login label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
.woocommerce-form-login.cst-login input[type="text"],
.woocommerce-form-login.cst-login input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Focus State */
.woocommerce-form-login.cst-login input:focus {
    border-color: #D29A5C;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    outline: none;
}

/* Password Wrapper */
.woocommerce-form-login.cst-login .password-input {
    position: relative;
}

.woocommerce-form-login.cst-login .show-password-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* Remember Me + Button Row */
.woocommerce-form-login.cst-login .form-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Checkbox */
.woocommerce-form-login__rememberme {
    font-size: 13px;
    color: #666;
}

.woocommerce-form-login__rememberme input {
    accent-color: #D29A5C;
    margin-right: 6px;
}

/* Login Button */
.woocommerce-form-login.cst-login button.button {
    width: 100%;
    background: linear-gradient(135deg, #D29A5C 0%, #E2B37A 50%, #C4874E 100%);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
	margin-top:10px;
}

.woocommerce-form-login.cst-login button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.35);
}

/* Lost Password */
.woocommerce-form-login.cst-login .lost_password {
    text-align: center;
    margin-top: 18px;
}

.woocommerce-form-login.cst-login .lost_password a {
    font-size: 13px;
    color: #D29A5C;
    text-decoration: none;
}

.woocommerce-form-login.cst-login .lost_password a:hover {
    text-decoration: underline;
}

/* ===== Mobile ===== */
@media (max-width: 520px) {
    .woocommerce-form-login.cst-login {
        margin: 40px 15px;
        padding: 30px 25px;
    }
	 form.woocommerce-form.woocommerce-form-login.login.cst-login {
    margin: auto;
    width: 100% !important;
}

}



/* =============================================================================
   END OF STYLESHEET
============================================================================= */


