* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #FBF5E9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(251, 245, 233, 0.95);
    z-index: 1000;
    padding: 1.5rem 0;
}

body.homepage .navbar {
    background-color: transparent;
}

.nav-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
}

.logo::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-color: #442D15;
    z-index: -1;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.logo-img {
    height: 4.5rem;
    width: auto;
    display: block;
    z-index: 1000;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: #442D15;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-menu a:hover {
    color: #442D15;
}

.instagram-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.instagram-img {
    width: 2.8rem;
    height: 2.8rem;
    display: block;
    transition: opacity 0.3s ease;
}

.instagram-icon:hover {
    transform: scale(1.2);
}

.instagram-icon:hover .instagram-img {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: #FBF5E9 !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    -webkit-transform: translateX(100%);
    -webkit-transition: transform 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #5C3D2E;
    padding: 0.5rem;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-close .close-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-menu-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #442D15;
    padding: 0.5rem;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-back:hover {
    opacity: 0.7;
}

.mobile-menu-back svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    position: relative;
}

.mobile-menu-logo {
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
}

.mobile-menu-logo::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -20%;
    width: 140%;
    height: 120%;
    background-color: #442D15;
    z-index: -1;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.mobile-logo-img {
    height: 4.5rem;
    width: auto;
    display: block;
    z-index: 1000;
    position: relative;
    top: -1rem;
}

.mobile-nav-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    text-align: center;
    width: 100%;
}

