/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* Color Palette (Inspired by your logo) */
:root {
    --primary-red: #E50914; /* Deep, vibrant red from your logo */
    --dark-background: #111111; /* Almost black, dark background */
    --darker-background: #0A0A0A; /* Even darker for some sections */
    --light-text: #F0F0F0; /* Off-white for general text */
    --subtle-text: #AAAAAA; /* Slightly darker grey for less prominent text */
    --accent-dark: #222222; /* Dark shade for cards/boxes */
    --border-color: rgba(255, 255, 255, 0.08); /* Subtle white border */
    --shadow-color: rgba(0, 0, 0, 0.7);
    --red-glow: rgba(229, 9, 20, 0.6); /* Red glow for elements */
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--dark-background);
    color: var(--light-text);
    line-height: 1.7; /* Slightly increased line height for readability */
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    -webkit-font-smoothing: antialiased; /* Better font rendering */
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 2. منع سحب الصور وظهور مؤشر السحب */	
img {
    -webkit-user-drag: none;	/* WebKit */
    user-drag: none;	/* قياسي */
    pointer-events: none;	/* يمنع النقر والسحب تماماً */
}

.container {
    max-width: 1280px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 25px; /* More padding on sides */
}

/* Section Common Styling */
section {
    padding: 120px 0; /* More consistent vertical padding for all sections */
    position: relative;
    overflow: hidden; /* For any overflowing elements like background patterns */
}

section h2 {
    font-size: 3.5em; /* Larger section headings */
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: inline-block;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800; /* Extra bold */
    width: 100%;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px; /* Lower underline */
    transform: translateX(-50%);
    width: 100px; /* Wider underline */
    height: 6px; /* Thicker underline */
    background-color: var(--primary-red);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--red-glow);
}

/* Buttons Common Styles */
.btn {
    background-color: var(--primary-red);
    color: var(--light-text);
    border: none;
    padding: 16px 40px; /* Larger buttons */
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15em; /* Slightly larger font */
    font-weight: 700; /* Bolder */
    letter-spacing: 0.8px;
    transition: all 0.3s ease; /* Smooth transition for all properties */
    box-shadow: 0 8px 25px var(--red-glow); /* Stronger shadow */
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase; /* Uppercase button text */
}

.btn:hover {
    background-color: #CC0000; /* Darker red on hover */
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 12px 35px var(--red-glow); /* More pronounced shadow */
}

/* Navbar */
.navbar {
    background-color: #1a1b26; /* Darker header from image (keeping this specific color as it was present twice) */
    padding: 15px 0; /* Slightly less padding than the first .navbar definition, will apply */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; /* Make navbar sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 2em; /* Even larger logo text */
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.navbar .logo img {
    margin-right: 15px;
    width: 50px; /* Larger logo image */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px var(--red-glow); /* Clearer glow */
    animation: pulseGlow 2s infinite alternate; /* Subtle pulsing glow */
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 12px var(--red-glow); }
    to { box-shadow: 0 0 20px rgba(229, 9, 20, 0.8); }
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between nav items and login button */
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px; /* More space between nav links */
}

.navbar nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0; /* More padding for hover area */
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%; /* Center the underline */
    transform: translateX(-50%);
    bottom: -8px; /* Lower it slightly */
    width: 0;
    height: 4px; /* Thicker underline */
    background-color: var(--primary-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--primary-red);
    transform: translateY(-2px); /* Slight lift on hover/active */
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    width: 100%;
}

/* Buttons Common Styles (Unified to .btn class where possible, but kept specific ones for clarity) */
.get-started-btn, .view-details-btn, .send-message-btn, .login-btn {
    background-color: var(--primary-red);	
    color: var(--light-text);
    border: none;
    padding: 15px 35px;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--red-glow); /* Adjusted to theme glow */
    text-decoration: none; /* For anchor buttons */
    display: inline-block; /* For padding and alignment */
}

.get-started-btn:hover, .view-details-btn:hover, .send-message-btn:hover, .login-btn:hover {
    background-color: #e60000; /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--red-glow); /* Adjusted to theme glow */
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-background);
    color: var(--light-text);
    text-align: center;
    min-height: calc(100vh - 90px); /* Adjust based on navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px; /* Offset for sticky navbar */
    box-sizing: border-box;
}

.hero-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    gap: 70px; /* More space between text and image */
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 650px;
    animation: fadeInLeft 1.2s ease-out forwards; /* Slower, smoother animation */
    opacity: 0;
    transform: translateX(-80px); /* Start further left */
}

.hero-content h1 {
    font-size: 4.8em; /* Very large heading for impact */
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--light-text); /* White text for hero H1 */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6); /* More pronounced shadow */
}

.hero-content p {
    font-size: 1.3em; /* Larger paragraph */
    margin-bottom: 50px;
    color: var(--subtle-text);
    max-width: 550px; /* Constrain width for better readability */
}

.hero-image {
    flex: 0.9; /* Give image a bit more space */
    min-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1.2s ease-out forwards; /* Slower, smoother animation */
    opacity: 0;
    transform: translateX(80px); /* Start further right */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px; /* More rounded corners */
    filter: drop-shadow(0 0 60px var(--red-glow)); /* Stronger, wider red glow */
    animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); } /* Larger float distance */
    100% { transform: translateY(0px); }
}
/* About Us Section - Custom design based on Image 2 */
.about-us-section {
    background-color: var(--accent-dark); /* Different dark background for this section */
    padding: 120px 0;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 40px; /* More gap between cards */
    margin-top: 60px;
}

.about-card {
    background-color: var(--darker-background); /* Darker background for cards */
    padding: 35px; /* More padding */
    border-radius: 18px; /* More rounded corners */
    box-shadow: 0 10px 30px var(--shadow-color); /* Stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px; /* Ensure cards have some height */
    position: relative;
    overflow: hidden; /* For pseudo-element background */
}

.about-card::before { /* Subtle background glow/overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(229, 9, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 18px 45px var(--shadow-color);
    background-color: #151515; /* Slightly lighter on hover */
}

.about-card img {
    width: 110px; /* Larger icon size */
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--red-glow)); /* Stronger glow */
}

.about-card h3 {
    font-size: 2em; /* Larger card titles */
    color: var(--primary-red);
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-card p {
    font-size: 1.05em;
    color: var(--subtle-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.about-card .btn { /* For view details button inside card */
    padding: 10px 25px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: none; /* No strong shadow for inner buttons */
    background-color: var(--primary-red);
    border-radius: 30px;
}

.about-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--red-glow);
    background-color: #CC0000;
}
/* Features Section */
.features-section {
    background-color: var(--dark-background); /* Match body background */
    padding: 120px 0;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
    margin-top: 60px;
}
/* صفّين (2 أعمدة) عند بلوغ 1024px */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* عمود واحد عند أقل من 600px */
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
.feature-card {
    background-color: var(--accent-dark); /* Different background for card */
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before { /* Similar subtle background glow/overlay */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 18px 45px var(--shadow-color);
    background-color: #151515;
}

.feature-card i {
    font-size: 4em; /* Larger icons */
    color: var(--primary-red);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--red-glow));
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1); /* Slight icon scale on hover */
}

