/**
 * Bee1 Side Cart - NASA Grade Design
 * Clean, Professional, Safety-Inspired Design
 * Colors from provided palette
 */

:root {
    /* Colors from palette */
    --bee1-primary: #0476D9;           /* Primary Color - Main buttons, links */
    --bee1-secondary: #0D4373;         /* Secondary Color - Hover states */
    --bee1-accent: #0476D9;            /* Accent Color - Alerts, important */
    --bee1-background: #EBF4FD;        /* Background Color - Main admin background */
    --bee1-surface: #ffffff;           /* Surface Color - Cards, boxes, panels */
    --bee1-text: #1A1A1A;              /* Text Color - Main text and headings */
    --bee1-text-secondary: #4A4A4A;    /* Secondary Text - Descriptions, meta */
    --bee1-text-hover: #0D4373;        /* Text Hover Color */
    --bee1-border: #D0E8F2;            /* Border Color */
    --bee1-icon: #1f3a58;              /* Icon Color - Normal state */
    --bee1-icon-hover: #f1f2f6;        /* Icon Hover */
    --bee1-icon-active: #005fd8;       /* Icon Active */
    
    /* Functional colors */
    --bee1-success: #10b981;
    --bee1-warning: #f59e0b;
    --bee1-error: #ef4444;
    
    /* Shadows - subtle and professional */
    --bee1-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --bee1-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bee1-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions - smooth and professional */
    --bee1-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bee1-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support */
html[dir="rtl"] .bee1-side-cart {
    left: auto;
    right: -420px;
}

html[dir="rtl"] .bee1-side-cart.is-open {
    left: auto;
    right: 0;
}

/* Overlay */
.bee1-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh; /* Safari mobile fix */
    height: -webkit-fill-available; /* iOS Safari fix */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Safari */
    opacity: 0;
    visibility: hidden;
    transition: var(--bee1-transition);
    -webkit-transition: var(--bee1-transition); /* Safari */
    z-index: 999998;
    -webkit-transform: translateZ(0); /* Force GPU acceleration */
    transform: translateZ(0);
}

.bee1-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Side Cart Container */
.bee1-side-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    height: 100vh; /* Safari mobile fix */
    height: -webkit-fill-available; /* iOS Safari fix */
    background: var(--bee1-surface);
    box-shadow: var(--bee1-shadow-lg);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: var(--bee1-transition);
    -webkit-transition: var(--bee1-transition); /* Safari */
    -webkit-transform: translateZ(0); /* Force GPU acceleration on Safari */
    transform: translateZ(0);
    will-change: transform; /* Performance hint */
    overflow: hidden; /* Prevent content overflow */
}

.bee1-side-cart.is-open {
    right: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Header */
.bee1-cart-header {
    background: var(--bee1-surface);
    border-bottom: 1px solid var(--bee1-border);
    padding: 10px;
    position: relative;
    flex-shrink: 0; /* Prevent header from shrinking on mobile */
    z-index: 2; /* Ensure header stays on top */
}

.bee1-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bee1-header-content h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--bee1-text);
}

.bee1-cart-icon {
    font-size: 24px;
}

.bee1-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--bee1-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bee1-close-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--bee1-text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--bee1-transition-fast);
}

.bee1-close-cart:hover {
    background: var(--bee1-background);
    color: var(--bee1-text);
    transform: scale(1.05);
}

/* Progress Bar Section */
.bee1-progress-section {
    margin-top: 16px;
}

.bee1-progress-message {
    font-size: 13px;
    font-weight: 500;
    color: var(--bee1-text);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.5;
    min-height: 20px;
}

.bee1-progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bee1-background);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.bee1-progress-bar {
    height: 100%;
    /* Dynamic color injected via inline styles */
    background: linear-gradient(90deg, #0476D9 0%, #0476D9 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bee1-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Milestones */
.bee1-milestones {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.bee1-milestone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--bee1-background);
    border-radius: 8px;
    transition: var(--bee1-transition-fast);
}

.bee1-milestone.achieved {
    /* Dynamic colors injected via inline styles */
    background: #0476D9;
    color: #ffffff;
    transform: scale(1.05);
}

.bee1-milestone-icon {
    font-size: 20px;
}

.bee1-milestone-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Cart Body */
.bee1-cart-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 20px;
    background: var(--bee1-background);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative; /* Fix for Safari rendering */
    z-index: 1; /* Ensure proper stacking */
}

