@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@200..800&display=swap');

html {
    scroll-behavior: smooth; /* تجعل التنقل بين أقسام الموقع انسيابياً جداً عند الضغط */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #faf6f0; 
    color: #332929;
    overflow-x: hidden;
}

/* الهيدر العلوي */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #e2a4a4;
}

header nav .nav-link {
    margin: 0 20px;
    text-decoration: none;
    color: #332929;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

header nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -5px;
    left: 0;
    background-color: #e2a4a4;
    transition: width 0.3s ease;
}

header nav .nav-link:hover::after {
    width: 100%;
}

header nav .nav-link:hover {
    color: #e2a4a4;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.instagram-top-link {
    color: #332929;
    font-size: 20px;
    transition: color 0.3s;
}

.instagram-top-link:hover {
    color: #e2a4a4;
}

.cart-icon {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #e2a4a4;
}

.menu-toggle {
    display: none; /* مخفية في الكمبيوتر وتظهر في الموبايل */
    font-size: 22px;
    cursor: pointer;
    color: #4a3838;
}

/* البنر الرئيسي */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #f5e6e4 100%);
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: #4a3838;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero p {
    font-size: 18px;
    color: #705f5f;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.shop-btn {
    background-color: #4a3838;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.shop-btn:hover {
    background-color: #e2a4a4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 164, 164, 0.3);
}

/* قسم المنتجات */
.products-section {
    padding: 120px 8% 80px 8%;
    background-color: #faf6f0;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #4a3838;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #8c7676;
    margin-bottom: 50px;
    font-style: italic;
}

.products-grid {
    display: flex;
    justify-content: center; /* لتوسيط المنتجات في منتصف الشاشة */
    gap: 40px;
    flex-wrap: wrap; /* لضمان نزولهم تحت بعض في الشاشات الصغيرة للموبايل */
}

.product-card {
    background-color: #ffffff;
    padding: 15px;
    text-align: left;
    transition: transform 0.4s ease;
    width: 100%;
    max-width: 340px; /* يمنع الكرت من التمدد العريض ويحافظ على حجمه الأنيق */
    box-sizing: border-box;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: #fcf9f6;
    height: 350px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e2a4a4;
    color: white;
    font-size: 11px;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-add-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background-color: rgba(74, 56, 56, 0.9);
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: bottom 0.3s ease;
}

.product-card:hover .quick-add-btn {
    bottom: 0;
}

.quick-add-btn:hover {
    background-color: #e2a4a4;
}

.product-info {
    padding-top: 20px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 0 0 5px 0;
    color: #4a3838;
}

.product-notes {
    font-size: 13px;
    color: #8c7676;
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #4a3838;
    margin: 0;
}

/* قسم قصتنا (Our Story) */
.story-section {
    padding: 80px 8%;
    background-color: #fffaf5;
}

.story-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #4a3838;
    margin: 0 0 10px 0;
}

.story-text h3 {
    font-size: 16px;
    color: #e2a4a4;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #615151;
    margin-bottom: 30px;
}

.instagram-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #e2a4a4;
    color: #e2a4a4;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.instagram-btn:hover {
    background-color: #e2a4a4;
    color: white;
}

.story-image {
    flex: 1;
    height: 450px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 20px 20px 0px #f5eedf; /* برواز جمالي خلف الصورة */
}

/* قسم السياسات */
.policy-section {
    padding: 80px 8%;
    background-color: #faf6f0;
    text-align: center;
}

.policy-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.policy-card {
    background: #ffffff;
    padding: 40px 20px;
    flex: 1;
    transition: transform 0.3s;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-card i {
    font-size: 35px;
    color: #e2a4a4;
    margin-bottom: 20px;
}

.policy-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4a3838;
    margin: 0 0 15px 0;
}

.policy-card p {
    font-size: 14px;
    color: #8c7676;
    line-height: 1.6;
    margin: 0;
}

/* استعراض الإنستغرام الجمالي */
.instagram-showcase {
    padding: 60px 8%;
    background-color: #fffaf5;
    text-align: center;
}

.instagram-showcase h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #4a3838;
    margin: 0 0 5px 0;
}

.instagram-showcase p {
    font-size: 14px;
    color: #8c7676;
    font-style: italic;
    margin-bottom: 30px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto; 
}

.ig-post {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ig-post:hover img {
    transform: scale(1.08);
}

/* السلة الجانبية */
.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.side-cart.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0ebe4;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0;
    color: #4a3838;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #8c7676;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-msg {
    text-align: center;
    color: #8c7676;
    font-style: italic;
    margin-top: 40px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #f0ebe4;
    background-color: #fdfbf9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4a3838;
}

.checkout-btn {
    width: 100%;
    background-color: #4a3838;
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #e2a4a4;
}

/* نافذة الدفع */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 450px;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #e8e2da;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.checkout-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0ebe4;
    padding-bottom: 10px;
}

.checkout-header h2 {
    font-family: 'Playfair Display', serif;
    color: #4a3838;
    font-size: 24px;
    margin: 0;
}

.close-checkout-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #8c7676;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c7676;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e2da;
    background-color: #faf8f5;
    font-family: inherit;
    font-size: 14px;
    color: #4a3838;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #e2a4a4;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a3838;
    cursor: pointer;
}

.order-summary-box {
    background-color: #fdfbf9;
    padding: 15px;
    text-align: center;
    border: 1px dashed #e2a4a4;
    margin-bottom: 20px;
    font-size: 16px;
    color: #4a3838;
}

.place-order-btn {
    width: 100%;
    background-color: #e2a4a4;
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background-color: #4a3838;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* الـ Footer */
footer {
    background-color: #f5eedf; 
    padding: 60px 8% 20px 8%;
    border-top: 1px solid #e8e2da;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #e2a4a4;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.footer-brand p {
    font-style: italic;
    color: #705f5f;
}

.footer-links h4, .footer-social h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a3838;
    margin-bottom: 20px;
}

.footer-links a, .footer-social a {
    display: block;
    text-decoration: none;
    color: #8c7676;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: #e2a4a4;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #e8e2da;
    padding-top: 20px;
    font-size: 12px;
    color: #8c7676;
}

/* ==========================================
   قـوانـيـن التجاوب مع الموبايل (Responsive Media Queries)
   ========================================== */
@media (max-width: 992px) {
    .story-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .story-image {
        height: 350px;
        width: 100%;
    }
    .policy-grid {
        flex-direction: column;
        gap: 20px;
    }
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header nav {
        position: fixed;
        top: 75px;
        left: -100%; /* مخفي خارج الشاشة يساراً */
        width: 100%;
        height: calc(100vh - 75px);
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: 0.4s ease;
        z-index: 999;
    }

    header nav.mobile-active {
        left: 0; /* ينزلق للداخل عند فتح المنيو */
    }

    .menu-toggle {
        display: block; /* تظهر أيقونة الخطوط الثلاثة في الموبايل */
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }

    .side-cart {
        width: 100%; /* سلة كاملة العرض مريحة للهواتف */
        right: -100%;
    }
}

/* تنسيق قائمة اختيار حجم العطور */
.size-selector-container {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-selector-container label {
    font-size: 13px;
    color: #8c7676;
    font-weight: 500;
}

.size-select {
    padding: 6px 10px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #e8e2da;
    background-color: #faf8f5;
    color: #4a3838;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.size-select:focus {
    border-color: #e2a4a4;
}