.feature-card h3 {
    font-size: 2em;
    margin-bottom: 18px;
    color: var(--light-text);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 1.05em;
    color: var(--subtle-text);
}
/* Contact Us Section */
.contact-us-section {
    background-color: var(--accent-dark);
    padding: 120px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.contact-info-block, .contact-details-block {
    background-color: var(--darker-background);
    padding: 45px; /* More padding */
    border-radius: 18px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-block:hover, .contact-details-block:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 15px 40px var(--shadow-color);
}

.contact-info-block p {
    font-size: 1.2em; /* Larger text */
    color: var(--subtle-text);
    margin-bottom: 0;
}

.contact-details-block p {
    margin-bottom: 20px; /* More space between contact lines */
    font-size: 1.2em;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.contact-details-block p:last-child {
    margin-bottom: 0;
}

.contact-details-block p i {
    margin-right: 18px;
    color: var(--primary-red);
    font-size: 1.8em; /* Larger icons */
    width: 30px; /* Fixed width for alignment */
    text-align: center;
    filter: drop-shadow(0 0 8px var(--red-glow));
}

/* Footer */
.footer {
    background-color: var(--darker-background);
    color: var(--subtle-text);
    padding: 35px 0; /* More padding */
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.95em;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--subtle-text);
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-red);
}
/* Responsive Design */
@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 4em;
    }
    .hero-content p {
        font-size: 1.15em;
    }
    section h2 {
        font-size: 3em;
    }
    .feature-card h3, .about-card h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 900px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }
    .navbar nav {
        margin-top: 25px; /* More space below logo */
        width: 100%;
        justify-content: center;
        flex-direction: column; /* Stack nav links and login button */
    }
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
        margin-bottom: 20px; /* Space above login button */
    }
    .navbar nav ul li {
        margin-left: 0;
    }
    .login-btn {
        width: 80%; /* Wider button on smaller screens */
        max-width: 280px;
        margin-left: 0 !important; /* Override inline margin for responsiveness */
    }

    .hero-section {
        padding-top: 120px; /* Adjust padding for changed navbar height */
        min-height: auto;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 50px;
        transform: translateX(0); /* Remove initial animation transform */
        opacity: 1; /* Make visible immediately */
    }
    .hero-image {
        order: -1; /* Move image above text */
        margin-bottom: 40px;
        transform: translateX(0); /* Remove initial animation transform */
        opacity: 1; /* Make visible immediately */
    }
    .hero-image img {
        max-width: 90%;
    }

    section {
        padding: 90px 0;
    }
    section h2 {
        font-size: 2.5em;
        margin-bottom: 60px;
    }

    .about-grid, .feature-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-card, .feature-card, .contact-info-block, .contact-details-block {
        max-width: 450px; /* Constrain card width */
        margin: 0 auto;
        padding: 30px;
    }
    .contact-info-block, .contact-details-block {
        text-align: center;
    }
    .contact-details-block p {
        justify-content: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
    .footer-links a {
        margin: 0 15px;
    }
}

@media (max-width: 550px) {
    .navbar .logo {
        font-size: 1.7em;
    }
    .navbar .logo img {
        width: 40px;
        height: 40px;
    }
    .navbar nav ul {
        gap: 10px 20px;
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn {
        padding: 14px 30px;
        font-size: 1em;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    section h2::after {
        width: 70px;
        height: 4px;
        bottom: -15px;
    }

    .about-card h3, .feature-card h3 {
        font-size: 1.6em;
    }
    .feature-card i {
        font-size: 3.5em;
    }
    .about-card img {
        width: 90px;
        height: 90px;
    }

    .contact-info-block p, .contact-details-block p {
        font-size: 1.05em;
    }
    .contact-details-block p i {
        font-size: 1.6em;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .navbar nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .navbar nav ul li a {
        padding: 5px 0;
    }
    .login-btn {
        width: 90%;
        max-width: none;
    }
}

/* Store Section Styles */
.store-section {
    background-color: var(--dark-background);	
    padding: 120px 0;
    text-align: center;
}

.category-filters {
    width: 100%;	/* يملأ المساحة الأفقية كاملة */
    margin: 0 auto 60px;	/* يوسّط الحاوية ذاتها ضمن العنصر الأب */
    display: flex;
    justify-content: center;	/* يصطفّ كل العنصرات (الأزرار) أفقيّاً في المنتصف */
    align-items: center;	/* يصطفّها عموديّاً في المنتصف إذا ارتفعت الصف */
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--accent-dark);
    color: var(--light-text);
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background-color: var(--primary-red);
    box-shadow: 0 5px 15px var(--red-glow);
    transform: translateY(-3px);
}

.filter-btn.active {
    background-color: var(--primary-red);
    box-shadow: 0 5px 20px var(--red-glow);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* تعديل هنا: لعرض 3 منتجات في الصف الواحد بدلاً من 4 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* زيادة minmax قليلاً للسماح بـ 3 أعمدة */
    gap: 80px 40px;
    align-items: stretch; /* مهم جداً: لجعل عناصر الجريد تتمدد لملء الصف */
    /* قم بتغيير القيمة 350px لـ minmax بناءً على العرض الذي تريده لكل بطاقة لتناسب 3 أعمدة */
    /* إذا كانت الشاشة أوسع من 1050px (3 * 350px)، فستظهر 3 أعمدة. */
}

/* هذا الـ media query سيضمن ظهور 3 أعمدة على الشاشات الكبيرة */
@media (min-width: 1050px) { /* Adjust breakpoint if needed for 3 columns */
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 أعمدة عندما تكون الشاشة أكبر من 1050 بكسل */
    }
}

/* هذا الـ media query سيضمن ظهور 2 أعمدة على الشاشات المتوسطة */
@media (max-width: 1049px) and (min-width: 769px) { 
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 أعمدة عندما تكون الشاشة بين 769 و 1049 بكسل */
    }
}

