/* Custom Fonts */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

@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%;
    scroll-behavior: smooth;
    font-family: 'Oswald', Arial, sans-serif;
}

/* Loading Spinner */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    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: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
}

.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: 'Oswald', Arial, sans-serif;
    font-size: 16px;

    color: #375e3f;
    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 #375e3f;

}

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

.category-nav-item.active {
    background-color: #375e3f;
    color: white;
    border-bottom-color: white;
}

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

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

/* ========== Back Button ========== */
.back-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background-color: #375e3f;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-button:hover {
    background-color: white;
    color: #375e3f;
    border-color: #375e3f;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .back-button {
        bottom: 25px;
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .back-button {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 10px;
    }
}

/* ========== Page Layout ========== */
.page {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.page-1 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-2 {
    width: 100%;
    min-height: 100vh;
    background-color: #375e3f;
}

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

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

@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: 'Oswald', Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #375e3f;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
}

/* Menu Body - content area below the header frame */
.menu-body {
    padding: 4vh 6vw 70vh;
}

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

.category-section:first-child {
    padding-top: 0;
}

.category-section.category-continuation {
    padding-top: 0;
    margin-bottom: 0;
}

.category-title {
    font-family: 'Oswald', Arial, sans-serif;
    color: white;
    font-size: 36px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 3px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: white;
    margin-bottom: 8px;
}

.category-description {
    text-align: left;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
    color: white;
    margin-bottom: 5px;
    font-weight: normal;
    opacity: 0.9;
    white-space: pre-line;
}

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

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

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

.product-name {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 22px;
    color: white;
    text-transform: capitalize;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.product-name-translate {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 13px;
    color: white;
    font-style: normal;
    opacity: 0.9;
}

.product-description {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 18px;
    color: white;
    line-height: 1.3;
    font-style: normal;
    opacity: 0.85;
}

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

.product-alcohol {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: white;
    min-width: 45px;
    text-align: right;
}

.product-quantity {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: white;
    min-width: 45px;
    text-align: right;
}

.product-price {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: white;
    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: 3vh 5vw 25vh;
    }

    .category-title {
        font-size: 30px;
        gap: 12px;
    }

    .category-title::after {
        margin-bottom: 6px;
    }

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

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

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

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

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

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

    .product-details {
        gap: 12px;
    }

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

    .product-price {
        font-size: 18px;
        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: 2.5vh 3vw 70vh;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 5px;
        letter-spacing: 2px;
        gap: 10px;
    }

    .category-title::after {
        margin-bottom: 5px;
    }

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

    .product-list {
        padding: 0;
    }

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

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

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

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

    .product-details {
        gap: 8px;
    }

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

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