/* ============================================
   DZ Shop E-commerce - Modern Professional Design
   Version: 2.0 - Clean & Minimal
   ============================================ */

/* Base Typography - Match header.php Inter font */
* {
    font-family: 'Inter', 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* CSS Variables for consistent theming */
:root {
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Smooth Transitions - Scoped to avoid header jitter */
.card {
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}
input, select, textarea {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Header Stability Fix */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================
   CARDS - Clean Modern Style
   ============================================ */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

/* Product Card Specific */
.product-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.product-card:hover {
    border-color: #e5e7eb;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ============================================
   BUTTONS - Professional Style
   ============================================ */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    border: none;
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: var(--primary, #0ea5e9);
    color: white;
}

.btn-primary:hover {
    background: var(--primary, #0ea5e9);
    filter: brightness(1.05);
}

.btn-brand {
    background: var(--primary, #0ea5e9);
    color: white;
    border: none;
}

.btn-brand:hover {
    background: var(--primary, #0ea5e9);
    filter: brightness(1.1);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: var(--primary, #0ea5e9);
    border-color: var(--primary, #0ea5e9);
    color: white;
}

.btn-ghost {
    background: transparent;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

/* ============================================
   FORMS - Clean Inputs
   ============================================ */
.input, .textarea, .select {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--primary, #0ea5e9);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.input:hover, .textarea:hover, .select:hover {
    border-color: #d1d5db;
}

/* Form Labels */
.label-text {
    font-weight: 500;
    color: #374151;
}

/* ============================================
   BADGES - Subtle & Clean
   ============================================ */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.625rem;
}

.badge-primary {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ============================================
   ALERTS - Modern Style
   ============================================ */
.alert {
    border-radius: var(--radius-lg);
    border: 1px solid;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Alert Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.alert {
    animation: slideInDown 0.2s ease-out;
}

.alert.fade-out {
    animation: slideOutUp 0.2s ease-out forwards;
}

/* ============================================
   PRODUCT IMAGE CONTAINER
   ============================================ */
.product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9fafb;
    border-radius: var(--radius-lg);
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-container:hover img {
    transform: scale(1.05);
}

/* ============================================
   NAVIGATION - Clean Header
   ============================================ */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
}

.nav-link {
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary, #0ea5e9);
    background: #f9fafb;
}

.nav-link.active {
    color: var(--primary, #0ea5e9);
    background: rgba(14, 165, 233, 0.1);
}

/* ============================================
   DROPDOWN - Modern Style
   ============================================ */
.dropdown-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-content li a,
.dropdown-content li button {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-weight: 500;
}

.dropdown-content li a:hover,
.dropdown-content li button:hover {
    background: #f3f4f6;
}

/* ============================================
   MODAL - Clean Design
   ============================================ */
.modal-box {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid #e5e7eb;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.spinner {
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--primary, #0ea5e9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Styling */
.price-old {
    text-decoration: line-through;
    color: #9ca3af;
}

.price-new {
    color: var(--primary, #0ea5e9);
    font-weight: 700;
}

.price-discount {
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.2s ease-out;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease-out;
}

.toast-notification.success {
    border-left: 4px solid #10b981;
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
}

.toast-notification.warning {
    border-left: 4px solid #f59e0b;
}

.toast-notification.info {
    border-left: 4px solid #0ea5e9;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   FOOTER - Clean Design
   ============================================ */
.footer {
    background: #111827;
    color: #9ca3af;
}

.footer a {
    color: #d1d5db;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   TABLES - Clean Style
   ============================================ */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    border-bottom: 1px solid #f3f4f6;
}

.table tr:hover td {
    background: #f9fafb;
}

/* ============================================
   TABS - Modern Style
   ============================================ */
.tabs-boxed {
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: var(--radius-lg);
}

.tab {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tab-active {
    background: #ffffff !important;
    color: var(--primary, #0ea5e9) !important;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   STATS - Dashboard Style
   ============================================ */
.stat {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.stat-title {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: #111827;
    font-weight: 700;
}

.stat-desc {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

/* ============================================
   AVATAR
   ============================================ */
.avatar {
    border-radius: 9999px;
    overflow: hidden;
}

.avatar-ring {
    border: 2px solid var(--primary, #0ea5e9);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #4b5563;
}

.breadcrumbs a:hover {
    color: var(--primary, #0ea5e9);
}

/* ============================================
   HERO SECTIONS - Clean Style
   ============================================ */
.hero {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* ============================================
   CAROUSEL / SLIDER
   ============================================ */
.carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all var(--transition-fast);
}

.carousel-indicators button.active {
    background: #ffffff;
    width: 24px;
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    z-index: 10;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary, #0ea5e9);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    z-index: 10;
}

/* Stock Status */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    color: #059669;
}

.stock-badge.in-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 9999px;
}

.stock-badge.out-of-stock {
    color: #dc2626;
}

.stock-badge.out-of-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 9999px;
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.rating-stars .empty {
    color: #e5e7eb;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .card {
        border-radius: var(--radius-lg);
    }
    
    .btn {
        padding: 0.625rem 1rem;
    }
    
    .modal-box {
        margin: 1rem;
        border-radius: var(--radius-xl);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary, #0ea5e9);
    outline-offset: 2px;
}

/* ============================================
   DAISYUI FALLBACK STYLES
   Ensure borders work when DaisyUI CDN is slow/blocked
   ============================================ */

/* Base color fallbacks */
.bg-base-100 { background-color: #ffffff !important; }
.bg-base-200 { background-color: #f5f5f5 !important; }
.bg-base-300 { background-color: #e5e5e5 !important; }
.text-base-content { color: #1f2937 !important; }

/* Border color fallbacks - critical for checkout/cart */
.border-base-200 { border-color: #e5e7eb !important; }
.border-base-300 { border-color: #d1d5db !important; }
.border-base-content { border-color: #1f2937 !important; }

/* Divide utilities */
.divide-base-200 > :not([hidden]) ~ :not([hidden]) { border-color: #e5e7eb; }
.divide-base-300 > :not([hidden]) ~ :not([hidden]) { border-color: #d1d5db; }

/* Border-y and border-b with base colors */
.border-y.border-base-200 { 
    border-top-color: #e5e7eb !important;
    border-bottom-color: #e5e7eb !important;
}
.border-b.border-base-200 { border-bottom-color: #e5e7eb !important; }
.border-t.border-base-200 { border-top-color: #e5e7eb !important; }

/* Text opacity variants */
.text-base-content\/50 { color: rgba(31, 41, 55, 0.5) !important; }
.text-base-content\/60 { color: rgba(31, 41, 55, 0.6) !important; }
.text-base-content\/70 { color: rgba(31, 41, 55, 0.7) !important; }
.text-base-content\/80 { color: rgba(31, 41, 55, 0.8) !important; }

/* Success/Primary opacity variants */
.bg-success\/5 { background-color: rgba(16, 185, 129, 0.05) !important; }
.bg-success\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-primary\/5 { background-color: rgba(79, 70, 229, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(79, 70, 229, 0.1) !important; }
.bg-primary\/20 { background-color: rgba(79, 70, 229, 0.2) !important; }
.bg-error\/10 { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-info\/10 { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-warning\/10 { background-color: rgba(245, 158, 11, 0.1) !important; }

/* Border color variants with opacity */
.border-success\/30 { border-color: rgba(16, 185, 129, 0.3) !important; }
.border-primary\/30 { border-color: rgba(79, 70, 229, 0.3) !important; }
.border-error\/20 { border-color: rgba(239, 68, 68, 0.2) !important; }

/* Hover states for borders */
.hover\:border-primary:hover { border-color: #4f46e5 !important; }
.hover\:border-info:hover { border-color: #3b82f6 !important; }

/* Join component for button groups */
.join { display: inline-flex; }
.join > :where(*:not(:first-child)) { margin-inline-start: -1px; }
.join-item:first-child, .join > *:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.join-item:last-child, .join > *:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.join-item:not(:first-child):not(:last-child) { border-radius: 0; }

/* Input bordered */
.input-bordered { border: 1px solid #d1d5db; }
.select-bordered { border: 1px solid #d1d5db; }
.textarea-bordered { border: 1px solid #d1d5db; }

/* Radio buttons */
.radio { 
    width: 1.25rem; height: 1.25rem; 
    border-radius: 50%; 
    border: 2px solid #d1d5db;
    appearance: none; 
    cursor: pointer;
}
.radio:checked { border-width: 4px; }
.radio-primary:checked { border-color: #4f46e5; background: white; }
.radio-info:checked { border-color: #3b82f6; background: white; }
.radio-sm { width: 1rem; height: 1rem; }

/* Input/select sizes */
.input-sm { height: 2rem; font-size: 0.875rem; padding: 0 0.75rem; }
.input-md { height: 2.5rem; font-size: 1rem; padding: 0 1rem; }
.select-xs { 
    font-size: 0.75rem; 
    padding: 0.25rem 1.5rem 0.25rem 0.5rem !important;
    min-height: 1.625rem;
    line-height: 1.6;
}
.select-sm { 
    font-size: 0.875rem; 
    padding: 0.375rem 1.75rem 0.375rem 0.5rem !important;
    min-height: 1.875rem;
    line-height: 1.6;
}
.select-md { 
    font-size: 1rem; 
    padding: 0.625rem 2.5rem 0.625rem 1rem !important;
    min-height: 2.5rem;
    line-height: 1.6;
}
.textarea-sm { font-size: 0.875rem; padding: 0.5rem 0.75rem; }
.textarea-md { font-size: 1rem; padding: 0.75rem 1rem; }

/* Line clamp utilities */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Aspect ratios */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ============================================
   ADDITIONAL DAISYUI COMPONENT FALLBACKS
   ============================================ */

/* Button fallbacks */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
    border: none;
}
.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #8b5cf6;
    color: white;
    border: none;
}

.btn-success {
    background-color: #10b981;
    color: white;
    border: none;
}
.btn-success:hover {
    background-color: #059669;
}

.btn-error {
    background-color: #ef4444;
    color: white;
    border: none;
}
.btn-error:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: none;
}

.btn-info {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: inherit;
}
.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}
.btn-outline:hover {
    background: currentColor;
    color: white;
}

.btn-outline.btn-primary {
    color: #4f46e5;
    border-color: #4f46e5;
}
.btn-outline.btn-primary:hover {
    background-color: #4f46e5;
    color: white;
}

.btn-outline.btn-error {
    color: #ef4444;
    border-color: #ef4444;
}
.btn-outline.btn-error:hover {
    background-color: #ef4444;
    color: white;
}

/* Button sizes */
.btn-xs { height: 1.5rem; min-height: 1.5rem; padding: 0 0.5rem; font-size: 0.75rem; }
.btn-sm { height: 2rem; min-height: 2rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-md { height: 2.5rem; min-height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.btn-lg { height: 3rem; min-height: 3rem; padding: 0 1.5rem; font-size: 1.125rem; }

.btn-circle { border-radius: 9999px; padding: 0; }
.btn-square { padding: 0; }
.btn-sm.btn-circle, .btn-sm.btn-square { width: 2rem; height: 2rem; }

/* Badge fallbacks */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    line-height: 1;
}

.badge-primary { background-color: #4f46e5; color: white; }
.badge-secondary { background-color: #8b5cf6; color: white; }
.badge-success { background-color: #10b981; color: white; }
.badge-error { background-color: #ef4444; color: white; }
.badge-warning { background-color: #f59e0b; color: white; }
.badge-info { background-color: #3b82f6; color: white; }
.badge-ghost { background-color: #e5e7eb; color: #374151; }
.badge-outline { background: transparent; border: 1px solid currentColor; }
.badge-lg { font-size: 0.875rem; padding: 0.375rem 0.75rem; }
.badge-sm { font-size: 0.625rem; padding: 0.125rem 0.375rem; }

/* Card fallbacks */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-compact .card-body { padding: 1rem; }

/* Alert fallbacks */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.alert-success { background-color: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-error { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background-color: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.alert-info { background-color: rgba(59, 130, 246, 0.1); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Form control fallbacks */
.form-control { display: flex; flex-direction: column; }
.label { padding: 0.5rem 0; }
.label-text { font-size: 0.875rem; color: #374151; }

/* Input fallbacks */
.input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 0.875rem;
}

.input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Select fallbacks */
.select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
    cursor: pointer;
    display: block;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem !important;
    min-height: 2rem;
}

.select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Textarea fallbacks */
.textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    resize: vertical;
    min-height: 5rem;
    width: 100%;
}

.textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Checkbox fallbacks */
.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-primary:checked { background-color: #4f46e5; border-color: #4f46e5; }
.checkbox-success:checked { background-color: #10b981; border-color: #10b981; }
.checkbox-sm { width: 1rem; height: 1rem; }
.checkbox-lg { width: 1.5rem; height: 1.5rem; }

/* Toggle switch fallbacks */
.toggle {
    width: 3rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: #d1d5db;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: 9999px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.toggle:checked {
    background-color: #4f46e5;
}

.toggle:checked::before {
    transform: translateX(1.5rem);
}

.toggle-primary:checked { background-color: #4f46e5; }
.toggle-success:checked { background-color: #10b981; }
.toggle-sm { width: 2.5rem; height: 1.25rem; }
.toggle-sm::before { width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); }
.toggle-sm:checked::before { transform: translateX(1.25rem); }

/* Modal fallbacks */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 9999;
}

.modal[open], .modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-bottom {
    align-items: flex-end;
}

.modal-bottom .modal-box {
    border-radius: 1rem 1rem 0 0;
    max-height: 80vh;
}

/* Table fallbacks */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background-color: #f9fafb;
}

.table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Tabs fallbacks */
.tabs {
    display: flex;
    gap: 0.25rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #4f46e5;
}

.tab-active, .tab[aria-selected="true"] {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.tabs-boxed {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.tabs-boxed .tab {
    border-radius: 0.375rem;
    border-bottom: none;
}

.tabs-boxed .tab-active {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Dropdown fallbacks */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    position: absolute;
    z-index: 50;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.dropdown:hover .dropdown-content, 
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-end .dropdown-content { right: 0; }
.dropdown-top .dropdown-content { bottom: 100%; margin-bottom: 0.5rem; }

/* Menu fallbacks */
.menu { display: flex; flex-direction: column; padding: 0.5rem; }
.menu li { list-style: none; }
.menu li > a, .menu li > button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.menu li > a:hover, .menu li > button:hover {
    background-color: #f3f4f6;
}

/* Tooltip fallbacks */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
    margin-bottom: 0.25rem;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Carousel fallbacks */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Progress fallbacks */
.progress {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress::-webkit-progress-bar { background-color: #e5e7eb; border-radius: 9999px; }
.progress::-webkit-progress-value { background-color: #4f46e5; border-radius: 9999px; }
.progress::-moz-progress-bar { background-color: #4f46e5; border-radius: 9999px; }

/* Skeleton loading fallbacks */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.25rem;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Swap fallbacks */
.swap { position: relative; display: inline-flex; }

/* Stats fallbacks */
.stats {
    display: inline-flex;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat:not(:last-child) { border-right: 1px solid #e5e7eb; }
.stat-title { font-size: 0.75rem; color: #6b7280; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-desc { font-size: 0.75rem; color: #6b7280; }

/* Divider fallbacks */
.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

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

.divider::before { margin-right: 0.5rem; }
.divider::after { margin-left: 0.5rem; }

/* Loading spinner fallbacks */
.loading {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-sm { width: 1rem; height: 1rem; }
.loading-lg { width: 2rem; height: 2rem; }
.loading-spinner { border-style: solid; }
.loading-dots {
    border: none;
    background: none;
}

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

/* Steps fallbacks */
.steps {
    display: flex;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    padding-top: 2.5rem;
}

.step::before {
    content: counter(step);
    counter-increment: step;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    position: absolute;
    top: 0;
}

.step-primary::before { background-color: #4f46e5; color: white; }
.step-success::before { background-color: #10b981; color: white; }

/* Scrollbar hide utility */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Focus ring utility */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

/* Shadow colors */
.shadow-primary\/20 { box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2); }
.shadow-success\/20 { box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2); }
.shadow-error\/20 { box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2); }

/* Gradient backgrounds */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-primary\/20 { --tw-gradient-from: rgba(79, 70, 229, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-secondary\/20 { --tw-gradient-to: rgba(139, 92, 246, 0.2); }

/* Glass effect */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Text colors */
.text-primary { color: #4f46e5; }
.text-secondary { color: #8b5cf6; }
.text-accent { color: #06b6d4; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-error { color: #ef4444; }
.text-info { color: #3b82f6; }

/* Background colors for status */
.bg-primary { background-color: #4f46e5; }
.bg-secondary { background-color: #8b5cf6; }
.bg-accent { background-color: #06b6d4; }
.bg-success { background-color: #10b981; }
.bg-warning { background-color: #f59e0b; }
.bg-error { background-color: #ef4444; }
.bg-info { background-color: #3b82f6; }

/* Hover border colors */
.hover\:border-success:hover { border-color: #10b981 !important; }
.hover\:border-warning:hover { border-color: #f59e0b !important; }
.hover\:border-error:hover { border-color: #ef4444 !important; }

/* ============================================
   HOMEPAGE SPECIFIC STYLES - v2.0
   ============================================ */

/* Hero Section */
.carousel-item {
    scroll-snap-align: start;
}

.carousel {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Product Card Enhanced */
.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.product-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trust Section Icons */
.trust-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.group:hover .trust-icon {
    transform: scale(1.1);
}

/* Benefits Section Cards */
.benefit-card {
    transition: background-color 0.2s ease;
}

.benefit-card:hover {
    background-color: #f9fafb;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

/* Toast Notifications */
.toast-notification {
    animation: slideInUp 0.3s ease-out;
}

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

/* Smooth Focus States */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary, #0ea5e9);
    outline-offset: 2px;
}

/* Loading State for Buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Section Spacing Responsive */
@media (max-width: 640px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Grid Gap Responsive */
@media (max-width: 640px) {
    .product-grid {
        gap: 0.75rem;
    }
}

/* Mobile Touch-friendly Buttons */
@media (max-width: 768px) {
    .btn-sm {
        min-height: 2.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Aspect Ratio Utility */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Better Image Loading */
img {
    background-color: #f9fafb;
}

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

/* Force Light Mode - Override system dark mode */
html, body {
    color-scheme: light only;
}
