/* غيمة ستور CSS - تصميم مليء بالحب والأناقة */

/* تحسينات سرعة الموقع */
/* تحسين تحميل الخطوط */
@font-face {
  font-family: 'Cairo';
  font-display: swap;
  src: url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');
}

/* تحسين View Transitions */
@view-transition {
  navigation: auto;
}

/* إعدادات متقدمة لانتقالات الصفحات */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}

/* شريط تقدم التمرير - محسن */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #f97316);
  z-index: 9999;
  transition: width 0.1s linear;
  will-change: width;
}

/* تحسينات الأنيميشن العامة - محسنة للأداء */
@media (prefers-reduced-motion: no-preference) {
  .smooth-bounce {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
  }
  
  .smooth-elastic {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
  }
}

/* تحسين تحميل الصور */
img {
  content-visibility: auto;
  contain-intrinsic-size: 300px 300px;
}

/* تحسين الأداء للعناصر المتحركة */
.product-card,
.recent-product-card,
.cta-btn,
.add-to-cart {
  will-change: transform;
  backface-visibility: hidden;
}

/* تحسين التمرير */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* تحسين جودة الصور */
img, video {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* تحسين الأداء للقوائم */
.dropdown-menu,
.mobile-menu {
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: linear-gradient(135deg, #fff5f5 0%, #fef7f0 50%, #f9f1f9 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-icon {
    transform: scale(1.1);
    color: #f97316;
}

.logo-text h1 {
    color: #ec4899;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.logo-link:hover .logo-text h1 {
    color: #f97316;
}

@media (prefers-reduced-motion: no-preference) {
    .logo-icon {
        animation: float 3s ease-in-out infinite;
    }
    
    .logo-link:hover .logo-icon {
        animation: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-3px); }
    }
}

.logo-text p {
    display: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: #ec4899;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    color: #ec4899;
}

.dropdown-menu a::after {
    display: none;
}

/* رابط لوحة التحكم للمشرفين */
.admin-link {
    color: #4a4a4a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #ec4899;
}

.admin-link i {
    margin-left: 6px;
}

.desktop-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a4a4a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
}

.desktop-cart-btn:hover {
    background: linear-gradient(45deg, #ec4899, #f97316);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.desktop-cart-btn i {
    font-size: 1.1rem;
}

/* Mobile Dropdown */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(236, 72, 153, 0.05);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 400px;
}

.mobile-dropdown-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.mobile-dropdown-menu a:hover {
    border-left-color: #ec4899;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ec4899, #f97316);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.cart-btn i {
    font-size: 1.1rem;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1000;
    position: relative;
}

.menu-btn span {
    width: 22px;
    height: 4.5px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu a:hover {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    color: #ec4899;
    transform: translateX(-5px);
}

.whatsapp-link {
    background: linear-gradient(45deg, #25d366, #128c7e) !important;
    color: white !important;
    margin-top: 1rem;
    font-weight: 600;
}

/* رابط لوحة التحكم في القائمة المحمولة */
.mobile-menu .admin-link {
    color: #4a4a4a;
    font-weight: 600;
    margin-top: 0.5rem;
}

.mobile-menu .admin-link:hover {
    color: #ec4899;
    transform: translateX(-5px);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 1rem 2rem;
    position: relative;
    background: linear-gradient(135deg, #ec4899, #f97316, #8b5cf6);
    will-change: background-image;
    backface-visibility: hidden;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 43, 226, 0.6);
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: #e0e7ff;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(75, 0, 130, 0.5);
    font-weight: 500;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f97316, #ea580c);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

/* Recently Added Section */
.recently-added-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 245, 0.8));
    position: relative;
}

.recently-added-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ec4899" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.recently-added-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
}

.recently-added-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.recently-added-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.recent-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.recent-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}

.recent-product-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

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

.recent-product-card:hover .recent-product-image img {
    transform: scale(1.08);
}

.recent-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.free-delivery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}

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

.recent-product-info {
    padding: 1.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    color: #ec4899;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.recent-product-info h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-product-info p {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-btn-container {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.view-all-btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Categories Navigation */
.categories-nav {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 70px;
    z-index: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: #6b7280;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-tab i {
    font-size: 1.5rem;
    color: #ec4899;
}

.category-tab span {
    font-size: 0.9rem;
    font-weight: 500;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    border-color: #ec4899;
    color: #ec4899;
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    padding: 2rem 0;
}

.product-category {
    display: none;
}

.product-category.active {
    display: block;
}

.product-category h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #1f2937;
    margin-bottom: 2rem;
    position: relative;
}

.product-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* إصلاح عرض الحاسوب - ضمان العدد الصحيح من البطاقات */
@media (min-width: 1200px) {
    .products-grid,
    .recently-added-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid,
    .recently-added-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1.2rem !important;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .products-grid,
    .recently-added-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* تأثيرات إضافية للمنتجات */
@media (prefers-reduced-motion: no-preference) {
    .product-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .product-card:hover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(236, 72, 153, 0.05), rgba(249, 115, 22, 0.05));
        border-radius: 20px;
        z-index: 1;
        opacity: 0;
        animation: shimmer 2s infinite;
    }
    
    @keyframes shimmer {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }
}

.product-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.price {
    color: #ec4899;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* تأثيرات نبضة للأزرار */
@media (prefers-reduced-motion: no-preference) {
    .add-to-cart:active {
        transform: translateY(-1px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    .add-to-cart:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (prefers-reduced-motion: no-preference) {
    .whatsapp-float {
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.reserve-now-btn {
    flex: 1;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.reserve-now-btn:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.add-to-cart {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
}

/* زر أضف للسلة */
.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* تنسيق الأزرار في السطر الأول للهاتف */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .first-row {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .product-actions .second-row {
        width: 100%;
    }
    
    .product-actions .second-row .reserve-now-btn {
        width: 100%;
        flex: none;
    }
}

/* تنسيق الأزرار في الحاسوب */
@media (min-width: 769px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .first-row {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .product-actions .second-row {
        width: 100%;
    }
    
    .product-actions .second-row .add-to-cart-btn {
        width: 100%;
        flex: none;
    }
    
    /* إخفاء زر السلة في السطر الأول في الحاسوب */
    .mobile-only {
        display: none;
    }
    
    /* إظهار زر السلة في السطر الثاني في الحاسوب */
    .desktop-only {
        display: flex;
    }
}

/* إخفاء زر السلة في السطر الثاني في الهاتف */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    /* إظهار زر السلة في السطر الأول في الهاتف */
    .mobile-only {
        display: flex;
    }
    
    /* إظهار زر السلة في السطر الثاني في الهاتف أيضاً */
    .product-actions .second-row .add-to-cart-btn {
        display: flex;
    }
    
    /* إظهار زر السلة في الهاتف */
    .mobile-cart-btn {
        display: flex !important;
    }
}

/* Reservation Modal */
.reservation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.reservation-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.reservation-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reservation-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.reservation-modal .modal-close:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    padding: 30px 20px 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Product Summary */
.product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.product-image-small {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.product-details-small h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
}

.product-price-small {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.currency {
    font-size: 14px;
    color: #6c757d;
    margin-right: 5px;
}

/* Reservation Form */
.reservation-form {
    padding: 20px;
}

.form-section {
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}

.form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.form-section h3 i {
    color: #007bff;
    font-size: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* Delivery Information Display */
.delivery-info-display {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.delivery-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.delivery-detail:last-child {
    margin-bottom: 0;
}

.delivery-detail i {
    color: #1976d2;
    width: 16px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.quantity-selector button {
    width: 40px;
    height: 42px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
}

.quantity-selector button:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.quantity-selector button:first-child {
    border-radius: 8px 0 0 8px;
}

.quantity-selector button:last-child {
    border-radius: 0 8px 8px 0;
}

.quantity-selector input {
    width: 80px;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: white;
    font-weight: 600;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.order-summary h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary h3 i {
    color: #28a745;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

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

.summary-row.total {
    font-weight: 700;
    font-size: 16px;
    color: #e74c3c;
    border-top: 2px solid #28a745;
    margin-top: 10px;
    padding-top: 15px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.btn-cancel,
.btn-reserve {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-reserve {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-reserve:hover {
    background: linear-gradient(135deg, #218838, #1bb289);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-reserve:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Reservation Modal */
@media (max-width: 768px) {
    .reservation-modal {
        padding: 10px;
    }
    
    .reservation-modal .modal-content {
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 25px 15px 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .product-summary {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .product-image-small {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .reservation-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-selector input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn-cancel,
    .btn-reserve {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .delivery-detail {
        font-size: 13px;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .summary-row.total {
        font-size: 15px;
    }
}

/* Responsive Design */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
    
    .desktop-cart-btn {
        display: flex;
    }
    
    .menu-btn {
        display: none;
    }
    
    .mobile-actions {
        display: none;
    }
    
    /* زيادة ارتفاع صور المنتجات للحاسوب */
    .recent-product-image {
        height: 450px !important;
    }
}

/* الشاشات المتوسطة - جعل البطاقات مربعة أكثر */
@media (min-width: 768px) and (max-width: 1024px) {
    .recently-added-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .recent-product-card {
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
    }
    
    .recent-product-image {
        height: 60%;
        flex-shrink: 0;
    }
    
    .recent-product-info {
        height: 40%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .recent-product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .recent-product-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
    }
    
    .product-actions {
        margin-top: auto;
    }
    
    .add-to-cart,
    .reserve-now-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .desktop-cart-btn {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .cart-btn {
        display: flex;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .mobile-menu a {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    /* إصلاح عرض المنتجات للهواتف - خاص بسفاري */
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
}

/* إصلاح عرض الحاسوب - 4 بطاقات في كل صف */
@media (min-width: 769px) {
    .products-grid,
    .recently-added-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* زيادة ارتفاع الصور للحواسيب */
    .product-image,
    .recent-product-image {
        height: 350px !important;
    }
    
    .product-image img,
    .recent-product-image img {
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* زيادة ارتفاع الصور للشاشات الكبيرة جداً */
@media (min-width: 1400px) {
    .product-image,
    .recent-product-image {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 30vh;
        padding: 70px 1rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 0.5rem;
        margin-top: 30px;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.8rem 0.5rem;
    }
    
    .category-tab span {
        font-size: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        padding: 1rem;
        border-radius: 50%;
    }
    
    /* تحسينات الفوتير للشاشات المتوسطة */
    footer {
        padding: 1.8rem 1.5rem;
        margin-top: 2.5rem;
    }
    
    footer p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .logo-link {
        gap: 8px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .category-tab i {
        font-size: 1.2rem;
    }
    
    /* إصلاح عرض المنتجات للهواتف الصغيرة - خاص بسفاري */
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }
    
    .product-card {
        margin: 0;
    }
    
    /* تحسينات للمنتجات العادية - بطاقتين في كل صف */
    .product-image {
        height: 180px !important;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .product-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-info .price {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    /* Recently Added Mobile Styles */
    .recently-added-section {
        padding: 2rem 0;
    }
    
    .recently-added-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
        .recently-added-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    /* ارتفاع صور المنتجات للهاتف - بطاقتين في كل صف */
    .recent-product-image {
        height: 180px !important;
    }

    .recent-product-info {
        padding: 0.8rem;
    }
    
    .recent-product-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .recent-product-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .view-all-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    /* تحسين أزرار المنتج للتخطيط الجديد */
    .product-actions {
        margin-top: 0.8rem;
    }
    
    .product-actions .first-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .second-row {
        margin-top: 0.5rem;
    }
    
    .add-to-cart,
    .reserve-now-btn,
    .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 0.4rem;
    }
    
    .category-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .price-display {
        margin-bottom: 0.5rem;
    }
    
    .price-display .sale-price,
    .price-display .regular-price {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .price-display .original-price {
        font-size: 0.8rem;
    }
    
    /* تحسينات الفوتير للهاتف */
    footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    footer p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0.3rem 0;
    }
    
    /* تحسينات إضافية للهواتف - بطاقتين في كل صف */
    .product-colors {
        margin-bottom: 0.5rem;
    }
    
    .colors-label {
        font-size: 0.7rem;
    }
    
    .colors-list {
        font-size: 0.7rem;
    }
    
    .stock-display {
        margin-bottom: 0.5rem;
    }
}

/* تحسينات للشاشات الصغيرة جداً - بطاقتين في كل صف */
@media (max-width: 400px) {
    /* إصلاح عرض المنتجات للهواتف الصغيرة جداً - خاص بسفاري */
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
}
    
    .recent-product-image {
        height: 140px !important;
    }
    
    .product-image {
        height: 140px;
    }
    
    .recent-product-info {
        padding: 0.6rem;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .recent-product-info h3,
    .product-info h3 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .recent-product-info p,
    .product-info p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .add-to-cart,
    .reserve-now-btn,
    .add-to-cart-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .category-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .price-display .sale-price,
    .price-display .regular-price,
    .product-info .price {
        font-size: 0.8rem;
    }
    
    .price-display .original-price {
        font-size: 0.7rem;
    }
    
    /* تحسينات إضافية للبطاقات */
    .product-card,
    .recent-product-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .product-card:hover,
    .recent-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* تحسين المسافة بين البطاقات */
    .product-card,
    .recent-product-card {
        margin-bottom: 0.5rem;
    }
    
    /* تحسين عرض المعلومات في البطاقات */
    .product-actions .first-row {
        flex-wrap: wrap;
    }
    
    .product-actions .first-row .add-to-cart {
        flex: 1;
        min-width: 0;
    }
    
    .product-actions .first-row .add-to-cart-btn {
        flex: 1;
        min-width: 0;
    }
    
    /* تحسين الأزرار للتخطيط الجديد */
    .add-to-cart i,
    .reserve-now-btn i,
    .add-to-cart-btn i {
        margin-left: 0.3rem;
        font-size: 0.8em;
    }
    
    /* تحسين تخطيط الأزرار */
    .product-actions .second-row .reserve-now-btn {
        width: 100%;
    }
    
    /* تحسين عرض الأسعار */
    .price-display {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .price-display .sale-price {
        color: #e74c3c;
        font-weight: bold;
    }
    
    .price-display .original-price {
        color: #999;
        text-decoration: line-through;
    }
    
    .price-display .regular-price {
        color: #2c3e50;
        font-weight: bold;
    }
    
    /* تحسينات إضافية للتخطيط الجديد */
    .product-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        border-radius: 0.3rem;
    }
    
    .recent-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        border-radius: 0.3rem;
    }
    
    .free-delivery-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        border-radius: 0.3rem;
    }
    
    /* تحسين عرض الوسائط */
    .slider-nav {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .slider-indicators {
        gap: 0.2rem;
        bottom: 0.5rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    /* تحسين عرض معلومات المخزون */
    .stock-display {
        font-size: 0.7rem;
    }
    
    /* تأكيد التخطيط المتجاوب */
    @media (max-width: 768px) {
        .container {
            padding: 0 1rem;
        }
        
        .recently-added-section .container {
            padding: 0 1rem;
        }
    }
}

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

/* Selection Colors */
::selection {
    background: rgba(236, 72, 153, 0.2);
    color: #1f2937;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* تأثيرات الظهور التدريجي */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .slide-in-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.6s ease-out;
    }
    
    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .slide-in-right {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.6s ease-out;
    }
    
    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .scale-in {
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.6s ease-out;
    }
    
    .scale-in.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    /* تأثيرات خاصة للعناوين */
    .title-reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .title-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Image Slider Styles ========== */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

/* فيديو السلايدر */
.slider-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-video.active {
    opacity: 1;
}

.slider-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تحسين أبعاد الفيديو للهاتف في الصفحة الرئيسية */
@media (max-width: 768px) {
    .recent-product-image .slider-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .recent-product-image .slider-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: auto;
        display: block;
    }
}

/* تحسين أبعاد الفيديو للهاتف في صفحة الأقسام */
@media (max-width: 768px) {
    .recent-product-card .slider-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .recent-product-card .slider-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: auto;
        display: block;
    }
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.slider-video.active .video-overlay {
    opacity: 0;
}

.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: #ec4899;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 16px;
}

.image-slider:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background: rgba(236, 72, 153, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    right: 10px;
}

.slider-nav.next {
    left: 10px;
}

/* ========== Enhanced Product Modal Styles ========== */
.enhanced-product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.enhanced-modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalEnhancedSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: row;
}

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

.enhanced-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.enhanced-close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enhanced-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.enhanced-gallery-section {
    flex: 0 0 50%;
    position: relative;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.enhanced-main-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.image-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.enhanced-product-badge {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    animation: badgePulse 2s infinite;
}

.quality-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.enhanced-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #374151;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.enhanced-thumbnails-container {
    height: 80px;
    padding: 10px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.enhanced-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    padding-bottom: 5px;
}

.enhanced-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.enhanced-thumbnails .thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.enhanced-thumbnails .thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.enhanced-video-section {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.enhanced-video-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.video-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* تحسين قسم التفاصيل - إصلاح مشكلة التمرير */
.enhanced-details-section {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: white;
    position: relative;
}

/* قسم المعلومات القابل للتمرير - إصلاح للحاسوب */
.enhanced-info-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-right: 30px;
    margin-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    min-height: 0;
}

.enhanced-info-scrollable::-webkit-scrollbar {
    width: 6px;
}

.enhanced-info-scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.enhanced-info-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.enhanced-info-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* قسم الأزرار الثابت في الأسفل */
.enhanced-actions {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* تحسين قسم المزايا */
.enhanced-features {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1025px) {
    .enhanced-modal-container {
        max-width: 1400px;
        height: 95vh;
        max-height: 1100px;
    }
    
    .enhanced-info-scrollable {
        padding: 25px;
        padding-right: 35px;
    }
    
    .enhanced-actions {
        padding: 25px;
    }
    
    .enhanced-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}



/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .enhanced-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        flex-direction: column;
        margin: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: fixed;
    }
    
    .enhanced-modal-content {
        flex-direction: column;
    }
    
    .enhanced-gallery-section {
        flex: 0 0 50%;
        min-height: 200px;
        max-height: 50vh;
        order: 1;
    }
    
    .enhanced-details-section {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        order: 2;
    }
    
    .enhanced-info-scrollable {
        padding: 12px;
        padding-right: 16px;
        max-height: calc(50vh - 120px);
        overflow-y: auto;
    }
    
    .enhanced-actions {
        padding: 8px;
        gap: 6px;
        flex-shrink: 0;
        min-height: 60px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 10px 16px;
        font-size: 14px;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .enhanced-share-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 6px;
    }
    
    .btn-icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .btn-title {
        font-size: 14px;
    }
    
    .btn-subtitle {
        font-size: 11px;
    }
    
    .enhanced-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .enhanced-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* تحسين عرض الصورة الرئيسية للهاتف */
    .enhanced-main-image-wrapper {
        padding: 10px;
    }
    
    .enhanced-main-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    /* تحسين الصور المصغرة للهاتف */
    .enhanced-thumbnails-container {
        height: 70px;
        padding: 8px 12px;
    }
    
    .enhanced-thumbnails .thumbnail {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .enhanced-modal-container {
        height: 100vh;
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .enhanced-modal-content {
        flex-direction: column;
    }
    
    .enhanced-gallery-section {
        flex: 0 0 45%;
        min-height: 180px;
        max-height: 45vh;
        order: 1;
    }
    
    .enhanced-details-section {
        flex: 1;
        min-height: 0;
        order: 2;
    }
    
    .enhanced-info-scrollable {
        padding: 8px;
        padding-right: 12px;
        max-height: calc(55vh - 100px);
        overflow-y: auto;
    }
    
    .enhanced-actions {
        padding: 6px;
        gap: 4px;
        min-height: 50px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 6px 10px !important;
        font-size: 12px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    
    .enhanced-share-btn {
        padding: 4px 8px !important;
        font-size: 11px;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 4px;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
    
    .btn-title {
        font-size: 12px;
    }
    
    .btn-subtitle {
        font-size: 10px;
    }
    
    .enhanced-close-btn {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .enhanced-product-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .price-amount {
        font-size: 18px;
    }
    
    .enhanced-price-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .feature-item {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .trust-indicators {
        padding: 8px;
        gap: 6px;
        flex-direction: column;
    }
    
    /* تحسين الصور المصغرة للشاشات الصغيرة */
    .enhanced-thumbnails-container {
        height: 60px;
        padding: 6px 10px;
    }
    
    .enhanced-thumbnails .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
}

/* ========== Enhanced Modal Button Styles ========== */
.enhanced-whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.enhanced-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e, #075e54);
}

.enhanced-reserve-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.enhanced-reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.enhanced-share-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    text-decoration: none;
    justify-content: center;
    margin-top: 8px;
}

.enhanced-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    background: linear-gradient(135deg, #f5576c, #f093fb);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-title {
    font-size: 16px;
    font-weight: 600;
}

.btn-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

/* ========== Enhanced Modal Content Styles ========== */
.enhanced-product-header {
    margin-bottom: 20px;
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.rating-text {
    font-size: 12px;
    color: #6b7280;
}

.enhanced-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.enhanced-price-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.main-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.currency {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

.price-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.enhanced-description {
    margin-bottom: 20px;
}

.enhanced-description h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.enhanced-description p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-time,
.delivery-cost {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.product-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.product-benefits li i {
    color: #10b981;
    font-size: 10px;
}

.trust-indicators {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
}

.trust-item i {
    font-size: 14px;
}

/* ========== Enhanced Modal Responsive Styles ========== */
@media (max-width: 768px) {
    .enhanced-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .btn-title {
        font-size: 14px;
    }
    
    .btn-subtitle {
        font-size: 11px;
    }
    
    .enhanced-product-title {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .enhanced-price-section {
        padding: 16px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .btn-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .enhanced-product-title {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========== Additional Enhanced Modal Styles ========== */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.enhanced-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
}

.enhanced-thumbnails .thumbnail:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.enhanced-thumbnails .thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* تحسين عرض النافذة المنبثقة */
.enhanced-product-modal.show {
    display: flex !important;
}

/* تحسين التمرير في النافذة المنبثقة */
.enhanced-info-scrollable {
    scroll-behavior: smooth;
}

/* تحسين الأيقونات في النافذة المنبثقة */
.enhanced-product-header i,
.enhanced-description i,
.feature-item i {
    font-size: 14px;
}

/* تحسين الألوان في النافذة المنبثقة */
.enhanced-product-badge {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    animation: badgePulse 2s infinite;
}

.quality-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* تحسين التفاعل مع الأزرار */
.enhanced-whatsapp-btn:active,
.enhanced-reserve-btn:active,
.enhanced-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* تحسين عرض الصور في النافذة المنبثقة */
.enhanced-main-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.enhanced-main-image:hover {
    transform: scale(1.02);
}

/* تحسين التنقل بين الصور */
.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* تحسين عرض الفيديو */
.video-wrapper {
    position: relative;
    background: #000;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
}

/* تحسين عرض الشارات */
.image-badges {
    pointer-events: none;
}

.enhanced-product-badge,
.quality-badge {
    pointer-events: auto;
    cursor: default;
}

/* تحسين عرض العداد */
.image-counter {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

/* تحسين عرض التقييم */
.stars i {
    font-size: 14px;
}

/* تحسين عرض المزايا */
.feature-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* تحسين عرض مؤشرات الثقة */
.trust-indicators {
    transition: all 0.3s ease;
}

.trust-indicators:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

/* تحسين عرض الأزرار في الشاشات الصغيرة */
@media (max-width: 480px) {
    .enhanced-actions {
        padding: 12px;
        gap: 8px;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .enhanced-share-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .btn-title {
        font-size: 13px;
    }
    
    .btn-subtitle {
        font-size: 10px;
    }
}

/* ========== إصلاحات إضافية للهاتف المحمول ========== */

/* منع التمرير في الخلفية عند فتح النافذة المنبثقة */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ضمان عدم خروج النافذة المنبثقة عن الشاشة */
.enhanced-product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

/* تحسين التخطيط للهواتف الصغيرة جداً */
@media (max-width: 360px) {
    .enhanced-modal-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .enhanced-modal-content {
        flex-direction: column;
    }
    
    .enhanced-gallery-section {
        flex: 0 0 40%;
        min-height: 140px;
        max-height: 40vh;
        order: 1;
    }
    
    .enhanced-details-section {
        flex: 1;
        min-height: 0;
        order: 2;
    }
    
    .enhanced-info-scrollable {
        padding: 6px;
        padding-right: 10px;
        max-height: calc(60vh - 80px);
        overflow-y: auto;
    }
    
    .enhanced-actions {
        padding: 4px;
        gap: 3px;
        min-height: 45px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    .enhanced-share-btn {
        padding: 5px 8px;
        font-size: 10px;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 3px;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
        font-size: 11px;
    }
    
    .btn-title {
        font-size: 11px;
    }
    
    .btn-subtitle {
        font-size: 9px;
    }
    
    .enhanced-product-title {
        font-size: 14px;
        line-height: 1.1;
    }
    
    .price-amount {
        font-size: 16px;
    }
    
    .enhanced-price-section {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .feature-item {
        padding: 6px;
        margin-bottom: 4px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .feature-content h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .feature-content p {
        font-size: 11px;
    }
    
    .trust-indicators {
        padding: 6px;
        gap: 4px;
        flex-direction: column;
    }
    
    .trust-item {
        font-size: 10px;
    }
    
    .enhanced-close-btn {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* تحسين عرض الصور المصغرة للهواتف */
@media (max-width: 480px) {
    .enhanced-thumbnails-container {
        height: 60px;
        padding: 6px 12px;
    }
    
    .enhanced-thumbnails .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
    
    .enhanced-thumbnails {
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .reservation-modal .modal-content {
        max-height: 100vh;
        margin: 5px;
        width: calc(100% - 10px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 12px 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-header p {
        font-size: 13px;
    }
    
    .product-summary {
        padding: 10px 12px;
        margin: 0 12px 12px;
    }
    
    .product-image-small {
        width: 50px;
        height: 50px;
    }
    
    .product-details-small h3 {
        font-size: 13px;
    }
    
    .product-price-small {
        font-size: 15px;
    }
    
    .reservation-form {
        padding: 0 12px 12px;
    }
    
    .form-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .form-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .quantity-selector button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quantity-selector input {
        width: 70px;
        font-size: 15px;
    }
    
    .btn-cancel,
    .btn-reserve {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .order-summary {
        padding: 12px;
    }
    
    .summary-row {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .summary-row.total {
        font-size: 15px;
    }
}

/* منع التمرير الأفقي */
.enhanced-modal-content {
    overflow-x: hidden;
}

/* تحسين عرض النصوص الطويلة */
.enhanced-product-title,
.enhanced-description p,
.feature-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* تحسين عرض الأزرار للهواتف */
@media (max-width: 480px) {
    .enhanced-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn,
    .enhanced-share-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    .enhanced-share-btn {
        padding: 6px 0;
        font-size: 18px;
        width: auto;
        margin-top: 0;
    }
    .enhanced-share-btn span {
        display: none;
    }
}

/* ========== تنسيقات خاصة للتابلت ========== */



/* للشاشات المتوسطة الكبيرة (التابلت الكبير) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .enhanced-modal-container {
        width: 90%;
        height: 85vh;
        max-height: 900px;
        flex-direction: column;
    }
    
    .enhanced-gallery-section {
        flex: 0 0 40%;
        min-height: 300px;
        max-height: 40vh;
        order: 1;
    }
    
    .enhanced-details-section {
        flex: 1;
        min-height: 0;
        order: 2;
    }
    
    .enhanced-info-scrollable {
        padding: 25px;
        padding-right: 30px;
        max-height: calc(60vh - 160px);
        overflow-y: auto;
    }
    
    .enhanced-actions {
        padding: 20px;
        gap: 12px;
        min-height: 100px;
    }
    
    /* تحسين عرض الصورة الرئيسية */
    .enhanced-main-image-wrapper {
        padding: 20px;
    }
    
    /* تحسين الصور المصغرة */
    .enhanced-thumbnails-container {
        height: 90px;
        padding: 12px 25px;
    }
    
    .enhanced-thumbnails .thumbnail {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }
    
    /* تحسين النصوص */
    .enhanced-product-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .enhanced-price-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        padding: 16px;
        margin-bottom: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .feature-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .feature-content p {
        font-size: 14px;
    }
    
    /* تحسين الأزرار */
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 14px 22px;
        font-size: 16px;
        gap: 10px;
    }
    
    .enhanced-share-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-icon {
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
    
    .btn-title {
        font-size: 16px;
    }
    
    .btn-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .enhanced-actions {
        margin-top: 0 !important;
        margin-bottom: 56px !important;
    }
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 4px 8px !important;
    }
    .enhanced-share-btn {
        padding: 3px 6px !important;
    }
}

/* قواعد قوية للتابلت - للتأكد من التطبيق */
@media (min-width: 769px) and (max-width: 1024px) {
    .enhanced-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-top: 30px !important; /* رفع الأزرار للأعلى أكثر */
        margin-bottom: 10px !important; /* تقليل المسافة من الأسفل */
        padding: 8px !important;
        gap: 6px !important;
    }
    
    .enhanced-whatsapp-btn,
    .enhanced-reserve-btn {
        padding: 6px 10px !important;
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 14px !important;
    }
    
    .enhanced-reserve-btn {
        background: linear-gradient(135deg, #ff8c00, #ff6b35) !important;
        border-color: #ff6b35 !important;
    }
    
    .enhanced-reserve-btn:hover {
        background: linear-gradient(135deg, #ff6b35, #ff8c00) !important;
        border-color: #ff8c00 !important;
    }
    
    .enhanced-share-btn {
        padding: 4px 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        margin-top: 0 !important;
        font-size: 14px !important;
    }
    
    .enhanced-share-btn span {
        display: none !important;
    }
}

/* قواعد إضافية للتابلت - لجميع الأحجام المحتملة */
@media (min-width: 768px) and (max-width: 1024px) {
    .enhanced-actions {
        margin-top: 60px !important;
        margin-bottom: 20px !important;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .enhanced-actions {
        margin-top: 60px !important;
        margin-bottom: 20px !important;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .enhanced-actions {
        margin-top: 60px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .reservation-modal {
        padding: 5px;
    }
    
    .reservation-modal .modal-content {
        max-height: 98vh;
        border-radius: 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 15px 15px 10px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .modal-header p {
        font-size: 14px;
        margin: 0;
    }
    
    .product-summary {
        padding: 10px 15px;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 10px;
        background: #f8f9fa;
        border-radius: 10px;
        margin: 0 15px 10px;
    }
    
    .product-image-small {
        width: 60px;
        height: 60px;
        margin: 0;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .product-details-small h3 {
        font-size: 14px;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }
    
    .product-price-small {
        font-size: 16px;
        font-weight: 600;
        color: #28a745;
    }
    
    .reservation-form {
        padding: 0 15px 10px;
    }
    
    .form-section {
        padding: 12px;
        margin-bottom: 10px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .form-section h3 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #333;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
        color: #555;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    }
    
    .form-group small {
        font-size: 12px;
        color: #6c757d;
        margin-top: 4px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 8px;
    }
    
    .quantity-selector button {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: bold;
    }
    
    .quantity-selector input {
        width: 80px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
    }
    
    .delivery-info-display {
        background: #e8f5e8;
        border-radius: 8px;
        padding: 12px;
        margin-top: 10px;
    }
    
    .delivery-detail {
        font-size: 13px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .delivery-detail i {
        color: #28a745;
        width: 16px;
    }
    
    .order-summary {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 12px;
        margin: 10px 0;
    }
    
    .order-summary h3 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #333;
    }
    
    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 14px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .summary-row.total {
        font-size: 16px;
        font-weight: 600;
        color: #28a745;
        border-bottom: none;
        border-top: 2px solid #28a745;
        padding-top: 8px;
        margin-top: 6px;
    }
    
    .form-actions {
        flex-direction: row;
        gap: 10px;
        padding: 10px 0 0;
    }
    
    .btn-cancel,
    .btn-reserve {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
        font-weight: 600;
        flex: 1;
        text-align: center;
    }
    
    .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
    }
    
    .btn-reserve {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        border: none;
    }
    
    .btn-reserve:hover {
        background: linear-gradient(135deg, #20c997, #28a745);
    }
    
    .btn-reserve:disabled {
        background: #6c757d;
        opacity: 0.6;
    }
}

/* تنسيق الألوان المتوفرة */
.product-colors {
    margin: 4px 0;
    font-size: 0.7rem;
    color: #888;
    line-height: 1.2;
}

.colors-label {
    font-weight: 600;
    margin-left: 4px;
    color: #666;
}

.colors-list {
    color: #888;
    font-size: 0.65rem;
}

/* صفحة السلة */
.cart-page {
    padding: 2rem 0;
}

.cart-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    color: white;
    border-radius: 15px;
}

.cart-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.cart-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-cart i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

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

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 0.5rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.item-price {
    color: #ec4899;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.item-quantity input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}

.item-total {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: center;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: fit-content;
}

.cart-summary h3 {
    margin: 0 0 1.5rem;
    color: #1f2937;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1f2937;
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

.cart-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* تنسيق الهاتف لصفحة السلة */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    
    .item-quantity {
        justify-content: center;
        margin: 0;
    }
    
    .item-total {
        text-align: center;
        min-width: auto;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* رسائل النجاح */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

.success-message .view-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.success-message .view-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

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

/* تأثير طيران المنتج إلى السلة */
.flying-item {
    position: fixed;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    animation: flyToCart 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.flying-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 0.6s infinite alternate;
}

@keyframes flyToCart {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* تأثير هز السلة عند الإضافة */
.cart-shake {
    animation: cartShake 0.6s ease-in-out;
}

@keyframes cartShake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-3px) scale(1.1); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(3px) scale(1.1); 
    }
}

/* تأثير تكبير زر السلة */
.cart-bounce {
    animation: cartBounce 0.8s ease-in-out;
}

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

/* تأثير الجسيمات المتناثرة */
.success-particles {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: particles 1s ease-out forwards;
}

@keyframes particles {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-100px);
    }
}

/* تحسين تجربة الأجهزة المحمولة */
@media (max-width: 768px) {
    .flying-item {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    @keyframes flyToCart {
        0% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
        }
        50% {
            transform: scale(1.2) rotate(180deg);
            opacity: 0.8;
        }
        100% {
            transform: scale(0.2) rotate(360deg);
            opacity: 0;
        }
    }
}

/* إصلاح عرض الحاسوب - العدد الصحيح من البطاقات */
@media (min-width: 1200px) {
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
        max-width: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1.2rem !important;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .products-grid,
    .recently-added-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* إصلاح خاص لسفاري iOS - فقط للهواتف */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .products-grid,
        .recently-added-grid {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            grid-gap: 1rem !important;
            width: 100% !important;
        }
        
        .product-card,
        .recent-product-card {
            width: 100% !important;
            max-width: none !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }
    }
    
    @media (max-width: 480px) {
        .products-grid,
        .recently-added-grid {
            grid-gap: 0.8rem !important;
        }
    }
    
    @media (max-width: 400px) {
        .products-grid,
        .recently-added-grid {
            grid-gap: 0.5rem !important;
        }
    }
}


