/* ─────────────────────────────────────────────
   WebStore – Feminine Minimalist Luxury
   RTL / Arabic First
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    /* --- The Soft Color Palette --- */
    --primary: #4A3F3C; /* بني داكن هادئ للنصوص - يعطي فخامة أكثر من الأسود */
    --accent: #D4A39A; /* وردي خوخي ناعم جداً بدون تدرج */
    --accent-hover: #C28E85; /* درجة أغمق قليلاً لتأثيرات المرور */
    --light: #FDFBF9; /* أبيض كريمي دافئ ومريح */
    --white: #FFFFFF;
    --border: #F0EAE8; /* حدود ناعمة جداً لا ترهق العين */
    --muted: #9CA3AF;
    --danger: #D97A7A; /* أحمر باستيل هادئ */
    --success: #86A789; /* أخضر مريمية (Sage Green) ناعم */
    --warning: #D4A373;
    --sale: #D4A39A;
    /* --- Refined UI Elements --- */
    --radius: 4px; /* حواف شبه حادة لتعطي طابع المجلات الفاخرة */
    --shadow-sm: 0 4px 15px rgba(74, 63, 60, 0.04); /* ظلال ملونة وخفيفة جداً */
    --shadow-md: 0 10px 30px rgba(74, 63, 60, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--light); /* استخدام اللون الكريمي لكامل الموقع */
    color: var(--primary);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased; /* لجعل الخطوط أنعم */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

    a:hover {
        color: var(--accent);
    }

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* ─── Typography ─────────────────────────────── */
/* تخفيف أوزان الخطوط لتبدو أكثر رقة وأناقة */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary);
}

.text-muted {
    color: var(--muted) !important;
}

/* ─── Navbar ─────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* تأثير زجاجي فخم */
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px; /* مساحة تنفس أكبر */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

    .navbar-nav a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--primary);
        padding: 8px 0;
        position: relative;
    }

        /* تأثير خط سفلي ناعم عند المرور */
        .navbar-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width var(--transition);
        }

        .navbar-nav a:hover::after, .navbar-nav a.active::after {
            width: 100%;
        }

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

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent; /* جعل السلة أنعم بدون كتلة لونية ثقيلة */
    color: var(--primary) !important;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition);
}

    .cart-btn:hover {
        color: var(--accent) !important;
    }

.cart-badge {
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ─── Hero ───────────────────────────────────── */
.hero {
    background: var(--white);
    color: var(--primary);
    padding: 100px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 4rem);
        font-weight: 700;
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.15rem;
        font-weight: 400;
        color: var(--muted);
        max-width: 600px;
        margin: 0 auto 40px;
    }

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent; /* تصغير سمك الحدود للأناقة */
    transition: all var(--transition);
}

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

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

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

    .btn-accent:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

    .btn-outline:hover {
        border-color: var(--primary);
    }

/* ─── Section & Product Card ─────────────────── */


.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* تكبير البطاقات قليلاً لتبرز الصور */
    gap: 32px;
}


.sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white); /* شارة بيضاء ناعمة */
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

/* ─── Categories & Filter ────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--white);
}

    .category-card:hover {
        border-color: var(--accent);
        color: var(--accent);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
    }

/* ─── Forms & Inputs ─────────────────────────── */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary);
    background: var(--white);
    transition: all var(--transition);
}

    .form-control:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(212, 163, 154, 0.15);
    }

/* ─── Footer ─────────────────────────────────── */
.footer {
    background: var(--white); /* فوتر فاتح بدلاً من الداكن ليتماشى مع النعومة */
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding: 64px 24px 32px;
    margin-top: auto;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
}

    .footer-links a:hover {
        color: var(--accent);
        padding-right: 4px; /* لمسة حركة خفيفة */
    }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}
:root {
    --primary: #000;
    --light: #fafafa;
    --border: #eee;
    --muted: #777;
}

/* layout */
.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}
.hero-slider + .section {
    padding-top: 20px; /* بدل 80 أو 50 */
    margin-top: 0;
}
.section-light {
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
}

.section-subtitle {
    color: var(--muted);
    font-size: 14px;
}

/* HERO */
.hero {
    background: url('/images/hero-fashion.jpg') center/cover no-repeat;
    padding: 110px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.4);
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 25px;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.btn-white {
    background: #fff;
    color: #000;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-disabled {
    background: #eee;
    color: #aaa;
}

.full {
    width: 100%;
}

/* CATEGORIES */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    display: block;
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: .3s;
}

.category-card span {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    z-index: 2;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover .category-overlay {
    background: rgba(0,0,0,0.15);
}
/* badges */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #999;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* إعدادات عامة للألوان - تأكد من وجودها أو استبدالها بقيم مباشرة */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --light: #f8f9fa;
    --muted: #95a5a6;
}

/* الهيدر العلوي */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.products-count {
    font-size: 1.1rem;
    color: var(--primary);
}

    .products-count strong {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent);
    }

