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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Bar */
nav {
    background-color: #8B4513;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    color: #FF8C42;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo span {
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF8C42;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #FF8C42;
    transform: translateY(-2px);
}

/* Cart Badge */
.cart-badge {
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.cart-badge.updated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    75% { transform: scale(0.9); }
}

/* Page Animations */
.page {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.page.active {
    display: block;
}

.page.fade-out {
    animation: fadeOutDown 0.4s ease-in;
}

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

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Home Page */
.home-page {
    display: none;
}

.hero {
    height: 100vh;
    background-image: url(pics/bg-home.jpg);
    object-fit: cover;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding: 3rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.6) 0%, rgba(139, 69, 19, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    font-family: "Gloria Hallelujah", cursive;
    background-color: rgba(116, 61, 27, 0.15);
    border: 1px solid #ffffff20;
    backdrop-filter: blur(16px) saturate(120%);
    border-radius: 16px;
    transition: .5s ease-in-out;
}

.hero-content:hover {
    background-color: rgba(116, 61, 27, 0.7);
    width: 64%;
    transition: .5s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.3;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0.95;
    font-weight: 400;
}

.features {
    position: relative;
    padding: 4rem 2rem;
    background-color: #fff;
    height: auto;
}

.features h2 {
    text-align: center;
    color: #8B4513;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    animation: scaleIn 0.5s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tutorial {
    background-color: rgba(255, 160, 52, 0.767);
    padding: 4rem 2rem; 
    display: flex;
    align-items: center;
    flex-direction: column;
    height: auto; 
}

.tutorial h2 {
    margin: 40px 10px 40px 10px;
    font-size: 30px;
}

.tutor-container {
    display: flex;
    align-items: flex; 
    gap: 1.5rem; 
    margin-bottom: 2rem; 
    width: 100%;
    max-width: 800px; 
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tutor-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tutor-container h3 {
    background-color: #8B4513;  
    color: white;
    font-size: 1.8rem;
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.txt-tutor {
    width: 100%; 
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    background-color: transparent; 
}

.txt-tutor span {
    font-weight: bold;
}

/* Store Page */
.store-page {
    display: none;
    margin-top: 70px;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
    min-height: calc(100vh - 70px);
}

.store-page h1 {
    text-align: center;
    color: #8B4513;
    margin-bottom: 2rem;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.store-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s;
    animation: slideInRight 0.5s ease-out backwards;
}

.store-card:nth-child(1) { animation-delay: 0.1s; }
.store-card:nth-child(2) { animation-delay: 0.3s; }
.store-card:nth-child(3) { animation-delay: 0.5s; }
.store-card:nth-child(4) { animation-delay: 0.7s; }
.store-card:nth-child(5) { animation-delay: 0.9s; }
.store-card:nth-child(6) { animation-delay: 1.1s; }

.store-card:hover {
    transform: translateY(-5px);
}

.store-logo {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FF8C42, #8B4513);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.store-info {
    padding: 1.5rem;
}

.store-info h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.store-info p {
    color: #666;
}

/* Store Detail */
.store-detail {
    display: none;
    margin-top: 70px;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
    min-height: calc(100vh - 70px);
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-btn {
    background: #8B4513;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #6d3510;
}

.store-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-logo-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FF8C42, #8B4513);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    flex-shrink: 0;
}

.store-desc {
    flex: 1;
    min-width: 300px;
}

.store-desc h2 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.store-desc p {
    color: #333;
    line-height: 1.8;
}

.menu-section {
    margin-top: 2rem;
}

.menu-section h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #FF8C42;
    transition: transform 0.2s;
    animation: scaleIn 0.4s ease-out backwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }

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

.menu-item h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.menu-item p {
    color: #666;
    font-size: 0.95rem;
}

.menu-item .price {
    color: #FF6B35;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.order-btn {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    width: 100%;
    font-size: 1rem;
    transition: transform 0.2s;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Contact Page */
.contact-page {
    display: none;
    margin-top: 70px;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
    min-height: calc(100vh - 70px);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-container h1 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    animation: fadeInUp 0.5s ease-out backwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Cart Page */
.cart-page {
    display: none;
    margin-top: 70px;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
    min-height: calc(100vh - 70px);
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-container h1 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.cart-empty {
    background: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
}

.cart-item-info {
    flex: 1;
}

.cart-item-store {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.cart-item-desc {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #FF6B35;
    font-size: 1.3rem;
    font-weight: bold;
    min-width: 120px;
    text-align: right;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.3rem;
    border-radius: 8px;
}

.qty-btn {
    background: #FF8C42;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #FF6B35;
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #1a1a1a;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #dc2626;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 0.4s ease-out;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
}

.summary-row.total {
    border-top: 2px solid #FF8C42;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B4513;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: transform 0.2s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.btn-clear {
    width: 100%;
    background: #6b7280;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: background 0.2s;
}

.btn-clear:hover {
    background: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        object-fit: cover;
    }
    .nav-links {
        gap: 1rem;
    }
    .hero-content:hover {
        width: 100%;
    }    

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .features {
        height: auto;
    }

    .tutorial h2 {
        font-size: 2rem;
    }
    
    .tutor-container {
        flex-direction: column; 
        text-align: center;
        padding: 1.5rem;
    }

    .tutor-container h3 {
        margin: 0 auto 1rem auto; 
    }

    .txt-tutor {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}