/* ====== style.css ====== */
/* التنسيقات الموحدة لجميع صفحات موقع حضائر الهدار ورفاقه */

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

:root {
    --primary: #1b7a3f;
    --primary-light: #2d9d54;
    --primary-dark: #0f4620;
    --accent: #f4a460;
    --accent-light: #ffc966;
    --text-dark: #1a1a1a;
    --text-light: #444;
    --bg-light: #f8fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.9);
    --glass-dark: rgba(15, 70, 32, 0.92);
    --transition: all 0.4s ease;
    --success: #22c55e;
    --danger: #dc3545;
    --radius: 20px;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== خلفية سينمائية ===== */
.dream-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #f0f4f1 0%, #d4e1d5 100%);
}
.dream-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
    animation: moveShape 20s infinite alternate;
}
.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}
.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-light);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}
@keyframes moveShape {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.hidden {
    display: none !important;
}

/* ===== شريط الحالة العلوي ===== */
.top-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 2000;
    background: var(--glass-dark);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
}
.status-bar-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 15px;
}
.status-badge {
    background: var(--success);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}
.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 164, 96, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(244, 164, 96, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 164, 96, 0);
    }
}

/* ===== الهيدر وشريط التنقل ===== */
header {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 22px;
    font-family: 'Amiri', serif;
}
.logo img {
    height: 45px;
    width: auto;
}
.nav-menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.nav-menu a {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
}
.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-dark);
    color: white;
}
.nav-menu a.cta-nav {
    background: var(--accent);
    color: white;
}
.nav-menu a.cta-nav:hover {
    background: var(--primary-dark);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* ===== أزرار ===== */
.btn {
    padding: 12px 28px;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 20px rgba(244, 164, 96, 0.3);
}
.btn-primary:hover {
    transform: scale(1.03);
    background: #ff9a3d;
}
.btn-white {
    background: white;
    color: var(--primary-dark);
}
.btn-white:hover {
    transform: scale(1.03);
    background: #f0f0f0;
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-fill {
    background: var(--primary);
    color: white;
}
.btn-fill:hover {
    background: var(--primary-dark);
}
.btn-sm {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}
.fb-link {
    background: #1877F2;
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.fb-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* ===== الهيرو ===== */
.hero {
    padding-top: 170px;
    padding-bottom: 50px;
    text-align: center;
}
.hero-card {
    background: linear-gradient(rgba(15, 70, 32, 0.85), rgba(15, 70, 32, 0.9)),
        url('https://i.ibb.co/tPQy9syB/Picsart-26-04-18-16-43-16-029.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 70px 40px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: clamp(16px, 2.5vw, 22px);
    opacity: 0.92;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* ===== الإحصائيات ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 25px 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-card h3 {
    font-size: 34px;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 5px;
}
.stat-card p {
    color: var(--text-light);
    font-weight: 700;
    font-size: 14px;
}

/* ===== العداد التنازلي ===== */
.countdown-section {
    margin: 30px auto;
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    color: white;
    max-width: 800px;
}
.countdown-section h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.countdown-section p {
    font-size: 17px;
    opacity: 0.9;
}
#countdown-timer {
    font-size: 36px;
    font-weight: 900;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 12px;
}
.countdown-note {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.75;
}

/* ===== المنتجات ===== */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--primary-dark);
    font-weight: 900;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto 40px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    padding: 0 10px;
}
.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.search-container {
    max-width: 550px;
    margin: 0 auto 40px;
    padding: 0 15px;
}
.search-box {
    width: 100%;
    padding: 14px 22px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    background: var(--glass);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.search-box:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background: var(--glass);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-img-box {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-img-box img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    color: white;
    z-index: 2;
}
.badge-available {
    background: var(--success);
}
.badge-unavailable {
    background: var(--danger);
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}
.price-tag {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}
.qty-left {
    font-size: 13px;
    background: #f0f0f0;
    padding: 2px 12px;
    border-radius: 50px;
    color: var(--text-light);
}
.product-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.product-btns .btn-sm {
    padding: 8px 10px;
    font-size: 13px;
}

/* ===== عربة التسوق ===== */
#cart-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 999;
    background: white;
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    max-width: 300px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
}
#cart-toggle {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 998;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: var(--transition);
}
#cart-toggle:hover {
    transform: scale(1.08);
}
#cart-count {
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: -6px;
}

/* ===== الآراء ===== */
.testimonials {
    padding: 60px 0;
    background: rgba(27, 122, 63, 0.04);
    margin-top: 60px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
.testi-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.testi-card:hover {
    transform: scale(1.02);
}
.stars {
    color: var(--accent);
    margin-bottom: 12px;
}
.testi-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}
.testi-author {
    font-weight: 900;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== التذييل ===== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 20px 35px;
    text-align: center;
}
.footer-logo {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: 'Amiri', serif;
}
.footer-logo img {
    height: 55px;
    width: auto;
    margin-bottom: 8px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}
.footer-divider {
    width: 80px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto;
}
.copyright {
    opacity: 0.7;
    font-size: 14px;
}
.designer {
    font-weight: 700;
    color: var(--accent-light);
}

/* ===== النوافذ المنبثقة ===== */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.page-content {
    background: white;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 28px;
    padding: 35px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    animation: pageIn 0.4s ease;
}
@keyframes pageIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    border: none;
}
.close-btn:hover {
    background: var(--danger);
    color: white;
}

/* ===== نماذج ===== */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 15px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 122, 63, 0.1);
}
.form-group textarea {
    height: 110px;
    resize: vertical;
}

/* ===== لايت بوكس ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 20px;
}
.lightbox img {
    max-width: 95%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

/* ===== معرض الفيديو ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
.video-item {
    background: var(--glass);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.video-item iframe {
    width: 100%;
    height: 230px;
    border: none;
}
.video-item .video-info {
    padding: 16px;
}
.video-item .video-info h4 {
    color: var(--primary-dark);
    font-size: 17px;
}
.video-item .video-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== أزرار التنقل الإضافية ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

/* ===== استجابة للجوال ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    .hero-card {
        padding: 35px 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .stats-grid {
        margin-top: -30px;
        grid-template-columns: 1fr 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: 26px;
    }
    .page-content {
        padding: 25px 18px;
    }
    #cart-container {
        max-width: 260px;
        left: 10px;
        bottom: 85px;
    }
    #cart-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: 10px;
        bottom: 20px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        right: 12px;
        bottom: 20px;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    .logo img {
        height: 38px;
    }
    .container {
        padding: 0 12px;
    }
    .countdown-section h3 {
        font-size: 20px;
    }
  #countdown-timer {
        font-size: 28px;
        padding: 10px 20px;
    }
    .stat-card h3 {
        font-size: 28px;
    }
}