:root {
    --t8-bg: #14110f;
    --t8-bg-soft: #1c1814;
    --t8-surface: #221e1a;
    --t8-glass: #221e1a;
    --t8-glass-strong: #2a2520;
    --t8-glass-border: rgba(201, 162, 39, 0.22);
    --t8-accent: #d4a853;
    --t8-accent-bright: #e8c547;
    --t8-accent-soft: rgba(212, 168, 83, 0.14);
    --t8-accent-glow: rgba(212, 168, 83, 0.32);
    --t8-text: #f5efe6;
    --t8-muted: #a89880;
    --t8-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --t8-serif: "Playfair Display", Georgia, serif;
    --t8-sans: "DM Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body.theme8-body {
    margin: 0;
    font-family: var(--t8-sans);
    background: var(--t8-bg);
    color: var(--t8-text);
    background-image:
        radial-gradient(ellipse 70% 45% at 10% -5%, rgba(212, 168, 83, 0.1), transparent),
        radial-gradient(ellipse 55% 35% at 100% 100%, rgba(139, 105, 20, 0.08), transparent),
        linear-gradient(180deg, #14110f 0%, #1a1612 100%);
}

.theme8-page-wrap {
    min-height: 100vh;
    padding-top: 72px;
}

.theme8-navbar {
    background: rgba(20, 17, 15, 0.94);
    border-bottom: 1px solid var(--t8-glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    z-index: 1030;
}

.theme8-navbar .container-fluid {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 8px;
}

.theme8-navbar .navbar-brand {
    margin: 0;
    justify-self: center;
    max-width: calc(100% - 20px);
}

.theme8-navbar .navbar-brand img {
    max-height: 52px;
    width: auto;
}

.theme8-navbar .navbar-brand-text {
    color: var(--t8-text);
    font-family: var(--t8-serif);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.theme8-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--t8-glass);
    border: 1px solid var(--t8-glass-border);
    color: var(--t8-accent);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.theme8-icon-btn:hover {
    background: var(--t8-glass-strong);
    border-color: var(--t8-accent);
    box-shadow: 0 0 20px var(--t8-accent-glow);
    color: var(--t8-accent-bright);
}

.theme8-masa-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--t8-accent-soft);
    border: 1px solid rgba(212, 168, 83, 0.4);
    color: var(--t8-accent-bright);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.theme8-offcanvas {
    background: #1a1612;
    color: var(--t8-text);
    width: min(320px, 88vw);
    border-right: 1px solid var(--t8-glass-border);
}

.theme8-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--t8-glass-border);
    padding: 18px 20px;
}

.theme8-offcanvas .offcanvas-title {
    font-family: var(--t8-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--t8-accent-bright);
}

.theme8-side-nav .theme8-side-link,
.theme8-side-subnav .theme8-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--t8-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    font-size: 0.92rem;
    line-height: 1.4;
}

.theme8-side-nav .theme8-side-link:hover,
.theme8-side-subnav .theme8-side-sublink:hover {
    background: var(--t8-accent-soft);
    color: var(--t8-accent-bright);
}

.theme8-side-nav .theme8-side-static {
    color: var(--t8-muted);
}

.theme8-side-nav .theme8-side-link i,
.theme8-side-subnav .theme8-side-sublink i {
    width: 18px;
    text-align: center;
    color: var(--t8-accent);
}

.theme8-side-accordion {
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}

.theme8-side-accordion .accordion-item {
    background: transparent;
    border: 0;
}

.theme8-side-accordion-btn {
    background: transparent !important;
    color: var(--t8-text) !important;
    box-shadow: none !important;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 600;
}

.theme8-side-accordion-btn:not(.collapsed) {
    background: var(--t8-glass-strong) !important;
    color: var(--t8-accent-bright) !important;
}

.theme8-side-accordion-btn::after {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}

.theme8-side-subnav .theme8-side-sublink {
    padding-left: 50px;
    font-size: 0.88rem;
}

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

.theme8-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(245, 239, 230, 0.35);
    border: 0;
}

.theme8-carousel .carousel-indicators .active {
    background-color: var(--t8-accent);
}

