html {
    scroll-behavior: smooth;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
    --primary-black: #0f0f0f;
    --coffee-deep: #231912; /* كافيه محروق */
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --text-silver: #d1d1d1;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--coffee-deep);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://www.transparenttextures.com/patterns/dark-matter.png');
    margin: 0;
    padding: 20px;
    color: var(--text-silver);
}

/* Header & Logo */
.main-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 8px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.divider {
    width: 100px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 10px auto;
}

.tagline {
    font-size: 1.2rem;
    color: var(--gold-primary);
    opacity: 0.8;
}

/* Product Cards */
.products-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #1a1a1a;
    width: 340px;
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.product-img {
    width: 100%;
    line-height: 0; /* لإلغاء أي فراغ تحت الصورة */
    position: relative;
}

.product-img img {
    width: 100%;
    height: auto;
    display: block; /* يمنع فراغ الصورة في الأسفل */
}

.badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--gold-gradient);
    color: #000;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h2 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 1.6rem;
}

.specs {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 1.8rem;
    color: var(--gold-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.buy-btn {
    text-decoration: none;
    display: block;
    background: var(--gold-gradient);
    color: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.buy-btn:hover {
    letter-spacing: 1px;
    filter: brightness(1.2);
}

/* Order Page Styling */
.container {
    background: #141414;
    width: 95%; /* مهم للموبايل عشان ميبقاش لازق في الشاشة */
    max-width: 550px;
    margin: 20px auto; /* قللت المارجن شوية للموبايل */
    padding: 25px; /* قللت البادنج عشان نوفر مساحة */
    border-radius: 20px; /* خليت الزوايا ألطف */
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    box-sizing: border-box; /* أهم خاصية لضبط المقاسات */
}

/* خاصية سحرية لكل العناصر عشان مفيش حاجة تخرج بره */
* {
    box-sizing: border-box;
}

input, select, textarea {
    width: 100%; /* هيفضل جوه الـ Container بالظبط */
    padding: 12px;
    margin-bottom: 15px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-family: 'Cairo';
    display: block; /* تأكيد وضعية العنصر */
    appearance: none; /* لإزالة الأشكال الافتراضية في الموبايل */
}

input:focus, select:focus, textarea:focus {
    border-color: #d4af37; /* لون الذهب الصريح */
    outline: none;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.row { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; /* لو الموبايل صغير اوي العنصرين ينزلوا تحت بعض بدل ما يخرجوا بره */
}

.form-group { 
    flex: 1; 
    min-width: 120px; /* أقل عرض مسموح به قبل ما ينزل سطر جديد */
}

/* تعديل العداد */
.counter {
    display: flex;
    background: #1f1f1f;
    border-radius: 10px;
    border: 1px solid #333;
    height: 48px; /* توحيد الطول مع باقي الحقول */
    overflow: hidden;
}

.counter button {
    flex: 1;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.counter button:hover {
    background: rgba(212, 175, 55, 0.1);
}

.counter input {
    flex: 1;
    margin-bottom: 0; /* شيلنا المارجن عشان ميبوظش شكل العداد */
    text-align: center;
    border: none;
    background: transparent;
}

/* تعديل للموبايلات الصغيرة جداً */
@media (max-width: 400px) {
    .row {
        flex-direction: column; /* يخلي كل حاجة تحت بعض في الشاشات الضيقة جداً */
    }
    .container {
        padding: 15px;
    }
}

.counter button {
    flex: 1;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.counter input { margin-bottom: 0; text-align: center; border: none; }

.price-summary {
    background: rgba(35, 25, 18, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    border: 1px dotted var(--gold-primary);
}

.total-price {
    font-size: 1.5rem;
    color: var(--gold-primary);
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 800;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .row { flex-direction: column; gap: 0; }
}
#productTitle{
    text-align: center;
    color:  var(--gold-primary);
    font-weight: bold;
}
P{
    font-size: 18px;
    color:  var(--gold-primary);
    font-weight: bold;
    text-align: center;
}
/* تصميم النافبار الثابت */
.navbar {
    background: #000;
    border-bottom: 1px solid #d4af37;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.logo-small { color: #fff; font-weight: bold; font-size: 24px;  cursor: pointer;}
.logo-small span { color: #d4af37; }

/* الروابط في الكمبيوتر */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover { color: #d4af37; }

/* زر الثلاث شرط */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-btn .bar {
    width: 25px;
    height: 3px;
    background: #d4af37;
    border-radius: 5px;
}

/* إعدادات الموبايل (أهم جزء) */
@media (max-width: 768px) {
    .menu-btn { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid #d4af37;
    }

    .nav-links.active { display: flex; }

    .nav-links li { margin: 15px 0; }

    /* ضبط المنتجات تظهر فوق بعض في الموبايل */
    .products-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .product-card {
        width: 95% !important; /* تأخذ معظم عرض الشاشة */
        max-width: 350px;
    }
}

/* تحسين الصور عشان ما تخرجش برا الكارت */
.product-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}
/* تنسيق صفحة تواصل معنا */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    resize: none;
}






/* للموبايل */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
}
/* تنسيق الفوتر */
.main-footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #d4af37;
    margin-top: 50px; /* مسافة بين الفوتر ومحتوى الصفحة */
    width: 100%;
    box-sizing: border-box;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-content .designer {
    font-size: 13px;
    color: #888;
}

.footer-content .designer span {
    color: #d4af37; /* اسمك باللون الذهبي */
    font-weight: bold;
    text-transform: uppercase;
}

/* للموبايل */
@media (max-width: 480px) {
    .footer-content p {
        font-size: 12px;
    }
}
.main-footer {
    background: #000;
    color: #fff;
    padding: 30px 10px 15px;
    border-top: 1px solid #d4af37;
    text-align: center;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.3);
}




.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #bbb;
}

.designer-tag {
    font-size: 12px !important;
    letter-spacing: 1px;
}

.designer-tag span {
    color: #d4af37;
    font-weight: bold;
    text-transform: uppercase;
}

/* لضمان تناسق الموبايل */
@media (max-width: 480px) {
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .footer-info p { font-size: 12px; }
}
.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.price-tag {
    color: #d4af37;
    font-size: 22px;
    font-weight: bold;
}

/* تحسين شكل الفوتر ليكون بجوار بعضه في الكمبيوتر وتحت بعض في الموبايل */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
/* تصميم الواجهة الرئيسية */
.hero-section {
    height: 100vh; /* تأخذ طول الشاشة بالكامل */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    padding: 20px;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6rem); /* حجم خط مرن للموبايل والكمبيوتر */
    color: #d4af37;
    margin: 0;
    font-weight: 900;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* انيميشن ظهور الاسم */
.animate-title {
    animation: fadeInDown 1.5s ease-out;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.title-underline {
    width: 100px;
    height: 3px;
    background: #d4af37;
    margin: 20px auto;
    animation: growWidth 2s ease-in-out;
}

@keyframes growWidth {
    0% { width: 0; }
    100% { width: 100px; }
}

/* تنسيق الواجهة الرئيسية مع صورة خلفية */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 1. ضع رابط صورتك هنا بدل 'hero-bg.jpg' */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),;
    background-size: cover; /* تجعل الصورة تغطي الشاشة بالكامل */
    background-position: center; /* توسيط الصورة */
    background-attachment: fixed; /* تأثير Parallax (الصورة ثابتة أثناء النزول) */
    padding: 20px;
    position:relative;
    overflow: hidden;
}

/* تأثير تعتيم إضافي لضمان وضوح الكلام */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

/* تأكد أن المحتوى فوق التعتيم */
.hero-content {
    position: relative;
    z-index: 2;
}

/* تحسين شكل العنوان فوق الصورة */
.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    color: #d4af37;
    margin: 0;
    font-weight: 900;
    letter-spacing: 5px;
    /* ظل خفيف للكلام لزيادة الوضوح فوق الصورة */
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8); 
}
/* Why Us Page Styling */
.why-us-container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-mini {
    text-align: center;
    margin-bottom: 50px;
}

.hero-mini h1 {
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-mini p {
    color: #eee;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.feature-card i {
    font-size: 40px;
    color: #d4af37;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

.thanks-note {
    text-align: center;
    margin-top: 60px;
    color: #d4af37;
    font-size: 1.5rem;
    border-top: 1px solid #333;
    padding-top: 30px;
}

/* للموبايل */
@media (max-width: 600px) {
    .hero-mini h1 { font-size: 1.8rem; }
    .feature-card { padding: 20px; }
}




/* تنسيق صفحة المنتجات */
.page-header {
    text-align: center;
    padding: 60px 20px;
    background: #000;
}

.page-header h1 {
    color: #d4af37;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.products-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* لضمان عدم تشوه الصورة */
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4af37;
    color: #000;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.buy-now-btn {
    display: block;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.buy-now-btn:hover {
    background: #fff;
}

/* للموبايل */
@media (max-width: 768px) {
    .products-grid-page {
        grid-template-columns: 1fr; /* عرض منتج واحد في السطر */
        padding: 20px;
    }
}


