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

:root {
    --chalkboard-dark: #2c2c2c;
    --chalkboard-darker: #1a1a1a;
    --chalk-white: #f5f5f5;
    --chalk-yellow: #fff9c4;
    --accent-color: #ff6b6b;
}

body {
    font-family: 'Kalam', 'Patrick Hand', cursive, sans-serif;
    background: var(--chalkboard-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    color: var(--chalk-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--chalkboard-darker);
    padding: 30px 0;
    text-align: center;
    border-bottom: 3px solid var(--chalk-white);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--chalk-white);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
    transform: rotate(-1deg);
    display: inline-block;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--chalk-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(1deg);
    display: inline-block;
    font-family: 'Patrick Hand', cursive;
}

/* Navigation */
.nav {
    background: var(--chalkboard-darker);
    padding: 15px 0;
    border-bottom: 2px dashed var(--chalk-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-link {
    color: var(--chalk-white);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--chalk-yellow);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05) translateY(-2px);
    color: var(--chalk-yellow);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.3),
        5px 5px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(-0.5deg);
    display: block;
    width: 100%;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--chalk-yellow);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(0.5deg);
    display: block;
    width: 100%;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-illustrations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.illustration {
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.illustration.spoon {
    top: 10%;
    left: 10%;
    transform: rotate(-20deg);
    animation-delay: 0s;
}

.illustration.cheese {
    top: 15%;
    right: 15%;
    transform: rotate(25deg);
    animation-delay: 1s;
}

.illustration.mushroom {
    top: 50%;
    left: 15%;
    transform: rotate(-15deg);
    animation-delay: 2s;
}

.illustration.shrimp {
    bottom: 20%;
    right: 20%;
    transform: rotate(20deg);
    animation-delay: 3s;
}

.illustration.fork {
    bottom: 15%;
    right: 10%;
    transform: rotate(-25deg);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation, 0deg));
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Patrick Hand', cursive;
    color: var(--chalkboard-dark);
    background: var(--chalk-white);
    border: 3px solid var(--chalk-white);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    transform: rotate(-1deg);
}

.btn:hover {
    background: var(--chalk-yellow);
    transform: rotate(0deg) scale(1.05);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--chalk-white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: #ff5252;
}

/* Section Styles */
.menu-section,
.about-section,
.contact-section {
    padding: 80px 0;
    border-top: 2px dashed var(--chalk-white);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin: 0 auto 50px auto;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.3),
        5px 5px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(-1deg);
    display: block;
    width: 100%;
}

/* Menu Categories */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'Patrick Hand', cursive;
    background: transparent;
    color: var(--chalk-white);
    border: 2px solid var(--chalk-white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-btn:hover,
.category-btn.active {
    background: var(--chalk-white);
    color: var(--chalkboard-dark);
    transform: scale(1.1);
    text-shadow: none;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.menu-item {
    background: var(--chalkboard-darker);
    border: 3px solid var(--chalk-white);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    transform: rotate(-0.5deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
    overflow: hidden;
}

.menu-item::before {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 249, 196, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:nth-child(even) {
    transform: rotate(0.5deg);
}

.menu-item:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    box-shadow: 8px 12px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 249, 196, 0.3);
    border-color: var(--chalk-yellow);
    z-index: 10;
}

.menu-item-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

/* Menu Item Images - Transparent Background */
.menu-item img,
.menu-grid .menu-item img,
#menuGrid .menu-item img,
section#menu .menu-item img {
    width: 100%;
    max-width: 295px;
    height: auto;
    max-height: 287px;
    object-fit: contain;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: normal;
    display: block;
    margin: 0 auto 15px auto;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}

.menu-item-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--chalk-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    min-height: 2.6em;
}

.menu-item-name-en {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
    font-style: italic;
}

.menu-item-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 3em;
}

.menu-item-price {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Menu Item Options (ตัวเลือกอาหาร) */
.menu-item-options {
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.options-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--chalk-yellow);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    user-select: none;
    font-size: 0.9rem;
    color: var(--chalk-white);
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.option-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--chalk-yellow);
    flex-shrink: 0;
}

.option-input[type="radio"] {
    accent-color: var(--chalk-yellow);
}

.option-input[type="checkbox"] {
    accent-color: var(--chalk-yellow);
}

.option-label.radio-label .option-input:checked + .option-text {
    color: var(--chalk-yellow);
    font-weight: 700;
}

.option-label.checkbox-label .option-input:checked + .option-text {
    color: var(--chalk-yellow);
    font-weight: 600;
}

.option-text {
    flex: 1;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.option-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85em;
    margin-left: 4px;
}

