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

:root {
    /* Premium Luxury Palette matching yakinda.jpeg */
    --bg-base: #E7D4BE;
    --text-primary: #2C1A0D; /* Deep luxury brown */
    --text-secondary: #5C4332; /* Soft brown for readable text */
    --accent-gold: #B8860B; /* Deep elegant gold */
    --accent-light-gold: rgba(184, 134, 11, 0.15);
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.5);
    --gold-border: rgba(184, 134, 11, 0.3);
    
    /* Shadows */
    --shadow-elegant: 0 10px 40px rgba(44, 26, 13, 0.08);
    --shadow-glow: 0 8px 30px rgba(184, 134, 11, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at top, #F4E7D3 0%, #DDBF9F 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Headings use Playfair Display for a luxurious serif look */
h1, h2, h3, .logo-text, .section-title, .item-price {
    font-family: 'Playfair Display', serif;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.1);
    position: relative;
    background: transparent;
    overflow-x: hidden;
}

/* Header */
.app-header {
    text-align: center;
    padding: 3.5rem 1.5rem 2rem;
    position: relative;
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.logo-text span {
    color: var(--accent-gold);
    font-weight: 400;
    font-style: italic;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle::before, .subtitle::after {
    content: '';
    display: block;
    width: 25px;
    height: 1px;
    background-color: var(--accent-gold);
}

/* Popular Marquee */
.popular-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem;
    position: relative;
}

.popular-marquee-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.popular-marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 20s linear infinite;
    padding-left: 1rem;
}

.popular-marquee-track:hover {
    animation-play-state: paused;
}

.popular-item {
    width: 80px;
    margin-right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popular-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
    margin-bottom: 0.5rem;
}

.popular-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: normal;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sticky Category Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(231, 212, 190, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gold-border);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-pills {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1.5rem;
    gap: 1.5rem;
    list-style: none;
    scroll-behavior: smooth;
}

.nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 2px solid transparent;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.nav-pill.active {
    color: var(--accent-gold);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
}

/* Main Content */
.menu-content {
    padding: 2rem 1.5rem 3rem;
}

.menu-section {
    margin-bottom: 4rem;
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title::before, .section-title::after {
    content: '✧';
    color: var(--accent-gold);
    font-size: 1rem;
    font-style: normal;
    opacity: 0.7;
}

/* Elegant Item Cards */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-card {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--gold-border);
    background: rgba(255, 255, 255, 0.6);
}

.item-card:hover::before {
    opacity: 1;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: auto;
    letter-spacing: 0.5px;
}

.item-card:hover .item-img-wrap img {
    transform: scale(1.1) rotate(2deg);
}

/* Out of Stock Styling */
.item-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(100%);
    pointer-events: none;
}
.item-img-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    align-self: center;
}
.item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Coming Soon Banner */
.coming-soon-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 1rem;
}

.coming-soon-banner {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--glass-border);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    border-top: 1px solid var(--gold-border);
    margin-top: 2rem;
    opacity: 0.8;
}

/* Splash Screen (Mobile Only) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

.splash-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 769px) {
    .splash-screen {
        display: none !important;
    }
}
