/* استيراد الخط العربي */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* المتغيرات العامة */
:root {
    --primary-color: #ff69b4;
    --secondary-color: #9370db;
    --accent-color: #ffb6c1;
    --text-color: #333;
    --light-bg: #fff0f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* التصميم العام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    direction: rtl;
}

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

/* الهيدر */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* الأزرار */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* الصفحة الرئيسية */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-image {
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

/* قسم المميزات */
.features {
    padding: 4rem 0;
    background: var(--white);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--light-bg);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* قسم من نحن */
.about {
    padding: 4rem 0;
    background: var(--light-bg);
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* صفحة المنتجات */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.products {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card.featured {
    border: 3px solid var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
}

.product-image {
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.price {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.price-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.price-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.price-amount .current-price,
.price-amount .sale-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-amount .current-price {
    color: var(--secondary-color);
}

.price-amount .sale-price {
    color: var(--primary-color);
}

.price-amount .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.price-amount .price-value {
    font-size: 1.1rem;
    color: #777;
}

.price-amount .current-price,
.price-amount .sale-price,
.price-amount .original-price,
.price-amount .price-value {
    display: block;
}

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

.product-actions .btn {
    width: 100%;
}

.product-features-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
}

.product-features-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    text-align: right;
}

.product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
}

.product-features li {
    position: relative;
    padding-right: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
}

.btn.btn-secondary {
    background: var(--light-bg);
    color: var(--primary-color);
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.products-message[data-variant="error"] {
    color: #d32f2f;
}

.products-message[data-variant="empty"] {
    color: #666;
}

.products-message[data-variant="warning"] {
    color: #b26a00;
}

.digital-products {
    padding: 4rem 0;
    background: var(--white);
}

.digital-products .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.digital-products .section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.digital-products .section-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.digital-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.digital-products-message[data-variant="error"] {
    color: #d32f2f;
}

.digital-products-message[data-variant="empty"] {
    color: #666;
}

.digital-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.digital-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.digital-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.digital-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.digital-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.digital-icon {
    font-size: 2rem;
}

.digital-label {
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.digital-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.digital-card p {
    color: #555;
    line-height: 1.8;
}

.digital-features-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.digital-features-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    text-align: right;
}

.digital-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.digital-features li {
    position: relative;
    padding-right: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

.digital-features li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
}


.digital-meta {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #666;
}

.digital-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.digital-format {
    font-size: 0.95rem;
    background: rgba(147, 112, 219, 0.1);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.digital-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.digital-actions .btn {
    flex: 1 1 180px;
    text-align: center;
}

/* قسم كيفية الطلب */
.order-info {
    padding: 4rem 0;
    background: var(--light-bg);
}

.order-info h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* صفحة الاتصال */
.contact {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.product-details-header {
    text-align: right;
}

.product-details-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.product-details-header .back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.product-detail {
    padding: 4rem 0;
}

.product-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-detail-message {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--primary-color);
    font-weight: 500;
}

.product-detail-message[data-variant="error"] {
    color: #d32f2f;
}

.product-detail-message[data-variant="warning"] {
    color: #b26a00;
}

.product-detail-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.product-detail-media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

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

.product-detail-badge {
    align-self: flex-start;
    background: var(--light-bg);
    color: var(--secondary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.product-detail-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.product-detail-price {
    align-items: flex-start;
}

.product-detail-price .price-label {
    color: var(--secondary-color);
}

.product-detail-price .price-amount {
    align-items: flex-start;
    text-align: right;
}

.product-detail-price .price-amount .sale-price,
.product-detail-price .price-amount .current-price {
    font-size: 1.6rem;
}

.product-detail-description {
    color: #555;
    line-height: 1.9;
}

.product-detail-description p + p {
    margin-top: 1rem;
}

.product-detail-description ul {
    padding-right: 1.5rem;
    margin: 1.2rem 0;
}

.product-detail-description li {
    margin-bottom: 0.6rem;
}

.product-detail-features {
    background: var(--light-bg);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.product-detail-features h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-detail-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.product-detail-features li {
    position: relative;
    padding-right: 1.8rem;
    color: #555;
    font-size: 1rem;
}

.product-detail-features li::before {
    content: '✔';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.product-detail-actions .btn {
    min-width: 180px;
    text-align: center;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* قسم الأسئلة الشائعة */
.faq {
    padding: 4rem 0;
    background: var(--light-bg);
}

.faq h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* الفوتر */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .products-grid,
    .digital-grid,
    .order-steps,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .digital-actions {
        flex-direction: column;
    }

    .digital-actions .btn {
        width: 100%;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .product-detail-media img {
        max-width: 420px;
        margin: 0 auto;
        display: block;
    }

    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .digital-card {
        padding: 1.5rem;
    }

    .digital-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-detail-card {
        padding: 1.5rem;
    }

    .product-detail-info h2 {
        font-size: 1.6rem;
    }
}
