/* ═══════════════════════════════════════════
   Pandora Cafe QR Menu — Premium Styles
   ═══════════════════════════════════════════ */

/* ── Utilities ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
}

/* ── Global ── */
html { overscroll-behavior: none; }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img  { background: linear-gradient(135deg, #201f1f, #131313); }
img[alt="Pandora Cafe"] { background: none; }
main { animation: fadeIn 0.35s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar Hide ── */
.hide-scrollbar::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar, .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Focus ── */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #f2ca50; outline-offset: 2px; }

/* ── Safe Area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    nav.fixed.bottom-6 { padding-bottom: env(safe-area-inset-bottom); }
}


/* ═══════════════════════════════════════════
   HOME — Banner & Loyalty
   ═══════════════════════════════════════════ */

.banner-track {
    will-change: transform;
}

/* Hero section */
.home-hero {
    height: clamp(480px, 78vw, 600px);
}


/* ═══════════════════════════════════════════
   PRODUCT CARD — Full Image Overlay
   ═══════════════════════════════════════════ */

.pcard {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}
.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

/* Image zoom */
.pcard__img {
    transition: transform 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pcard:hover .pcard__img {
    transform: scale(1.08);
}

/* Border ring */
.pcard__link {
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease;
}
.pcard:hover .pcard__link {
    border-color: rgba(242, 202, 80, 0.2);
}

.menu-cat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-cat-card:hover {
    border-color: rgba(242, 202, 80, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
.menu-cat-card__bg {
    background: radial-gradient(circle at 50% 30%, rgba(242, 202, 80, 0.04) 0%, transparent 70%);
}

/* ── Category pills (menu nav) ── */
.menu-cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    padding: 8px 16px;
    min-height: 40px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(229, 226, 225, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.menu-cat-pill > span {
    display: inline-flex;
    align-items: center;
}
.menu-cat-pill .material-symbols-outlined {
    flex-shrink: 0;
}
.menu-cat-pill:hover {
    color: rgba(242, 202, 80, 0.7);
    border-color: rgba(242, 202, 80, 0.1);
}
.menu-cat-pill.is-active {
    color: #f2ca50;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.12) 0%, rgba(212, 175, 55, 0.06) 100%);
    border-color: rgba(242, 202, 80, 0.2);
    box-shadow: 0 0 16px -6px rgba(242, 202, 80, 0.15);
}

/* Badge (top-left) */
.pcard__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(242, 202, 80, 0.2);
    color: #f2ca50;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
}

/* Badge small (compact cards) */
.pcard__badge--sm {
    font-size: 9px;
    padding: 4px 10px;
    gap: 4px;
    letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════
   CAMPAIGN CARD
   ═══════════════════════════════════════════ */

.campaign-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.campaign-card:hover {
    border-color: rgba(242, 202, 80, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════ */

/* Detail top nav: transparent → solid on scroll */
.detail-topnav {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.detail-topnav.is-scrolled {
    background-color: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0;
    padding-bottom: 0;
    height: 80px;
}

/* Nav buttons (transparent over image) */
.detail-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}
.detail-nav-btn:hover {
    color: #f2ca50;
    border-color: rgba(242, 202, 80, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Hero price bar */
.detail-hero-price {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(242, 202, 80, 0.1);
}
/* Nutrition card */
.detail-nutrition {
    background: linear-gradient(165deg, rgba(28, 27, 27, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}



/* Similar product mini cards */
.detail-similar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.detail-similar-card:hover {
    border-color: rgba(242, 202, 80, 0.2);
    transform: translateY(-2px);
}
/* Back pill (product detail) */
.detail-back-pill {
    background: rgba(28, 27, 27, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.detail-back-pill:hover {
    border-color: rgba(242, 202, 80, 0.2);
}


/* ═══════════════════════════════════════════
   LOYALTY PROGRAMS
   ═══════════════════════════════════════════ */

.loyalty-program-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.loyalty-program-card:hover {
    border-color: rgba(242, 202, 80, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════
   BOTTOM NAV
   ═══════════════════════════════════════════ */

.bnav {
    background: rgba(28, 27, 27, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.bnav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 100px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}
.bnav__item:active { transform: scale(0.88); }
.bnav__item:not(.is-active):hover .bnav__icon { color: rgba(242, 202, 80, 0.55); }

.bnav__item.is-active {
    width: auto;
    height: 42px;
    padding: 0 20px;
    gap: 8px;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.13) 0%, rgba(212, 175, 55, 0.07) 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    box-shadow: 0 0 24px -8px rgba(242, 202, 80, 0.12);
}

/* Nav smoke on rewards icon */
.bnav__smoke {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 42px;
    height: 40px;
    transform: translateX(-50%);
    pointer-events: none;
    overflow: visible;
}
.bnav__smoke::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 24px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(242, 202, 80, 0.18) 35%, rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0) 82%);
    filter: blur(6px);
    opacity: 0.32;
    animation: hookahSmokeGlow 3.8s ease-in-out infinite;
}
.bnav__smoke-wisp {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: var(--w, 12px);
    height: var(--h, 12px);
    margin-left: calc(var(--w, 12px) * -0.5);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.34) 24%, rgba(242, 202, 80, 0.18) 44%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0) 78%);
    filter: blur(var(--blur, 2.2px));
    opacity: 0;
    transform-origin: center bottom;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    animation: hookahSmoke var(--duration, 4s) cubic-bezier(0.2, 0.65, 0.2, 1) var(--delay, 0s) infinite;
}
.bnav__smoke-wisp.is-1 {
    --w: 12px;
    --h: 10px;
    --blur: 1.6px;
    --start-x: -5px;
    --end-x: 11px;
    --rise: 28px;
    --turn: 8deg;
    --scale-end: 2.6;
    --duration: 4.8s;
    --delay: 0s;
}
.bnav__smoke-wisp.is-2 {
    --w: 15px;
    --h: 11px;
    --blur: 2.1px;
    --start-x: 3px;
    --end-x: -10px;
    --rise: 25px;
    --turn: -11deg;
    --scale-end: 2.2;
    --duration: 4.1s;
    --delay: 0.9s;
}
.bnav__smoke-wisp.is-3 {
    --w: 9px;
    --h: 8px;
    --blur: 1.4px;
    --start-x: 0px;
    --end-x: 7px;
    --rise: 18px;
    --turn: 5deg;
    --scale-end: 2.1;
    --duration: 3.3s;
    --delay: 0.45s;
}
.bnav__smoke-wisp.is-4 {
    --w: 18px;
    --h: 13px;
    --blur: 2.4px;
    --start-x: -2px;
    --end-x: 4px;
    --rise: 31px;
    --turn: -6deg;
    --scale-end: 2.9;
    --duration: 5.1s;
    --delay: 1.6s;
}
.bnav__smoke-wisp.is-5 {
    --w: 7px;
    --h: 6px;
    --blur: 1.2px;
    --start-x: 6px;
    --end-x: -3px;
    --rise: 14px;
    --turn: 10deg;
    --scale-end: 1.9;
    --duration: 2.9s;
    --delay: 1.15s;
}
.bnav__smoke-wisp.is-6 {
    --w: 14px;
    --h: 10px;
    --blur: 2px;
    --start-x: 8px;
    --end-x: 15px;
    --rise: 27px;
    --turn: 14deg;
    --scale-end: 2.5;
    --duration: 4.4s;
    --delay: 0.25s;
}
.bnav__smoke-wisp.is-7 {
    --w: 11px;
    --h: 9px;
    --blur: 1.7px;
    --start-x: -8px;
    --end-x: -14px;
    --rise: 23px;
    --turn: -15deg;
    --scale-end: 2.35;
    --duration: 3.7s;
    --delay: 1.45s;
}

@keyframes hookahSmoke {
    0% {
        opacity: 0;
        transform: translate3d(var(--start-x, 0px), 4px, 0) scale(0.35) rotate(0deg);
    }
    10% {
        opacity: 0.36;
    }
    28% {
        opacity: 0.42;
    }
    55% {
        opacity: 0.24;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--end-x, 8px), calc(-1 * var(--rise, 24px)), 0) scale(var(--scale-end, 2.4)) rotate(var(--turn, 8deg));
    }
}

@keyframes hookahSmokeGlow {
    0%, 100% {
        opacity: 0.22;
        transform: translateX(-50%) scale(0.92);
    }
    50% {
        opacity: 0.42;
        transform: translateX(-50%) scale(1.14);
    }
}

.bnav__icon { transition: color 0.3s ease, filter 0.3s ease; }
.bnav__item.is-active .bnav__icon { color: #f2ca50; filter: drop-shadow(0 0 4px rgba(242, 202, 80, 0.35)); }
.bnav__item:not(.is-active) .bnav__icon { color: rgba(229, 226, 225, 0.28); }

.bnav__label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f2ca50;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(242, 202, 80, 0.2);
}

/* ═══════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════ */

.profile-main {
    display: block !important;
}

.profile-page--guest {
    margin-top: 0;
}

.profile-page--member {
    margin-top: 0;
}



/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast-notification {
    position: fixed; top: 24px; left: 50%;
    transform: translateX(-50%) translateY(-100px);
    display: flex; align-items: center; gap: 10px;
    max-width: calc(100% - 32px);
    min-width: 0;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    color: #e5e2e1; padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Manrope', sans-serif;
    font-size: 13px; font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    flex-wrap: nowrap;
    z-index: 100000;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.toast-notification::before {
    font-family: 'Material Symbols Outlined';
    font-size: 18px; line-height: 1;
    font-variation-settings: 'FILL' 1;
    flex-shrink: 0;
}
.toast-notification__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toast-notification.show { transform: translateX(-50%) translateY(0); }
.toast-notification.success {
    border-color: rgba(242, 202, 80, 0.15);
    color: #f2ca50;
}
.toast-notification.success::before { content: 'check_circle'; }
.toast-notification.login::before { content: 'login'; }
.toast-notification.login {
    border-color: rgba(242, 202, 80, 0.15);
    color: #f2ca50;
}
.toast-notification.logout::before { content: 'logout'; }
.toast-notification.logout {
    border-color: rgba(242, 202, 80, 0.15);
    color: #f2ca50;
}
.toast-notification.error {
    border-color: rgba(255, 180, 171, 0.15);
    color: #ffb4ab;
}
.toast-notification.error::before { content: 'error'; }
.toast-notification.info::before { content: 'info'; color: rgba(229,226,225,0.5); }