.bee1-cart-body::-webkit-scrollbar {
    width: 6px;
}

.bee1-cart-body::-webkit-scrollbar-track {
    background: transparent;
}

.bee1-cart-body::-webkit-scrollbar-thumb {
    background: var(--bee1-border);
    border-radius: 3px;
}

.bee1-cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--bee1-secondary);
}

/* Empty Cart */
.bee1-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.bee1-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.bee1-empty-cart p {
    color: var(--bee1-text-secondary);
    margin-bottom: 20px;
}

/* Cart Items */
.bee1-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bee1-cart-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--bee1-surface);
    border-radius: 12px;
    box-shadow: var(--bee1-shadow-sm);
    transition: var(--bee1-transition-fast);
    animation: slideInRight 0.3s ease-out;
}

/* Fix for WooCommerce HTML price display */
.bee1-cart-item .woocommerce-Price-amount,
.bee1-item-price .woocommerce-Price-amount,
.bee1-subtotal .woocommerce-Price-amount,
.bee1-shipping .woocommerce-Price-amount,
.bee1-total .woocommerce-Price-amount,
.bee1-recommendation-price .woocommerce-Price-amount {
    display: inline;
}

.bee1-cart-item .woocommerce-Price-currencySymbol,
.bee1-item-price .woocommerce-Price-currencySymbol {
    margin-left: 2px;
}

html[dir="rtl"] .bee1-cart-item .woocommerce-Price-currencySymbol,
html[dir="rtl"] .bee1-item-price .woocommerce-Price-currencySymbol {
    margin-left: 0;
    margin-right: 2px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bee1-cart-item:hover {
    box-shadow: var(--bee1-shadow-md);
}

.bee1-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bee1-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bee1-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bee1-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bee1-text);
    line-height: 1.4;
    margin: 0;
}

.bee1-item-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--bee1-transition-fast);
}

.bee1-item-name a:hover {
    color: var(--bee1-primary);
}

.bee1-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bee1-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bee1-text);
}

.bee1-item-regular-price {
    font-size: 14px;
    color: var(--bee1-text-secondary);
    text-decoration: line-through;
}

.bee1-item-savings {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--bee1-success);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.bee1-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.bee1-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bee1-background);
    border-radius: 8px;
    padding: 4px;
}

.bee1-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bee1-surface);
    color: var(--bee1-text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--bee1-transition-fast);
}

.bee1-qty-btn:hover {
    background: var(--bee1-primary);
    color: white;
    transform: scale(1.1);
}

.bee1-qty-btn:active {
    transform: scale(0.95);
}

.bee1-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--bee1-text);
}

.bee1-remove-item {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--bee1-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--bee1-transition-fast);
    margin-left: auto;
}

.bee1-remove-item:hover {
    background: var(--bee1-error);
    color: white;
    transform: scale(1.1);
}

/* Social Proof Badge */
.bee1-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bee1-background);
    color: var(--bee1-text-secondary);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

/* Recommendations */
.bee1-recommendations {
    margin-top: 18px;
}

.bee1-recommendations-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bee1-text);
    margin-bottom: 16px;
}

.bee1-sparkle {
    font-size: 20px;
}

.bee1-arrow {
    margin-left: auto;
    color: var(--bee1-primary);
}

.bee1-recommendations-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.bee1-recommendations-grid:active {
    cursor: grabbing;
}

.bee1-recommendations-grid::-webkit-scrollbar {
    height: 6px;
}

.bee1-recommendations-grid::-webkit-scrollbar-track {
    background: var(--bee1-background);
    border-radius: 3px;
}

.bee1-recommendations-grid::-webkit-scrollbar-thumb {
    background: var(--bee1-primary);
    border-radius: 3px;
    transition: var(--bee1-transition-fast);
}

