:root {
    --primary: #FF8C00;
    --primary-dark: #E07800;
    --primary-light: #FFF3E0;
    --bg: #FFF9F0;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #777777;
    --text-white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 14px;
}

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

body {
    font-family: 'Kanit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden { display: none !important; }

/* ========== TOP NAVBAR ========== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.top-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B35 50%, #C85A17 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--text-white);
    padding: 20px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.5);
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 3px;
}

.hero-tagline {
    margin-top: 12px;
    font-size: 1.05rem;
    opacity: 0.85;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Kanit', sans-serif;
}

.primary-btn {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.primary-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.outline-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.outline-btn:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title i {
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0e6d6, #e8d5c0);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.4;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cat-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: white;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeUp 0.4s ease-out;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f0e6d6;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0e6d6, #e8d5c0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.product-sizes {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.size-badge {
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========== TOPPINGS ========== */
.topping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.topping-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.topping-card:hover {
    transform: translateY(-2px);
}

.topping-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.topping-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.topping-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== PROMOTIONS ========== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.promo-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: -24px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 32px;
    transform: rotate(35deg);
    letter-spacing: 1px;
}

.promo-badge.sale { background: var(--primary); }
.promo-badge.new { background: #27ae60; }

.promo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.promo-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.promo-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.promo-period {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 20px;
}

.promo-period i {
    margin-right: 4px;
}

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light), #ffe0b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.blog-body {
    padding: 20px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-date i {
    margin-right: 4px;
}

.blog-body h3 {
    font-size: 1.05rem;
    margin: 8px 0;
    line-height: 1.4;
}

.blog-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== ACTIVITIES ========== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.activity-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.activity-img {
    min-width: 120px;
    background: linear-gradient(135deg, var(--primary-light), #ffe0b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
}

.activity-body {
    padding: 20px;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.activity-body h3 {
    font-size: 1rem;
    margin: 6px 0;
}

.activity-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ========== ORDER ========== */
.order-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.order-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.order-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.order-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    transition: all 0.2s;
}

.order-btn:hover {
    background: var(--primary);
    color: white;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.contact-info-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item > i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 4px;
    width: 24px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 260px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ========== FOOTER ========== */
.footer {
    background: #2c2c2c;
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white !important;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 32px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ========== LOADING ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading i {
    color: var(--primary);
    margin-right: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 8px 16px 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        max-height: 250px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .product-image,
    .product-image-placeholder {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .topping-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        flex-direction: column;
    }

    .activity-img {
        min-height: 120px;
    }

    .order-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
