
/* --- 1. Root & Reset --- */
:root {
    --bg-color: #FFF5F7; /* Soft Pinkish White */
    --text-main: #2D3436;
    --color-accent: #FF4D6D; /* Valentine Red */
    --valentine-pink: #FF85A1;
    --font-main: 'Outfit', sans-serif;
    --font-hand: 'Patrick Hand', cursive;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--bg-color); 
    font-family: var(--font-main); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* --- 2. HEADER (Valentine Theme) --- */
header {
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%; 
    top: 0; 
    z-index: 1000;
    background: rgba(255, 245, 247, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 77, 109, 0.1);
}

.logo img { height: 40px; }

nav ul { 
    display: flex; 
    gap: 30px; 
    list-style: none; 
}

nav a { 
    font-weight: 600; 
    text-decoration: none; 
    color: var(--text-main); 
    transition: 0.3s; 
    font-size: 15px; 
}

nav a:hover, nav a.active-nav { 
    color: var(--color-accent); 
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff; 
    padding: 10px 25px; 
    border-radius: 50px;
    font-weight: bold; 
    text-decoration: none; 
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
}

/* --- 3. RE-DESIGNED VALENTINE HERO --- */
.valentine-hero h1 {
    font-family: 'Zen Maru Gothic', sans-serif; /* خط ياباني مستدير وناعم */
    font-size: clamp(32px, 5vw, 64px); 
    line-height: 1.4; /* اليابانية تحتاج مساحة أسطر أكبر قليلاً */
}

.valentine-hero {
    background: #fff;
    border-radius: 50px; /* زوايا أكثر نعومة */
    padding: 100px 40px; /* زيادة المساحة الداخلية ليتنفس التصميم */
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    box-shadow: 0 30px 60px rgba(255, 77, 109, 0.08); /* ظل أنعم وأكبر */
    border: 1px solid rgba(255, 77, 109, 0.15);
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* توزيع مسافات متساوية بين العناصر */
}

/* خلفية فنية خفيفة داخل الصندوق */
.valentine-hero::before {
    content: '♥';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    color: rgba(255, 77, 109, 0.03);
    transform: rotate(15deg);
}

.badge-valentine {
    display: inline-block;
    background: var(--valentine-pink);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: var(--font-hand);
    font-size: 22px;
    letter-spacing: 1px;
    transform: rotate(-3deg); /* ميلان خفيف يعطي طابع يدوي */
    box-shadow: 0 5px 15px rgba(255, 133, 161, 0.3);
    margin-bottom: 10px;
}

.valentine-hero h1 {
    font-size: clamp(38px, 6vw, 72px); /* تكبير العنوان ليكون هو البطل */
    line-height: 1.2;
    max-width: 850px; /* منع النص من التمدد العرضي المزعج */
    font-weight: 800;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), #ff85a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block; /* جعل النص الملون في سطر منفصل ليعطي فخامة */
    margin-top: 10px;
}

.offer-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 77, 109, 0.05); /* خلفية فاتحة بدلاً من الأسود الثقيل */
    color: var(--color-accent);
    padding: 15px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 18px;
    border: 2px dashed var(--color-accent); /* شكل يشبه قسائم الخصم */
    margin-top: 15px;
    transition: var(--transition);
}

.offer-pill:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.05);
}

.offer-pill span {
    background: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 14px;
    text-transform: uppercase;
}
/* --- 4. PRODUCTS GRID --- */
.products-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    position: relative;
    z-index: 10;
}

.product-item {
    background: #fff; 
    border-radius: 30px; 
    padding: 15px;
    transition: var(--transition); 
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 10;
}

.product-item:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.1); 
}

.product-img {
    height: 280px; 
    border-radius: 20px; 
    overflow: hidden;
    position: relative; 
    background: #f9f9f9;
}

.product-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.product-item:hover .product-img img { 
    transform: scale(1.1); 
}

.delivery-tag {
    position: absolute; 
    top: 15px; 
    right: 15px;
    background: var(--color-accent); 
    color: white;
    padding: 6px 12px; 
    border-radius: 10px; 
    font-size: 11px; 
    font-weight: bold;
}

.product-info { 
    padding: 20px 10px; 
    text-align: center; 
}

.product-info h3 { 
    margin-bottom: 10px; 
    font-size: 20px; 
}

.price { 
    display: block; 
    font-weight: 700; 
    font-size: 18px; 
    margin-bottom: 15px; 
    color: var(--color-accent); 
}

.btn-valentine {
    background: var(--text-main); 
    color: white;
    padding: 12px; 
    border-radius: 15px; 
    display: block;
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s;
}

.btn-valentine:hover { 
    background: var(--color-accent); 
    transform: scale(1.05); 
}

/* --- 5. VALENTINE COLORFUL FOOTER --- */
#colorful-footer {
    background-color: var(--valentine-pink);
    padding: 40px 20px 20px;
    margin-top: 80px;
    border-radius: 40px 40px 0 0;
    color: #fff;
    position: relative;
    z-index: 100; /* فوق القلوب */
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-nav a {
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.footer-compact-form {
    display: flex;
    gap: 0;
}

.footer-compact-form input {
    padding: 12px 20px;
    border-radius: 12px 0 0 12px;
    border: none;
    outline: none;
    width: 240px;
}

.footer-compact-form button {
    background-color: var(--text-main);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 0 12px 12px 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.footer-copyright {
    text-align: center;
    font-family: var(--font-hand);
    font-size: 20px;
    opacity: 0.9;
}

/* --- 6. PREMIUM HEARTS ANIMATION SYSTEM --- */
.valentine-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* خلف كل شيء */
    overflow: hidden;
}

.heart-particle {
    position: absolute;
    bottom: -100px;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    animation: floatUp var(--duration) linear forwards, 
               sway var(--sway-duration) ease-in-out infinite alternate;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: var(--opacity); }
    90% { opacity: var(--opacity); }
    100% { transform: translateY(-125vh); opacity: 0; }
}

@keyframes sway {
    0% { margin-left: -25px; }
    100% { margin-left: 25px; }
}

/* --- 7. UTILITIES & REVEAL --- */
.fade-in { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 0.8s all ease; 
}

.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- 8. RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    header { padding: 15px 20px; }
}

@media (max-width: 768px) {
    .footer-top-row { flex-direction: column; text-align: center; }
    .footer-nav { flex-direction: column; gap: 15px; }
    .footer-compact-form input { width: 180px; }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
    .valentine-hero { padding: 40px 20px; }
}
 