/* هذا الـ media query سيضمن ظهور عمود واحد على الشاشات الصغيرة */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr; /* عمود واحد على الشاشات الصغيرة */
    }
    .product-card {
        max-width: 350px;
        margin: 0 auto;
    }
}


.product-card {
    background-color: var(--accent-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* تقليل استدارة الزوايا قليلاً */
    padding: 16px; /* تقليل الحشوة الداخلية للبطاقة */
    box-shadow: 0 8px 20px var(--shadow-color); /* تقليل الظل */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 100%; /* تأكد أن البطاقة تأخذ كامل ارتفاع الخلية في الجريد */
}

.product-card:hover {
    transform: translateY(-10px); /* تقليل حركة التحويم */
    box-shadow: 0 15px 35px var(--shadow-color); /* تقليل الظل عند التحويم */
    background-color: #151515;
}

/* 2. ضبط ارتفاع الصورة ووضوحها - تم التعديل لجعلها مربعة */
.product-image-wrapper {
  width: 100%;
  padding-bottom: 40%; /* لجعل الصورة مربعة */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--darker-background);
  border-radius: 8px;
  margin-bottom: 10px; /* إضافة مسافة أسفل الصورة */
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* لملء المساحة والحفاظ على النسبة */
  display: block;
  border-radius: 8px; /* للحفاظ على استدارة زوايا الصورة */
}

.product-features {
    list-style-type: disc;
    margin: 6px 0 10px 0; /* تقليل الهوامش */
    padding-left: 15px; /* تقليل الحشوة */
    color: var(--subtle-text);
    font-size: 0.85em; /* تقليل حجم الخط */
}
.product-features li {
    margin-bottom: 3px; /* تقليل المسافة بين العناصر */
}

/* اخفِ النقاط الإضافية افتراضياً */
.product-features .extra-feature {
    display: none;
}

/* عند وجود الكلاس expanded، أظهرها */
.product-features.expanded .extra-feature {
    display: list-item;
}

/* زر التوسيع */
.toggle-features {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    font-size: 0.8em; /* تقليل حجم الخط */
    padding: 0;
    margin: -4px 0 10px 15px; /* يضعه تحت القائمة وبجانب الهامش الداخلي */
    text-decoration: underline;
}


.product-card h3 {
    font-size: 1.4rem;	
    margin-bottom: 6px;	
    display: flex;	
    flex-wrap: wrap;
    justify-content: center;	
    align-items: baseline;
    gap: 8px;	
}

.product-card h3 .arabic-name {
    font-weight: 700;	
    color: var(--text-color);	
}

.product-card h3 .english-name {
    font-size: 0.9em;	
    color: var(--subtle-text);	
    opacity: 0.8;	
}

.product-card .product-description {
    font-size: 0.9em;	
    color: var(--subtle-text);
    margin-bottom: 12px;
    flex-grow: 1; /* هذه الخاصية تجعل العنصر ينمو ليأخذ المساحة المتبقية */
    display: flex; /* تحويل الوصف إلى فليكس لمزيد من التحكم */
    flex-direction: column; /* لضمان أن النص داخل الوصف يتمدد عمودياً */
    justify-content: flex-start; /* بدء المحتوى من الأعلى */
}

/* ===== معلومات السعر ===== */
.price-info {
    margin-bottom: 12px; /* تم تقليل هذه القيمة في التعديل السابق */
    display: flex; /* تحويل إلى فليكس بوكس */
    flex-direction: row; /* جعل العناصر تظهر في صف واحد */
    align-items: center; /* محاذاة العناصر عمودياً في المنتصف */
    justify-content: center; /* محاذاة العناصر أفقياً في المنتصف */
    gap: 10px; /* إضافة مسافة بين السعرين */
}

.product-original-price {
    font-size: 0.9em; /* تم تقليل حجم الخط في التعديل السابق */
    color: var(--subtle-text);
    text-decoration: line-through;
    margin-bottom: 0; /* إزالة الهامش السفلي لأنهما سيصبحان جنبًا إلى جنب */
}

.product-discount-price {
    font-size: 1.6rem; /* تم تقليل حجم خط السعر بعد الخصم في التعديل السابق */
    color: #39FF14;
    font-weight: 700;
}

