/* === Base Styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    background: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* === Top Header - BuddyBag Unique Style === */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Spacer for fixed header */
body {
    padding-top: 70px; /* Height of the header */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.4));
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.4));
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.header-center {
    flex: 1;
    max-width: 600px;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand search bar when in shopper mode */
body.shopper-mode .header-center {
    max-width: 800px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 20px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-bar:focus-within .search-icon {
    color: #4CAF50;
}

.search-bar:focus-within input {
    color: #1a1a2e;
}

.search-bar:focus-within input::placeholder {
    color: #94a3b8;
}

.search-icon {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    color: #fff;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Search Bar - hidden by default, shown on mobile */
.mobile-search-container {
    display: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    padding: 0 16px 12px 16px;
}

.mobile-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: #4CAF50;
}

.mobile-search-bar:focus-within .search-icon {
    color: #4CAF50;
}

.mobile-search-bar:focus-within input {
    color: #1a1a2e;
}

.mobile-search-bar:focus-within input::placeholder {
    color: #94a3b8;
}

.mobile-search-bar .search-icon {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.mobile-search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    color: #fff;
    outline: none;
}

.mobile-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated visibility for customer-only header elements */
.header-right .customer-only {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.header-right .customer-only.hidden {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    pointer-events: none;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.header-link svg {
    stroke: currentColor;
}

.store-selector {
    position: relative;
}

.store-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.store-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

.store-toggle svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.store-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
}

.store-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.store-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.2s;
}

.store-option:hover {
    background: #f1f5f9;
}

.store-option.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.store-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.store-icon.rema { background: linear-gradient(135deg, #e31837, #c41230); }
.store-icon.lidl { background: linear-gradient(135deg, #0050aa, #003d82); }
.store-icon.netto { background: linear-gradient(135deg, #ffd700, #ffcc00); color: #000; }
.store-icon.bilka { background: linear-gradient(135deg, #0066cc, #004499); }

/* === Role Switcher === */
.role-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    position: relative;
    gap: 0;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.role-option .role-icon {
    font-size: 16px;
}

.role-option .role-label {
    white-space: nowrap;
}

.role-option:hover {
    color: rgba(255, 255, 255, 0.9);
}

.role-option.active {
    color: #fff;
}

.role-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: linear-gradient(135deg, #4CAF50, #22c55e);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Shopper role slider position */
body.role-shopper .role-slider {
    left: calc(50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* === Role-based Theme Changes === */
body.role-shopper .top-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
}

body.role-shopper .welcome-section {
    background: linear-gradient(135deg, #2d1f3d 0%, #1f1a2e 100%);
}

body.role-shopper .welcome-badge {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

body.role-shopper .step-number {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

body.role-shopper .quick-categories {
    border-color: rgba(245, 158, 11, 0.2);
}

body.role-shopper .category-chip.active {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

body.role-shopper .pagination-num.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

@media (max-width: 768px) {
    .role-switcher {
        padding: 3px;
    }

    .role-option {
        padding: 6px 10px;
        font-size: 12px;
    }

    .role-option .role-label {
        display: none;
    }

    .role-option .role-icon {
        font-size: 18px;
    }
}

/* === Shopper Dashboard === */
.shopper-dashboard {
    display: none;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

body.role-shopper .shopper-dashboard {
    display: block;
}

.shopper-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #92400e;
}

.stat-label {
    font-size: 13px;
    color: #a16207;
    font-weight: 500;
}

.available-orders h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9fafb;
    border-radius: 16px;
}

.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-store {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.order-items {
    font-size: 14px;
    color: #666;
}

.order-distance {
    font-size: 13px;
    color: #999;
}

.order-fee {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.fee-amount {
    font-size: 20px;
    font-weight: 800;
    color: #22c55e;
}

.accept-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Requested Order Styling */
.order-card.requested-order {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
}

.requested-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.decline-btn {
    padding: 10px 20px;
    background: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.decline-btn:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* View details hint on order cards */
.view-details-hint {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 500;
    margin-top: 4px;
}

.order-card.clickable {
    cursor: pointer;
}

.order-card.clickable:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

/* Pending Order Preview Modal */
.pending-order-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.pending-order-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pending-order-preview-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pending-order-preview-overlay.active .pending-order-preview-modal {
    transform: translateY(0);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
}

.preview-header-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a1a2e;
}

.preview-address {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.preview-requested-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.preview-close-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.preview-section {
    margin-bottom: 20px;
}

.preview-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-items-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.preview-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.preview-item-qty {
    font-weight: 600;
    color: #f59e0b;
    min-width: 40px;
}

.preview-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.preview-item-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.preview-section.summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.preview-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.preview-summary-row.total {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.preview-earnings {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
}

.preview-earnings span:first-child {
    font-weight: 600;
    color: #065f46;
}

.earnings-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

.preview-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.preview-decline-btn {
    flex: 1;
    padding: 14px 20px;
    background: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-decline-btn:hover {
    background: #fef2f2;
}

.preview-accept-btn {
    flex: 2;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* View Toggle for Shopper Dashboard */
.view-toggle-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: #334155;
    background: rgba(0, 0, 0, 0.05);
}

.view-toggle-btn.active {
    background: #fff;
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.view-toggle-btn svg {
    stroke: currentColor;
}

/* Orders Map */
.orders-map-container {
    margin-top: 16px;
}

.orders-map-container h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.orders-map-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-dot.in-range {
    background: #22c55e;
}

.legend-dot.out-of-range {
    background: #ef4444;
}

.legend-dot.your-location {
    background: #3b82f6;
}

.orders-map {
    height: 500px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Custom map markers */
.order-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.order-marker:hover {
    transform: scale(1.15);
}

.order-marker.out-of-range {
    background: #ef4444;
}

.order-marker.your-location {
    background: #3b82f6;
    width: 20px;
    height: 20px;
    border-width: 3px;
}

.shopper-radius-circle {
    fill: rgba(59, 130, 246, 0.1);
    stroke: #3b82f6;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

/* Map popup styles */
.order-popup {
    min-width: 200px;
}

.order-popup .popup-header {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-popup .popup-address {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.order-popup .popup-items {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.order-popup .popup-fee {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
}

.order-popup .popup-distance {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    display: inline-block;
}

.order-popup .popup-distance.out-of-range {
    background: #fef2f2;
    color: #dc2626;
}

.order-popup .popup-accept-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-popup .popup-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.order-popup .popup-accept-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .shopper-stats {
        grid-template-columns: 1fr;
    }

    .orders-map {
        height: 400px;
    }

    .view-toggle-container {
        width: 100%;
    }

    .view-toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .order-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .order-fee {
        align-items: flex-start;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 10px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cart-btn svg {
    stroke: #fff;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff5722;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

/* === Welcome Section - BuddyBag unique === */
.welcome-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 32px;
    padding: 56px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.welcome-section::after {
    content: '🛒';
    position: absolute;
    bottom: -30px;
    right: 80px;
    font-size: 180px;
    opacity: 0.1;
    pointer-events: none;
}

.welcome-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(10px);
}

.welcome-section h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}

.welcome-description {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 500px;
}

.how-it-works {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 28px 36px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4CAF50, #22c55e);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.step-arrow {
    font-size: 20px;
    color: #ccc;
}

/* === Quick Categories Section === */
.quick-categories {
    margin-bottom: 40px;
    background: #fff;
    margin-left: -24px;
    margin-right: -24px;
    padding: 28px 24px 32px;
    border-radius: 24px;
    margin-top: 0;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.quick-categories::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.quick-categories::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quick-categories h2 {
    font-size: 22px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-categories h2::before {
    content: '🛒';
    font-size: 24px;
}

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 16px;
    padding-top: 10px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-width: 100px;
    max-width: 130px;
    text-align: center;
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: #4CAF50;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.25);
    transform: translateY(-4px) scale(1.02);
}

.category-chip.active {
    background: linear-gradient(135deg, #4CAF50 0%, #22c55e 50%, #16a34a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.category-chip .chip-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-chip.active .chip-icon {
    background: rgba(255,255,255,0.25);
}

.category-chip:hover .chip-icon {
    transform: scale(1.1);
}

.category-chip .chip-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.category-chip .chip-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

.cat-icon { font-size: 18px; }

/* === Sticky Categories Sidebar === */
.sticky-categories {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateX(-100%) translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 20px 20px 0;
    padding: 16px 12px;
    z-index: 1000;
    box-shadow: 4px 0 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sticky-categories.visible {
    transform: translateX(0) translateY(-50%);
}

.sticky-categories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.sticky-icon {
    font-size: 20px;
}

.sticky-categories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sticky-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

.sticky-category-item:hover {
    background: #f0fdf4;
}

.sticky-category-item.active {
    background: linear-gradient(135deg, #4CAF50, #22c55e);
    color: #fff;
}

.sticky-category-item .sticky-cat-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sticky-category-item .sticky-cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .sticky-categories {
        display: none;
    }
}

/* Hide sticky categories for shoppers */
body.role-shopper .sticky-categories {
    display: none !important;
}

/* === Active Orders Banner === */
.active-orders-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-orders-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.active-orders-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

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

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.banner-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.banner-arrow {
    font-size: 24px;
    color: #ffc107;
    font-weight: bold;
}

/* === Main Content === */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* === Shop Section - New Layout === */
.shop-section {
    margin-bottom: 40px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* === Filter Sidebar (Hidden - using horizontal categories instead) === */
.filter-sidebar {
    display: none;
}

.filter-header {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    padding: 16px 20px;
}

.filter-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.filter-sidebar .category-list {
    list-style: none;
    padding: 12px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* === Products Area === */
.products-area {
    min-height: 400px;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.products-toolbar h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.product-count {
    font-size: 14px;
    color: #888;
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 100px;
}

/* Keep old sidebar styles for category items */
.categories-sidebar h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-sidebar h2::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #4CAF50, #2E7D32);
    border-radius: 2px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* === Products Section === */
.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.products-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-header h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #4CAF50, #22c55e);
    border-radius: 3px;
}

.see-all-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 100px;
    background: #f0fdf4;
}

.see-all-link:hover {
    background: #4CAF50;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* === Pagination === */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-num:hover:not(.active) {
    border-color: #4CAF50;
    color: #4CAF50;
}

.pagination-num.active {
    background: linear-gradient(135deg, #4CAF50, #22c55e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-weight: 600;
}

@media (max-width: 600px) {
    .pagination-container {
        gap: 8px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pagination-num {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* === Product Card - BuddyBag Style === */
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, rgba(76, 175, 80, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.18);
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(180deg, #f8faf8 0%, #f0f5f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}
.wishlist-btn.active {
    color: #ef4444;
    background: #fef2f2;
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow:
        0 4px 15px rgba(255, 65, 108, 0.4),
        0 0 20px rgba(255, 75, 43, 0.3);
    animation: sale-badge-glow 2s ease-in-out infinite;
}

.sale-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b, #ff416c);
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    animation: sale-badge-pulse 2s ease-in-out infinite;
}

@keyframes sale-badge-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4), 0 0 20px rgba(255, 75, 43, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 65, 108, 0.5), 0 0 30px rgba(255, 75, 43, 0.4);
    }
}

@keyframes sale-badge-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Bilka Plus price badge - yellow/blue like Bilka branding */
.plus-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #1a237e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow:
        0 4px 15px rgba(255, 193, 7, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
    animation: plus-badge-glow 2s ease-in-out infinite;
}

.plus-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFD700, #FFC107, #FFD700);
    z-index: -1;
    filter: blur(8px);
    opacity: 0.5;
}

@keyframes plus-badge-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5), 0 0 25px rgba(255, 215, 0, 0.4);
    }
}

/* Mix offer badge (e.g., "Mix 3 for 39,-") - circular orange badge */
.mix-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    padding: 10px 12px;
    border-radius: 50%;
    min-width: 55px;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-shadow:
        0 4px 15px rgba(255, 107, 53, 0.4),
        0 0 20px rgba(247, 147, 30, 0.3);
    animation: mix-badge-bounce 2s ease-in-out infinite;
}

@keyframes mix-badge-bounce {
    0%, 100% {
        transform: scale(1) rotate(-3deg);
    }
    50% {
        transform: scale(1.05) rotate(3deg);
    }
}

.product-info {
    padding: 20px 20px 60px 20px;
    background: #fff;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #2E7D32;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

/* Discount price styling */
.product-card.on-discount .product-price {
    color: #ff416c;
    position: relative;
}

.product-card.on-discount .product-price::before {
    content: '🔥';
    font-size: 16px;
    margin-right: 4px;
    animation: fire-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes fire-bounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-2px) scale(1.1); }
}

.product-price .old-price {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    opacity: 0.7;
}

.product-price .old-price::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    transform: rotate(-8deg);
    border-radius: 2px;
}

/* Savings tag for discounted items */
.discount-savings {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 4px;
    animation: savings-shimmer 2s linear infinite;
    background-size: 200% 100%;
}

@keyframes savings-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-unit {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4CAF50 0%, #22c55e 50%, #16a34a 100%);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.add-to-cart-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

.quantity-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 12px;
    padding: 4px 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-controls button:hover { background: rgba(255,255,255,0.3); }

.quantity-controls span {
    color: #fff;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* === Cart Sidebar === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow: hidden;
}

.cart-sidebar.open { right: 0; }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.close-cart:hover { color: #1a1a2e; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    min-height: 0; /* Important for flex child overflow */
}

.cart-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.cart-item-price-mix {
    color: #7B1FA2; /* Purple for mix discount */
}

.cart-item.has-mix-discount {
    border-left: 3px solid #7B1FA2;
}

.cart-item-mix-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.mix-offer-tag {
    background: rgba(123, 31, 162, 0.15);
    color: #7B1FA2;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.mix-offer-hint {
    font-size: 11px;
    color: #7B1FA2;
    opacity: 0.7;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.cart-item-remove {
    color: #ef4444;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
}

.cart-item-remove:hover { text-decoration: underline; }

/* Bærepose (carrier bag) cart item styling */
.cart-item-bærepose {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px !important;
    margin: 8px 0;
    border: 1px dashed #60a5fa;
}

.auto-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-qty-auto {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
}

.cart-item-qty-auto span:first-child {
    font-weight: 600;
    color: #1e40af;
}

.auto-hint {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* Bærepose toast notification */
.bærepose-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bærepose-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bærepose-toast span {
    font-size: 18px;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.clear-cart-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-cart-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.checkout-btn {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

/* Compare Cart Button */
.compare-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.compare-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.compare-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.compare-cart-icon {
    font-size: 16px;
}

/* === Footer === */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* === Responsive Styles === */
@media (max-width: 1200px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 1024px) {
    .header-right .shopping-list-dropdown,
    .header-right .store-selector { display: none; }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        display: none;
    }

    .hero-banner {
        flex-direction: column;
        min-height: auto;
    }

    .hero-content {
        padding: 32px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 200px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .header-right .header-link span { display: none; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.open {
        right: 0;
    }

    .cart-header {
        padding: 16px;
    }

    .cart-items {
        padding: 12px 16px;
    }

    .cart-footer {
        padding: 16px;
    }

    .cart-total {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Show mobile search bar */
    .mobile-search-container {
        display: block;
    }

    .header-container {
        gap: 8px;
        padding: 8px 12px;
    }

    .logo {
        padding: 6px 10px;
        gap: 8px;
    }

    .logo-icon-img {
        width: 28px;
        height: 28px;
    }

    /* Cart sidebar mobile - full screen with safe area */
    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
        left: 100%;
        right: auto;
        height: 100%;
        height: 100dvh; /* Dynamic viewport height - accounts for browser UI */
        max-height: -webkit-fill-available;
        overflow-x: hidden;
    }

    .cart-sidebar.open {
        left: 0;
        right: auto;
    }

    .cart-header {
        padding: 12px 16px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .cart-header h2 {
        font-size: 16px;
    }

    .close-cart {
        font-size: 28px;
        padding: 8px;
        margin: -8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-items {
        padding: 12px 16px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-item {
        gap: 12px;
        padding: 12px 0;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 13px;
    }

    .cart-footer {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }

    .cart-total {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .checkout-btn {
        padding: 14px;
        font-size: 14px;
    }

    .estimated-fee {
        font-size: 11px;
        margin-top: 8px;
    }

    /* Checkout modal mobile - full screen */
    .checkout-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        margin: 0;
        overflow: hidden;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
    }

    .checkout-modal {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100%;
        max-height: none;
        border-radius: 0;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overflow-x: hidden;
        box-sizing: border-box;
        margin: 0;
        transform: none;
    }

    .checkout-modal-overlay.active .checkout-modal {
        transform: none;
    }

    .checkout-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        z-index: 100;
    }

    .checkout-modal * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkout-step .form-group input {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .order-summary-mini {
        overflow: hidden;
        word-wrap: break-word;
    }

    .summary-item {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .summary-item-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 60%;
    }

    .checkout-progress {
        margin-bottom: 16px;
        padding: 0 8px;
        padding-right: 50px; /* Make room for close button */
        flex-shrink: 0;
        overflow: hidden;
    }

    .progress-step {
        font-size: 10px;
        flex-shrink: 0;
    }

    .progress-line {
        flex: 0 1 20px;
        min-width: 10px;
        max-width: 20px;
    }

    .progress-step-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-line {
        width: 24px;
    }

    .checkout-step {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    .checkout-step h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .checkout-step .step-description {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .checkout-step .form-group {
        margin-bottom: 16px;
    }

    .checkout-step .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .order-summary-mini {
        padding: 14px;
        margin-bottom: 16px;
    }

    .order-summary-mini h4 {
        font-size: 14px;
    }

    .summary-item {
        font-size: 13px;
    }

    .checkout-actions {
        flex-shrink: 0;
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .checkout-btn-primary,
    .checkout-btn-secondary {
        padding: 14px 16px;
        font-size: 15px;
    }

    .fee-options {
        flex-direction: column;
        gap: 10px;
    }

    .fee-option {
        padding: 14px;
    }

    .payment-options {
        gap: 10px;
    }

    .payment-option {
        padding: 14px;
    }

    .logo-text { display: none; }

    .header-center { display: none; }

    /* Mobile header right - compact store icons */
    .header-right {
        gap: 6px !important;
    }

    .header-right .store-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        min-width: 36px;
    }

    .header-right .store-btn .store-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .header-right .store-btn span:not(.store-icon) {
        display: none;
    }

    .cart-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 4px;
    }

    .cart-btn span:not(.cart-badge) {
        display: none;
    }

    .cart-btn svg {
        width: 20px;
        height: 20px;
    }

    .cart-badge {
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Welcome section mobile */
    .welcome-section {
        padding: 24px 20px !important;
        margin-bottom: 20px;
        border-radius: 20px !important;
    }

    .welcome-section h1 {
        font-size: 24px !important;
        margin-bottom: 12px;
    }

    .welcome-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .welcome-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .how-it-works {
        padding: 16px 20px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .step {
        min-width: auto;
        flex-shrink: 0;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .step-text {
        font-size: 10px;
    }

    /* Quick categories mobile */
    .quick-categories {
        padding: 20px 16px;
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: 24px;
    }

    .quick-categories h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .quick-categories h2::before {
        font-size: 20px;
    }

    .category-chip {
        padding: 12px;
        min-width: 80px;
        max-width: 100px;
        gap: 8px;
    }

    .category-chip .chip-icon {
        font-size: 28px;
        width: 48px;
        height: 48px;
    }

    .category-chip .chip-name {
        font-size: 11px;
    }

    .category-nav-container {
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-info {
        padding: 10px 10px 50px 10px;
        position: relative;
    }

    .product-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-unit {
        font-size: 10px;
    }

    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        bottom: 8px;
        right: 8px;
        font-size: 20px;
        border-radius: 10px;
    }

    .quantity-controls {
        bottom: 8px;
        right: 8px;
        padding: 2px 6px;
        gap: 2px;
    }

    .quantity-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .quantity-controls span {
        font-size: 12px;
        min-width: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Shopper dashboard mobile */
    .shopper-dashboard {
        padding: 20px 16px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .shopper-dashboard h2 {
        font-size: 20px;
    }

    .order-card {
        padding: 16px;
        border-radius: 16px;
    }

    /* Active orders banner mobile */
    .active-orders-banner {
        padding: 12px 16px;
        border-radius: 12px;
    }

    .active-orders-banner-content {
        gap: 12px;
    }

    .active-orders-banner-icon {
        font-size: 28px;
    }

    .active-orders-banner h3 {
        font-size: 14px;
    }

    .active-orders-banner p {
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .header-container {
        padding: 6px 10px;
    }

    .products-grid {
        gap: 8px;
    }

    .product-info {
        padding: 8px 8px 44px 8px;
    }

    .product-name {
        font-size: 11px;
    }

    .product-price {
        font-size: 13px;
    }

    .add-to-cart-btn {
        width: 32px;
        height: 32px;
        bottom: 6px;
        right: 6px;
        font-size: 18px;
        border-radius: 8px;
    }

    .welcome-section h1 {
        font-size: 20px !important;
    }

    .category-chip {
        min-width: 70px;
        padding: 10px;
    }

    .category-chip .chip-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Loading and Error States */
.loading-state,
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Products loading overlay */
.products-area {
    position: relative;
}

.products-grid.loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.products-loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.products-loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.products-loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.error-state button {
    margin-top: 16px;
    padding: 10px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.error-state button:hover {
    background: #43a047;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.loading-categories {
    color: #999;
    font-size: 14px;
    padding: 8px 16px;
}

.loading-item {
    color: #999;
    font-size: 14px;
    padding: 16px;
    list-style: none;
}

/* Filter sidebar category items */
.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    list-style: none;
}

.category-item .cat-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.category-item:hover {
    background: #f5f5f5;
}

.category-item.active {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.category-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.category-item.active .category-name {
    color: #2e7d32;
    font-weight: 600;
}

.category-count {
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.category-item.active .category-count {
    background: #4CAF50;
    color: #fff;
}

/* Responsive: hide sidebar on mobile */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        display: none;
    }

    .welcome-section {
        flex-direction: column;
        padding: 36px 28px;
        border-radius: 24px;
    }

    .welcome-section::after {
        font-size: 120px;
        right: 20px;
        bottom: -20px;
    }

    .how-it-works {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .step-arrow {
        display: none;
    }
}

/* === Auth Modal === */
.auth-modal-overlay,
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active,
.profile-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal,
.profile-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-modal-overlay.active .auth-modal,
.profile-modal-overlay.active .profile-modal {
    transform: translateY(0);
}

.auth-modal-close,
.profile-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.auth-modal-close:hover,
.profile-modal-close:hover {
    background: #eee;
    color: #333;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3));
}

.auth-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-modal-header p {
    color: #666;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-auth-btn.google-btn {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.social-auth-btn.google-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-auth-btn.apple-btn {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

.social-auth-btn.apple-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-toggle {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.auth-toggle span {
    color: #666;
    font-size: 14px;
}

.auth-toggle-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-left: 4px;
}

.auth-toggle-btn:hover {
    text-decoration: underline;
}

/* === Profile Modal === */
.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar span {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.profile-header p {
    color: #666;
    font-size: 14px;
}

.profile-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-label {
    color: #666;
    font-size: 14px;
}

.profile-value {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-logout-btn {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-logout-btn:hover {
    background: #eee;
}

/* Profile button in header when logged in */
.profile-btn.logged-in {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 100px;
    padding: 8px 16px;
}

.profile-btn.logged-in span {
    color: #2E7D32;
    font-weight: 600;
}

/* Active Orders Button */
.orders-btn {
    position: relative;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 100px;
    padding: 8px 16px;
}

.orders-btn span {
    color: #e65100;
    font-weight: 600;
}

.orders-btn svg {
    stroke: #e65100;
}

.orders-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e65100;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Active Orders Modal */
.active-orders-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.active-orders-overlay.active {
    opacity: 1;
    visibility: visible;
}

.active-orders-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.active-orders-overlay.active .active-orders-modal {
    transform: translateY(0);
}

.active-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.active-orders-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.active-orders-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.active-orders-close:hover {
    background: #eee;
    color: #333;
}

.active-orders-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.active-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.active-orders-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.active-orders-empty p {
    font-size: 16px;
    margin: 0;
}

/* Order Card in Active Orders List */
.order-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.order-card:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.order-card-store {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.order-card-store .store-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: white;
}

.order-card-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.order-card-status.pending {
    background: #fff3e0;
    color: #e65100;
}

.order-card-status.accepted {
    background: #e3f2fd;
    color: #1565c0;
}

.order-card-status.shopping {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-card-status.on_the_way {
    background: #f3e5f5;
    color: #7b1fa2;
}

.order-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-card-items {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.order-card-total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.order-card-arrow {
    color: #999;
    font-size: 18px;
}

/* ========== Checkout Modal ========== */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.checkout-modal-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.checkout-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.7;
}

.progress-step .step-icon {
    font-size: 24px;
}

.progress-step .step-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.progress-step.active .step-label {
    color: #4CAF50;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
    max-width: 60px;
}

/* Checkout Steps */
.checkout-step h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.checkout-step .step-description {
    color: #666;
    margin-bottom: 24px;
}

.checkout-step .form-group {
    margin-bottom: 20px;
}

.checkout-step .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.checkout-step .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.checkout-step .form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Order Summary Mini */
.order-summary-mini {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-summary-mini h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.summary-items {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.checkout-btn-primary,
.checkout-btn-secondary {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.checkout-btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.checkout-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.checkout-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.checkout-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.checkout-btn-secondary:hover {
    background: #e0e0e0;
}



/* Fee Options */
.fee-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.fee-option {
    flex: 1;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.fee-option:hover {
    border-color: #4CAF50;
}

.fee-option.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.fee-option.recommended {
    border-color: #4CAF50;
}

.fee-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.fee-amount {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 4px;
}

.fee-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.fee-description {
    font-size: 13px;
    color: #666;
}

.fee-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.fee-input-wrapper input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.fee-input-wrapper input:focus {
    outline: none;
    border-color: #4CAF50;
}

.fee-currency {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

/* Fee Total Preview */
.fee-total-preview {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #666;
}

.fee-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 16px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #4CAF50;
}

.payment-option.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.payment-icon {
    font-size: 32px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.payment-description {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.payment-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.payment-option.active .payment-check {
    background: #4CAF50;
}

/* Delivery Time Selection */
.delivery-time-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-time-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-time-option:hover {
    border-color: #10B981;
}

.delivery-time-option.active {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.delivery-time-option.asap {
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: white;
}

.delivery-time-option.asap .time-description {
    color: rgba(255, 255, 255, 0.85);
}

.delivery-time-option.asap .time-check {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.delivery-time-option.asap.active .time-check {
    background: white;
    color: #10B981;
}

.time-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.time-info {
    flex: 1;
}

.time-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.time-description {
    font-size: 14px;
    color: #666;
}

.time-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.delivery-time-option.active .time-check {
    background: #10B981;
}

.time-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.time-divider span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.time-slot.active {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: #10B981;
    color: white;
}

/* Shopper Selection */
.shopper-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shopper-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.shopper-option:hover {
    border-color: #4CAF50;
}

.shopper-option.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.shopper-option.anyone {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.1));
}

.shopper-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

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

.anyone-avatar {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.shopper-info {
    flex: 1;
}

.shopper-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.shopper-description {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.shopper-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.shopper-rating {
    font-size: 13px;
    color: #666;
}

.shopper-orders {
    font-size: 13px;
    color: #666;
}

.shopper-eta {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
}

.shopper-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.shopper-option.active .shopper-check {
    background: #4CAF50;
}

.shoppers-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    color: #999;
    font-size: 13px;
}

.shoppers-divider::before,
.shoppers-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.shoppers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.shoppers-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #666;
}

.checkout-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* ========== Order Status Modal ========== */
.order-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-status-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-status-modal {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.order-status-overlay.active .order-status-modal {
    transform: translateY(0);
}

.order-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.order-status-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.order-status-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.order-status-content {
    padding: 24px;
}

/* Status Progress */
.status-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.status-step.active {
    opacity: 1;
}

.status-step.completed {
    opacity: 0.7;
}

.status-step .status-icon {
    font-size: 24px;
}

.status-step .status-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.status-step.active .status-label {
    color: #4CAF50;
    font-weight: 600;
}

.status-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 4px;
}

.status-line.completed {
    background: #4CAF50;
}

.status-message {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.1));
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #333;
}

/* Shopper Info Card */
.shopper-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 24px;
}

.shopper-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
}

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

.shopper-details {
    flex: 1;
}

.shopper-details .shopper-name {
    font-size: 18px;
    font-weight: 600;
}

.shopper-details .shopper-rating {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Shopper Map Card */
.shopper-map-card {
    background: #f0f7f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.shopper-map-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 10;
}

.shopper-map-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.shopper-map-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shopper-map-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.shopper-map-status {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
}

.shopper-map-container {
    height: 280px;
    width: 100%;
    background: #e8e8e8;
}

/* Leaflet custom styles */
.shopper-map-container .leaflet-container {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.car-marker-icon {
    background: none;
    border: none;
}

.car-marker {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transform-origin: center center;
}

/* Order Details Card */
.order-details-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.order-details-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.order-detail-row.total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
}

/* Order Items Card */
.order-items-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
}

.order-items-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.order-items-list {
    max-height: 200px;
    overflow-y: auto;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
}

.order-item-qty {
    color: #666;
    margin-right: 12px;
}

/* Order Status Actions */
.order-status-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #e0e0e0;
}

.order-action-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.order-action-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.order-action-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.order-action-btn.secondary:hover {
    background: #e0e0e0;
}

/* ========== Receipt Card ========== */
.receipt-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.receipt-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.receipt-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e0e0e0;
}

.receipt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.receipt-image-container:hover .receipt-image {
    transform: scale(1.02);
}

.receipt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.receipt-image-container:hover .receipt-overlay {
    opacity: 1;
}

.receipt-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 100px;
}

/* ========== Receipt Fullscreen Viewer ========== */
.receipt-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.receipt-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.receipt-fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.receipt-fullscreen-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.receipt-fullscreen-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.receipt-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ========== Profile Screen Modal ========== */
.profile-screen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.profile-screen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-screen {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.profile-screen-overlay.active .profile-screen {
    transform: scale(1) translateY(0);
}

.profile-screen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.profile-screen-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Profile Header */
.profile-screen-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 40px 24px 32px;
    text-align: center;
    color: white;
    position: relative;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-large #profileInitialLarge {
    font-size: 40px;
    font-weight: 700;
    color: white;
}

.profile-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.profile-avatar-upload:hover {
    transform: scale(1.1);
}

.profile-avatar-upload span {
    font-size: 14px;
}

.profile-screen-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.profile-screen-header p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.profile-stat-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Profile Screen Content */
.profile-screen-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Profile Cards */
.profile-card {
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-card-header .card-icon {
    font-size: 24px;
}

.profile-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.profile-card-header p {
    font-size: 13px;
    color: #666;
    margin: 2px 0 0;
}

.profile-card-body {
    padding: 16px 20px;
}

/* Address Input */
.address-input-group {
    display: flex;
    gap: 8px;
}

.address-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.address-input-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.save-address-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-address-btn:hover {
    background: #43A047;
    transform: scale(1.05);
}

/* Role Toggles */
.role-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.role-toggle:last-child {
    border-bottom: none;
}

.role-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-icon {
    font-size: 24px;
}

.role-info > div {
    display: flex;
    flex-direction: column;
}

.role-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.role-description {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Shopper Settings Card */
.shopper-settings-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 1px solid #ffcc80;
}

.delivery-radius-setting {
    margin-bottom: 16px;
}

.delivery-radius-setting label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.delivery-radius-setting label span {
    font-weight: 700;
    color: #4CAF50;
}

.delivery-radius-setting input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    appearance: none;
    outline: none;
}

.delivery-radius-setting input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.set-location-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.set-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Availability Setting */
.availability-setting {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.availability-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.availability-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.availability-days {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
}

.set-availability-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.set-availability-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Admin Settings Card */
.admin-settings-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #64b5f6;
}

.admin-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 4px 0;
}

.admin-description {
    font-size: 12px;
    color: #666;
    margin: 0 0 16px 0;
}

.admin-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #1976d2;
    background: white;
    color: #1976d2;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-btn .store-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.admin-btn .store-icon.rema {
    background: #004d26;
    color: white;
}

.admin-btn .store-icon.netto {
    background: #ffe600;
    color: #000;
}

.admin-btn .store-icon.lidl {
    background: #0050aa;
    color: white;
}

.admin-btn .store-icon.bilka {
    background: #0066cc;
    color: white;
}

.admin-btn-primary {
    flex: none;
    width: 100%;
    flex-direction: row;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 14px 20px;
}

.admin-btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.admin-status {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.admin-status .status-icon {
    font-size: 16px;
}

.admin-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-status.error {
    background: #ffebee;
    color: #c62828;
}

/* Profile Action Buttons */
.profile-actions-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-action-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.profile-action-btn.logout-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.profile-action-btn.logout-btn:hover {
    background: #eee;
}

.profile-action-btn.delete-btn {
    background: transparent;
    border: 1px solid #ef5350;
    color: #ef5350;
}

.profile-action-btn.delete-btn:hover {
    background: #ffebee;
}

.profile-action-btn.feedback-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.profile-action-btn.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* === Feedback Modal === */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.feedback-modal-overlay.active .feedback-modal {
    transform: scale(1) translateY(0);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.feedback-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.feedback-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.feedback-modal-close:hover {
    background: #eee;
    color: #333;
}

.feedback-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.feedback-section {
    margin-bottom: 24px;
}

.feedback-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.feedback-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feedback-category {
    padding: 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.feedback-category:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.feedback-category.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    transform: scale(1.02);
}

.feedback-category.full-width {
    grid-column: 1 / -1;
}

.feedback-category .category-icon {
    font-size: 24px;
}

.feedback-category .category-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.feedback-modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.feedback-modal-content textarea:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-modal-content input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.feedback-modal-content input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-error {
    padding: 12px 16px;
    background: #ffebee;
    border-radius: 10px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 16px;
}

.feedback-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.feedback-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feedback-submit-btn .submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Feedback Success Modal */
.feedback-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-success-modal {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.feedback-success-modal .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feedback-success-modal h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.feedback-success-modal p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.feedback-success-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    border-radius: 20px;
    padding: 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confirm-modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #333;
}

.confirm-modal p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn.cancel {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.confirm-btn.cancel:hover {
    background: #eee;
}

.confirm-btn.primary {
    background: #4CAF50;
    border: none;
    color: white;
}

.confirm-btn.primary:hover {
    background: #43A047;
}

.confirm-btn.danger {
    background: #ef5350;
    border: none;
    color: white;
}

.confirm-btn.danger:hover {
    background: #e53935;
}

/* === Product Detail Modal === */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-detail-overlay.active {
    display: flex;
}

.product-detail-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.product-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.product-detail-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 600px) {
    .product-detail-content {
        flex-direction: row;
    }
}

.product-detail-image-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

@media (min-width: 600px) {
    .product-detail-image-section {
        width: 45%;
        min-height: 400px;
    }
}

.product-detail-image-section img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.product-detail-sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Mix offer badge for product detail modal */
.product-detail-mix-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 14px 16px;
    border-radius: 50%;
    min-width: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: mix-badge-bounce 2s ease-in-out infinite;
}

/* Plus price badge for product detail modal */
.product-detail-plus-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #1a237e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    animation: plus-badge-glow 2s ease-in-out infinite;
}

.product-detail-info-section {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.product-detail-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.product-detail-price-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-detail-price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-price-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-detail-current-price {
    font-size: 28px;
    font-weight: 800;
    color: #4CAF50;
}

.product-detail-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.product-detail-unit-price {
    font-size: 13px;
    color: #888;
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px;
}

.product-detail-quantity .qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.product-detail-quantity .qty-btn:hover {
    background: #e0e0e0;
}

.product-detail-quantity .qty-btn.minus:hover {
    background: #ffebee;
    color: #e53935;
}

.product-detail-quantity .qty-btn.plus:hover {
    background: #e8f5e9;
    color: #4CAF50;
}

.product-detail-quantity .qty-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.product-detail-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
    margin-top: auto;
}

.product-detail-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.45);
}

.product-detail-add-btn .add-btn-icon {
    font-size: 20px;
}

.product-detail-add-btn .add-btn-divider {
    opacity: 0.6;
}

.product-detail-add-btn .add-btn-savings {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}

/* === Shopper Order Detail Modal === */
.shopper-order-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shopper-order-overlay.active {
    display: flex;
}

.shopper-order-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.shopper-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
}

.shopper-order-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.shopper-order-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.shopper-order-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.shopper-order-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Status Progress */
.shopper-order-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
}

.shopper-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.shopper-status-step .status-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #ddd;
    transition: all 0.3s;
}

.shopper-status-step span {
    font-size: 10px;
    color: #999;
    font-weight: 500;
    text-align: center;
}

.shopper-status-step.active .status-dot {
    background: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.shopper-status-step.active span {
    color: #4CAF50;
    font-weight: 600;
}

.shopper-status-step.completed .status-dot {
    background: #4CAF50;
    border-color: #4CAF50;
}

.shopper-status-step.completed span {
    color: #333;
}

.shopper-status-line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 4px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.shopper-status-line.completed {
    background: #4CAF50;
}

/* Order Cards */
.shopper-order-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
}

.shopper-order-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.delivery-address {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Order Items */
.shopper-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.shopper-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
}

.shopper-item-qty {
    background: #4CAF50;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.shopper-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.shopper-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Summary */
.shopper-order-card.summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.shopper-order-card.summary .summary-row.total {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.shopper-order-card.summary .earnings {
    color: #4CAF50;
    font-weight: 600;
}

/* Action Buttons */
.shopper-order-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.shopper-action-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.shopper-action-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.shopper-action-btn.secondary:hover {
    background: #eee;
}

.shopper-action-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.shopper-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.shopper-action-btn.primary.delivered {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ============================================================
   SHOPPING COMPARISON MODAL
   ============================================================ */

.compare-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.compare-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.compare-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.compare-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.compare-modal-overlay.active .compare-modal {
    transform: scale(1) translateY(0);
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.compare-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.compare-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.compare-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.compare-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.compare-instruction {
    font-size: 15px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.compare-input-section textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s;
}

.compare-input-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.compare-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.compare-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.compare-submit-btn .submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.compare-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #ffebee;
    border-radius: 10px;
    color: #c62828;
    font-size: 14px;
}

/* Results Section */
.compare-back-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.compare-back-btn:hover {
    background: #eee;
}

.compare-parsed-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.parsed-item-tag {
    padding: 6px 12px;
    background: #f0f0ff;
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

/* Store Tabs */
.compare-store-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.store-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.store-tab:hover {
    background: #eee;
}

.store-tab.active {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.store-tab.cheapest {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4CAF50;
}

.store-tab .store-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.store-tab .store-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.store-tab .store-total {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.store-tab.cheapest .store-total {
    color: #4CAF50;
}

/* Cheapest Banner */
.compare-cheapest-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.cheapest-icon {
    font-size: 24px;
}

.cheapest-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
}

.cheapest-savings {
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* Products List */
.compare-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.compare-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    padding-right: 30px;
    background: #f9f9f9;
    border-radius: 14px;
    transition: all 0.2s;
    position: relative;
}

.compare-product-item:hover {
    background: #f0f0f0;
}

.compare-product-item:hover .compare-product-remove {
    opacity: 1;
}

.compare-product-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 0;
}

.compare-product-remove:hover {
    background: #ff4444;
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.compare-product-item.not-found {
    opacity: 0.6;
    background: #fff5f5;
}

.compare-product-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: white;
    border: 1px solid #eee;
}

.compare-product-info {
    flex: 1;
    min-width: 0;
}

.compare-product-requested {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.compare-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-product-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.confidence-bar {
    width: 60px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
}

.confidence-fill.medium {
    background: #FF9800;
}

.confidence-fill.low {
    background: #f44336;
}

.compare-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

.compare-product-price.discount {
    color: #e53935;
}

/* Action Section */
.compare-action-section {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.compare-add-all-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.compare-add-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.compare-add-all-btn .add-icon {
    font-size: 20px;
}

/* Alternatives dropdown */
.compare-alternatives {
    margin-top: 8px;
}

.alternatives-toggle {
    font-size: 12px;
    color: #667eea;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.alternatives-list {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
}

.alternatives-list.visible {
    display: block;
}

.alternative-item {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 6px;
    margin: 2px 0;
}

.alternative-item.clickable {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.alternative-item.clickable:hover {
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateX(4px);
}

.alternative-item.clickable:active {
    background-color: rgba(76, 175, 80, 0.2);
    transform: scale(0.98);
}

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

/* Mobile responsiveness */
@media (max-width: 600px) {
    .compare-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .compare-store-tabs {
        flex-wrap: nowrap;
    }

    .store-tab {
        min-width: 90px;
        padding: 10px 12px;
    }

    .store-tab .store-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .compare-product-item {
        padding: 12px;
    }

    .compare-product-image {
        width: 50px;
        height: 50px;
    }
}

/* === Shopper Onboarding Modal === */
.onboarding-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.onboarding-overlay.active {
    display: flex;
}

.onboarding-modal {
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.onboarding-progress {
    padding: 20px 24px 0;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    width: 50%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.progress-step.active .step-dot {
    background: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.progress-step.completed .step-dot {
    background: #10B981;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.onboarding-back {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6366F1;
    border-radius: 8px;
    transition: background 0.2s;
}

.onboarding-back:hover {
    background: #f3f4f6;
}

.onboarding-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.onboarding-step {
    padding: 20px 24px;
}

.onboarding-info-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}

.onboarding-info-card.purple {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.info-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.onboarding-map-container {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.onboarding-map {
    height: 250px;
    width: 100%;
}

.radius-control {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.radius-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.radius-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.radius-value {
    font-size: 16px;
    font-weight: 700;
    color: #6366F1;
}

.radius-slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.radius-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.radius-slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.radius-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* Step 2: Availability */
.availability-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

.days-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.2s;
}

.day-item.enabled {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 1px solid #c7d2fe;
}

.day-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.day-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.day-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 28px;
}

.day-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.day-toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.day-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    min-width: 80px;
}

.time-pickers {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

.day-item.enabled .time-pickers {
    opacity: 1;
    pointer-events: auto;
}

.time-picker-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-picker-group label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.time-picker-group select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: #1a1a2e;
    cursor: pointer;
}

.time-picker-group select:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.time-separator {
    color: #9ca3af;
    font-size: 12px;
}

/* Onboarding Actions */
.onboarding-actions {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
}

.onboarding-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.onboarding-btn.primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.onboarding-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.onboarding-btn.secondary {
    background: transparent;
    color: #6b7280;
}

.onboarding-btn.secondary:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .onboarding-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .day-item {
        flex-wrap: wrap;
    }

    .time-pickers {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        padding-left: 60px;
    }
}

/* Address Selection Styles */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.address-option:hover {
    border-color: #10B981;
}

.address-option.active {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.address-option.active .address-check {
    opacity: 1;
}

.address-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.address-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.address-option.saved-address .address-icon {
    background: linear-gradient(135deg, #10B981, #059669);
}

.address-option.different-address .address-icon {
    background: #f0f0f0;
}

.address-info {
    flex: 1;
}

.address-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.address-description {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.address-warning {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 4px;
}

.address-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Address Input Container */
.address-input-container {
    margin-top: 16px;
    position: relative;
}

.address-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.address-input-wrapper:focus-within {
    border-color: #10B981;
}

.address-input-icon {
    font-size: 20px;
}

.address-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    outline: none;
    color: #1a1a1a;
}

.address-input::placeholder {
    color: #999;
}

/* Address Suggestions Dropdown */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.address-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.address-suggestion-item:hover {
    background: #f8f9fa;
}

.address-suggestion-item:first-child {
    border-radius: 12px 12px 0 0;
}

.address-suggestion-item:last-child {
    border-radius: 0 0 12px 12px;
}

.address-suggestion-item:only-child {
    border-radius: 12px;
}

.suggestion-icon {
    font-size: 18px;
    color: #666;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

/* Save Address Modal */
.save-address-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.save-address-modal {
    background: white;
    border-radius: 20px;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.save-address-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.save-address-modal p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.save-address-preview {
    background: #f8f9fa;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: left;
}

.save-address-actions {
    display: flex;
    gap: 12px;
}

.save-address-btn-secondary,
.save-address-btn-primary {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.save-address-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.save-address-btn-secondary:hover {
    background: #e0e0e0;
}

.save-address-btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.save-address-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