/* الحاوية الرئيسية للمنتج - أصبحت شفافة تماماً */
.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

    /* تأثير بسيط عند تمرير الماوس على المنتج كاملاً */
    .product-card:hover {
        transform: translateY(-5px);
    }

/* حاوية الصورة - بدون حدود، صورة كاملة مستطيلة */
.product-card-img {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0; /* إزالة الحواف الدائرية */
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-img {
    box-shadow: 0 8px 25px rgba(212, 163, 154, 0.2);
}

    /* تنسيق الصورة لتملأ المساحة بالكامل */
    .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* تملأ المساحة بالكامل مع الحفاظ على النسبة */
        padding: 0;
        transition: transform .5s ease;
    }

/* تأثير التكبير عند الـ hover */
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

/* منطقة النصوص أسفل الصورة */
.product-card-body {
    padding: 15px 5px 0 5px; /* إزالة البادنج الجانبي الكبير لتبدو خارج الكارد */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
}

.product-card:hover .product-card-name {
    color: var(--accent);
}

/* تنسيق السعر */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
}

/* MOBILE */
@media(max-width:768px) {
    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .product-card-img img {
        height: 200px;
    }

    .hero h1 {
        font-size: 26px;
    }
}
/* ===== PRODUCT DETAILS LAYOUT ===== */
.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

/* ===== PRODUCT IMAGE ===== */
.product-gallery {
    position: relative;
}

    .product-gallery img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        border-radius: 20px;
        background: #f7f7f7;
    }

/* صورة إضافية مصغرة (اختياري لاحقاً) */
.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

    .product-thumbs img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        border: 1px solid var(--border);
    }


/* ===== PRODUCT INFO PANEL ===== */
.product-info-panel {
    background: #fff;
    padding: 10px 0;
}

/* CATEGORY */
.product-info-category a {
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
}

/* NAME */
.product-info-name {
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 8px;
    line-height: 1.4;
}

/* PRICE */
.product-info-price {
    margin: 15px 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 22px;
    font-weight: 900;
    color: #000;
}

    .price-current.sale {
        color: #e91e63;
    }

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

/* DESCRIPTION */
.product-info-desc {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 15px;
}

/* STOCK STATUS */
.product-stock {
    font-size: .9rem;
    margin-bottom: 15px;
}

    .product-stock.in-stock {
        color: #16a34a;
    }

    .product-stock.low-stock {
        color: #f59e0b;
    }

/* ===== SIZE BUTTONS ===== */
.size-btn {
    min-width: 45px;
    text-align: center;
    border-radius: 8px !important;
}

    .size-btn:hover {
        border-color: #000 !important;
    }

    .size-btn.active {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
    }

/* ===== QUANTITY ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    width: 140px;
    margin-bottom: 12px;
}

    .quantity-selector button {
        width: 40px;
        height: 40px;
        border: none;
        background: #fff;
        font-size: 18px;
        cursor: pointer;
    }

    .quantity-selector input {
        width: 60px;
        border: none;
        text-align: center;
        font-weight: bold;
    }

/* ===== BUTTONS ===== */
.btn-lg {
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-primary {
    background: #000;
    color: #fff;
}

    .btn-primary:hover {
        background: #222;
    }

.btn-outline {
    border: 1px solid #000;
    color: #000;
}

/* ===== DIVIDER ===== */
.divider {
    margin: 25px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* ===== BADGE ===== */
.sale-badge {
    background: #e91e63;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ===== MOBILE ===== */
@media(max-width:768px) {

    .product-details-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery img {
        height: 400px;
    }

    .product-info-name {
        font-size: 22px;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE ===== */
@media (max-width: 640px) {
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    body {
        padding: 0;
        overflow-x: hidden;
    }
    
    /* Container */
    .container {
        padding: 0 12px !important;
        max-width: 100%;
    }
    
    /* Navbar */
    .navbar-inner {
        padding: 0 12px !important;
        height: 56px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Hero */
    .hero {
        padding: 60px 16px !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 16px 0;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card-img {
        height: 280px !important;
    }
    
    .product-card-img img {
        height: 280px !important;
    }
    
    .product-card-body {
        padding: 12px !important;
    }
    
    .product-card-name {
        font-size: 1rem !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
    }
    
    /* Product Details */
    .product-details-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 16px;
    }
    
    .product-gallery img {
        height: 300px !important;
        border-radius: 12px;
    }
    
    .product-info {
        padding: 16px 0;
    }
    
    .product-info-name {
        font-size: 1.4rem !important;
    }
    
    .product-info-price {
        font-size: 1.5rem !important;
    }
    
    /* Buttons */
    .btn, .btn-primary, .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        width: 100%;
    }
    
    /* Cart Page */
    .cart-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .cart-item-img {
        width: 100% !important;
        height: 200px !important;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px !important;
    }
    
    /* Footer */
    .footer {
        margin-top: 40px;
        padding: 30px 0 15px !important;
    }
    
    .footer-inner {
        padding: 0 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    /* Spacing */
    section {
        padding: 40px 0 !important;
    }
    
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .product-card-img {
        height: 240px !important;
    }
    
    .product-card-img img {
        height: 240px !important;
    }
}