.product-discount-badge {
    position: absolute;
    top: 12px; /* تم تقليل المسافة من الأعلى في التعديل السابق */
    left: 12px; /* تم تقليل المسافة من اليسار في التعديل السابق */
    background-color: var(--primary-red);
    color: #fff;
    padding: 3px 6px; /* تم تقليل الحشوة في التعديل السابق */
    border-radius: 3px;
    font-size: 0.7em; /* تم تقليل حجم الخط في التعديل السابق */
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.buy-btn {
    width: 100%;
    padding: 10px 15px; /* تقليل الحشوة */
    font-size: 0.9em; /* تقليل حجم الخط */
    font-weight: 600;
    border-radius: 6px; /* تقليل استدارة الزوايا */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* تقليل المسافة بين الأيقونة والنص */
}

.buy-btn i {
    font-size: 1.1em; /* تقليل حجم الأيقونة */
}

.paypal-btn {
    background-color: #0070BA;
    box-shadow: 0 3px 10px rgba(0, 112, 186, 0.4);
}

.paypal-btn:hover {
    background-color: #005EA6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.6);
}

.purchase-buttons {
  display: flex;
  gap: 0.8rem; /* تقليل الفجوة بين الأزرار */
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem; /* تقليل المسافة من الأعلى */
}
.purchase-buttons .buy-btn,
.purchase-buttons .pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem; /* تقليل الفجوة */
  padding: 0.6rem 1.2rem; /* تقليل الحشوة */
  font-size: 0.9em; /* تقليل حجم الخط */
  font-weight: 600;
  border: none;
  border-radius: 0.2rem; /* تقليل استدارة الزوايا */
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
  text-decoration: none;
}
.purchase-buttons .buy-btn:hover,
.purchase-buttons .pp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.purchase-buttons .paypal-btn {
  background-color: #FFD140;
  color: #000;
}
.purchase-buttons .visa-master-btn {
  background-color: #0070ba;
  color: #fff;
}
.purchase-buttons .pp-btn {
  background-color: #FFD140;
  color: #000;
}
.purchase-buttons .pp-btn img {
  height: 1.1rem; /* تقليل حجم صورة الباي بال */
}
.purchase-buttons .pp-powered {
  font-size: 0.7em; /* تقليل حجم الخط */
  display: block;
  text-align: center;
  margin-top: 0.2rem;
}

.visa-master-btn {
    background-color: #333333; /* Dark gray for card */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.visa-master-btn:hover {
    background-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments for store section */
/* تم تعديل هذه لتتوافق مع الـ 3 أعمدة */
@media (max-width: 900px) { /* Changed to 900px to match general breakpoint */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين عندما تكون الشاشة أقل من 900 بكسل */
    }
}

@media (max-width: 768px) {
    .category-filters {
        flex-direction: column;
        gap: 10px;
    }
    .filter-btn {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }
    .product-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .product-card {
        max-width: 350px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .product-card h3 {
        font-size: 1.25em; /* تم تعديل الحجم ليتناسب مع التغييرات العامة */
    }
    /* تم إزالة .product-price لأنه لم يعد موجودًا ككلاس منفصل */
    .product-discount-price {
        font-size: 1.6em; /* تم تعديل الحجم ليتناسب مع التغييرات العامة */
    }
    .product-original-price {
        font-size: 0.9em; /* تم تعديل الحجم ليتناسب مع التغييرات العامة */
    }
    .buy-btn {
        font-size: 0.85em; /* تقليل أكثر لحجم الخط */
        padding: 8px 12px; /* تقليل الحشوة */
    }
}

/* Specific Styles for Get Started Button */
.get-started-btn {
    animation: pulseButton 2s infinite ease-in-out; /* تطبيق تأثير النبض */
    /* يمكنك إضافة أي خصائص أخرى لجعل الزر فريدًا هنا */
    font-size: 1.2em; /* ربما أكبر قليلاً من الأزرار الأخرى */
    padding: 18px 45px; /* مسافة داخلية أكبر */
}

.get-started-btn:hover {
    animation: none; /* إيقاف النبض عند التمرير لجعل تأثير الـ hover يبرز */
}

/* Keyframes for the Pulse Animation */
@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px var(--red-glow);
    }
    50% {
        transform: scale(1.03); /* يتمدد قليلاً */
        box-shadow: 0 12px 35px rgba(229, 9, 20, 0.8); /* ظل أكثر قوة */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px var(--red-glow);
    }
}