.mobile-nav-items a {
    font-size: 2rem;
    font-weight: 700;
    color: #442D15;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.mobile-nav-items a:hover,
.mobile-nav-items a:active {
    color: #8B4513;
}

.mobile-menu-footer {
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
}

.mobile-instagram {
    display: none;
}

.mobile-instagram:hover {
    transform: scale(1.1);
    color: #E4405F;
}

.mobile-instagram svg {
    width: 32px;
    height: 32px;
}

.mobile-copyright {
    margin-top: 2rem;
    font-size: 1rem;
    color: #442D15;
    opacity: 0.8;
    line-height: 1.4;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 60rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.hero-tagline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #442D15;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 2;
}

.hero-tagline p {
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 80rem;
    margin: 0 auto;
}

.products {
    padding: 8rem 2rem;
    background-color: #FBF5E9;
}

.products-container {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 6rem;
}

.product-card {
    flex: 0 1 calc(33.333% - 4rem);
    min-width: 25rem;
    text-align: center;
}

.product-image {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 312px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    background-color: white;
}

.product-image:hover {
    transform: translateY(-10px);
}

.product-image img {
    width: 100%;
    height: 312px;
    object-fit: cover;
}

.product-card h2 {
    font-size: 4rem;
    font-weight: 700;
    color: #442D15;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    top: -1.5rem;
}

.products-footer {
    text-align: center;
}

.products-footer p {
    font-size: 2.4rem;
    font-weight: 600;
    color: #442D15;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.btn-menu {
    display: inline-block;
    background-color: #442D15;
    color: white;
    padding: 1.5rem 4rem;
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(68, 45, 21, 0.3);
}

.btn-menu:hover {
    background-color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(68, 45, 21, 0.4);
}

.footer {
    background-color: #FBF5EA;
    color: #442D15;
    padding: 2rem;
    text-align: center;
}

.footer p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    html {
        font-size: 55%;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }


    .instagram-icon {
        display: inline-flex !important;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }


    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
        justify-content: center;
        position: relative;
    }

    .logo {
        font-size: 2rem;
        padding: 0.4rem 1.5rem;
    }

    .mobile-menu-toggle {
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }


    .hero {
        height: 70vh;
        min-height: 45rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: clamp(3.2rem, 9vw, 4.5rem);
        letter-spacing: 0.02em;
    }

    .hero-tagline {
        padding: 2rem 1.5rem;
    }

    .hero-tagline p {
        font-size: 1.6rem;
        line-height: 1.5;
        padding: 0;
    }


    .products {
        padding: 4rem 1.5rem;
        background-color: #FBF5E9;
    }

    .products-container {
        gap: 2.5rem;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 1 1 100%;
        min-width: auto;
    }

    .product-image {
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }

    .product-image img {
        height: 203px;
    }

    .product-card h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .products-footer {
        margin-top: 3rem;
    }

    .products-footer p {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        font-weight: 700;
    }

    .btn-menu {
        padding: 1.2rem 2.5rem;
        font-size: 1.3rem;
        border-radius: 25px;
    }


    .footer {
        padding: 1.5rem;
    }

    .footer p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .product-card {
          display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 0 1 calc(50% - 2rem);
    }

    .hero-content h1 {
        font-size: 6rem;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 50%;
    }

    .logo {
        font-size: 1.8rem;
        padding: 0.3rem 1.2rem;
    }

    .hero {
        height: 60vh;
        min-height: 40rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-tagline p {
        font-size: 1.5rem;
    }

    .product-image img {
        height: 203px;
    }

    .product-card h2 {
        font-size: 2rem;
    }

    .products-footer p {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.page-header {
    margin-top: 6.5rem;
    padding: 4rem 2rem;
    background-color: transparent;
    text-align: center;
}

.page-header h1 {
    font-size: 53.42px;
    font-weight: 700;
    color: #442D15;
    letter-spacing: 0.1em;
    position: relative;
}
.page-header h1::after{
     content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1.3rem;
    background-image:url('../images/menu-underline.svg');
      background-size: 100% 70%;
    background-repeat: no-repeat;
}
.menu-content {
    padding: 6rem 2rem;
    background-color: #FBF5E9;
    min-height: 60vh;
}

.menu-container {
    max-width: 120rem;
    margin: 0 auto;
}

.menu-category {
    background-color: #4A3426;
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-title {
    color: #FBF5E9;
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.5rem;
}
.category-title-1 {
    color: #FBF5E9;
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.5rem;
}
.category-title-1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.3rem;
    background-image:url('../images/frozen-yogurt&taiyaki&crepe-underline.svg');
      background-size: 100% 70%;
    background-repeat: no-repeat;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.3rem;
    background-image:url('../images/milktea-underline.svg');
      background-size: 100% 70%;
    background-repeat: no-repeat;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4rem;
}

.menu-grid.two-rows {
    grid-template-rows: repeat(2, 1fr);
}

.menu-item {
    background-color: transparent;
    padding: 0;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-item:hover {
    transform: scale(1.05);
}

.item-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 35px;
    position: relative;
    background-color: #4A3426;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}

.menu-item:hover .item-image {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item h3 {
    padding: 1rem 0.5rem;
    font-size: 20.45px;
    font-weight: 700;
    color: #FBF5E9;
    letter-spacing: 0.08em;
    line-height: 1.2;
    background-color: #4A3426;
    text-transform: uppercase;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    border-radius: 15px;
}

.nav-menu a.active {
    color: #D2B48C;
    font-weight: 600;
}

.mobile-nav-items a.active {
    color: #D2B48C;
}

@media (max-width: 640px) {
    .page-header {
        margin-top: 5.5rem;
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .page-header h1::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30%;
        height: 6px;
    }

    .menu-content {
        padding: 3rem 1rem;
    }

    .menu-category {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 3rem;
    }

    .category-title,
    .category-title-1 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .category-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30%;
        height: 6px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .menu-item h3 {
        font-size: 1.5rem;
        padding: 1rem 0.5rem;
        min-height: 4rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .menu-category {
        padding: 2.5rem;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .menu-item h3 {
        font-size: 1rem;
    }
}

@media (min-width: 1440px) {
    .menu-container {
        max-width: 140rem;
    }

    .menu-grid {
        gap: 3rem;
    }
}

@font-face {
    font-family: 'DarumadropOne-Regular';
    src: url("../DarumadropOne-Regular.ttf");
}
*{
      font-family: 'DarumadropOne-Regular';
}