.menu-item-btn {
    padding: 12px 20px;
    font-size: 1rem;
    background: var(--chalk-white);
    color: var(--chalkboard-dark);
    border: 2px solid var(--chalk-white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Patrick Hand', cursive;
    width: 100%;
    margin-top: auto;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.menu-item-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--chalk-yellow);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.menu-item-btn:hover::before {
    width: 300px;
    height: 300px;
}

.menu-item-btn:hover {
    background: var(--chalk-yellow);
    transform: scale(1.05);
    color: var(--chalkboard-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Table selector (home.php) */
.table-selector {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid var(--chalk-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.table-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--chalk-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    flex: 1;
}

.table-toggle-btn {
    background: transparent;
    border: none;
    color: var(--chalk-yellow);
    cursor: pointer;
    padding: 4px 8px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.table-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table-toggle-btn.expanded {
    transform: rotate(180deg);
}

.table-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.table-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.table-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid var(--chalk-white);
    background: transparent;
    color: var(--chalk-white);
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-btn:hover {
    background: var(--chalk-yellow);
    color: var(--chalkboard-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.table-btn.active {
    background: var(--chalk-yellow);
    color: var(--chalkboard-dark);
    border-color: var(--chalk-yellow);
    box-shadow: 0 0 0 2px rgba(255, 249, 196, 0.5);
}

@media (max-width: 768px) {
    .table-selector {
        padding: 12px 16px;
    }

    .table-header {
        margin-bottom: 0;
    }

    .table-title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .table-toggle-btn {
        display: flex;
    }

    .table-buttons {
        gap: 6px;
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    .table-buttons.expanded {
        max-height: 500px;
        opacity: 1;
        margin-top: 12px;
    }

    .table-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .table-title {
        font-size: 1.1rem;
    }

    .table-buttons {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .table-buttons.expanded {
        flex-direction: row;
    }

    .table-btn {
        width: auto;
        flex: 0 0 calc(50% - 3px);
        text-align: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

.menu-item-btn.btn-shop-closed {
    background: #64748b;
    color: #ffffff;
    border-color: #475569;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.menu-item-btn.btn-shop-closed::before {
    display: none;
}

.menu-item-btn.btn-shop-closed:hover {
    background: #64748b;
    transform: none;
    color: #ffffff;
    box-shadow: none;
    cursor: not-allowed;
}

.menu-item-btn.btn-shop-closed::after {
    /* Use unicode escape to avoid UTF-8 encoding issues */
    content: "\1F512";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text,
.about-text-en {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    word-spacing: 2px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    white-space: pre-line; /* à¸£à¸­à¸‡à¸£à¸±à¸šà¸‚à¸¶à¹‰à¸™à¸šà¸£à¸£à¸—à¸±à¸”à¹ƒà¸«à¸¡à¹ˆà¸ˆà¸²à¸à¹‚à¸„à¹‰à¸” HTML */
}

.about-text-en {
    opacity: 0.8;
    font-style: italic;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--chalkboard-darker);
    border: 2px solid var(--chalk-white);
    border-radius: 10px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    transform: rotate(-0.5deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.contact-item:nth-child(even) {
    transform: rotate(0.5deg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--chalk-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--chalk-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--chalk-yellow);
}

.contact-en {
    opacity: 0.8;
    font-style: italic;
    font-size: 1rem;
}

/* Cart */
.cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff5252 100%);
    color: var(--chalk-white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--chalk-white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 107, 0.6);
    }
}

.cart-toggle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 107, 0.6);
    animation: none;
}

.cart-icon {
    font-size: 2rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--chalk-yellow) 0%, #ffeb3b 100%);
    color: var(--chalkboard-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid var(--chalk-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--chalkboard-darker);
    border-left: 3px solid var(--chalk-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 2px solid var(--chalk-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cart-tabs {
    display: flex;
    gap: 10px;
    flex: 1;
}

.cart-tab-btn {
    background: transparent;
    border: 2px solid var(--chalk-white);
    color: var(--chalk-white);
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cart-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cart-tab-btn.active {
    background: var(--chalk-white);
    color: var(--chalkboard-darker);
    text-shadow: none;
    font-weight: 600;
}

.cart-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--chalk-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cart-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
    font-size: 1.2rem;
}

.cart-item {
    background: var(--chalkboard-dark);
    border: 2px solid var(--chalk-white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease-out;
}

.cart-item-info {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--chalk-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-item-price {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    background: var(--chalk-white);
    color: var(--chalkboard-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--chalk-yellow);
    transform: scale(1.1);
}

.quantity-value {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    background: var(--accent-color);
    color: var(--chalk-white);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.cart-item-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cart-item-cancel::before {
    content: 'âš ï¸';
    margin-right: 8px;
    font-size: 1rem;
}

.cart-item-cancel span {
    color: #fca5a5;
    font-weight: 600;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--chalk-white);
}

.cart-total {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.promptpay-image {
    display: block;
    margin: 10px auto 0;
    width: 180px;
    max-width: 70%;
    height: auto;
    background: #ffffff;
    /* border: 3px solid var(--chalk-white); */
    border-radius: 12px;
    /* padding: 8px; */
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
    .promptpay-image {
        width: 160px;
        padding: 6px;
        border-radius: 10px;
    }
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: var(--accent-color);
    color: var(--chalk-white);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Patrick Hand', cursive;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.btn-checkout:hover {
    background: #ff5252;
    transform: scale(1.02);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.btn.btn-shop-closed {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: #64748b;
    color: #ffffff;
    border: 3px solid #475569;
    border-radius: 8px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    font-family: 'Patrick Hand', cursive;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    opacity: 0.85;
    text-align: center;
    position: relative;
}

.btn.btn-shop-closed:hover {
    background: #64748b;
    transform: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.btn.btn-shop-closed::before {
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--chalkboard-darker);
    padding: 30px 0;
    text-align: center;
    border-top: 2px dashed var(--chalk-white);
}

.footer p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-item {
        min-height: auto;
        padding: 20px;
    }
    
    .menu-item:hover {
        transform: rotate(0deg) scale(1.02) translateY(-3px);
    }
    
    .menu-item-description {
        min-height: auto;
    }
    
    .menu-item-name {
        min-height: auto;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-item {
        min-height: auto;
        padding: 25px 15px;
    }
    
    .cart-toggle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .cart-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        min-height: 400px;
    }
    
    .illustration {
        font-size: 2.5rem;
    }
    
    .menu-section,
    .about-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .menu-item {
        padding: 15px;
    }
    
    .menu-item-icon {
        font-size: 3rem;
    }
    
    .menu-item-name {
        font-size: 1.3rem;
    }
    
    .menu-item-price {
        font-size: 1.5rem;
    }

    .menu-item-options {
        padding: 10px;
        margin: 10px 0;
    }

    .options-group-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .option-label {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .option-input {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .option-price {
        font-size: 0.8em;
    }
    
    .about-text,
    .about-text-en {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .cart-item-cancel {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .cart-item-cancel::before {
        font-size: 0.9rem;
        margin-right: 6px;
    }
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.login-modal-content {
    position: relative;
    background: var(--chalkboard-darker);
    border: 3px solid var(--chalk-white);
    border-radius: 15px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.login-modal.show .login-modal-content {
    transform: scale(1);
}

.login-modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--chalk-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-header h2 {
    font-size: 2rem;
    color: var(--chalk-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    transform: rotate(-0.5deg);
}

.login-modal-close {
    background: transparent;
    border: none;
    color: var(--chalk-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.login-modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.login-modal-body {
    padding: 25px;
}

.login-modal-body .form-group {
    margin-bottom: 20px;
}

.login-modal-body .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--chalk-yellow);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.login-modal-body .form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--chalkboard-dark);
    border: 2px solid var(--chalk-white);
    border-radius: 8px;
    color: var(--chalk-white);
    font-size: 1rem;
    font-family: 'Patrick Hand', cursive;
    transition: all 0.3s ease;
}

.login-modal-body .form-control:focus {
    outline: none;
    border-color: var(--chalk-yellow);
    box-shadow: 0 0 0 3px rgba(255, 249, 196, 0.2);
}

.login-modal-body .form-control::placeholder {
    color: rgba(245, 245, 245, 0.5);
}

.btn-block {
    width: 100%;
}

/* Login Button */
.login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #22c335 0%, #1ea82e 100%);
    color: var(--chalk-white);
    border: 3px solid var(--chalk-white);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Patrick Hand', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1ea82e 0%, #22c335 100%);
    transform: translateY(-2px);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
}

.login-btn span {
    font-size: 1.2rem;
}

/* User Info */
.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--chalkboard-darker);
    border: 2px solid var(--chalk-white);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--chalk-white);
    font-size: 1rem;
    font-family: 'Patrick Hand', cursive;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.user-info span {
    color: var(--chalk-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.logout-btn {
    background: var(--accent-color);
    color: var(--chalk-white);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-family: 'Patrick Hand', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Menu Item Image Styles */
.menu-item-image {
    width: 100%;
    max-width: 295px;
    height: auto;
    max-height: 287px;
    object-fit: contain;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: normal;
    display: block;
    margin: 0 auto 15px auto;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.05);
}

/* Cart Item Image */
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--chalk-white);
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Enhanced Menu Item Animations */
.menu-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(-0.5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-0.5deg);
    }
}

.menu-item:nth-child(even) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Enhanced Cart Item Styles */
.cart-item {
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 249, 196, 0.3);
    border-color: var(--chalk-yellow);
    background: rgba(255, 255, 255, 0.05);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Menu Items */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.menu-item.loading {
    background: linear-gradient(
        90deg,
        var(--chalkboard-darker) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--chalkboard-darker) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Section Title */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--chalk-yellow), transparent);
    border-radius: 2px;
}

/* Enhanced Footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--chalk-yellow), transparent);
}

/* Enhanced Category Button */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:hover::before,
.category-btn.active::before {
    width: 300px;
    height: 300px;
}

.category-btn span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .login-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .login-btn,
    .user-info {
        top: 10px;
        right: 10px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