/* Login Modal Styles */
.modal-overlay {
    display: flex; /* يجعل المحتوى يتوسط الشاشة */
    justify-content: center;
    align-items: center;
    position: fixed; /* يبقى في مكانه حتى عند التمرير */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* خلفية شبه شفافة داكنة */
    z-index: 1000; /* تأكد من ظهوره فوق كل العناصر الأخرى */
    backdrop-filter: blur(5px); /* تأثير ضبابي على الخلفية */
    -webkit-backdrop-filter: blur(5px); /* لدعم المتصفحات */
}

.modal-content {
    background-color: var(--accent-dark); /* خلفية المودال بلون غامق */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); /* ظل كبير وجذاب */
    width: 90%;
    max-width: 450px; /* تحديد أقصى عرض للمودال */
    position: relative;
    text-align: center;
    border: 1px solid var(--border-color); /* حدود خفيفة */
    transform: translateY(-20px); /* يبدأ أعلى قليلاً */
    opacity: 0;
    animation: fadeInModal 0.4s forwards ease-out; /* تأثير الظهور */
}

@keyframes fadeInModal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-red); /* عنوان بلون أحمر بارز */
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--subtle-text);
    font-size: 3em; /* حجم كبير لسهولة النقر */
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1; /* ضبط ارتفاع السطر لتجنب المسافات الزائدة */
}

.close-btn:hover {
    color: var(--primary-red); /* يتغير للون الأحمر عند التمرير */
}

.login-methods {
    display: flex;
    flex-direction: column;
    gap: 25px; /* مسافة بين طرق تسجيل الدخول */
}

/* Input Fields */
.modal-content label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 1em;
    font-weight: 600;
}

.modal-content input[type="email"],
.modal-content input[type="text"] {
    width: calc(100% - 24px); /* عرض كامل مع الأخذ في الاعتبار الـ padding */
    padding: 14px 12px;
    margin-bottom: 20px;
    background-color: var(--darker-background); /* خلفية داكنة للحقول */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1.05em;
    outline: none; /* إزالة الحدود عند التركيز */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input[type="email"]:focus,
.modal-content input[type="text"]:focus {
    border-color: var(--primary-red); /* حدود حمراء عند التركيز */
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.4); /* ظل خفيف أحمر */
}

/* Buttons within Modal */
.modal-content button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red); /* أزرار حمراء */
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #c90812; /* أحمر أغمق عند التمرير */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--red-glow);
}

#otpSection {
    margin-top: 25px; /* مسافة أكبر لقسم الـ OTP */
}

#otpSection input {
    margin-bottom: 15px; /* مسافة أقل بين حقل الـ OTP وزر التحقق */
}

/* Horizontal Rule (Divider) */
.modal-content hr {
    border: none;
    border-top: 1px dashed var(--border-color); /* خط متقطع خفيف */
    margin: 35px 0; /* مسافات علوية وسفلية كافية */
}

/* Discord Login Section */
.discord-login p {
    color: var(--subtle-text);
    font-size: 1em;
    margin-bottom: 15px;
}

.discord-btn {
    display: flex; /* لجعل الأيقونة والنص في نفس السطر */
    align-items: center;
    justify-content: center;
    gap: 12px; /* مسافة بين الأيقونة والنص */
    padding: 15px;
    background-color: #5865F2; /* لون ديسكورد الأزرق */
    color: var(--light-text);
    border: none;
}

/* Custom Notification Styles for SweetAlert2 */
.custom-swal-notification {
  /* حافظ على التصميم العام: ظل، حواف، محاذاة مركزي */
  box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
  border-radius: 8px !important;
  white-space: normal !important; 
  overflow-wrap: break-word !important;
  /* لا تحدد width أو max-width هنا لتجنّب التضارب */
}

@media (min-width: 992px) {
  .custom-swal-notification {
    max-width: 350px !important;
    width: auto !important;
  }
}


/* لا يزال يمكنك استخدام media queries لضبط حجم الخط أو البادينج الدقيق */
@media (max-width: 500px) {
    .custom-swal-notification {
        font-size: 0.95em !important; 
        padding: 10px 18px !important; 
    }
}

/* OTP Inputs Styling */
.otp-inputs-container {
    display: flex;
    justify-content: center; /* لتوسيط الخانات */
    gap: 8px; /* المسافة بين الخانات */
    margin-bottom: 20px;
}

