/* ==========================================
   CSS SYSTEM - DASY STORE (Mobile-First Premium)
   ========================================== */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-main: #050d0a;
    --bg-secondary: #0a1712;
    --bg-glass: rgba(10, 23, 18, 0.85);
    --border-glass: rgba(212, 175, 55, 0.15);
    --border-glass-hover: rgba(212, 175, 55, 0.4);
    
    --primary-emerald: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.15);
    
    --accent-gold: #d4af37;
    --accent-gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    --accent-gold-glow: rgba(212, 175, 55, 0.25);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove touch highlight on mobile */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #0d2c20;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navbar - Optimized for Mobile Sticky Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 4px 10px var(--accent-gold-glow);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: none; /* Hidden on mobile by default to keep clean */
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}


.btn-contact {
    background: transparent;
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-contact:active {
    background: var(--accent-gold-gradient);
    color: var(--bg-main);
}

/* Hero Section - Optimized for Mobile Conversion */
.hero {
    position: relative;
    padding: 100px 16px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.hero-content {
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-emerald);
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero-title span {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: var(--bg-main);
    border: none;
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
    transition: var(--transition-smooth);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Trust Bar - Compact Mobile layout */
.trust-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.trust-info h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.trust-info p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: none;
}

/* Section Common Styles */
.section {
    padding: 50px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
}

/* Products Layout - Single-Column Cards Optimized for Mobile Feed */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-card {
    background: var(--bg-glass);
    border: 1.5px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%; /* Slightly wider aspect ratio for mobile view */
    overflow: hidden;
    background: #07120e;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-gold-gradient);
    color: var(--bg-main);
    padding: 4px 10px;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--accent-gold-glow);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Product Meta Block (Horizontal Alignment) */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 15px; /* Spacing between meta and button */
}

.product-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-emerald);
    white-space: nowrap;
}

.product-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 2px;
}

.product-status {
    font-size: 0.8rem;
    color: var(--primary-emerald);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Full Width conversion buttons below the metadata */
.btn-card {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    gap: 8px;
    transition: var(--transition-smooth);
    border: none;
}

.btn-card:not(.btn-open-modal) {
    background: var(--accent-gold-gradient);
    color: var(--bg-main);
    box-shadow: 0 4px 12px var(--accent-gold-glow);
}

.btn-card:not(.btn-open-modal):active {
    transform: scale(0.98);
}

/* Solid WhatsApp Green Button for instant recognition */
.btn-open-modal {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-open-modal:active {
    background: #20ba59;
    transform: scale(0.98);
}

/* Popup Modal - Seamless Mobile Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end; /* Open from bottom on mobile for better reachability */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass-hover);
    border-radius: 24px 24px 0 0; /* Rounded top corners only on mobile */
    width: 100%;
    padding: 30px 20px 40px;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%); /* Slide up animation */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    color: #25d366;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-close-sec {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: var(--transition-smooth);
    border: none;
}

.btn-close-sec:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Reviews / Testimonials Mobile Feed */
.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
}

.stars {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.9rem;
}

.reviewer-info h5 {
    font-size: 0.88rem;
    font-weight: 800;
}

.reviewer-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Sticky Contact Button for Instant Mobile Support */
.sticky-whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sticky-whatsapp-fab:active {
    transform: scale(0.9);
}

/* Footer layout */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 40px 16px 20px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 25px;
    height: 2px;
    background: var(--accent-gold-gradient);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Media Queries for Desktop layout enhancements (responsive fallback) */
@media (min-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: flex;
        gap: 30px;
        list-style: none;
    }
    
    .hero {
        padding: 160px 5% 80px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
        max-width: 500px;
    }
    
    .btn-primary {
        width: auto;
    }
    
    .trust-bar {
        grid-template-columns: repeat(4, 1fr);
        padding: 30px 5%;
    }
    
    .trust-info p {
        display: block;
    }
    
    .section {
        padding: 80px 5%;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .product-img-wrapper {
        padding-top: 100%;
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        flex-direction: row;
        gap: 40px;
    }
    
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: 28px;
        max-width: 480px;
        padding: 40px;
    }
    
    .btn-close-sec {
        display: none; /* Not needed on desktop since close 'x' is easy to click */
    }
}
