@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* Reset & Base */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    margin: 0; 
    padding: 0; 
}

body {
    background: #0a0f0d; 
    background: linear-gradient(135deg, #0a0f0d 0%, #1a2e26 100%);
    font-family: 'Montserrat', sans-serif;
    color: #FCFAF2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Loader Screen --- */
#loader { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: #0a0f0d; z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}
.loader-hidden { opacity: 0; visibility: hidden; }
.loader-content { display: flex; flex-direction: column; align-items: center; }
.loader-logo { 
    width: 90px; height: 90px; border-radius: 50%; 
    border: 2px solid #d4af37; animation: pulse 1.5s infinite; 
    background: white; padding: 5px;
}
.loader-bar { 
    width: 120px; height: 2px; background: rgba(212, 175, 55, 0.1); 
    margin-top: 20px; position: relative; overflow: hidden; border-radius: 10px;
}
.loader-bar::after { 
    content: ''; position: absolute; width: 100%; height: 100%; 
    background: #d4af37; left: -100%; animation: load 1.5s infinite; 
}

/* --- Language Switcher --- */
.lang-switch {
    position: fixed; top: 20px; right: 20px; z-index: 1000;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px; border-radius: 50px; color: #d4af37;
    text-decoration: none; font-size: 0.8rem; font-weight: 600;
}
[lang="ar"] .lang-switch { right: auto; left: 20px; }

/* --- Header & Logo --- */
.header { width: 100%; padding: 45px 20px; text-align: center; }
.logo {
    width: 95px; height: 95px; border-radius: 50%; border: 2px solid #d4af37;
    padding: 5px; background: white; box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    transition: transform 0.5s ease;
}
.logo:hover { transform: rotate(360deg); }
h1 { 
    font-weight: 600; font-size: 1.3rem; margin-top: 18px; 
    letter-spacing: 2.5px; text-transform: uppercase; color: #d4af37;
}

/* --- Container & Cards --- */
.container { width: 92%; max-width: 420px; padding-bottom: 50px; }
.card {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px;
    margin-bottom: 22px; padding: 18px; text-decoration: none; color: #FCFAF2;
    position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; animation: fadeInUp 0.8s ease forwards;
}
.card:active, .card:hover {
    transform: scale(1.02) translateY(-3px); background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
}
.card img {
    width: 85px; height: 85px; border-radius: 16px; object-fit: cover;
    margin-right: 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}
.card-info h3 { margin: 0; font-size: 1.1rem; color: #d4af37; letter-spacing: 0.5px; }
.card-info p { margin: 6px 0 0; font-size: 0.8rem; opacity: 0.75; line-height: 1.4; }

/* --- Price Tag --- */
.price {
    display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.85rem;
    color: #d4af37; background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.2);
}

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 10px 0; }
.product-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px;
    padding: 12px; text-align: center; transition: 0.3s;
    animation: fadeInUp 0.6s ease forwards; opacity: 0;
}
.product-card img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
    margin-bottom: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.product-info h4 { font-size: 0.8rem; margin-bottom: 8px; min-height: 32px; overflow: hidden; }

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000;
    background: rgba(37, 211, 102, 0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 211, 102, 0.5); width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-btn:hover { transform: scale(1.1) rotate(10deg); background: rgba(37, 211, 102, 0.25); }
.whatsapp-btn img { width: 32px; height: 32px; }

/* --- Utilities --- */
.btn-back { 
    display: inline-block; margin: 20px 0; text-decoration: none; 
    color: #d4af37; font-size: 0.85rem; font-weight: 600; 
    letter-spacing: 1px; padding: 10px 20px; border-radius: 50px;
    background: rgba(212, 175, 55, 0.05); transition: 0.3s;
}
.btn-back:hover { background: rgba(212, 175, 55, 0.1); }

.footer-brand { margin-top: auto; padding: 40px; font-size: 0.65rem; letter-spacing: 3px; opacity: 0.3; text-align: center; text-transform: uppercase; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes load { 0% { left: -100%; } 100% { left: 100%; } }

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