.bee1-recommendations-grid::-webkit-scrollbar-thumb:hover {
    background: var(--bee1-secondary);
}

.bee1-recommendation-item {
    flex: 0 0 160px; /* איזון מושלם - לא גדול מדי, לא קטן מדי */
    background: var(--bee1-surface);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--bee1-shadow-sm);
    transition: var(--bee1-transition-fast);
    cursor: pointer;
}

.bee1-recommendation-item:hover {
    box-shadow: var(--bee1-shadow-md);
    transform: translateY(-4px);
}

.bee1-recommendation-image {
    width: 100%;
    height: 140px; /* גובה מאוזן - רואים הכל */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bee1-recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bee1-recommendation-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--bee1-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px; /* שורתיים טקסט */
}

.bee1-recommendation-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.bee1-recommendation-price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--bee1-text);
}

.bee1-recommendation-price-regular {
    font-size: 12px;
    color: var(--bee1-text-secondary);
    text-decoration: line-through;
}

.bee1-add-to-cart-btn,
.bee1-view-product-btn {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: var(--bee1-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
    text-align: center;
    text-decoration: none;
}

.bee1-add-to-cart-btn:hover,
.bee1-view-product-btn:hover {
    background: var(--bee1-secondary);
    transform: scale(1.05);
    color: white;
}

.bee1-add-to-cart-btn:active,
.bee1-view-product-btn:active {
    transform: scale(0.95);
}

/* Footer */
.bee1-cart-footer {
    background: var(--bee1-surface);
    border-top: 1px solid var(--bee1-border);
    padding: 20px;
    flex-shrink: 0; /* Prevent footer from shrinking on mobile */
    z-index: 2; /* Ensure footer stays on top */
}

/* Promo Section */
.bee1-promo-section {
    margin-bottom: 8px;
}

.bee1-promo-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 1px dashed var(--bee1-border);
    background: transparent;
    color: var(--bee1-primary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-promo-toggle:hover {
    background: var(--bee1-background);
    border-color: var(--bee1-primary);
}

.bee1-promo-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.bee1-promo-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--bee1-border);
    background: var(--bee1-surface);
    color: var(--bee1-text);
    font-size: 14px;
    border-radius: 8px;
    transition: var(--bee1-transition-fast);
}

.bee1-promo-input input:focus {
    outline: none;
    border-color: var(--bee1-primary);
    box-shadow: 0 0 0 3px rgba(4, 118, 217, 0.1);
}

.bee1-apply-coupon {
    padding: 12px 20px;
    border: none;
    background: var(--bee1-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-apply-coupon:hover {
    background: var(--bee1-secondary);
}

/* Savings Message */
.bee1-savings-message {
    padding: 12px 16px;
    background: var(--bee1-success);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

/* Cart Totals */
.bee1-cart-totals {
    margin-bottom: 5px;
}

.bee1-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--bee1-border);
    font-size: 14px;
    color: var(--bee1-text-secondary);
}

.bee1-total-row:last-child {
    border-bottom: none;
}

.bee1-total-row-final {
    padding-top: 16px;
    border-top: 2px solid var(--bee1-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--bee1-text);
}

.bee1-edit-shipping {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--bee1-transition-fast);
}

.bee1-edit-shipping:hover {
    opacity: 1;
    color: var(--bee1-primary);
}

/* Buttons */
.bee1-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-btn-primary {
    /* Dynamic colors injected via inline styles */
    background: #0476D9;
    color: #ffffff;
    box-shadow: var(--bee1-shadow-md);
}

.bee1-btn-primary:hover {
    background: var(--bee1-secondary);
    transform: translateY(-2px);
    box-shadow: var(--bee1-shadow-lg);
}

.bee1-btn-primary:active {
    transform: translateY(0);
}

.bee1-btn-secondary {
    background: transparent;
    color: var(--bee1-primary);
    border: 1px solid var(--bee1-border);
}

.bee1-btn-secondary:hover {
    background: var(--bee1-background);
    border-color: var(--bee1-primary);
}

.bee1-checkout-buttons {
    display: flex;
    gap: 12px;
}

