/* ============ Empire Cafe — Luxury Immersive Architecture ============ */
:root {
    --cream: #F7F3EC;
    --espresso: #1A1512;
    --brass: #C9AE84;
    --white: #FFFFFF;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font-body);
    background-color: var(--espresso);
    color: var(--white);
    overflow: hidden; 
    width: 100vw;
    height: 100vh;
}

.hidden { display: none !important; }

/* ============ Splash Screen (Unchanged) ============ */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    background-color: #000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.splash-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.splash-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); z-index: 2;
}
.splash-content {
    position: absolute; z-index: 10; bottom: 50px; width: 100%;
    display: flex; justify-content: center;
    animation: fadeUp 1s ease 0.5s both;
}
.explore-btn {
    background: linear-gradient(135deg, var(--brass) 0%, #E6D0A7 50%, var(--brass) 100%);
    background-size: 200% auto;
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 2.2rem; border-radius: 35px;
    font-size: 1.05rem; font-weight: 800; font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(201, 174, 132, 0.4);
    display: flex; align-items: center; gap: 1rem;
    animation: shinePremium 3s linear infinite;
}
@keyframes shinePremium { to { background-position: 200% center; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Floating UI Layer ============ */
.main-content {
    width: 100%; height: 100%;
    position: relative; z-index: 10;
}
.app-header {
    position: absolute; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 1rem;
    z-index: 50;
    /* Soft gradient from top */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}
.brand, .cart-btn, .island-nav { pointer-events: auto; }
.brand { display: flex; flex-direction: column; text-shadow: 0 2px 4px rgba(0,0,0,0.5); width: 80px;}
.brand-ar { font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--white); }
.brand-en { font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 2px; color: var(--brass); margin-top: 0.2rem;}

.cart-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    color: var(--white); width: 40px; height: 40px; border-radius: 50%;
    position: relative; font-size: 1rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cart-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--brass); color: #000;
    font-size: 0.7rem; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

/* ============ Dynamic Island Nav ============ */
.island-nav {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    display: flex; align-items: center; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.cat-btn {
    background: transparent; border: none;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    padding: 0.2rem 0.8rem;
    cursor: pointer; transition: color 0.3s ease;
    position: relative; z-index: 2;
}
.cat-btn.active { color: var(--white); }

/* The Glowing Dot */
.nav-indicator {
    position: absolute; bottom: 2px;
    width: 20px; height: 3px; border-radius: 3px;
    background: var(--brass);
    box-shadow: 0 0 10px var(--brass);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), width 0.4s ease;
    z-index: 1;
}

/* ============ Snap Scroll Container ============ */
.snap-container {
    width: 100%; height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.snap-container::-webkit-scrollbar { display: none; }

/* ============ Full Screen Section ============ */
.product-section {
    width: 100%; height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #2C231B 0%, #15110E 100%);
    overflow: hidden;
}

/* The majestic product image with Glowing Aura */
.product-img-wrapper {
    position: relative;
    width: 80%; height: 50%;
    display: flex; justify-content: center; align-items: center;
    transform: translateY(-5%);
}
.product-img-wrapper::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(201,174,132,0.15) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
}
.product-img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 25px 45px rgba(0,0,0,0.7));
    animation: float 6s ease-in-out infinite;
    position: relative; z-index: 1;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Captions / Details */
.product-captions {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 5rem 1.5rem 2.5rem;
    background: linear-gradient(to top, rgba(15,12,10,0.95) 0%, rgba(15,12,10,0.7) 50%, transparent 100%);
    display: flex; flex-direction: column; gap: 0.5rem;
    z-index: 20;
}
.prod-title { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.5px;}
.prod-subtitle { font-family: var(--font-display); font-size: 1rem; color: var(--brass); letter-spacing: 3px; margin-bottom: 0.2rem; text-transform: uppercase;}
.prod-desc { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 1.5rem; max-width: 95%; font-weight: 400;}

.action-row {
    display: flex; justify-content: space-between; align-items: center;
}
.prod-price { display: flex; align-items: baseline; gap: 0.3rem; }
.prod-price span:first-child { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.prod-price .currency { font-size: 0.9rem; color: var(--brass); font-weight: 600;}

.add-btn {
    background: rgba(255,255,255,0.1); color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1.8rem;
    border-radius: 30px; font-weight: 700; font-family: var(--font-body);
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; gap: 0.6rem;
    transition: all 0.3s ease;
}
.add-btn i { color: var(--brass); }
.add-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.2); }

/* Swipe Hint */
.swipe-hint {
    position: absolute; bottom: 100px; right: 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    opacity: 0.5; animation: bounce 2s infinite; pointer-events: none; z-index: 21;
}
.swipe-hint i { font-size: 1.2rem; color: var(--brass); }
.swipe-hint span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--white);}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Footer Section (Final Screen) ============ */
.footer-section {
    width: 100%; height: 100vh;
    scroll-snap-align: start;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: #110E0C;
    position: relative;
    padding: 2rem; text-align: center;
}
.footer-logo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--brass);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(201, 174, 132, 0.15);
}
.footer-title { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 0.5rem; }
.footer-subtitle { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 4px; color: var(--brass); margin-bottom: 2.5rem; }

.social-grid {
    display: flex; gap: 1.5rem; margin-bottom: 3rem;
}
.social-icon {
    width: 55px; height: 55px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.4rem; color: var(--white); text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover { background: var(--brass); color: #000; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(201, 174, 132, 0.3); }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.contact-item i { color: var(--brass); font-size: 1.1rem; width: 20px; }

/* RESPONSIVE-DESKTOP: تابلت وشاشات كبيرة */
@media (min-width: 768px) {
  .product-img-wrapper { width: 60%; max-width: 560px; }
  .product-captions { padding: 5.5rem 3rem 2.8rem; }
}
@media (min-width: 1080px) {
  .product-img-wrapper { width: 46%; max-width: 640px; height: 58%; }
  .product-captions { padding: 7rem 0 3.2rem; align-items: center; text-align: center; }
  .product-captions > * { max-width: 720px; }
  .prod-title { font-size: 3rem; }
  .prod-desc { font-size: 1.05rem; }
  .action-row { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 1rem; }
}