.otp-input {
    width: 45px; /* عرض كل خانة */
    height: 55px; /* ارتفاع كل خانة */
    text-align: center;
    font-size: 1.8em; /* حجم الخط ليكون الرمز واضحاً */
    font-weight: 600;
    background-color: var(--darker-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-red); /* لون الرمز نفسه */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.4);
}

/* إزالة أسهم الزيادة/النقصان من حقول type="number" في بعض المتصفحات */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-input[type=number] {
    -moz-appearance: textfield;
}
/* Responsive adjustments for OTP inputs */
@media (max-width: 500px) {
    .otp-input {
        width: 38px;
        height: 48px;
        font-size: 1.5em;
    }
    .otp-inputs-container {
        gap: 5px;
    }
}

/* Success Modal Styles - تم نقلها إلى هنا وتعديلها للوضع الداكن */
#successModal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); /* زيادة شفافية الخلفية لجعلها أغمق */
    display: none;
    align-items: center; justify-content: center; z-index: 1000;
}
#successModal .modal-content {
    background: #2c2c2c; /* خلفية داكنة للنافذة المنبثقة */
    padding: 24px; border-radius: 8px;
    max-width: 400px; width: 90%; text-align: center; position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* ظل داكن */
}
#successModal .modal-content .close-btn {
    position: absolute; top: 8px; right: 12px; font-size: 24px;
    cursor: pointer;
    color: #bbb; /* لون فاتح لزر الإغلاق */
}
#successModal .modal-content .close-btn:hover {
    color: #fff; /* لون أبيض عند التحويم */
}
#successModal h2 {
    color: #66bb6a; /* أخضر فاتح للعنوان */
    margin-bottom: 12px;
}
#successModal ul {
    list-style: disc inside; text-align: left; margin: 16px 0;
    padding: 0; 
    color: #ddd; /* لون فاتح للنصوص داخل القائمة */
}
#successModal .modal-content p {
    display: block;
    margin: 12px 0;
    font-size: 1rem;
    color: #ddd; /* لون فاتح للنص */
    line-height: 1.5;
}
#successModal .buttons {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
#successModal .buttons button,
#successModal .buttons a {
    padding: 10px 20px; border: none; border-radius: 4px;
    font-size: 1rem; cursor: pointer; text-decoration: none;
    color: #fff; 
    transition: background 0.2s;
}
#successModal .buttons button {
    background: #4caf50;
}
#successModal .buttons button:hover {
    background: #43a047;
}
#successModal .buttons a {
    background: #5865f2;
}
#successModal .buttons a:hover {
    background: #4e5bb5;
}

/* Terms of Service Section */
.terms-of-service-section {
    background-color: var(--accent-dark); /* Dark background for this section */
    padding: 120px 0; /* Consistent padding */
    text-align: center;
}

.terms-of-service-section h2 {
    color: var(--primary-red);
    font-size: 3.5em; /* Consistent heading size */
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    width: 100%;
}

.terms-of-service-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--red-glow);
}

.terms-content {
    background-color: var(--darker-background); /* Darker background for content box */
    padding: 50px 60px; /* More generous padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 15px 40px var(--shadow-color); /* Stronger shadow */
    text-align: right; /* Set text alignment to right for Arabic */
    border: 1px solid var(--border-color);
    margin: 0 auto; /* Center the content box */
    max-width: 900px; /* Limit content width for readability */
}

.terms-content h3 {
    color: var(--light-text);
    font-size: 2.2em; /* Larger subheadings */
    margin-top: 40px; /* Space above each subheading */
    margin-bottom: 20px;
    font-weight: 700;
    text-align: right; /* Ensure subheadings are right-aligned */
}

.terms-content h3:first-of-type {
    margin-top: 0; /* No top margin for the very first subheading */
}

.terms-content p {
    color: var(--subtle-text);
    font-size: 1.1em; /* Clearer paragraph text */
    line-height: 1.8; /* Good line height for readability */
    margin-bottom: 25px; /* Space between paragraphs */
    text-align: right; /* Ensure paragraphs are right-aligned */
}

.terms-content ul {
    list-style-type: disc; /* Use discs for list items */
    color: var(--subtle-text);
    margin-left: 20px; /* Indent lists */
    padding-right: 20px; /* For right-to-left languages, padding on the right */
    text-align: right; /* Ensure list items are right-aligned */
    list-style-position: inside; /* Keep bullets inside the content flow */
    margin-bottom: 25px;
}

.terms-content ul li {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 10px; /* Space between list items */
    text-align: right; /* Ensure list items are right-aligned */
}

/* Responsive Adjustments for Terms of Service */
@media (max-width: 900px) {
    .terms-of-service-section h2 {
        font-size: 3em;
    }
    .terms-content {
        padding: 40px;
    }
    .terms-content h3 {
        font-size: 1.8em;
    }
    .terms-content p, .terms-content ul li {
        font-size: 1em;
    }
}

@media (max-width: 550px) {
    .terms-of-service-section h2 {
        font-size: 2.5em;
        margin-bottom: 60px;
    }
    .terms-content {
        padding: 30px 20px; /* Smaller padding on very small screens */
    }
    .terms-content h3 {
        font-size: 1.6em;
        margin-top: 30px;
    }
    .terms-content p, .terms-content ul li {
        font-size: 0.95em;
    }
    .terms-content ul {
        margin-left: 0;
        padding-right: 15px;
    }
}

/* Privacy Policy Section - Similar styling to Terms of Service for consistency */
.privacy-policy-section {
    background-color: var(--dark-background); /* Different background to break up sections */
    padding: 120px 0;
    text-align: center;
}

.privacy-policy-section h2 {
    color: var(--primary-red);
    font-size: 3.5em;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    width: 100%;
}

.privacy-policy-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--red-glow);
}

/* Refund Policy Section - Similar styling to Terms of Service for consistency */
.refund-policy-section {
    background-color: var(--accent-dark); /* Different background to break up sections */
    padding: 120px 0;
    text-align: center;
}

.refund-policy-section h2 {
    color: var(--primary-red);
    font-size: 3.5em;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    width: 100%;
}

.refund-policy-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--red-glow);
}

/* Common styles for policy content (both Privacy & Refund) */
.policy-content {
    background-color: var(--darker-background); /* Darker background for content box */
    padding: 50px 60px; /* More generous padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 15px 40px var(--shadow-color); /* Stronger shadow */
    text-align: right; /* Set text alignment to right for Arabic */
    border: 1px solid var(--border-color);
    margin: 0 auto; /* Center the content box */
    max-width: 900px; /* Limit content width for readability */
}

.policy-content h3 {
    color: var(--light-text);
    font-size: 2.2em; /* Larger subheadings */
    margin-top: 40px; /* Space above each subheading */
    margin-bottom: 20px;
    font-weight: 700;
    text-align: right; /* Ensure subheadings are right-aligned */
}

.policy-content h3:first-of-type {
    margin-top: 0; /* No top margin for the very first subheading */
}

.policy-content p {
    color: var(--subtle-text);
    font-size: 1.1em; /* Clearer paragraph text */
    line-height: 1.8; /* Good line height for readability */
    margin-bottom: 25px; /* Space between paragraphs */
    text-align: right; /* Ensure paragraphs are right-aligned */
}

.policy-content ul {
    list-style-type: disc; /* Use discs for list items */
    color: var(--subtle-text);
    margin-left: 20px; /* Indent lists */
    padding-right: 20px; /* For right-to-left languages, padding on the right */
    text-align: right; /* Ensure list items are right-aligned */
    list-style-position: inside; /* Keep bullets inside the content flow */
    margin-bottom: 25px;
}

.policy-content ul li {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 10px; /* Space between list items */
    text-align: right; /* Ensure list items are right-aligned */
}

/* Responsive Adjustments for Policy Sections */
@media (max-width: 900px) {
    .privacy-policy-section h2,
    .refund-policy-section h2 {
        font-size: 3em;
    }
    .policy-content {
        padding: 40px;
    }
    .policy-content h3 {
        font-size: 1.8em;
    }
    .policy-content p, .policy-content ul li {
        font-size: 1em;
    }
}

@media (max-width: 550px) {
    .privacy-policy-section h2,
    .refund-policy-section h2 {
        font-size: 2.5em;
        margin-bottom: 60px;
    }
    .policy-content {
        padding: 30px 20px; /* Smaller padding on very small screens */
    }
    .policy-content h3 {
        font-size: 1.6em;
        margin-top: 30px;
    }
    .policy-content p, .policy-content ul li {
        font-size: 0.95em;
    }
    .policy-content ul {
        margin-left: 0;
        padding-right: 15px;
    }
}