@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

/* ==== BIẾN TOÀN CỤC (ĐỒNG BỘ TỪ TRANG CHỦ) ==== */
:root {
    --primary: #0284c7; 
    --primary-glow: rgba(2, 132, 199, 0.3);
    
    /* DAY MODE */
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.85);
    --bg-top: #38bdf8; 
    --bg-bottom: #e0f2fe; 
    --glass-border: rgba(255,255,255,0.8);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.sunset-mode {
    --bg-top: #ff7e5f; 
    --bg-bottom: #feb47b;
    --primary: #be123c; 
    --primary-glow: rgba(190, 18, 60, 0.3);
    --glass-border: rgba(255,255,255,0.5);
}

body.dark-mode {
    --bg-main: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.85);
    --bg-top: #020617; 
    --bg-bottom: #1e293b;
    --primary: #38bdf8; 
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --glass-border: rgba(255,255,255,0.1);
}

body {
    margin: 0;
    background: linear-gradient(145deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    transition: background 1s ease, color 0.5s ease;
}

/* ==== HIỆU ỨNG KÍNH MỜ (GLASSMORPHISM) ==== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* CLASS TIỆN ÍCH CHO LOGO PLACEHOLDER */
.placeholder-img {
    object-fit: contain !important;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
}

.app-container { max-width: 800px; margin: 0 auto; padding: 80px 16px 0; }

/* Top Nav */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; box-sizing: border-box; z-index: 1000;
    border-radius: 0 0 30px 30px;
}
.back-btn { font-weight: 600; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.back-btn:hover { color: var(--primary); }
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.dark-toggle { font-size: 22px; cursor: pointer; color: var(--text-main); }
.dark-toggle:hover { color: var(--primary); transform: scale(1.1); }

/* Header Menu */
.header { text-align: center; padding: 20px 0 40px; }
.logo { width: 100px; margin-bottom: 15px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }
.header h1 { font-size: 32px; font-weight: 800; letter-spacing: 1px; margin: 0; text-transform: uppercase; color: var(--text-main);}
.tagline { font-size: 14px; font-weight: 600; color: var(--primary); margin: 5px 0 0; text-transform: uppercase; letter-spacing: 2px; }

/* Accordion Menu */
.category-section { margin-bottom: 20px; }
.category-header {
    padding: 20px 25px;
    border-radius: 20px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
}
.category-header:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.category-header:active { transform: scale(0.98); }
.category-header h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.toggle-icon { font-size: 18px; color: var(--primary); transition: transform 0.4s ease; }

.category-content-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.category-content-wrapper.open { grid-template-rows: 1fr; }
.category-content { overflow: hidden; }

/* ==== BỐ CỤC CARD CAO CẤP (PREMIUM LAYOUT) ==== */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; }
@media(max-width: 650px) { .card-grid { grid-template-columns: 1fr; } }

.drink-card {
    border-radius: 24px;
    padding: 20px;
    display: flex; flex-direction: column;
}
.drink-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px var(--primary-glow); border-color: var(--primary); }

.card-name { font-size: 16px; font-weight: 800; color: var(--text-main); text-align: center; text-transform: uppercase; margin-bottom: 10px; }
.card-divider { height: 1px; background: var(--text-muted); opacity: 0.15; margin-bottom: 15px; }

.card-body { display: flex; gap: 15px; align-items: stretch; }
.card-img-wrap { width: 80px; height: 100px; flex-shrink: 0; display: flex; justify-content: center; align-items: center;}
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.15)); border-radius: 12px; }

.card-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.card-desc { font-size: 12px; color: var(--text-muted); text-align: right; line-height: 1.3; }

/* ==== BỐ CỤC GIÁ MỚI: XANH TƯƠI, THẲNG HÀNG ==== */
.card-price-stacked {
    display: grid;
    grid-template-columns: min-content min-content auto;
    column-gap: 5px; row-gap: 2px;    
    background: rgba(2, 132, 199, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    align-self: flex-end; 
    margin-top: 10px;
}
.card-price-stacked span { font-size: 12px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.p-size { text-align: left; }
.p-currency { text-align: right; }
.p-amount { text-align: right; }

/* Menu Giấy (Simple List) */
.simple-list { border-radius: 24px; padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 15px; }
.simple-item { display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--text-main);}
.simple-price { color: var(--primary); font-weight: 800; }
.simple-dots { flex: 1; border-bottom: 2px dotted var(--text-muted); opacity: 0.3; margin: 0 10px; position: relative; top: -4px; }

/* Tùy chỉnh (Ice/Sugar/Syrup) */
.options-title { text-align: center; font-size: 16px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin: 50px 0 20px; }
.note-box { display: grid; gap: 15px; margin-top: 20px;}
.note-card { border-radius: 20px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; }
.note-icon { font-size: 20px; color: var(--primary); background: var(--bg-main); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: var(--shadow); }
.note-text strong { display: block; font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 3px;}
.note-text span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.syrup-box { width: 100%; }
.syrup-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; row-gap: 4px; margin-top: 8px; }
.syrup-grid span { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer Links & Bottom Bar */
.social-links { display: flex; justify-content: center; gap: 20px; margin: 40px 0; }
.social-links a { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; text-decoration: none; }
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-5px); }

.bottom-spacer { height: 120px; }

.floating-bar { 
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); 
    width: 90%; max-width: 450px; 
    border-radius: 100px; display: flex; align-items: center; padding: 8px; z-index: 1000; 
}
.action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; padding: 14px 0; border-radius: 100px; transition: 0.3s; text-decoration: none; color: var(--text-main); }
.action-btn:hover { background: var(--bg-main); color: var(--primary); }
.btn-call { color: var(--primary); } 
.btn-dir { color: #059669; } 
.divider { width: 1px; height: 30px; background: var(--text-muted); opacity: 0.2; }
