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

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Mobile App-like Base Styles */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Mobile Viewport Fix */
@viewport {
    width: device-width;
    initial-scale: 1;
    maximum-scale: 5;
    user-scalable: yes;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* مسافة بين الصورة والنص */
    text-align: center;
    padding: 5px;
}

.logo img {
    max-height: 150px; /* يمكنك تعديل الارتفاع حسب حجم الشعار */
    height: auto;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

/* Global image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo .tagline {
    font-size: 5px;
    color: #666; /* لون النص، يمكن تغييره حسب التصميم */
    transition: font-size 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-top: 5rem; /* Account for fixed header */
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Improve scroll performance */
* {
    scroll-behavior: smooth;
}

/* Custom scrollbar for the entire page */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* RTL Support */
body.rtl {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content {
    text-align: center;
}

[dir="rtl"] .section-header {
    text-align: center;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}

/* Language Toggle */
.language-toggle {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 50px;
    transition: font-size 0.3s ease, min-width 0.3s ease;
}

.language-toggle .language-text {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    gap: 1.5rem;
    transition: height 0.3s ease, gap 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a4c5ba;
    margin: 0;
}

.tagline {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

[dir="rtl"] .tagline {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Header Navigation Tabs */
.header-nav-tabs {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
}

.nav-tabs {
    display: flex;
    gap: 0.25rem;
    background: #f9fafb;
    padding: 0.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

[dir="rtl"] .nav-tabs {
    flex-direction: row-reverse;
}

.nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 40px;
    white-space: nowrap;
    font-size: 0.875rem;
    min-width: 80px;
}

[dir="rtl"] .nav-tab {
    flex-direction: row-reverse;
}

.nav-tab svg {
    width: 16px;
    height: 16px;
}

.nav-tab:hover {
    color: #374151;
    background: #f3f4f6;
}

.nav-tab.active {
    background: #a4c5ba;
    color: white;
    box-shadow: 0 2px 4px rgba(164, 197, 186, 0.2);
}

.nav-tab:active {
    transform: scale(0.98);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 20rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: all 0.2s;
    font-size: 1rem;
}

[dir="rtl"] .search-input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
}

.search-input:focus {
    border-color: #a4c5ba;
    box-shadow: 0 0 0 3px rgba(164, 197, 186, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.search-icon:hover {
    color: #a4c5ba;
}

[dir="rtl"] .search-icon {
    left: auto;
    right: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    max-width: 100%;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

.action-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s, padding 0.3s ease;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.action-btn:hover {
    color: #a4c5ba;
    background-color: #f9fafb;
}

.action-btn:active {
    transform: scale(0.95);
}

.cart-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #eda084;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

[dir="rtl"] .cart-count {
    right: auto;
    left: 0.25rem;
}

.favorites-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

[dir="rtl"] .favorites-count {
    right: auto;
    left: 0.25rem;
}

.search-mobile,
.menu-mobile {
    display: none;
}

/* Mobile Search Container */
.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-container.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-content {
    background: white;
    padding: 1rem;
    margin: 1rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-search-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    font-size: 1rem;
}

.mobile-search-input:focus {
    border-color: #a4c5ba;
    box-shadow: 0 0 0 3px rgba(164, 197, 186, 0.1);
}

.mobile-search-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close:hover {
    background: #f3f4f6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 100%);
    padding: 2rem 0 3rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

[dir="rtl"] .hero-content {
    grid-template-columns: 1fr 1fr;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.text-pink {
    color: #eda084;
}

.text-blue {
    color: #c7abc1;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 44px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #a4c5ba;
    color: white;
}

.btn-primary:hover {
    background: #8fb3a3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #a4c5ba;
    border: 2px solid #a4c5ba;
}

.btn-secondary:hover {
    background: #a4c5ba;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

[dir="rtl"] .hero-stats {
    flex-direction: row-reverse;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.decoration-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: #fce7f3;
}

[dir="rtl"] .decoration-1 {
    right: auto;
    left: -1rem;
}

.decoration-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background: #dbeafe;
}

[dir="rtl"] .decoration-2 {
    left: auto;
    right: -1rem;
}

/* Section Styles */
.products {
    padding: 3rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.shopping-categories {
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.products {
    background: #f9fafb;
}

.shopping-categories {
    background: #ffffff;
}

.age-section {
    background: #f9fafb;
}

.discounts-section {
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shopping-categories .section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.shopping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.shopping-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    touch-action: manipulation;
}

.shopping-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #a4c5ba;
}

.shopping-card:active {
    transform: translateY(-2px);
}

.shopping-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

[dir="rtl"] .shopping-card-header {
    flex-direction: row-reverse;
}

.shopping-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #a4c5ba, #eda084);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.shopping-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.shopping-card-content {
    text-align: left;
}

[dir="rtl"] .shopping-card-content {
    text-align: right;
}

.shopping-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.shopping-card-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shopping-card-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    min-height: 36px;
    font-size: 0.875rem;
}

[dir="rtl"] .shopping-card-btn {
    flex-direction: row-reverse;
}

.shopping-card-btn:hover {
    background: #a4c5ba;
    color: white;
    border-color: #a4c5ba;
}

.shopping-card-btn:active {
    transform: scale(0.98);
}

.shopping-card:hover .shopping-card-btn {
    background: #a4c5ba;
    color: white;
    border-color: #a4c5ba;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Favorites Section Header */
.favorites-section-header {
    grid-column: 1 / -1;
    margin: 1rem 0 0.5rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-radius: 0.75rem;
    border-left: 4px solid #ef4444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #dc2626;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.favorites-section-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.favorites-section-header svg {
    flex-shrink: 0;
}

[dir="rtl"] .favorites-section-header {
    border-left: none;
    border-right: 4px solid #ef4444;
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    touch-action: manipulation;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card:active {
    transform: translateY(-2px);
}

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

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

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

.sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

[dir="rtl"] .sale-badge {
    left: auto;
    right: 1rem;
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .favorite-btn {
    right: auto;
    left: 1rem;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #eda084;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #eda084;
    background: rgba(255, 255, 255, 1);
}

.favorite-btn:active {
    transform: scale(0.95);
}

.product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

[dir="rtl"] .product-content {
    text-align: right;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    min-height: 1.5rem;
}

[dir="rtl"] .product-rating {
    flex-direction: row-reverse;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

[dir="rtl"] .stars {
    flex-direction: row-reverse;
}

.star {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
    fill: currentColor;
}

.star.empty {
    color: #d1d5db;
    fill: none;
}

.reviews-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    min-height: 2rem;
    margin-top: auto;
}

[dir="rtl"] .product-price-row {
    flex-direction: row-reverse;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[dir="rtl"] .product-price {
    flex-direction: row-reverse;
}

.current-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #a4c5ba;
}

.original-price {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.stock-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.in-stock {
    background: #dcfce7;
    color: #166534;
}

.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.add-to-cart {
    width: 100%;
    background: #a4c5ba;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    touch-action: manipulation;
    margin-top: auto;
}

[dir="rtl"] .add-to-cart {
    flex-direction: row-reverse;
}

.add-to-cart:hover:not(:disabled) {
    background: #8fb3a3;
    transform: translateY(-1px);
}

.add-to-cart:active:not(:disabled) {
    transform: scale(0.98);
}

.add-to-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

.show-more-btn {
    background: #a4c5ba;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    font-size: 1rem;
    touch-action: manipulation;
}

[dir="rtl"] .show-more-btn {
    flex-direction: row-reverse;
}

.show-more-btn:hover {
    background: #8fb3a3;
    transform: translateY(-1px);
}

.show-more-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a4c5ba;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #a4c5ba;
    background: rgba(164, 197, 186, 0.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.375rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.375rem 0;
    display: block;
    font-size: 0.8125rem;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    padding: 0.5rem 0;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

.contact-item svg {
    color: #a4c5ba;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

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

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

[dir="rtl"] .footer-bottom-links {
    flex-direction: row-reverse;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    padding: 0.25rem 0;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 28rem;
    background: white;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .cart-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

[dir="rtl"] .cart-header {
    flex-direction: row-reverse;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.cart-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: #f3f4f6;
}

.cart-close:active {
    transform: scale(0.95);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
}

.cart-empty svg {
    width: 4rem;
    height: 4rem;
    color: #d1d5db;
    margin: 0 auto 1rem;
}

.cart-empty h3 {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

[dir="rtl"] .cart-item {
    flex-direction: row-reverse;
}

.cart-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

[dir="rtl"] .cart-item-details {
    text-align: right;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-price {
    color: #a4c5ba;
    font-weight: 700;
}

.cart-item-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    font-size: 0.75rem;
}

[dir="rtl"] .cart-item-color {
    flex-direction: row-reverse;
}

.color-label {
    color: #6b7280;
    font-weight: 500;
}

.color-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.color-name {
    color: #374151;
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

[dir="rtl"] .cart-item-controls {
    flex-direction: row-reverse;
}

.quantity-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity {
    width: 2rem;
    text-align: center;
    font-weight: 500;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #fee2e2;
}

.remove-btn:active {
    transform: scale(0.95);
}

.cart-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

[dir="rtl"] .cart-total {
    flex-direction: row-reverse;
}

.cart-total-price {
    color: #a4c5ba;
}

.cart-summary {
    margin-bottom: 1rem;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

[dir="rtl"] .cart-subtotal {
    flex-direction: row-reverse;
}

.cart-subtotal-price {
    font-weight: 500;
    color: #374151;
}



.checkout-btn {
    width: 100%;
    background: #a4c5ba;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    font-size: 1rem;
}

.checkout-btn:hover {
    background: #8fb3a3;
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* Mobile Navigation Menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #a4c5ba;
}

.mobile-nav-parent {
    cursor: pointer;
}

.mobile-nav-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.mobile-nav-item.active .mobile-nav-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-nav-item.active .mobile-nav-submenu {
    max-height: 2000px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mobile-nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.mobile-nav-submenu-link:hover {
    background: #f9fafb;
    color: #a4c5ba;
}

.mobile-nav-submenu-link .submenu-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.mobile-search {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    font-size: 1rem;
}

.mobile-search-input:focus {
    border-color: #a4c5ba;
    box-shadow: 0 0 0 3px rgba(164, 197, 186, 0.1);
}

/* Mobile Menu Responsive Styles */
@media (max-width: 1200px) {
    .mobile-menu {
        top: 4.5rem;
    }
}

@media (max-width: 1024px) {
    .mobile-menu {
        top: 4rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        top: 3.75rem;
    }
    
    .mobile-menu-content {
        padding: 0.875rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-search-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        top: 3.5rem;
    }
    
    .mobile-menu-content {
        padding: 0.75rem;
    }
    
    .mobile-nav {
        gap: 0.375rem;
    }
    
    .mobile-nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .mobile-search {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .mobile-search-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

@media (max-width: 360px) {
    body {
        padding-top: 3.25rem;
    }
    
    .header-content {
        height: 3.25rem;
        gap: 0.25rem;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .action-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.625rem;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .language-toggle {
        font-size: 0.6875rem;
        min-width: 35px;
        padding: 0.5rem 0.25rem;
    }
    
    .mobile-menu {
        top: 3.25rem;
    }
    
    .mobile-menu-content {
        padding: 0.625rem;
    }
    
    .mobile-nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .mobile-search-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .mobile-menu {
    left: 0;
    right: 0;
}

[dir="rtl"] .mobile-nav-link {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-nav-arrow {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .mobile-nav-submenu {
    padding-left: 0;
    padding-right: 1rem;
}

[dir="rtl"] .mobile-nav-submenu-link {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Specific Adjustments */
[dir="rtl"] .hero-buttons {
    justify-content: center;
}

[dir="rtl"] .hero-stats {
    justify-content: center;
}

[dir="rtl"] .btn svg {
    transform: scaleX(-1);
}

[dir="rtl"] .search-icon {
    transform: translateY(-50%) scaleX(-1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        padding-top: 4.5rem;
    }
    
    .header-content {
        height: 4.5rem;
        gap: 1.25rem;
    }
    
    .logo img {
        max-height: 120px;
    }
    
    .action-btn {
        padding: 0.625rem;
        min-width: 42px;
        min-height: 42px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 4rem;
    }
    
    .header-content {
        height: 4rem;
        gap: 1rem;
    }
    
    .logo img {
        max-height: 100px;
    }
    
    .logo .tagline {
        font-size: 4px;
    }
    
    .action-btn {
        padding: 0.625rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .search-container {
        display: none;
    }
    
    .search-mobile {
        display: flex;
    }
    
    .header-nav-tabs {
        display: none;
    }
    
    .menu-mobile {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .shopping-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .header-nav-tabs {
        max-width: 500px;
    }
    
    .nav-tabs {
        padding: 0.25rem;
    }
    
    .nav-tab {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 1024px) {
    .header-nav-tabs {
        display: none;
    }
    
    .menu-mobile {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 3.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-nav-tabs {
        display: none;
    }
    
    .menu-mobile {
        display: flex;
    }
    
    .tagline {
        display: none;
    }
    
    .header-content {
        gap: 0.5rem;
        height: 3.75rem;
    }
    
    .logo img {
        max-height: 80px;
    }
    
    .logo .tagline {
        font-size: 3px;
    }
    
    /* Mobile App-like Header */
    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Better touch targets on mobile */
    .action-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 0.875rem;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .header-actions {
        gap: 0.375rem;
    }
    
    .language-toggle {
        font-size: 0.8125rem;
        min-width: 45px;
        padding: 0.625rem 0.5rem;
    }
    
    /* Mobile-friendly scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    .hero {
        padding: 1.5rem 0 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    [dir="rtl"] .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Mobile app-like card interactions */
    .product-card,
    .shopping-card {
        -webkit-tap-highlight-color: rgba(164, 197, 186, 0.2);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .product-card:active,
    .shopping-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .products,
    .shopping-categories {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.875rem;
    }
    
    .shopping-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-image img {
        height: 160px;
    }
    
    .product-content {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        min-height: 2.25rem;
    }
    
    .product-rating {
        margin-bottom: 0.5rem;
        min-height: 1.375rem;
    }
    
    .product-price-row {
        margin-bottom: 0.75rem;
        min-height: 1.75rem;
    }
    
    .current-price {
        font-size: 0.8125rem;
    }
    
    .original-price {
        font-size: 0.625rem;
    }
    
    .add-to-cart {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .shopping-card {
        padding: 0.75rem;
        border-radius: 0.875rem;
    }
    
    /* Mobile-friendly product cards */
    .product-card {
        border-radius: 0.875rem;
    }
    
    /* Better mobile button sizes */
    .add-to-cart,
    .shopping-card-btn {
        min-height: 44px;
        font-size: 0.9375rem;
        font-weight: 600;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        height: 3.5rem;
        gap: 0.375rem;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .logo .tagline {
        font-size: 2px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .action-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .cart-count,
    .favorites-count {
        width: 1rem;
        height: 1rem;
        font-size: 0.625rem;
        top: 0.125rem;
        right: 0.125rem;
    }
    
    .language-toggle {
        font-size: 0.75rem;
        min-width: 40px;
        padding: 0.5rem 0.375rem;
    }
    
    .hero {
        padding: 1rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .products,
    .shopping-categories {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .shopping-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    
    .product-image img {
        height: 140px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        min-height: 2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-rating {
        margin-bottom: 0.5rem;
        min-height: 1.25rem;
    }
    
    .stars .star {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .reviews-count {
        font-size: 0.75rem;
    }
    
    .product-price-row {
        margin-bottom: 0.625rem;
        min-height: 1.5rem;
    }
    
    .current-price {
        font-size: 0.875rem;
    }
    
    .original-price {
        font-size: 0.6875rem;
    }
    
    .add-to-cart {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .sale-badge {
        font-size: 0.6875rem;
        padding: 0.2rem 0.625rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    [dir="rtl"] .sale-badge {
        right: 0.75rem;
    }
    
    .favorite-btn {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    [dir="rtl"] .favorite-btn {
        left: 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .shopping-card-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    .shopping-card {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .shopping-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .shopping-card-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-height: 40px;
        font-weight: 600;
    }
    
    /* Mobile app-like spacing */
    .products,
    .shopping-categories {
        padding: 1.5rem 0;
    }
    
    .section-header {
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-content {
        padding: 1rem;
    }
    
    .cart-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-item img {
        width: 3rem;
        height: 3rem;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
    }
}

/* Touch and Accessibility Improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .shopping-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .btn-primary:hover,
    .add-to-cart:hover:not(:disabled),
    .show-more-btn:hover {
        transform: none;
    }
    
    .shopping-card:hover .shopping-card-btn {
        background: #f9fafb;
        color: #374151;
        border-color: #e5e7eb;
    }
    
    /* Mobile app-like active states */
    .product-card:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    .shopping-card:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    .btn:active,
    .action-btn:active {
        transform: scale(0.95);
    }
}

/* Mobile App-like Scroll Behavior */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Smooth mobile scrolling */
    .products-grid,
    .shopping-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile-friendly modal backdrop */
    .product-modal-overlay,
    .cart-overlay {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
    
    /* Better mobile input handling */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile app-like button feedback */
    button:active,
    .btn:active,
    .action-btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px;
    }
}

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #a4c5ba;
    outline-offset: 2px;
}

button:focus,
.btn:focus,
.action-btn:focus {
    outline: 2px solid #a4c5ba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #ffffff;
    }
    
    .text-pink,
    .text-blue {
        color: #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        color: #000000;
        border-color: #000000;
    }
}

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

/* Product Detail Modal Styles */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-detail-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.product-detail-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-detail-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.product-detail-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.product-detail-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
    z-index: 1;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 2rem;
    padding: 0 clamp(1rem, 3vw, 2rem) 2rem clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

.product-detail-left {
    flex: 1;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    order: 2;
    width: 50%;
    box-sizing: border-box;
}

.product-detail-right {
    flex: 1 !important;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    order: 1;
    width: 50%;
    box-sizing: border-box;
}

.product-detail-gallery {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.product-detail-main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 0;
    min-height: clamp(420px, 70vh, 900px);
    flex: 1;
}

.product-detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.product-detail-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.product-detail-image-nav:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-50%) scale(1.1);
}

.product-detail-image-nav.prev {
    left: 1rem;
}

.product-detail-image-nav.next {
    right: 1rem;
}

.product-detail-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: clamp(420px, 70vh, 900px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.product-detail-thumbnail {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

.product-detail-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.product-detail-single-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-single-image .product-detail-main-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    padding-bottom: 6rem;
}

.product-detail-name-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.product-detail-stars {
    display: flex;
    gap: 2px;
}

.product-detail-stars .star {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
    color: #fbbf24;
}

.product-detail-stars .star.empty {
    fill: #e5e7eb;
    color: #e5e7eb;
}

.product-detail-reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

.product-detail-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 0.5rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.product-detail-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
    white-space: nowrap;
}

.product-detail-original-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-detail-sale-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-detail-stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.product-detail-stock-status.in-stock {
    background: #dcfce7;
    color: #166534;
}

.product-detail-stock-status.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

.product-detail-description {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.product-detail-description h4 {
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    font-weight: 600;
}

.product-detail-description p {
    margin: 0;
    line-height: 1.6;
    color: #4b5563;
}

.product-detail-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-options-group {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-detail-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 150px;
}

.product-detail-option-label .required-indicator {
    color: #ef4444;
    margin-left: 0.25rem;
}

[dir="rtl"] .product-detail-option-label .required-indicator {
    margin-left: 0;
    margin-right: 0.25rem;
}

.product-detail-option-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.product-detail-color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-detail-color-option {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-color-option:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.product-detail-color-option.active {
    border: 4px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.1);
}

.product-detail-color-option.active .color-checkmark {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.product-detail-color-option .color-checkmark {
    display: none;
    position: absolute;
    z-index: 2;
}

.product-detail-color-option .color-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-detail-color-option:hover .color-name {
    opacity: 1;
}

.product-detail-quantity {
    display: flex;
    align-items: center;
}

.product-detail-quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.product-detail-quantity-btn {
    background: #f9fafb;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
    font-weight: 600;
}

.product-detail-quantity-btn:hover:not(:disabled) {
    background: #e5e7eb;
}

.product-detail-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-detail-quantity-input {
    width: 80px;
    text-align: center;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    background: white;
}

.product-detail-quantity-input:focus {
    outline: none;
    background: #f9fafb;
}

.product-detail-specifications {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
}

.product-detail-specifications h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-weight: 600;
}

.specifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specification-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.specification-label {
    font-weight: 500;
    color: #374151;
}

.specification-value {
    color: #6b7280;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15), 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.product-detail-add-to-cart {
    flex: 1;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}

.product-detail-buy-now {
    flex: 1;
    background: #10b981;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}

.product-detail-add-to-cart:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-detail-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-detail-buy-now:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.product-detail-buy-now:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-detail-favorite {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    width: 56px;
    flex-shrink: 0;
}

.product-detail-favorite:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.product-detail-favorite.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* RTL Support for Product Detail Modal */
[dir="rtl"] .product-detail-header {
    justify-content: flex-start;
}

[dir="rtl"] .product-detail-image-nav.prev {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .product-detail-image-nav.next {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .product-detail-description {
    border-left: none;
    border-right: 4px solid #3b82f6;
}

[dir="rtl"] .specification-item {
    flex-direction: row-reverse;
}

/* Responsive Design for Product Detail Modal */
@media (max-width: 1024px) {
    .product-modal {
        padding: 0;
    }
    
    .product-detail-content {
        flex-direction: column !important;
        align-items: stretch;
        padding: 0 1.5rem 1.5rem 1.5rem;
        gap: 1.5rem;
    }
    
    .product-detail-left {
        flex: none;
        padding: 0;
        width: 100% !important;
        order: 1;
    }
    
    .product-detail-right {
        flex: none;
        padding: 0 0 1.5rem 0;
        width: 100% !important;
        order: 2;
    }
    
    .product-detail-main-image-container {
        min-height: 280px;
    }
    
    .product-detail-main-image {
        height: 100%;
    }
    
    .product-detail-name-rating {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .product-detail-price-section {
        margin-bottom: 0.5rem;
    }
    
    .product-detail-name {
        font-size: 1.5rem;
    }
    
    .product-detail-current-price {
        font-size: 1.5rem;
    }
    
    .product-detail-original-price {
        font-size: 1.125rem;
    }
    
    .product-detail-gallery {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .product-detail-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        padding: 0.5rem 0.25rem 0;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .product-modal {
        padding: 0;
    }
    
    .product-detail-container {
        min-height: 100vh;
    }
    
    .product-detail-content {
        flex: 1;
        overflow: hidden;
        flex-direction: column !important;
        align-items: stretch;
        gap: 1rem;
    }
    
    .product-detail-left {
        flex: none;
        height: auto;
        min-height: 220px;
        width: 100% !important;
        order: 1;
        padding: 0;
    }
    
    .product-detail-right {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        order: 2;
        padding: 0 0 1.5rem 0;
    }
    
    .product-detail-info {
        padding: 0 1rem 1rem 1rem;
    }
    
    .product-detail-main-image {
        height: 100%;
    }
    
    .product-detail-thumbnails {
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0 0.25rem;
    }
    
    .product-detail-thumbnail {
        width: 56px;
        height: 56px;
    }
    
    .product-detail-actions {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .product-detail-add-to-cart {
        flex: 1;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .product-detail-buy-now {
        flex: 1;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .product-detail-info {
        padding-bottom: 8rem;
    }
    
    .product-detail-favorite {
        width: 56px;
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .product-detail-name-rating {
        gap: 0.5rem;
        margin-bottom: 0.125rem;
    }
    
    .product-detail-price-section {
        margin-bottom: 0.125rem;
    }
    
    .product-detail-name {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .product-detail-rating {
        gap: 0.375rem;
    }
    
    .product-detail-options-group {
        margin-bottom: 0.5rem;
    }
    
    .product-detail-stars .star {
        width: 16px;
        height: 16px;
    }
    
    .product-detail-reviews {
        font-size: 0.75rem;
    }
    
    .product-detail-current-price {
        font-size: 1.25rem;
    }
    
    .product-detail-original-price {
        font-size: 1rem;
    }
    
    .product-detail-description {
        padding: 1rem;
    }
    
    .product-detail-options {
        gap: 1rem;
    }
    
    .product-detail-options-group {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .product-detail-option {
        min-width: auto;
    }
    
    .product-detail-color-options {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .product-detail-color-option {
        width: 40px;
        height: 40px;
    }
    
    .product-detail-color-option.active .color-checkmark {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .product-modal {
        width: 100vw;
        height: 100vh;
    }
    
    .product-detail-left {
        height: auto;
        min-height: 200px;
        padding: 0;
    }
    
    .product-detail-right {
        padding: 0 0 1rem 0;
    }
    
    .product-detail-main-image-container {
        min-height: 200px;
        border-radius: 10px;
    }
    
    .product-detail-name-rating {
        gap: 0.5rem;
        margin-bottom: 0.125rem;
    }
    
    .product-detail-price-section {
        margin-bottom: 0.125rem;
    }
    
    .product-detail-name {
        font-size: 1.125rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    .product-detail-rating {
        gap: 0.25rem;
    }
    
    .product-detail-options-group {
        margin-bottom: 0.5rem;
    }
    
    .product-detail-stars .star {
        width: 14px;
        height: 14px;
    }
    
    .product-detail-reviews {
        font-size: 0.7rem;
    }
    
    .product-detail-current-price {
        font-size: 1.125rem;
    }
    
    .product-detail-original-price {
        font-size: 0.9rem;
    }
    
    .product-detail-color-options {
        justify-content: flex-start;
        gap: 0.25rem;
    }
    
    .product-detail-color-option {
        width: 35px;
        height: 35px;
    }
    
    .product-detail-color-option.active .color-checkmark {
        width: 14px;
        height: 14px;
    }
    
    .product-detail-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .product-detail-thumbnails {
        gap: 0.2rem;
    }
    
    .product-detail-actions {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .product-detail-add-to-cart {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .product-detail-buy-now {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .product-detail-info {
        padding-bottom: 8rem;
    }
    
    .product-detail-favorite {
        width: 48px;
        padding: 0.75rem;
        flex-shrink: 0;
    }
    
    .product-detail-favorite {
        padding: 0.75rem;
    }
    
    .product-detail-description {
        padding: 0.75rem;
    }
    
    .product-detail-options {
        gap: 0.75rem;
    }
    
    .product-detail-options-group {
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .product-detail-option {
        min-width: auto;
    }
    
    .product-detail-quantity-controls {
        max-width: 120px;
    }
    
    .product-detail-quantity-input {
        width: 60px;
        padding: 0.5rem;
    }
    
    .product-detail-quantity-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Custom Scrollbar Styles for Product Detail Modal */
.product-detail-right::-webkit-scrollbar {
    width: 6px;
}

.product-detail-right::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.product-detail-right::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.product-detail-right::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure modal content is properly scrollable */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Related Products Styles */
.related-products-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.related-products-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.related-products-grid {
    display: flex;
    gap: 0.5rem;
    max-height: 120px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 1rem 0.5rem 1rem;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 0;
    width: 100%;
    box-sizing: border-box;
}

.related-products-grid::after {
    content: '';
    min-width: 1rem;
    flex-shrink: 0;
}

.related-products-grid::-webkit-scrollbar {
    height: 4px;
}

.related-products-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.related-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.related-products-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.related-product-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    flex-shrink: 0;
    margin-right: 0.5rem;
    z-index: 1;
}

.related-product-card:last-child {
    margin-right: 0;
}

.related-product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
    background: white;
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease;
    max-width: 100%;
    max-height: 100%;
}

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

.related-product-sale-badge {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    background: #ef4444;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 2;
}

.related-product-favorite {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    z-index: 2;
}

.related-product-favorite:hover {
    background: white;
    color: #ef4444;
    transform: scale(1.1);
}

.related-product-favorite.active {
    background: #ef4444;
    color: white;
}

.related-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

.related-product-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.related-product-rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.related-product-stars {
    display: flex;
    gap: 1px;
}

.related-product-stars .star {
    width: 8px;
    height: 8px;
    fill: #fbbf24;
    color: #fbbf24;
}

.related-product-stars .star.empty {
    fill: #e5e7eb;
    color: #e5e7eb;
}

.related-product-reviews {
    font-size: 0.6rem;
    color: #9ca3af;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.related-product-current-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1f2937;
}

.related-product-original-price {
    font-size: 0.6rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.related-product-add-to-cart {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-top: 0.2rem;
}

.related-product-add-to-cart:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.related-product-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Custom scrollbar for related products grid */
.related-products-grid::-webkit-scrollbar {
    width: 4px;
}

.related-products-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.related-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.related-products-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design for Related Products */
@media (max-width: 1024px) {
    .related-products-grid {
        gap: 0.4rem;
        max-height: 100px;
        padding: 0.4rem 0.75rem 0.4rem 0.75rem;
        margin: 0;
    }
    
    .related-products-grid::after {
        min-width: 0.75rem;
    }
    
    .related-product-card {
        min-width: 90px;
        padding: 0.4rem;
        margin-right: 0.4rem;
    }
    
    .related-product-image {
        height: 50px;
        background: #f8fafc;
    }
    
    .related-product-name {
        font-size: 0.6rem;
    }
    
    .related-product-current-price {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .related-products-section {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .related-products-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .related-products-grid {
        gap: 0.3rem;
        max-height: 80px;
        padding: 0.3rem 0.5rem 0.3rem 0.5rem;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .related-products-grid::after {
        min-width: 0.5rem;
    }
    
    .related-product-card {
        min-width: 80px;
        padding: 0.3rem;
        margin-right: 0.3rem;
        touch-action: manipulation;
    }
    
    .related-product-image {
        height: 40px;
        margin-bottom: 0.3rem;
        background: #f8fafc;
    }
    
    .related-product-name {
        font-size: 0.55rem;
        -webkit-line-clamp: 1;
    }
    
    .related-product-stars .star {
        width: 6px;
        height: 6px;
    }
    
    .related-product-reviews {
        font-size: 0.5rem;
    }
    
    .related-product-current-price {
        font-size: 0.6rem;
    }
    
    .related-product-add-to-cart {
        padding: 0.2rem 0.3rem;
        font-size: 0.55rem;
        min-height: 32px;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .related-products-title {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .related-products-grid {
        gap: 0.25rem;
        max-height: 70px;
        padding: 0.25rem 0.4rem 0.25rem 0.4rem;
        margin: 0;
    }
    
    .related-products-grid::after {
        min-width: 0.4rem;
    }
    
    .related-product-card {
        min-width: 70px;
        padding: 0.25rem;
        margin-right: 0.25rem;
    }
    
    .related-product-image {
        height: 35px;
        margin-bottom: 0.2rem;
        background: #f8fafc;
    }
    
    .related-product-name {
        font-size: 0.5rem;
        -webkit-line-clamp: 1;
    }
    
    .related-product-add-to-cart {
        padding: 0.15rem 0.25rem;
        font-size: 0.5rem;
    }
    
    .related-product-favorite {
        width: 14px;
        height: 14px;
    }
    
    .related-product-sale-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.2rem;
    }
    
    .related-product-rating {
        display: none;
    }
    
    .related-product-price {
        gap: 0.1rem;
    }
    
    .related-product-current-price {
        font-size: 0.55rem;
    }
    
    .related-product-original-price {
        font-size: 0.5rem;
    }
}

/* RTL Support for Related Products */
[dir="rtl"] .related-product-favorite {
    right: auto;
    left: 0.5rem;
}

[dir="rtl"] .related-product-sale-badge {
    left: auto;
    right: 0.5rem;
}

[dir="rtl"] .related-product-price {
    flex-direction: row-reverse;
}

[dir="rtl"] .related-product-rating {
    flex-direction: row-reverse;
}

/* Recently Viewed Products Styles */
.recently-viewed-section {
    margin-top: 2rem;
    padding: 2rem 0;
    background: #f8fafc;
    border-radius: 16px;
    margin: 2rem 0;
}

.recently-viewed-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.recently-viewed-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.recently-viewed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.recently-viewed-image {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.recently-viewed-sale-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.recently-viewed-favorite {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    z-index: 2;
}

.recently-viewed-favorite:hover {
    background: white;
    color: #ef4444;
    transform: scale(1.1);
}

.recently-viewed-favorite.active {
    background: #ef4444;
    color: white;
}

.recently-viewed-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recently-viewed-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recently-viewed-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recently-viewed-current-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.recently-viewed-original-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Responsive Design for Recently Viewed */
@media (max-width: 768px) {
    .recently-viewed-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }
    
    .recently-viewed-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .recently-viewed-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .recently-viewed-card {
        padding: 0.75rem;
    }
    
    .recently-viewed-image {
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .recently-viewed-name {
        font-size: 0.8rem;
    }
    
    .recently-viewed-current-price {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .recently-viewed-image {
        height: 80px;
    }
    
    .recently-viewed-card {
        padding: 0.5rem;
    }
    
    .recently-viewed-name {
        font-size: 0.75rem;
    }
    
    .recently-viewed-favorite {
        width: 24px;
        height: 24px;
    }
    
    .recently-viewed-sale-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* RTL Support for Recently Viewed */
[dir="rtl"] .recently-viewed-favorite {
    right: auto;
    left: 0.5rem;
}

[dir="rtl"] .recently-viewed-sale-badge {
    left: auto;
    right: 0.5rem;
}

[dir="rtl"] .recently-viewed-price {
    flex-direction: row-reverse;
}

/* Checkout Page Styles */
.checkout-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.checkout-page.active {
    display: block;
}

.checkout-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.checkout-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.checkout-back-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.checkout-page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.checkout-page-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem 0;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form-group.full-width {
    grid-column: 1 / -1;
}

.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: border-color 0.2s;
}

.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
    outline: none;
    border-color: #a4c5ba;
    box-shadow: 0 0 0 3px rgba(164, 197, 186, 0.1);
}

.checkout-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method label {
    display: block;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #a4c5ba;
    background: #f0f9ff;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 0.5rem;
    color: #6b7280;
}

.payment-method input[type="radio"]:checked + label .payment-method-icon {
    background: #a4c5ba;
    color: white;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-method-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.payment-method-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 2rem;
}

.checkout-order-summary {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.checkout-order-summary h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

#checkout-order-items {
    margin-bottom: 1rem;
}

.checkout-order-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.checkout-order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-order-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-order-item-name {
    font-weight: 500;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.checkout-order-item-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.checkout-order-item-price {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.checkout-order-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.checkout-total-row.total {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.checkout-actions {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-place-order-btn {
    width: 100%;
    background: #a4c5ba;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkout-place-order-btn:hover {
    background: #8fb3a3;
    transform: translateY(-1px);
}

.checkout-place-order-btn:active {
    transform: translateY(0);
}

.checkout-security-note {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Order Confirmation Modal */
.order-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.order-confirmation-modal.active {
    display: flex;
}

.order-confirmation-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.order-confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.order-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: white;
}

.order-confirmation-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.order-confirmation-header p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

#order-confirmation-details {
    margin-bottom: 2rem;
}

.order-confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-confirmation-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}

.order-confirmation-btn.primary {
    background: #a4c5ba;
    color: white;
}

.order-confirmation-btn.primary:hover {
    background: #8fb3a3;
}

.order-confirmation-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.order-confirmation-btn.secondary:hover {
    background: #e5e7eb;
}

/* Confirmation Modal Styles */
.confirmation-section {
    margin-bottom: 1.5rem;
}

.confirmation-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.confirmation-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confirmation-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.confirmation-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.confirmation-value {
    color: #111827;
    font-size: 0.875rem;
}

.confirmation-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirmation-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.confirmation-item-image {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.confirmation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirmation-item-details {
    flex: 1;
    min-width: 0;
}

.confirmation-item-name {
    font-weight: 500;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.confirmation-item-price,
.confirmation-item-quantity,
.confirmation-item-color {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.125rem;
}

.confirmation-item-total {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    align-self: flex-start;
}

.confirmation-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.confirmation-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.confirmation-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* RTL Support for Checkout */
[dir="rtl"] .checkout-page-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkout-back-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkout-form-group input,
[dir="rtl"] .checkout-form-group select,
[dir="rtl"] .checkout-form-group textarea {
    text-align: right;
}

[dir="rtl"] .payment-method-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkout-order-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkout-total-row {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .checkout-page-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-page-container {
        padding: 1rem;
    }
    
    .checkout-page-header h1 {
        font-size: 1.5rem;
    }
    
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-section {
        padding: 1rem;
    }
    
    .checkout-order-summary,
    .checkout-actions {
        padding: 1rem;
    }
    
    .order-confirmation-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .checkout-page-container {
        padding: 0.5rem;
    }
    
    .checkout-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .checkout-back-btn {
        align-self: flex-start;
    }
    
    .checkout-section {
        padding: 0.75rem;
    }
    
    .checkout-order-summary,
    .checkout-actions {
        padding: 0.75rem;
    }
    
    .payment-method-content {
        gap: 0.75rem;
    }
    
    .payment-method-icon {
        width: 40px;
        height: 40px;
    }
}

/* Footer Styles */
.footer {
    background: #a4c5ba;
    color: white;
    padding: 1.5rem 0 0.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white !important;
}

.footer-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white !important;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link.facebook:hover {
    background: #8fb3a3;
}

.social-link.instagram:hover {
    background: #eda084;
}

.social-link.whatsapp:hover {
    background: #a4c5ba;
}

.social-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

.contact-item svg {
    color: #8fb3a3;
    flex-shrink: 0;
}

.footer-section p {
    line-height: 1.5;
    color: white !important;
    font-size: 0.8125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
    text-align: center;
    color: white !important;
    font-size: 0.75rem;
}

/* RTL Support for Footer */
[dir="rtl"] .social-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .footer-section p {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .social-link {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .social-link span {
        display: none;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* User Modal Styles */
.user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.user-modal.active {
    display: flex;
}

.user-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.user-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.user-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.user-modal-body {
    padding: 2rem;
}

.user-login-form,
.user-signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

.login-submit-btn,
.signup-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.login-submit-btn:hover,
.signup-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 1rem;
    background: white;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
}

.google-btn {
    color: #374151;
}

.facebook-btn {
    color: #1877f2;
    border-color: #1877f2;
}

.facebook-btn:hover {
    background: #1877f2;
    color: white;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.signup-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.signup-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* RTL Support for User Modal */
[dir="rtl"] .user-modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .form-options {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .signup-link a {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* Mobile Responsive User Modal */
@media (max-width: 768px) {
    .user-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .user-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .user-modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .social-btn {
        padding: 0.875rem 1rem;
    }
    
    .social-btn span {
        font-size: 0.8rem;
    }
}

/* User Button States */
.user-btn.logged-in {
    background: #10b981;
    color: white;
}

.user-btn.logged-in:hover {
    background: #059669;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    max-width: 400px;
}

.message {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message.success {
    border-left-color: #10b981;
    color: #065f46;
}

.message.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.message.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

.message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

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

/* RTL Support for Messages */
[dir="rtl"] .message-container {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .message {
    border-left: none;
    border-right: 4px solid;
    animation: slideInRTL 0.3s ease-out;
}