/* استيراد خط 'تجوال' و 'كايرو' ليعطي طابع عصري */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #ff6b6b;       /* لون زهري/مرجاني جذاب */
    --secondary-color: #ff9e9e;     /* درجة أفتح */
    --accent-color: #ffe66d;        /* لون ذهبي/أصفر للتفاصيل */
    --dark-text: #2d3436;
    --light-text: #636e72;
    --bg-color: #f7f9fc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    --radius: 16px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Tajawal', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: -1px;
}

.cart-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* تأثير بسيط تحت الكلمة المميزة */
.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Product Cards (The Main Upgrade) --- */
.product-card {
    background: white;
    border-radius: var(--radius);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1); /* تكبير الصورة عند الهوفر */
}

/* Badge للتصنيف */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--dark-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-body {
    padding: 25px;
    text-align: right; /* محاذاة لليمين للعربية */
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
    height: 40px; /* توحيد الطول */
    overflow: hidden;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-text);
    display: block;
    margin-bottom: 15px;
}

.price-tag span {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--light-text);
}

/* زر الإضافة للسلة الحديث */
.btn-add-cart {
    background: var(--dark-text);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* أيقونة العربة داخل الزر */
.btn-add-cart svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}