/* Checkout buttons - no hover effects, colors from settings */
.bee1-checkout-buttons .bee1-btn-primary {
    /* Dynamic colors injected via inline styles - overrides hover effects */
    background: #0476D9;
    color: #ffffff;
}

.bee1-checkout-buttons .bee1-btn-primary:hover,
.bee1-checkout-buttons .bee1-btn-primary:active,
.bee1-checkout-buttons .bee1-btn-primary:focus {
    /* Disable hover effects for checkout buttons */
    transform: none;
    background: #0476D9;
    color: #ffffff;
    box-shadow: var(--bee1-shadow-md);
}

.bee1-checkout-total {
    margin-left: auto;
    font-size: 18px;
}

/* Express Checkout */
.bee1-express-checkout {
    margin: 16px 0;
}

.bee1-express-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bee1-express-divider::before,
.bee1-express-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bee1-border);
}

.bee1-express-divider span {
    font-size: 12px;
    color: var(--bee1-text-secondary);
    font-weight: 500;
}

.bee1-express-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.bee1-express-btn {
    padding: 12px;
    border: 1px solid var(--bee1-border);
    background: var(--bee1-surface);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-express-btn:hover {
    border-color: var(--bee1-primary);
    transform: scale(1.05);
}

.bee1-express-btn img {
    height: 24px;
    width: auto;
}

/* Mobile Sticky Bar */
.bee1-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bee1-surface);
    border-top: 1px solid var(--bee1-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 999997;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bee1-sticky-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bee1-sticky-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bee1-primary);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-sticky-cart-btn:hover {
    background: var(--bee1-secondary);
    transform: scale(1.05);
}

.bee1-sticky-icon {
    font-size: 24px;
}

.bee1-sticky-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--bee1-error);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 11px;
    border: 2px solid var(--bee1-surface);
}

.bee1-sticky-info {
    flex: 1;
}

.bee1-sticky-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--bee1-text);
}

.bee1-sticky-items {
    font-size: 12px;
    color: var(--bee1-text-secondary);
}

.bee1-sticky-checkout {
    padding: 12px 24px;
    border: none;
    background: var(--bee1-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--bee1-transition-fast);
}

.bee1-sticky-checkout:hover {
    background: var(--bee1-secondary);
    transform: scale(1.05);
}

/* Toast Notification */
.bee1-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bee1-surface);
    border-left: 4px solid var(--bee1-success);
    border-radius: 12px;
    box-shadow: var(--bee1-shadow-lg);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--bee1-transition);
    z-index: 1000000;
}

.bee1-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.bee1-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bee1-success);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.bee1-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--bee1-text);
}

/* Confetti Canvas */
.bee1-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000001;
}

/* Loading State */
.bee1-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.bee1-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--bee1-border);
    border-top-color: var(--bee1-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix for iOS Safari - prevent address bar from covering content */
    .bee1-side-cart {
        max-width: 100%;
        width: 100%;
        right: -100%;
        z-index: 999999 !important;
        height: 100vh;
        height: -webkit-fill-available;
        /* Safe area for notched devices */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .bee1-side-cart.is-open {
        right: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    html[dir="rtl"] .bee1-side-cart {
        left: auto;
        right: -100%;
    }
    
    html[dir="rtl"] .bee1-side-cart.is-open {
        left: auto;
        right: 0;
    }
    
    .bee1-overlay {
        z-index: 999998 !important;
        /* Fix for mobile Safari touch events */
        -webkit-tap-highlight-color: transparent;
    }
    
    .bee1-cart-header,
    .bee1-cart-body,
    .bee1-cart-footer {
        padding: 16px;
    }
    
    .bee1-recommendations-grid {
        gap: 8px;
    }
    
    .bee1-recommendation-item {
        flex: 0 0 130px;
    }
    
    /* Fix body scroll on iOS when cart is open */
    body.bee1-cart-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.bee1-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accessibility */
.bee1-side-cart:focus-visible,
.bee1-btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--bee1-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bee1-side-cart,
    .bee1-overlay,
    .bee1-mobile-sticky-bar,
    .bee1-toast {
        display: none !important;
    }
}
 none !important;
    }
}
