﻿/**
 * Shop CSS - Production Build
 * Note: This file should be minified in production using a CSS minifier
 * Recommended: Use PurgeCSS to remove unused CSS (estimated savings: 32 KB)
 */

/* Global Arabic Font - Loaded via preload in HTML for better performance */
/* @import removed - causes render blocking */

[dir="rtl"] body {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Prevent image stretching in product cards */
/* Uniform product image container */
.laptop-img-container {
    background-color: #ffffff !important;
    /* White background */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .laptop-img-container,
html.dark .laptop-img-container,
[data-theme="dark"] .laptop-img-container {
    background-color: #ffffff !important;
    /* Keep white even in dark mode for product images */
}

/* Detail page main image container */
.rounded-3xl.bg-white.border.border-slate-100.dark\:bg-black\/30,
.rounded-3xl.bg-white.border.border-slate-100[class*="dark:bg-black"] {
    background-color: #ffffff !important;
}

.dark .rounded-3xl.bg-white.border.border-slate-100,
html.dark .rounded-3xl.bg-white.border.border-slate-100,
[data-theme="dark"] .rounded-3xl.bg-white.border.border-slate-100 {
    background-color: #ffffff !important;
}

/* Gallery thumbnails */
.gallery-thumb {
    background-color: #ffffff !important;
}

.dark .gallery-thumb,
html.dark .gallery-thumb,
[data-theme="dark"] .gallery-thumb {
    background-color: #ffffff !important;
}

/* Related products images */
img[class*="object-contain"][class*="bg-gray-50"],
img[class*="object-contain"][class*="dark:bg-"] {
    background-color: #ffffff !important;
}

.dark img[class*="object-contain"][class*="bg-gray-50"],
.dark img[class*="object-contain"][class*="dark:bg-"],
html.dark img[class*="object-contain"][class*="bg-gray-50"],
html.dark img[class*="object-contain"][class*="dark:bg-"],
[data-theme="dark"] img[class*="object-contain"][class*="bg-gray-50"],
[data-theme="dark"] img[class*="object-contain"][class*="dark:bg-"] {
    background-color: #ffffff !important;
}

/* Uniform product image sizing */
.laptop-img {
    object-fit: contain !important;
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
    padding: 12px;
    /* Add padding around image */
}

.dark .dark\:text-blue-900 {
    color: var(--brand-900) !important;
}

.text-blue-800,
.hover\:text-blue-800:hover,
.dark .dark\:text-blue-800 {
    color: var(--brand-800) !important;
}

.text-blue-700,
.hover\:text-blue-700:hover,
.dark .dark\:text-blue-700 {
    color: var(--brand-700) !important;
}

.text-blue-600,
.hover\:text-blue-600:hover,
.dark .dark\:text-blue-600,
.dark .dark\:hover\:text-blue-600:hover {
    color: var(--brand-600) !important;
}

.text-blue-500,
.hover\:text-blue-500:hover,
.dark .dark\:text-blue-500 {
    color: var(--brand-500) !important;
}

.text-blue-400,
.hover\:text-blue-400:hover,
.dark .dark\:text-blue-400,
.dark .dark\:hover\:text-blue-400:hover {
    color: var(--brand-400) !important;
}

.text-blue-300,
.hover\:text-blue-300:hover,
.dark .dark\:text-blue-300 {
    color: var(--brand-300) !important;
}

.text-blue-200,
.hover\:text-blue-200:hover,
.dark .dark\:text-blue-200 {
    color: var(--brand-200) !important;
}

.text-blue-100,
.hover\:text-blue-100:hover,
.dark .dark\:text-blue-100 {
    color: var(--brand-100) !important;
}

.bg-blue-900,
.dark .dark\:bg-blue-900 {
    background-color: var(--brand-900) !important;
}

.bg-blue-700,
.hover\:bg-blue-700:hover,
.dark .dark\:bg-blue-700,
.dark .dark\:hover\:bg-blue-700:hover {
    background-color: var(--brand-700) !important;
}

.bg-blue-600,
.hover\:bg-blue-600:hover,
.dark .dark\:bg-blue-600,
.dark .dark\:hover\:bg-blue-600:hover {
    background-color: var(--brand-600) !important;
}

.bg-blue-500,
.hover\:bg-blue-500:hover,
.dark .dark\:bg-blue-500,
.dark .dark\:hover\:bg-blue-500:hover {
    background-color: var(--brand-500) !important;
}

.bg-blue-200,
.hover\:bg-blue-200:hover,
.dark .dark\:bg-blue-200,
.dark .dark\:hover\:bg-blue-200:hover {
    background-color: var(--brand-200) !important;
}

.bg-blue-100,
.hover\:bg-blue-100:hover,
.dark .dark\:bg-blue-100,
.dark .dark\:hover\:bg-blue-100:hover {
    background-color: var(--brand-100) !important;
}

.bg-blue-50,
.hover\:bg-blue-50:hover,
.dark .dark\:bg-blue-50 {
    background-color: var(--brand-50) !important;
}

.dark .dark\:bg-blue-900\/20 {
    background-color: rgba(136, 19, 55, 0.2) !important;
}

.border-blue-700,
.hover\:border-blue-700:hover,
.dark .dark\:border-blue-700 {
    border-color: var(--brand-700) !important;
}

.border-blue-400,
.hover\:border-blue-400:hover,
.dark .dark\:border-blue-400 {
    border-color: var(--brand-400) !important;
}

.border-blue-200,
.hover\:border-blue-200:hover,
.dark .dark\:border-blue-200 {
    border-color: var(--brand-200) !important;
}

.hover\:border-blue-500:hover {
    border-color: var(--brand-500) !important;
}

.ring-blue-400,
.dark .dark\:ring-blue-400 {
    --tw-ring-color: var(--brand-400) !important;
}

.shadow-blue-500\/30 {
    box-shadow: 0 25px 50px -12px var(--brand-shadow-strong) !important;
}

.shadow-blue-100\/50,
.shadow-blue-50\/50 {
    box-shadow: 0 20px 30px -12px var(--brand-shadow-soft) !important;
}

.focus\:ring-blue-500:focus,
.dark .dark\:focus\:ring-blue-500:focus {
    --tw-ring-color: var(--brand-500) !important;
}

.focus\:ring-blue-300:focus,
.dark .dark\:focus\:ring-blue-300:focus {
    --tw-ring-color: rgba(244, 67, 111, 0.35) !important;
}

.focus\:ring-blue-200:focus,
.dark .dark\:focus\:ring-blue-200:focus {
    --tw-ring-color: rgba(244, 67, 111, 0.2) !important;
}

.focus\:border-blue-500:focus,
.dark .dark\:focus\:border-blue-500:focus {
    border-color: var(--brand-500) !important;
}

.from-blue-600 {
    --tw-gradient-from: var(--brand-600) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(225, 29, 72, 0)) !important;
}

.from-blue-500 {
    --tw-gradient-from: var(--brand-500) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244, 67, 111, 0)) !important;
}

