/* =========================================
   1. IMPORTS & FONTS (ROYAL EDITION 👑)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,700&family=Cinzel:wght@400;700;900&family=Tajawal:wght@300;400;700;900&display=swap');

:root {
    --cleo-black: #0a0a0a;
    --cleo-card-bg: #141414;
    
    /* 🎨 Royal Palette */
    --cleo-gold: #D4AF37;       /* Classic Metallic Gold */
    --cleo-gold-light: #F4C430; /* Bright Saffron Gold */
    --cleo-gold-dark: #AA771C;  /* Bronze Gold */
    --cleo-emerald: #50C878;    /* Emerald Green */
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--cleo-black);
    color: #f0f0f0; 
    min-height: 100vh;
}

/* =========================================
   2. LUXURY FONT & TEXT EFFECTS
   ========================================= */

/* Arabic Titles & Fancy Text */
.luxury-font, .offer-title, .offer-price {
    font-family: 'Amiri', serif !important;
    font-weight: 700;
    line-height: 1.6;
}

/* 👑 The Logo Font (English) */
.navbar-brand {
    font-family: 'Cinzel', serif !important;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
}

/* Standard Gold Text */
.text-gold {
    color: var(--cleo-gold) !important;
}

/* ✨ Royal Gold Gradient Text (Headings & Prices) */
.text-royal-gold, h2, h3, .offer-price {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Makes text take the gradient color */
    font-weight: 900;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.5); /* Adds depth */
}

.text-emerald {
    color: var(--cleo-emerald) !important;
    text-shadow: 0 0 10px rgba(80, 200, 120, 0.4);
}

.description-text {
    white-space: pre-wrap; 
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd;
}

/* =========================================
   3. BUTTONS (METALLIC LOOK)
   ========================================= */
.btn-gold {
    background: linear-gradient(135deg, var(--cleo-gold-dark), var(--cleo-gold), var(--cleo-gold-light), var(--cleo-gold-dark));
    background-size: 300% 300%;
    color: #000 !important;
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    border: 1px solid #BF953F;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    animation: shine-anim 5s infinite linear;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.2);
}

@keyframes shine-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   4. PRODUCT CARDS & UI
   ========================================= */
.product-container {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
}

.img-wrapper {
    background: #fff; 
    border: 1px solid #444;
}

.product-img-limit {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.bg-dark-form {
    background: #111;
}

.bg-darker {
    background: #1a1a1a;
}

/* Navbar */
.navbar { 
    background: rgba(5, 5, 5, 0.98) !important; 
    border-bottom: 1px solid #333; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* =========================================
   5. OFFER CARDS (ROYAL UPDATE 👑)
   ========================================= */
.offer-card {
    background: #1a1a1a;
    border: 1px solid #444;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px; /* Ensure padding for text */
}

.offer-card:hover {
    border-color: var(--cleo-gold-dark);
    background: #252525;
}

/* Selected State */
.offer-card.active {
    border: 1px solid var(--cleo-gold);
    background: linear-gradient(to right, rgba(212, 175, 55, 0.15), rgba(0,0,0,0));
    box-shadow: inset 4px 0 0 var(--cleo-gold);
}

.offer-title {
    font-size: 1.1rem;
    color: #f8f8f8; /* Bright white for contrast */
    text-shadow: 1px 1px 2px black;
}

.offer-price {
    font-size: 1.4rem; /* Bigger price */
    /* Gradient applied via .text-royal-gold logic above */
    display: inline-block;
}

.offer-check {
    font-size: 1.4rem;
    color: #666;
    transition: 0.3s;
}

.offer-card.active .offer-check {
    color: var(--cleo-gold) !important;
    text-shadow: 0 0 10px var(--cleo-gold);
}

/* =========================================
   6. MOBILE FIXES (Crucial)
   ========================================= */
@media (max-width: 768px) {
    .img-wrapper {
        min-height: auto !important;
        padding: 5px !important;
        background: transparent !important; 
        border: none;
    }

    .product-img-limit {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 350px !important;
        border-radius: 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}