:root {
    --ink: #141414;
    --muted: #70757d;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --accent: #2b1fff;
    --accent-2: #5c52ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--ink);
    background: #fff;
}

a { color: inherit; text-decoration: none; }
.page-shell { max-width: 1280px; margin: 0 auto; }
.section-divider { border-top: 1px solid var(--line); }
.top-strip { font-size: 12px; color: var(--muted); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
}
.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #5f6368;
    font-size: 16px;
}
.nav-link:hover { background: #f3f4f6; color: #111; }
.nav-link-active { background: #171717; color: #fff; }
.nav-link-active:hover { background: #171717; color: #fff; }
.cart-btn {
    border: 1px solid var(--line);
    background: #fff;
    padding: 14px 18px;
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 2px;
    font-weight: 500;
    color: #222;
}
.mobile-nav {
    position: relative;
    display: none;
}
.mobile-nav > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav-toggle {
    position: relative;
    width: 18px;
    height: 12px;
}
.mobile-nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #171717;
    transition: 0.2s ease;
}
.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 5px; }
.mobile-nav-toggle span:nth-child(3) { bottom: 0; }
.mobile-nav[open] .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.mobile-nav[open] .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}
.mobile-nav[open] .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}
.mobile-nav-backdrop {
    display: none;
}
.mobile-nav[open] .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 45;
}
.mobile-nav-panel {
    position: fixed;
    right: 1rem;
    left: 1rem;
    top: 76px;
    width: auto;
    max-width: 320px;
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    padding: 8px;
    display: none;
    gap: 4px;
    z-index: 50;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}
.mobile-nav[open] .mobile-nav-panel {
    display: grid;
}
.mobile-nav-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #222;
    font-weight: 500;
}
.mobile-nav-panel a:hover {
    background: #f3f4f6;
}
.hero-space { min-height: 58vh; display: flex; align-items: center; }
.hero-with-bg {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.55) 100%);
    z-index: 0;
}
.muted { color: var(--muted); }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.label { font-size: 15px; font-weight: 500; color: #222; display: block; }
.input, .select, .textarea {
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    outline: none;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43,31,255,0.08);
}
.btn-primary {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 14px 20px;
    border-radius: 2px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: #222;
    padding: 14px 20px;
    border-radius: 2px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover { background: #f3f4f6; }
.btn-accent-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent-active:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.category-tile {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-tile:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.category-tile.is-active {
    border-color: var(--ink);
    background: #f3f4f6;
}
.category-tile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.05));
}
.category-tile-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.category-tile-icon {
    position: relative;
    z-index: 2;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}
.category-tile-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.footer-link { color: #666; }
.footer-link:hover { color: #111; }

@media (max-width: 767px) {
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    .mobile-nav {
        display: block;
    }

    .page-shell {
        max-width: 100%;
    }

    .site-header .page-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header .flex.items-center.justify-between {
        gap: 0.75rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .site-header img {
        height: 40px !important;
    }

    .cart-btn {
        padding: 10px 12px;
        min-width: 0;
        gap: 6px;
    }

    .cart-btn span:last-child {
        display: none;
    }

    .hero-space {
        min-height: auto;
        padding-top: 2rem;
    }

    h1 {
        font-size: clamp(2.3rem, 9vw, 3.5rem) !important;
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(1.9rem, 7vw, 2.7rem) !important;
        line-height: 1.12;
    }

    h3 {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }

    h3.text-4xl {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        line-height: 1.15;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .input,
    .select,
    .textarea {
        padding: 12px 13px;
        font-size: 16px;
    }

    .card {
        border-radius: 1rem;
    }

    body {
        overflow-x: hidden;
    }
}

/* Eventry chat assistant widget */
.eventry-chat-fab {
    position: fixed;
    right: 1rem;
    bottom: 6rem;
    width: 54px;
    height: 54px;
    border-radius: 9999px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 12px 28px rgba(43, 31, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eventry-chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(43, 31, 255, 0.45);
}
@media (min-width: 768px) {
    .eventry-chat-fab { bottom: 1.5rem; }
}

.eventry-chat-panel {
    position: fixed;
    right: 1rem;
    bottom: 10.5rem;
    width: min(320px, calc(100vw - 2rem));
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    z-index: 60;
    overflow: clip;
}
.eventry-chat-panel.hidden { display: none; }
@media (min-width: 768px) {
    .eventry-chat-panel { bottom: 6rem; }
}

.eventry-chat-header {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.eventry-chat-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.eventry-chat-messages {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-right: 0.15rem;
}

.eventry-chat-msg {
    max-width: 88%;
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    line-height: 1.4;
    border: 1px solid transparent;
}
.eventry-chat-msg-assistant {
    align-self: flex-start;
    background: var(--soft);
    color: var(--ink);
    border-color: var(--line);
}
.eventry-chat-msg-user {
    align-self: flex-end;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
}

.eventry-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 2.2rem;
}
.eventry-chat-typing span {
    width: 0.33rem;
    height: 0.33rem;
    border-radius: 999px;
    background: #94a3b8;
    opacity: 0.35;
    animation: eventryTypingPulse 1s infinite ease-in-out;
}
.eventry-chat-typing span:nth-child(2) { animation-delay: 0.16s; }
.eventry-chat-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes eventryTypingPulse {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-1px); }
}

.eventry-chat-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.eventry-chat-starter-btn {
    border: 1px solid rgba(43, 31, 255, 0.28);
    background: #fff;
    color: var(--accent);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.eventry-chat-starter-btn:hover {
    background: rgba(43, 31, 255, 0.08);
    border-color: rgba(43, 31, 255, 0.45);
}

.eventry-chat-form {
    display: flex;
    gap: 0.4rem;
}
.eventry-chat-form input {
    min-width: 0;
    flex: 1 1 0%;
}

.eventry-chat-send {
    border: 0;
    color: #fff;
    border-radius: 9px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.eventry-chat-fallback {
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}
.eventry-chat-fallback.hidden { display: none; }
