@font-face {
    font-family: 'Palmier';
    src: url('../../PALMIER-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Full Blue & White Theme */
    --primary: #ffffff;
    /* Accent is now White */
    --primary-dark: #e0e0e0;
    --accent: #6DB0FF;
    /* Light Blue Accent */

    --bg-body: #0056D2;
    /* Main Blue Background */
    --surface: #004EBD;
    /* Slightly Darker Blue for Headers/Surfaces */
    --surface-secondary: rgba(255, 255, 255, 0.1);

    --text-main: #FFFFFF;
    --text-sub: rgba(255, 255, 255, 0.75);
    --text-price: #FFFFFF;

    --border: rgba(255, 255, 255, 0.1);
    --border-dashed: rgba(255, 255, 255, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Palmier', sans-serif;

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-circle: 50%;

    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 1. Header */
.app-header {
    background: var(--bg-body);
    /* Seamless Blue */
    padding: 24px 20px 16px 20px;
    /* Shifted down */
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: none;
    /* Removed shadow for flat look */
}

.header-brand {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 34px;
    /* Increased Size */
    color: var(--text-main);
    letter-spacing: 1px;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #fff;
    /* Logo container needs white to pop if logo is dark */
    padding: 2px;
    border-radius: 6px;
    display: none;
}

.header-actions {
    display: flex;
    gap: 16px;
    color: var(--text-main);
    display: none;
}

/* 2. Top Nav */
.nav-section {
    background: var(--bg-body);
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--border);
}

.top-tabs {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}

.top-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -13px;
}

.tab-item.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Circular Sub-Nav */
.circle-nav {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    cursor: pointer;
}

.circle-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: 2px;
    transition: all 0.2s;
    overflow: hidden;
}

.circle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-circle);
}

.circle-item.active .circle-thumb {
    border-color: #fff;
}

.circle-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
}

/* 3. Search Bar */
.search-container {
    padding: 0 20px;
    margin-top: 10px;
}

.search-box {
    background: rgba(255, 255, 255, 0.15);
    /* Glassy White */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-sub);
    box-shadow: none;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    opacity: 0.8;
    color: #fff;
}

/* 4. Product List */
.menu-content {
    background: var(--bg-body);
    padding-bottom: 80px;
}

.category-group {
    background: transparent;
    margin-top: 10px;
}

.category-header {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid var(--border);
    /* Not Sticky */
    border-bottom: 1px solid var(--border);
}

.product-list {
    padding: 0 20px;
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.product-row:last-child {
    border-bottom: none;
}

.product-row:active {
    background: rgba(255, 255, 255, 0.05);
}

.row-info {
    flex: 1;
    padding-right: 16px;
}

.row-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.row-desc {
    font-size: 12px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row-price-col {
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    min-width: 60px;
}

/* 5. Detail Page (Immersive) */
.detail-page-body {
    background: var(--bg-body);
    /* Match Main Blue */
    height: 100vh;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: overlay;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.detail-hero {
    position: relative;
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.detail-hero-img {
    height: 70%;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

.detail-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 51%;
    max-height: 65%;
    overflow-y: auto;
    background: #0044B8;
    /* Slightly darker/richer blue for sheet */
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet-badge {
    align-self: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.sheet-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.sheet-desc {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.size-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.size-opt {
    text-align: center;
    opacity: 0.5;
    transition: 0.3s;
    cursor: pointer;
    min-width: 80px;
    color: #fff;
}

.size-opt.active {
    opacity: 1;
    transform: scale(1.05);
    color: #fff;
}

.size-label {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    /* Slightly more rounded */
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.size-opt.active .size-label {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.size-price {
    font-size: 20px;
    font-weight: 700;
}

/* Extra Info Styles */
.extra-info-container {
    margin-top: 10px;
}

.info-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(255, 255, 255, 0.08);
    /* Transparent White */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: none;
}

.info-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.detail-block {
    margin-bottom: 16px;
}

.detail-label-sm {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: block;
}

.detail-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.allergen-box {
    background: rgba(255, 77, 77, 0.15);
    /* Keep slightly red but transparent */
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #FFB3B3;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: start;
    gap: 8px;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 50;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* 3. Category Pills (Sticky) - Added for Blue Theme */
.category-pills-bar {
    position: sticky;
    top: 76px;
    /* Stacks below Header */
    z-index: 45;
    background: var(--bg-body);
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-pills-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.cat-pill.active {
    background: #fff;
    color: var(--bg-body);
    border-color: #fff;
}

/* Bottom Menu Bar (Full Width Flat Modern) */
.bottom-menu-bar {
    position: fixed;
    bottom: -100px;
    /* Hidden */
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    padding: 12px 30px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    /* Safe Area */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.bottom-menu-bar.visible {
    bottom: 0;
}

.menu-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #999;
    /* Inactive Gray */
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0 10px;
}

.menu-btn-item:hover,
.menu-btn-item.active {
    color: #004EBD;
    /* Brand Blue */
    transform: translateY(-2px);
}

.menu-btn-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 4px;
    height: 4px;
    background: #004EBD;
    border-radius: 50%;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.cat-pill.active {
    background: #FFFFFF;
    color: var(--bg-body);
    /* Main Blue */
    border-color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cat-pill:hover:not(.active) {
    background: #FFFFFF;
    color: var(--bg-body);
    /* Main Blue */
    border-color: #FFFFFF;
    cursor: pointer;
}