@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #f8fafc;
    --bg-glow: #eef2ff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover: #ffffff;
    --border-color: rgba(99, 102, 241, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.1);
    --accent-hover: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 24px;
    --radius-sm: 14px;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 72px;
}

[data-theme="dark"] {
    --bg-base: #020617;
    --bg-glow: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.15);
    --accent-hover: #6366f1;
    --success: #34d399;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Animated Background Glow */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

body::after {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-hover) 0%, transparent 70%);
    animation-delay: -10s;
}

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

[data-theme="light"] body::before, 
[data-theme="light"] body::after {
    display: none;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.25rem;
    }
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.5s ease;
}

.accent-text {
    color: var(--accent);
    transition: color 0.5s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease, color 0.5s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .nav-links {
        display: none !important;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0.75rem;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition: background 0.5s ease, border-color 0.5s ease;
}

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

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem;
    border-radius: 16px;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.bottom-nav-item:active i {
    transform: scale(1.2);
}

.bottom-nav-item.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem; /* Reduced from 6rem */
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    transition: color 0.5s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    color: white !important;
}
.btn-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00a2f2 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    color: white !important;
}
.btn-telegram:hover {
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    color: white !important;
}
.btn-facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
    transform: translateY(-2px);
}

.btn-share {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--border-color);
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}
.btn-share:hover {
    background: var(--accent);
    color: white;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile by default */
    gap: 0.75rem; /* Tighter gap for mobile */
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .grid { gap: 1.5rem; }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.card {
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out forwards;
}

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

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4; height: auto;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--bg-glow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: background 0.5s ease, border-color 0.5s ease;
}

@media (max-width: 768px) {
    .card-img-wrapper {
        aspect-ratio: 3/4; height: auto;
        margin-bottom: 0.5rem;
    }
    .card {
        padding: 0.6rem;
    }
    .card-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    .card-category {
        font-size: 0.45rem;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        white-space: normal;
        display: inline-block;
    }
    .card-header {
        gap: 0.35rem;
        margin-bottom: 0.5rem;
    }
    .card-desc {
        display: none; 
    }
    .card-footer {
        padding-top: 0.5rem;
        gap: 0.5rem;
    }
    .card-ref {
        font-size: 0.6rem;
    }
    .btn-primary {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.65rem !important;
        min-width: unset !important;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    word-break: break-word;
    transition: color 0.5s ease;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    white-space: normal; /* Changed from nowrap to allow wrapping */
    line-height: 1.2;
    display: inline-block;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.5s ease;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.card-ref {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    transition: color 0.5s ease;
}


/* Image count indicator for multi-images */
.img-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Category Page Specifics */
.category-card {
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-glow);
    border: 1px solid var(--border-color);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.thumb-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--bg-glow);
    transition: all 0.2s ease, background 0.5s ease, border-color 0.5s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}


.thumb-item:hover img, .thumb-item.active img {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--accent);
}

.product-info h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    transition: color 0.5s ease;
}

.product-info .price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 2rem;
    display: block;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    background: var(--accent-glow);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    transition: color 0.5s ease;
}


.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.lang-switcher {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    padding: 0.5rem;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: var(--accent);
    color: white;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

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

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

[dir="rtl"] .img-count {
    right: auto;
    left: 10px;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--border-color);
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

@media (max-width: 640px) {
    nav { padding: 1rem; }
    .nav-brand { font-size: 1.25rem; }
    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: clamp(1.25rem, 8vw, 1.75rem) !important; }
    .hero p { font-size: 0.95rem !important; }
    .container { padding: 1.25rem; }
    .product-info h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }
    .price-tag {
        font-size: 1.1rem !important;
    }
    .category-card {
        padding: 1rem !important;
    }
    .category-card .card-title {
        font-size: 0.85rem !important;
    }
    .category-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0.75rem !important;
    }
    .category-icon i {
        width: 20px !important;
        height: 20px !important;
    }
    .how-it-works-section {
        padding: 4rem 0 !important;
    }
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
    .step-card-home {
        padding: 1.5rem 1rem !important;
    }
    .step-card-home h3 {
        font-size: 1rem;
    }
    .step-card-home p {
        font-size: 0.8rem;
    }
}