.theme8-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px 18px;
    background: linear-gradient(transparent, rgba(20, 17, 15, 0.92));
    border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.theme8-slide-caption p {
    margin: 0;
    font-family: var(--t8-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--t8-accent-bright);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.theme8-lang-bar {
    position: relative;
    min-height: 48px;
    background: var(--t8-bg-soft);
    border-bottom: 1px solid var(--t8-glass-border);
}

.theme8-lang-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--t8-surface);
    border: 1px solid var(--t8-glass-border);
}

.theme8-lang-btn {
    border: 0;
    background: transparent;
    color: var(--t8-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.theme8-lang-btn.active {
    background: var(--t8-accent-soft);
    color: var(--t8-accent-bright);
}

.theme8-content-section {
    padding: 28px 0 48px;
}

.theme8-category-card {
    display: block;
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
    contain: paint;
    text-decoration: none;
    background-color: var(--t8-bg-soft);
    border: none;
    box-shadow: inset 0 0 0 1px var(--t8-glass-border), var(--t8-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.theme8-category-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.theme8-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(20, 17, 15, 0.12) 0%, transparent 45%, rgba(20, 17, 15, 0.35) 72%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.theme8-category-card.no-image {
    background: linear-gradient(145deg, var(--t8-bg-soft), #2a2318);
}

.theme8-category-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.55), 0 16px 48px rgba(212, 168, 83, 0.12), var(--t8-shadow);
}

.theme8-category-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    background: #14110f;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 0 0 16px 16px;
}

.theme8-category-glass h2 {
    margin: 0 0 10px;
    font-family: var(--t8-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--t8-text);
    letter-spacing: 0.02em;
}

.theme8-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--t8-accent-soft);
    border: 1px solid rgba(212, 168, 83, 0.45);
    color: var(--t8-accent-bright);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme8-page-title {
    padding: 20px 0 8px;
}

.theme8-page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

.theme8-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--t8-glass);
    border: 1px solid var(--t8-glass-border);
    color: var(--t8-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.theme8-page-title-text h1 {
    margin: 0;
    font-family: var(--t8-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--t8-accent-bright);
    letter-spacing: 0.02em;
}

.theme8-page-title-text .subtitle {
    color: var(--t8-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.theme8-product-card {
    background: var(--t8-glass);
    border: 1px solid var(--t8-glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--t8-shadow);
    height: 100%;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.theme8-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 8px 32px rgba(212, 168, 83, 0.1), var(--t8-shadow);
}

.theme8-product-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.theme8-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--t8-bg-soft);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

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

.theme8-product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme8-product-body h3 {
    margin: 0 0 8px;
    font-family: var(--t8-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.theme8-product-body p {
    margin: 0 0 12px;
    color: var(--t8-muted);
    font-size: 0.88rem;
    flex: 1;
}

.theme8-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.theme8-product-body .price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t8-accent-bright);
}

.theme8-product-kcal {
    font-size: 0.78rem;
    color: var(--t8-muted);
}

.theme8-detail-wrap {
    padding-bottom: 48px;
}

.theme8-detail-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--t8-glass-border);
    box-shadow: var(--t8-shadow);
}

.theme8-detail-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.theme8-detail-box {
    background: var(--t8-glass);
    border: 1px solid var(--t8-glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--t8-shadow);
}

.theme8-product-title {
    font-family: var(--t8-serif);
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--t8-accent-bright);
    letter-spacing: 0.02em;
}

.theme8-detail-box .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t8-accent-bright);
    margin: 12px 0;
}

.theme8-muted {
    color: var(--t8-muted);
}

.theme8-description {
    line-height: 1.7;
    color: rgba(245, 239, 230, 0.88);
}

.theme8-variation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--t8-glass-border);
}

.theme8-variation:last-child {
    border-bottom: 0;
}

.theme8-variation .price {
    font-size: 1rem;
    white-space: nowrap;
    color: var(--t8-accent-bright);
}

.theme8-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--t8-muted);
    background: var(--t8-glass);
    border: 1px dashed var(--t8-glass-border);
    border-radius: 14px;
}

.theme8-footer {
    margin-top: auto;
    padding: 28px 0;
    background: #12100e;
    border-top: 1px solid var(--t8-glass-border);
}

.theme8-footer a {
    color: var(--t8-text);
    text-decoration: none;
}

.theme8-footer a:hover {
    color: var(--t8-accent-bright);
}

@media (min-width: 768px) {
    .theme8-category-card {
        min-height: 260px;
    }
}