.from-blue-50 {
    --tw-gradient-from: var(--brand-50) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 241, 242, 0)) !important;
}

.to-indigo-600,
.hover\:to-indigo-600:hover {
    --tw-gradient-to: var(--brand-700) !important;
}

.to-indigo-500,
.hover\:to-indigo-500:hover {
    --tw-gradient-to: var(--brand-600) !important;
}

.to-indigo-50 {
    --tw-gradient-to: var(--brand-100) !important;
}

.bg-gradient-to-br.from-blue-50.to-indigo-50 {
    background-image: linear-gradient(135deg, var(--brand-50), var(--brand-100)) !important;
}

.text-blue-900.dark\:text-blue-100,
.dark .dark\:text-blue-100 {
    color: var(--brand-100) !important;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration for Animations */
.filter-option,
#accordion-filters h2 button,
.show-more-btn {
    will-change: transform;
    transform: translateZ(0);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

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

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Card Hover Effects */
.group:hover {
    transform: translateY(-4px);
}

/* Filter Section Animations */
.filter-content {
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.filter-content.hidden {
    max-height: 0;
    overflow: hidden;
}

/* Loader Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Product Card Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.laptop-card {
    animation: fadeIn 0.5s ease;
}

/* Image Lazy Load */
.laptop-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

    100% {
        background-position: 200% 0;
    }
}

.laptop-image.loaded {
    background: none;
    animation: none;
}

/* Badge Styles */
/* Condition Badge Styles */
.badge-condition {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-condition-new {
    background-color: #10b981;
    color: #ffffff;
}

.badge-condition-used {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-condition-refurbished {
    background-color: #3b82f6;
    color: #ffffff;
}

.dark .badge-condition {
    background-color: #4b5563;
    color: #e5e7eb;
}

.dark .badge-condition-new {
    background-color: #059669;
    color: #ffffff;
}

.dark .badge-condition-used {
    background-color: #d97706;
    color: #ffffff;
}

.dark .badge-condition-refurbished {
    background-color: #2563eb;
    color: #ffffff;
}

.badge-discount {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Carousel Indicators */
[data-carousel-slide-to] {
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
}

[data-carousel-slide-to][aria-current="true"] {
    background-color: rgba(255, 255, 255, 1);
}

/* Footer Social Icons */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* RTL Support */
[dir="rtl"] .rtl\:rotate-180 {
    transform: rotate(180deg);
}

[dir="rtl"] .rtl\:space-x-reverse> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Mobile Filter Drawer */
@media (max-width: 1024px) {
    #drawer-filters {
        width: 85%;
        max-width: 320px;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .no-print {
        display: none !important;
    }
}

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

/* Focus Visible */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

/* Custom Checkbox */
.custom-checkbox {
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1280px) {
    #laptopGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Price Highlight */
.price-highlight {
    background: linear-gradient(90deg, rgba(244, 67, 111, 0.12) 0%, rgba(190, 18, 60, 0.12) 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--brand-500);
}

/* Rating Stars */
.rating-stars i {
    color: #fbbf24;
}

/* Newsletter Form */
.newsletter-form input:focus {
    box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

/* Category Card Hover */
.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Filter Performance Enhancements */
#accordion-filters {
    contain: layout style paint;
}

.filter-option {
    contain: layout style;
}

/* Fast Transitions */
.filter-checkbox,
.filter-option,
.show-more-btn {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Price Histogram */
#priceHistogram {
    min-height: 64px;
    padding: 4px 0;
}

#priceHistogram>div {
    transition: background-color 0.2s;
}

#priceHistogram>div:hover {
    background-color: #ef4444 !important;
}

/* Dual Range Slider for Price Range (Mobile) */
#priceRangeContainer {
    position: relative;
    height: 8px;
}

.price-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 3;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-range-input::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.price-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-range-input::-moz-range-thumb:active {
    transform: scale(1.2);
}

.price-range-input::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
}

.price-range-input::-moz-range-track {
    height: 8px;
    background: transparent;
}

#priceRangeTrack {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background: #ef4444;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

/* Range Slider Enhancements */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 0.8;
}

input[type="range"]::-webkit-slider-thumb {
    transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px var(--brand-shadow-strong);
}

input[type="range"]::-moz-range-thumb {
    transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px var(--brand-shadow-strong);
}

/* Accordion Animation */
[data-accordion-target] {
    transition: all 0.2s ease;
}

[data-accordion-target]:hover {
    background-color: rgba(244, 67, 111, 0.08);
}

/* Active Filter Badge */
#activeFiltersSummary .badge {
    animation: slideIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.filter-loading {
    position: relative;
    pointer-events: none;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Optimize Repaints */
#laptopGrid {
    contain: layout style paint;
}

.laptop-card {
    contain: layout style;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.laptop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Flowbite Product Card Styles */
.laptop-card .h-56 {
    transition: transform 0.3s ease;
}

.laptop-card:hover .h-56 img {
    transform: scale(1.05);
}

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

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tooltip[data-popper-placement="top"] .tooltip-arrow {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-color: #111827 transparent transparent transparent;
}

.dark .tooltip[data-popper-placement="top"] .tooltip-arrow {
    border-color: #374151 transparent transparent transparent;
}

/* Star Rating */
.laptop-card .flex.items-center svg {
    transition: transform 0.2s ease;
}

.laptop-card:hover .flex.items-center svg {
    transform: scale(1.1);
}

/* Primary Color Override */
.bg-primary-700 {
    background-color: #be123c;
}

.bg-primary-800 {
    background-color: #9f1239;
}

.bg-primary-100 {
    background-color: #fff1f2;
}

.text-primary-800 {
    color: #881337;
}

.text-primary-600 {
    color: #e11d48;
}

.hover\:text-primary-700:hover {
    color: #be123c;
}

.hover\:bg-primary-800:hover {
    background-color: #9f1239;
}

.dark .bg-primary-900 {
    background-color: #881337;
}

.dark .text-primary-300 {
    color: #fda4af;
}

.dark .bg-primary-600 {
    background-color: #e11d48;
}

.dark .hover\:bg-primary-700:hover {
    background-color: #be123c;
}

.dark .focus\:ring-primary-800:focus {
    --tw-ring-color: #881337;
}

/* Additional Product Card Styles */
.laptop-card img {
    transition: transform 0.3s ease;
}

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

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-card {
    background: #1f2937;
}

/* ===== Group Card Auto-Slide Styles ===== */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 2s linear infinite;
}

/* Group card hover pause indicator */
.group-card:hover .group-progress-bar {
    animation-play-state: paused;
}

/* Variant counter styling */
.group-variant-counter {
    font-variant-numeric: tabular-nums;
    min-width: 3rem;
    text-align: center;
}

/* Progress bar smooth animation */
.group-progress-bar {
    transition: width 0.1s linear;
}

/* Tooltip base styles */
.group-card [class*="group/tooltip"] span,
.group-card [class*="group/counter"] span {
    z-index: 50;
}

/* Card element tooltips */
.laptop-card .laptop-img-container {
    position: relative;
}

.laptop-card .laptop-img-container::after {
    content: 'صورة المنتج - اضغط للتكبير';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.laptop-card .laptop-img-container:hover::after {
    opacity: 1;
}

/* Tooltip for price */
.laptop-card .laptop-price {
    position: relative;
    cursor: help;
}

.laptop-card .laptop-price::after {
    content: 'سعر المنتج بالعملة المحددة';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 10;
}

.laptop-card .laptop-price:hover::after {
    opacity: 1;
}

/* Tooltip for stock quantity */
.laptop-card .stock-quantity {
    position: relative;
    cursor: help;
}

.laptop-card .stock-quantity::after {
    content: 'الكمية المتوفرة في المخزون';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 10;
}

.laptop-card .stock-quantity:hover::after {
    opacity: 1;
}

/* Tooltip for warehouse locations */
.laptop-card .warehouse-locations {
    position: relative;
    cursor: help;
}

.laptop-card .warehouse-locations::after {
    content: 'مواقع المستودعات المتاحة';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 10;
}

.laptop-card .warehouse-locations:hover::after {
    opacity: 1;
}

/* Tooltip for add to cart button */
.laptop-card .add-to-cart-btn {
    position: relative;
}

.laptop-card .add-to-cart-btn::after {
    content: 'إضافة المنتج لعرض السعر';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 10;
}

.laptop-card .add-to-cart-btn:hover::after {
    opacity: 1;
}

/* Group card navigation tooltip animation */
.group-navigation button {
    position: relative;
}

/* Soften previous navigation button background */
.group-nav-prev {
    background-color: rgba(185, 28, 28, 0.46) !important;
}

.group-nav-prev:hover {
    background-color: rgba(185, 28, 28, 0.46) !important;
}

/* Soften next navigation button background */
.group-nav-next {
    background-color: rgba(185, 28, 28, 0.46) !important;
}

.group-nav-next:hover {
    background-color: rgba(185, 28, 28, 0.46) !important;
}

/* Dark mode adjustments */
.dark .laptop-card .laptop-img-container::after,
.dark .laptop-card .laptop-price::after,
.dark .laptop-card .stock-quantity::after,
.dark .laptop-card .warehouse-locations::after,
.dark .laptop-card .add-to-cart-btn::after {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

/* Smooth card transitions during auto-slide */
.group-card .laptop-img {
    transition: opacity 0.3s ease-in-out;
}

.group-card.is-sliding .laptop-img {
    opacity: 0.7;
}

/* Group card navigation at top */
.group-card {
    position: relative;
}

/* Group navigation buttons - must be above everything */
.group-navigation {
    pointer-events: none;
}

.group-navigation button,
.group-nav-prev,
.group-nav-next {
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: absolute !important;
}

.group-navigation .group-nav-prev,
.group-navigation .group-nav-next,
.group-nav-prev,
.group-nav-next {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
}

/* Ensure navigation is above image */
.group-card .laptop-img-container {
    position: relative;
    z-index: 1;
}

.group-card .laptop-img-container a {
    z-index: 1;
    position: relative;
}

.group-navigation,
.group-navigation-counter {
    z-index: 50 !important;
}

/* Make sure buttons are clickable */
.group-card .group-nav-prev,
.group-card .group-nav-next {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* ============================================
   TOAST NOTIFICATIONS - Side Notifications
   ============================================ */
.toast-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark .toast-notification {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

.toast-notification.success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
}

.toast-notification.error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-notification.warning {
    background: rgba(245, 158, 11, 0.95);
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-notification.info {
    background: rgba(59, 130, 246, 0.95);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.toast-notification .toast-icon {
    flex-shrink: 0;
}

.toast-notification .toast-message {
    flex: 1;
    line-height: 1.5;
}

.toast-notification .toast-close {
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-notification .toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dark .toast-notification .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RTL Support */
[dir="rtl"] .toast-notification {
    direction: rtl;
}

/* For RTL, when toast is on right side, translate-x-full should move it outside to the right */
[dir="rtl"] .toast-notification.translate-x-full {
    transform: translateX(100%);
}

[dir="rtl"] .toast-notification.translate-x-0 {
    transform: translateX(0);
}