/**
 * Brook Valley - Luxury Specialty Coffee Design System & Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #120D0A;
    --bg-card: #1A120B;
    --bg-card-hover: #24170E;
    --bg-surface: #2C1810;
    --border-subtle: #3D271D;
    --border-accent: #5A3A2C;
    --accent-caramel: #C88A58;
    --accent-gold: #E5BA73;
    --accent-bronze: #B87333;
    --text-cream: #FBF8F2;
    --text-muted: #D7C4B7;
    --text-dim: #9C8274;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-cream);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
}

/* Glassmorphism & Header Blur */
.glass-header {
    background: rgba(18, 13, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-card {
    background: rgba(26, 18, 11, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #120D0A;
}
::-webkit-scrollbar-thumb {
    background: #3D271D;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C88A58;
}

/* Subtle Steam Animation */
@keyframes steamAnimation {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-25px) scaleX(1.15) scaleY(1.3);
        opacity: 0.45;
    }
    100% {
        transform: translateY(-50px) scaleX(1.3) scaleY(1.6);
        opacity: 0;
    }
}

.steam-particle {
    position: absolute;
    width: 18px;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(245, 239, 235, 0.4) 0%, rgba(245, 239, 235, 0) 70%);
    border-radius: 50%;
    filter: blur(4px);
    animation: steamAnimation 3.5s infinite ease-out;
}

/* Subtle Bean Floating */
@keyframes floatBean {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(6deg);
    }
}

.animate-float {
    animation: floatBean 6s ease-in-out infinite;
}

/* Product Card Hover Zoom */
.product-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(200, 138, 88, 0.15);
    border-color: var(--border-accent);
}
.product-card .product-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
    transform: scale(1.06);
}

/* Drawer / Mini-Cart Transition */
.drawer-backdrop {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-content {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tasting Notes Badges */
.flavor-pill {
    background: rgba(200, 138, 88, 0.12);
    border: 1px solid rgba(200, 138, 88, 0.25);
    color: #E5BA73;
    font-size: 0.725rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* OTP Input Boxes */
.otp-digit-input {
    width: 3.2rem;
    height: 3.8rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: #1A120B;
    border: 1.5px solid #3D271D;
    color: #FBF8F2;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.otp-digit-input:focus {
    border-color: #E5BA73;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 186, 115, 0.25);
    background: #24170E;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast-msg {
    pointer-events: auto;
    background: rgba(26, 18, 11, 0.95);
    border: 1px solid #5A3A2C;
    color: #FBF8F2;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Mega Menu Luxury Styles */
.mega-menu-panel {
    background-color: #140D0A !important;
    background: #140D0A !important;
    opacity: 1 !important;
    border-bottom: 2px solid #C88A58 !important;
    box-shadow: 0 40px 100px 0 rgba(0, 0, 0, 0.98), 0 10px 40px rgba(0,0,0,0.8) !important;
    z-index: 100 !important;
}

.mega-menu-card {
    background-color: #1A110B !important;
    background: #1A110B !important;
    border: 1px solid #3D271D !important;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.mega-menu-card:hover {
    border-color: #5A3A2C !important;
}

.mega-menu-highlight-card {
    background: linear-gradient(180deg, #24150D 0%, #170E09 100%) !important;
    border: 1.5px solid rgba(200, 138, 88, 0.5) !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(229, 186, 115, 0.2);
}

.mega-menu-item {
    transition: all 0.2s ease;
    border-radius: 0.75rem;
}

.mega-menu-item:hover {
    background-color: #24170E !important;
    color: #E5BA73 !important;
    transform: translateX(3px);
}

/* PWA Mobile Navigation Fix */
@media (max-width: 768px) {
    body {
        padding-bottom: 4.5rem;
    }
}

