/* Custom Fonts */
@font-face {
    font-family: 'Periosea';
    src: url('../fonts/Periosea.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AcuminVariable';
    src: url('../fonts/AcuminVariableConcept-WideExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'AcuminVariable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Loading Spinner */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ebe2d0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-logo {
    width: 250px;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ========== Category Navigation Bar ========== */
.category-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ebe2d0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-nav-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    flex-shrink: 0;
    padding: 15px 25px;
    font-family: 'Periosea', serif;
    font-size: 16px;
    font-weight: bold;
    color: #1a3a2e;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.4s ease, color 0.4s ease, border-bottom-color 0.4s ease;
    border-bottom: 3px solid transparent;
    border-right: 1px solid #1a3a2e;
}

.category-nav-item:hover {
    background-color: rgba(235, 226, 208, 0.1);
}

.category-nav-item.active {
    background-color: #1a3a2e;
    color: #ebe2d0;
    border-bottom-color: #ebe2d0;
}

@media (max-width: 768px) {
    .category-nav-item {
        padding: 12px 20px;
        font-size: 14px;
        letter-spacing: 1.5px;
        border-right: 1px solid #1a3a2e;
    }
}

@media (max-width: 480px) {
    .category-nav-item {
        padding: 15px 15px;
        font-size: 12px;
        letter-spacing: 1px;
        border-right: 1px solid #1a3a2e;
    }
}

/* ========== Page Layout ========== */
.page {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-2 {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

@media (min-width: 769px) {
    .page-2 {
        min-height: 100vh;
        height: 100dvh;
    }
}

/* ========== Menu Content ========== */
.menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 769px) {
    .menu-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Header - positioned inside the background frame area */
.menu-header {
    flex-shrink: 0;
    padding: 13vh 25vw 1.5vh;
}

.parent-category {
    font-family: 'Periosea', serif;
    font-size: 48px;
    font-weight: bold;
    color: #1a3a2e;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
}

/* Menu Body - content area below the header frame */
.menu-body {
    flex: 1;
    padding: 5vh 6vw 5vh;
    overflow: hidden;
}

/* ========== Categories ========== */
.category-section {
    margin-bottom: 8px;
    padding-top: 15px
}

.category-title {
    font-family: 'Periosea', serif;
    background: #1a3a2e;
    color: #ebe2d0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.category-description {
    text-align: center;
    font-family: 'AcuminVariable', sans-serif;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    font-weight: bold;
}

/* ========== Products ========== */
.product-list {
    padding: 0 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    line-height: 1.4;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 15px;
}

.product-name {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.product-name-translate {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 12px;
    color: #57606a;
    font-style: italic;
}

.product-description {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 12px;
    color: #57606a;
    line-height: 1.3;
    font-style: italic;
}

.product-details {
    display: flex;
    gap: 20px;
    align-items: baseline;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-alcohol {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    min-width: 45px;
    text-align: right;
}

.product-quantity {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    min-width: 45px;
    text-align: right;
}

.product-price {
    font-family: 'AcuminVariable', sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    min-width: 55px;
    text-align: right;
}

/* ========== Responsive - Tablet ========== */
@media (max-width: 768px) {
    .page {
        background-attachment: scroll;
    }

    .menu-header {
        padding: 9vh 6vw 1vh;
    }

    .parent-category {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .menu-body {
        padding: 5vh 5vw 1.5vh;
    }

    .category-title {
        font-size: 20px;
        padding: 8px 15px;
    }

    .category-description {
        font-size: 13px;
    }

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

    .product-item {
        padding: 3px 0;
    }

    .product-name {
        font-size: 12px;
    }

    .product-name-translate {
        font-size: 10px;
    }

    .product-description {
        font-size: 10px;
    }

    .product-details {
        gap: 12px;
    }

    .product-alcohol,
    .product-quantity {
        font-size: 13px;
        min-width: 40px;
    }

    .product-price {
        font-size: 14px;
        min-width: 50px;
    }
}

/* ========== Responsive - Mobile ========== */
@media (max-width: 480px) {
    .menu-header {
        padding: 9vh 8vw 0.5vh;
    }

    .parent-category {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .category-section {
        padding-top: 0
    }
    .menu-body {
        padding: 5vh 3vw 1vh;
    }

    .category-title {
        font-size: 16px;
        padding: 7px 10px;
        margin-bottom: 8px;
        letter-spacing: 2px;
    }

    .category-description {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .product-list {
        padding: 0;
    }

    .product-item {
        padding: 2px 0;
    }

    .product-name {
        font-size: 11px;
    }

    .product-name-translate {
        font-size: 9px;
    }

    .product-description {
        font-size: 9px;
    }

    .product-details {
        gap: 8px;
    }

    .product-alcohol,
    .product-quantity {
        font-size: 12px;
        min-width: 35px;
    }

    .product-price {
        font-size: 13px;
        min-width: 45px;
    }
}
