/* Global Styles */
:root {
    --primary-color: #8a2be2; /* Purple */
    --secondary-color: #ff6b6b;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #f8f9fa;
    --gray-color: #2d2d2d;
    --light-gray: #444;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles */
.header {
    background-color: var(--darker-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-15deg);
}

.navbar ul {
    display: flex;
    gap: 25px;
}

.navbar a {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(33, 32, 33, 0.8);
    width: 465px;
    padding: 15px 0;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(31, 31, 31, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

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

.dropdown-menu li {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-menu li:hover {
    background-color: var(--gray-color);
    padding-left: 25px;
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart {
    position: relative;
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}
/* Mobile Menu Toggle Styles */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--darker-color) 40%, transparent);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('../images/HERO.png') no-repeat center right/cover;
    z-index: -1;
    mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 0;
    animation: fadeIn 1.5s ease;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Categories Section */
/* Improved Categories Section */
.categories {
    padding: 100px 0;
    background-color: var(--darker-color);
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 30%);
    z-index: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.category-card {
    background-color: var(--gray-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.category-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    text-transform: uppercase;
}

.category-info {
    padding: 0 25px 25px;
    position: relative;
    z-index: 2;
}

.category-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.category-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.category-card:hover .category-info h3::after {
    width: 80px;
}

.category-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.quick-shop-btn {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.category-card:hover .quick-shop-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-shop-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.quick-shop-btn i {
    font-size: 1rem;
}

/* Featured Products */
.featured-products {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--gray-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

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

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

.product-category {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
    display: block;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.add-to-cart:hover {
    background-color: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

/* Special Offer Section */
.special-offer {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/offer-bg.jpg') no-repeat center center/cover;
    text-align: center;
    color: white;
    position: relative;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), transparent);
    z-index: 0;
}

.special-offer .container {
    position: relative;
    z-index: 1;
}

.special-offer h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.special-offer h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.special-offer p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.promo-code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    margin: 0 5px;
    border: 1px dashed var(--primary-color);
}

.small {
    font-size: 1rem;
    color: #ccc;
}

/* Newsletter Section */
/* Newsletter Section - Enhanced */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0618 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.newsletter-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #8a2be2, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.newsletter-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #8a2be2;
    font-weight: 600;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.form-groupp {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-groupp:focus-within {
    border-color: #8a2be2;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

#newsletter-email {
    flex: 1;
    padding: 18px 25px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
}

#newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-gradient {
    background: linear-gradient(135deg, #8a2be2, #d946ef);
    color: white;
    border: none;
    padding: 0 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #7b1fa2, #c026d3);
    transform: translateY(-2px);
}

.btn-gradient i {
    transition: transform 0.3s ease;
}

.btn-gradient:hover i {
    transform: translateX(5px);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.newsletter-perks {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.perk-item i {
    color: #8a2be2;
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .newsletter {
        padding: 80px 0;
    }
    
    .newsletter-title {
        font-size: 2.2rem;
    }
    
    .newsletter-subtitle {
        font-size: 1.1rem;
    }
    
    .form-groupp {
        flex-direction: column;
        border-radius: 10px;
    }
    
    #newsletter-email {
        padding: 15px 20px;
        border-radius: 10px 10px 0 0;
    }
    
    .btn-gradient {
        padding: 15px;
        border-radius: 0 0 10px 10px;
        justify-content: center;
    }
    
    .newsletter-perks {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .perk-item {
        font-size: 0.9rem;
    }
}
/* Footer */
.footer {
    background-color: var(--darker-color);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), transparent);
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--gray-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #aaa;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: #aaa;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #7b1fa2;
    transform: translateY(-5px);
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Testimonials Section - RTL */
.testimonials {
    padding: 100px 0;
    background-color: var(--darker-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Changed from left to right */
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 30%); /* Changed from 80% to 20% */
    z-index: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.rating {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row-reverse; /* This is key for RTL */
    justify-content: flex-end; /* Aligns stars to the right */
    unicode-bidi: bidi-override; /* Ensures proper direction */
}


.rating i:not(:first-child) { /* Changed from :not(:last-child) to :not(:first-child) */
    margin-left: 5px; /* Changed from margin-right to margin-left */
    margin-right: 0;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
    color: #ddd;
    line-height: 1.7;
    position: relative;
    padding-right: 20px; /* Changed from padding-left to padding-right */
    padding-left: 0;
}

.testimonial-card p::before {
    content: '"';
    position: absolute;
    right: 0; /* Changed from left to right */
    top: -10px;
    font-size: 3rem;
    color: rgba(138, 43, 226, 0.3);
    font-family: serif;
    line-height: 1;
}

.customer {
    display: flex;
    flex-direction: column;
}

.customer strong {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.customer span {
    color: #aaa;
    font-size: 0.9rem;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonials {
        padding: 80px 0;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card p {
        font-size: 0.95rem;
    }
}
/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--gray-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-top: none;
    margin-top: -5px;
}

.search-box.expanded .search-suggestions {
    display: block;
    animation: fadeIn 0.3s ease;
}

.suggestion {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    color: #ddd;
}

.suggestion:last-child {
    border-bottom: none;
}

.suggestion:hover {
    background-color: rgba(138, 43, 226, 0.1);
    color: white;
    padding-left: 25px;
}

.suggestion i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.suggestion .highlight {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-suggestions {
        border-radius: 0 0 8px 8px;
    }
    
    .suggestion {
        padding: 10px 15px;
    }
    
    .suggestion:hover {
        padding-left: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* RTL Search Suggestions */
[dir="rtl"] .search-suggestions {
    right: 0;
    left: auto;
    text-align: right;
    border-radius: 0 0 10px 10px;
}

[dir="rtl"] .search-box.expanded input {
    padding: 0 15px 0 40px; /* Reverse padding for RTL */
    transform: translateX(-10px); /* Reverse initial offset */
}

[dir="rtl"] .search-box .fa-search {
    right: auto;
    left: 15px; /* Position icon on left for RTL */
    transform: translateY(-50%);
}

[dir="rtl"] .search-box.expanded .fa-search {
    left: 10px; /* Adjusted position when expanded */
    right: auto;
}

[dir="rtl"] .suggestion {
    padding: 12px 20px 12px 15px; /* Adjust padding for RTL */
    flex-direction: row-reverse; /* Reverse icon/text order */
}

[dir="rtl"] .suggestion:hover {
    padding-right: 25px; /* Hover effect on right side */
    padding-left: 20px;
}

[dir="rtl"] .suggestion i {
    margin-right: 0;
    margin-left: 12px; /* Icon margin on opposite side */
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .search-box input {
        padding: 0 15px 0 40px; /* Reverse padding for mobile RTL */
    }
    
    [dir="rtl"] .search-box .fa-search {
        left: 15px;
        right: auto;
    }
    
    [dir="rtl"] .suggestion:hover {
        padding-right: 20px;
    }
}



/* About Page Styles */
.about-section {
    padding: 6rem 0;
    background-color: var(--dark-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #ccc;
    line-height: 1.7;
}

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

.stat-item {
    background-color: var(--gray-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
}

.team-section {
    margin-top: 4rem;
}

.sub-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.team-member {
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(138, 43, 226, 0.3);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.team-member p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
    background-color: var(--dark-color);
}

.contact-container {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    flex: 1;
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.info-item p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-media {
    margin-top: 3rem;
}

.social-media h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    color: white;
}

.contact-form {
    flex: 1;
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-groupp {
    margin-bottom: 1.5rem;
}

.form-groupp input,
.form-groupp select,
.form-groupp textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--light-gray);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-groupp input:focus,
.form-groupp select:focus,
.form-groupp textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.form-groupp select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 1rem;
    padding-right: 15px;
}

.form-groupp textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Size Modal Styles - RTL Optimized */
.size-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0; /* RTL adjustment */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--primary-color);
    text-align: right; /* RTL adjustment */
}

.modal-content h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px; /* RTL adjustment */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 1.5rem 0;
}

.size-btn {
    padding: 12px;
    border: 1px solid var(--light-gray);
    background: transparent;
    color: var(--light-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.size-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.size-btn.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.confirm-size {
    width: 100%;
    margin-top: 1rem;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-size:hover:not(:disabled) {
    background-color: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.confirm-size:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notification Styles - RTL */
.notification {
    position: fixed;
    bottom: 20px;
    right: 50%; /* RTL adjustment */
    transform: translateX(50%); /* RTL adjustment */
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    direction: rtl; /* RTL adjustment */
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.show {
    opacity: 1;
}

.notification i {
    font-size: 1.2rem;
    margin-left: 8px; /* RTL adjustment */
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .size-btn {
        padding: 10px;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.size-modal[style*="display: flex"] .modal-content {
    animation: modalFadeIn 0.3s ease-out forwards;
}

/* Heart beat animation for favorites */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.heart-beat {
    animation: heartBeat 0.4s ease;
}

.quantity-selector {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

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

.quantity-btn {
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--primary-dark);
}

#product-quantity {
  width: 50px;
  height: 30px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: var(--light-gray);
  color: var(--light-color);
}