:root {
    --t9-bg: #f4f4f5;
    --t9-paper: #ffffff;
    --t9-text: #18181b;
    --t9-muted: #71717a;
    --t9-accent: #f97316;
    --t9-accent-dark: #ea580c;
    --t9-accent-soft: rgba(249, 115, 22, 0.12);
    --t9-line: #e4e4e7;
    --t9-shadow: 0 2px 12px rgba(24, 24, 27, 0.06);
    --t9-shadow-hover: 0 8px 24px rgba(249, 115, 22, 0.12);
    --t9-radius: 16px;
    --t9-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.theme9-body {
    margin: 0;
    font-family: var(--t9-font);
    background: var(--t9-bg);
    color: var(--t9-text);
    -webkit-font-smoothing: antialiased;
}

.theme9-page-wrap { min-height: 100vh; padding-top: 60px; padding-bottom: 16px; }

.theme9-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--t9-line);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    z-index: 1030;
}

.theme9-navbar .container-fluid {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
}

.theme9-navbar .navbar-brand {
    margin: 0;
    justify-self: center;
    text-decoration: none;
}

.theme9-navbar .navbar-brand img { max-height: 44px; width: auto; }

.theme9-brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--t9-text);
    letter-spacing: -0.02em;
}

.theme9-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--t9-bg);
    color: var(--t9-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.theme9-icon-btn:hover {
    background: var(--t9-accent-soft);
    color: var(--t9-accent-dark);
}

.theme9-masa-badge {
    background: linear-gradient(135deg, var(--t9-accent), var(--t9-accent-dark));
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.theme9-lang-bar,
.theme9-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 10px 14px;
}

.theme9-carousel .theme9-lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 4px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: var(--t9-shadow);
}

.theme9-lang-btn {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--t9-muted);
    cursor: pointer;
}

.theme9-lang-btn.active {
    background: var(--t9-accent);
    color: #fff;
}

/* Carousel — image sizing: public/front/css/theme-carousel.css */

.theme9-slide-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(24, 24, 27, 0.75));
}

.theme9-slide-caption p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.theme9-hero {
    padding: 20px 16px 8px;
}

.theme9-hero-eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t9-accent);
    font-weight: 700;
}

.theme9-hero-title {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.theme9-hero-tagline {
    margin: 8px 0 0;
    color: var(--t9-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.theme9-chip-nav {
    position: sticky;
    top: 60px;
    z-index: 1020;
    background: rgba(244, 244, 245, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--t9-line);
}

.theme9-chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px;
    scrollbar-width: none;
}

.theme9-chip-scroll::-webkit-scrollbar { display: none; }

.theme9-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--t9-paper);
    color: var(--t9-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--t9-shadow);
    transition: all 0.2s ease;
}

.theme9-chip:hover,
.theme9-chip.is-active {
    background: var(--t9-accent);
    color: #fff;
    box-shadow: var(--t9-shadow-hover);
}

.theme9-menu-sections { padding-bottom: 24px; }

.theme9-category-section {
    padding: 20px 0 8px;
}

.theme9-category-banner img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--t9-radius);
    box-shadow: var(--t9-shadow);
}

.theme9-category-head {
    padding: 0 0 12px;
}

.theme9-category-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.theme9-category-desc {
    margin: 0 0 12px;
    color: var(--t9-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.theme9-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme9-product-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--t9-radius);
    background: var(--t9-paper);
    box-shadow: var(--t9-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme9-product-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--t9-shadow-hover);
    color: inherit;
}

.theme9-product-row:active {
    transform: scale(0.99);
}

.theme9-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--t9-bg);
    flex-shrink: 0;
}

.theme9-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme9-product-thumb.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececef;
}

.theme9-product-thumb.is-placeholder img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.theme9-product-body h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.theme9-product-body p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--t9-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme9-product-meta {
    text-align: right;
    min-width: 72px;
    align-self: center;
}

.theme9-product-price {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--t9-accent-dark);
    white-space: nowrap;
}

.theme9-product-kcal {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--t9-muted);
}

.theme9-page-head {
    padding: 16px 0 8px;
}

.theme9-page-head h1 {
    margin: 8px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.theme9-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--t9-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.theme9-back-link:hover { color: var(--t9-accent-dark); }

.theme9-detail-layout {
    display: grid;
    gap: 16px;
}

.theme9-detail-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--t9-radius);
    box-shadow: var(--t9-shadow);
}

.theme9-detail-box {
    background: var(--t9-paper);
    border-radius: var(--t9-radius);
    padding: 20px;
    box-shadow: var(--t9-shadow);
}

.theme9-detail-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--t9-accent);
    font-weight: 700;
}

.theme9-detail-box h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.theme9-detail-alt {
    margin: 6px 0 0;
    color: var(--t9-muted);
    font-size: 0.9rem;
}

.theme9-detail-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.theme9-detail-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--t9-accent-dark);
}

.theme9-detail-desc {
    color: var(--t9-text);
    line-height: 1.6;
    font-size: 0.92rem;
}

.theme9-variations h2 {
    margin: 20px 0 10px;
    font-size: 1rem;
    font-weight: 800;
}

.theme9-variation-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--t9-line);
}

.theme9-variation-price {
    font-weight: 800;
    color: var(--t9-accent-dark);
    white-space: nowrap;
}

.theme9-footer {
    border-top: 1px solid var(--t9-line);
    padding: 24px 16px 32px;
    background: var(--t9-paper);
}

.theme9-footer-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.theme9-footer-about {
    color: var(--t9-muted);
    font-size: 0.85rem;
    max-width: 32rem;
    margin: 8px auto;
}

.theme9-footer-copy {
    color: var(--t9-muted);
    font-size: 0.78rem;
}

.theme9-empty,
.theme9-empty-inline {
    text-align: center;
    color: var(--t9-muted);
    padding: 32px 16px;
    background: var(--t9-paper);
    border-radius: var(--t9-radius);
    box-shadow: var(--t9-shadow);
}

.theme9-offcanvas {
    background: var(--t9-paper);
    width: min(320px, 88vw);
}

.theme9-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--t9-line);
}

.theme9-offcanvas .offcanvas-title {
    font-weight: 800;
    font-size: 1rem;
}

.theme9-side-link,
.theme9-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--t9-text);
    text-decoration: none;
    border-bottom: 1px solid var(--t9-line);
    font-size: 0.92rem;
    font-weight: 600;
}

.theme9-side-sublink { padding-left: 36px; font-size: 0.88rem; font-weight: 500; }

.theme9-side-link:hover,
.theme9-side-sublink:hover {
    background: var(--t9-accent-soft);
    color: var(--t9-accent-dark);
}

.theme9-side-divider {
    padding: 14px 20px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t9-muted);
    font-weight: 700;
}

.theme9-side-static { color: var(--t9-muted); }

@media (max-width: 576px) {
    .theme9-product-row {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
    }

    .theme9-product-thumb {
        width: 72px;
        height: 72px;
    }

    .theme9-product-meta {
        grid-column: 2;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .theme9-product-kcal { margin-top: 0; }
}

@media (min-width: 768px) {
    .theme9-detail-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
