/* Explain: Menu page styles including banner, tabs, and product cards. */
.menu-board {
    position: relative;
    min-height: 60vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.1), transparent 42%),
        linear-gradient(180deg, #003B20 0%, #002616 100%);
}

.menu-board .dp-loading {
    color: #d9e9d6;
}

.dp-menu-inner {
    max-width: none;
    margin-inline: 0;
}

/* ---- Welcome banner ---- */
.dp-menu-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 3px solid var(--secondary-color);
    background: linear-gradient(160deg, #00512d 0%, #003B20 55%, #002616 100%);
    box-shadow: var(--shadow-card);
}

.dp-menu-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Category tabs ---- */
.dp-cat-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem 0.9rem;
    margin-bottom: 1.4rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.cat-tab {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 5rem;
    padding: 0.7rem 0.85rem;
    border-radius: 1.1rem;
    border: 2px solid var(--secondary-color);
    background: linear-gradient(145deg, #00512d, #003B20);
    color: #dbead7;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.22s ease, color 0.22s ease;
}

.cat-tab i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.cat-tab:hover {
    background: rgba(255, 196, 0, 0.18);
    transform: translateY(-1px);
}

.cat-tab.is-active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #3a2a00;
}

.cat-tab.is-active i {
    color: #3a2a00;
}

/* ---- Product board ---- */
.dp-menu-board {
    display: grid;
    gap: 1.25rem;
}

.showcase-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid rgba(255, 196, 0, 0.35);
}

.showcase-group-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.35rem, 4.5vw, 1.9rem);
    color: #fff;
}

.showcase-group-sub {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    white-space: nowrap;
}

.showcase-card {
    display: grid;
    grid-template-columns: minmax(92px, 35%) 1fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.85rem;
    border-radius: 1.5rem;
    border: 3px solid var(--secondary-color);
    background: linear-gradient(145deg, #00512d 0%, #003B20 100%);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
    .showcase-card {
        grid-template-columns: minmax(138px, 31%) 1fr;
        gap: 0.8rem;
        padding: 0.75rem 1.05rem;
    }
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px -26px rgba(0, 0, 0, 0.95), 0 0 0 2px rgba(255, 196, 0, 0.28);
}

.showcase-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
}

.showcase-glow {
    position: absolute;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 196, 0, 0.5), transparent 68%);
    filter: blur(7px);
    pointer-events: none;
}

.showcase-img {
    position: relative;
    z-index: 2;
    flex: none;
    width: 125%;
    max-width: 210px;
    margin-left: -13%;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.62));
    animation: dp-float 5.5s ease-in-out infinite;
}

@keyframes dp-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg) scale(1); }
    50% { transform: translateY(-9px) rotate(1.5deg) scale(1.04); }
}

.showcase-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.showcase-prices {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.showcase-price {
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1rem, 3.4vw, 1.3rem);
    color: #3a2a00;
    background: var(--secondary-color);
    padding: 0.15rem 0.7rem;
    border-radius: 9999px;
    box-shadow: 0 8px 16px -8px rgba(255, 196, 0, 0.95);
    white-space: nowrap;
}

.showcase-old {
    color: #9fc29b;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.showcase-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border: 1.5px solid var(--secondary-color);
    border-radius: 9999px;
    color: var(--secondary-color);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.showcase-desc {
    color: #cfe2cb;
    font-size: 0.86rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-inspect {
    align-self: flex-start;
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--secondary-color);
    background: linear-gradient(145deg, #006b3a, #00512d);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.showcase-inspect:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #007a3c, #005c30);
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.35), 0 14px 26px -12px rgba(0, 0, 0, 0.9);
}

.showcase-inspect i { color: var(--secondary-color); }

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.showcase-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--secondary-color);
    background: var(--secondary-color);
    color: #3a2a00;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(255, 196, 0, 0.95);
    transition: transform 0.2s ease, background-color 0.25s ease;
}

.showcase-add:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.showcase-add i { color: #3a2a00; }

/* ---- Home + categories tiles ---- */
.cat-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 8.5rem;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.cat-scroll .cat-card { scroll-snap-align: start; }

@media (min-width: 1024px) {
    .cat-scroll {
        grid-auto-flow: row;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        overflow: visible;
    }
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 560px) {
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cat-tile {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--secondary-color);
}

.cat-tile-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cat-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-tile-icon {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #3a2a00;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6);
}

.cat-tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.15rem 1.25rem;
}

.cat-tile-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.cat-tile-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Bottom navigation ---- */
.dp-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.1rem;
    background: rgba(0, 38, 22, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--secondary-color);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.dp-bn-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.15rem;
    color: #bcd3b8;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.64rem;
    text-align: center;
    border-radius: 0.9rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dp-bn-item i { font-size: 1.15rem; }

.dp-bn-item.is-active {
    color: var(--secondary-color);
    background: rgba(255, 196, 0, 0.12);
}

.dp-bn-item:hover { color: var(--secondary-color); }

body { padding-bottom: 4.75rem; }

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}