.how-it-works-section {
    background: rgba(99, 102, 241, 0.03); 
    padding: 8rem 0; 
    margin-top: 4rem; 
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 3rem; 
    margin-bottom: 3rem; 
    letter-spacing: -1px;
}

.step-card-home {
    padding: 3rem 2rem; 
    border-radius: 32px;
}

.step-card-home p {
    color: var(--text-secondary); 
    margin-top: 1rem;
    line-height: 1.6;
}

[dir="rtl"] [data-lucide="arrow-right"],
[dir="rtl"] [data-lucide="chevron-right"],
[dir="rtl"] [data-lucide="arrow-left"],
[dir="rtl"] [data-lucide="chevron-left"] {
    transform: scaleX(-1);
}

[dir="rtl"] .lightbox-prev { left: auto; right: 2rem; }
[dir="rtl"] .lightbox-next { right: auto; left: 2rem; }

@media (max-width: 768px) {
    [dir="rtl"] .lightbox-prev { right: 1rem; }
    [dir="rtl"] .lightbox-next { left: 1rem; }
}

/* Swiper Custom Styles */
.category-swiper {
    width: 100%;
    position: relative;
    overflow: hidden; /* Prevent horizontal page overflow */
    padding: 1rem 0 3rem;
}

@media (min-width: 1025px) {
    .category-swiper {
        padding-left: 60px;
        padding-right: 60px;
    }
}

.category-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-swiper .card {
    width: 100%;
    margin: 10px 0;
}

.swiper-nav-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

.swiper-button-next, .swiper-button-prev {
    pointer-events: auto;
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.swiper-button-prev { margin-left: 8px !important; }
.swiper-button-next { margin-right: 8px !important; }

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.1rem !important;
    font-weight: 900;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent);
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 1024px) {
    .swiper-nav-wrapper {
        display: none !important;
    }
    
    .category-swiper {
        padding-bottom: 3.5rem !important;
    }
}

.category-section {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .category-section {
        margin-bottom: 1.5rem !important;
    }
}

.badge.glass {
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    font-weight: 700;
}

.view-all-btn:hover {
    background: var(--accent) !important;
    color: white !important;
    transform: translateX(5px);
}

/* Top Navigation Styles */
.swiper-nav-wrapper-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swiper-nav-wrapper-top .swiper-button-next,
.swiper-nav-wrapper-top .swiper-button-prev {
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px; /* Matching the overall theme */
    color: var(--accent) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swiper-nav-wrapper-top .swiper-button-next:after,
.swiper-nav-wrapper-top .swiper-button-prev:after {
    font-size: 0.9rem !important;
    font-weight: 900;
}

.swiper-nav-wrapper-top .swiper-button-next:hover,
.swiper-nav-wrapper-top .swiper-button-prev:hover {
    background: var(--accent);
    color: white !important;
}

@media (max-width: 640px) {
    .swiper-nav-wrapper-top .swiper-button-next,
    .swiper-nav-wrapper-top .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Ensure original middle arrows are hidden if any remain */
.swiper-nav-wrapper {
    display: none !important;
}


/* Lucide Swiper Arrows Fix */
.swiper-button-next:after, 
.swiper-button-prev:after {
    display: none !important;
}

.swiper-button-next i, 
.swiper-button-prev i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Let's be very explicit for the user's <> request */
[dir="rtl"] .swiper-nav-wrapper-top {
    flex-direction: row; /* Default RTL flex: 1st child (prev) on right, 2nd child (next) on left */
}
[dir="rtl"] .swiper-button-prev i { transform: rotate(180deg) !important; } /* chevron-left (<) becomes > pointing right */
[dir="rtl"] .swiper-button-next i { transform: rotate(180deg) !important; } /* chevron-right (>) becomes < pointing left */

