:root {
    --app-bg: #050505;
    --card-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --accent-gold: #D4AF37;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--app-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    padding-bottom: 120px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* Header */
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; position: fixed; top: 0; width: 100%; max-width: 500px; z-index: 40;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, transparent 100%);
}
.logo { font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: 1px; font-size: 18px; color: #fff; }
.cart-icon { position: relative; font-size: 24px; color: #fff; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-gold); color: #000; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Swiper */
.product-showcase { height: 55vh; width: 100%; position: relative; }
.swiper { width: 100%; height: 100%; }
.media-frame { width: 100%; height: 100%; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.slide-caption {
    position: absolute; bottom: 30px; left: 24px;
    font-family: 'Playfair Display', serif; font-size: 24px; font-style: italic;
    color: rgba(255,255,255,0.9); text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet { background: #fff !important; opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1; }

/* Details */
.product-details { padding: 30px 24px; position: relative; z-index: 10; margin-top: -20px; background: linear-gradient(to bottom, transparent, var(--app-bg) 20%); }

.collection-tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 10px; font-weight: 600; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px; line-height: 1.1; margin-bottom: 15px;
}

.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, var(--accent-gold) 50%, #fff 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 25px; }
.main-price { font-size: 28px; font-weight: 600; color: #fff; }
.old-price { font-size: 16px; text-decoration: line-through; color: #666; }

/* Quantity Selector */
.quantity-section { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.qty-label { font-size: 14px; color: var(--text-secondary); }
.qty-control { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: 40px; padding: 4px; }
.qty-btn { background: transparent; border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.qty-btn:active { background: rgba(255,255,255,0.1); }
#qtyValue { width: 30px; text-align: center; font-weight: 600; font-size: 16px; }

.divider { height: 1px; background: rgba(255,255,255,0.1); margin: 30px 0; }

/* Scent Profiles */
.scent-title { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 10px; color: #fff; }
.scent-intro { font-size: 14px; color: #bbb; font-style: italic; margin-bottom: 15px; }

.notes-container { display: flex; flex-direction: column; gap: 12px; }
.note-item { display: flex; flex-direction: column; }
.note-head { font-size: 11px; text-transform: uppercase; color: var(--accent-gold); letter-spacing: 1px; margin-bottom: 2px; }
.note-body { font-size: 14px; color: #ddd; }

.description { font-size: 15px; color: #ccc; line-height: 1.6; }
.rating-minimal { margin-top: 30px; font-size: 13px; color: #888; }

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px;
    padding: 20px 24px 35px; display: flex; justify-content: space-between; align-items: center; z-index: 50;
    background: linear-gradient(to top, #050505 85%, transparent 100%);
}
.price-info .label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; }
.moving-price { font-size: 24px; font-weight: 700; color: #fff; }

/* === [الزر النابض بالحياة - معدل] === */
.apple-btn { border: none; padding: 16px 28px; border-radius: 50px; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s, background 0.3s; }

.white-btn { 
    background: #ffffff; 
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.white-btn:active { transform: scale(0.95); animation: none; }

/* Modal Checkout */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(8px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-sheet { position: absolute; bottom: 0; width: 100%; background: #111; border-radius: 30px 30px 0 0; padding: 30px 24px 40px; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border-top: 1px solid #333; }
.modal-overlay.active .modal-sheet { transform: translateY(0); }

.modal-header { display: flex; justify-content: space-between; margin-bottom: 25px; color: #fff; }
.close-icon-minimal { background: rgba(255,255,255,0.1); border: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.order-summary-mini { color: var(--accent-gold); font-size: 13px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed #333; display: flex; align-items: center; gap: 8px; }

.apple-input-group { margin-bottom: 15px; }
.apple-input-group input, .apple-input-group textarea { width: 100%; background: #1a1a1a; border: 1px solid #333; padding: 16px; border-radius: 14px; color: #fff; font-size: 16px; outline: none; transition: border 0.3s; }
.apple-input-group input:focus { border-color: var(--accent-gold); }
.full-width { width: 100%; justify-content: center; margin-top: 10px; }
.security-badge { text-align: center; color: #555; font-size: 11px; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* === [صفحة QR الفخمة - تصميم مطور] === */
.qr-page-dark { 
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200; 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; visibility: hidden; transition: 0.5s ease; 
}
.qr-page-dark.active { opacity: 1; visibility: visible; }

.qr-card-design {
    background: #111;
    padding: 35px 25px;
    border-radius: 35px;
    width: 90%;
    max-width: 360px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateY(30px) scale(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
.qr-page-dark.active .qr-card-design { transform: translateY(0) scale(1); }

.success-icon-animated {
    width: 65px; height: 65px;
    background: #27ae60;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

.qr-title { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 12px; font-weight: 600; color: #fff; }
.qr-subtitle { font-size: 14px; color: #888; margin-bottom: 25px; line-height: 1.6; }

.qr-frame-minimal { 
    background: #fff; 
    padding: 15px; 
    border-radius: 20px; 
    display: inline-block; 
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.qr-frame-minimal img { width: 180px; height: 180px; display: block; }
.text-only-btn { background: rgba(255,255,255,0.05); color: #aaa; border: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: center; padding: 15px; border-radius: 15px; font-size: 14px; font-weight: 600; }

/* Animation Effects */
.fade-in { animation: fadeEffect 0.5s ease-out; }
@keyframes fadeEffect { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }