:root {
    --t4-primary: #dd2d1e;
    --t4-accent: #eb7a61;
    --t4-dark: #343331;
    --t4-text: #333;
    --t4-muted: #777;
    --t4-bg: #f7f7f7;
    --t4-card: #ffffff;
    --t4-radius: 10px;
}

* { box-sizing: border-box; }

body.theme4-body {
    margin: 0;
    font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    background: var(--t4-bg);
    color: var(--t4-text);
}

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

.theme4-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1030;
}

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

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

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

.theme4-navbar .navbar-brand-text {
    color: var(--t4-dark);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.theme4-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--t4-dark);
    text-decoration: none;
}

.theme4-icon-btn:hover { background: #f3f4f6; color: var(--t4-primary); }

.theme4-masa-badge {
    background: var(--t4-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

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

.theme4-slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35);
}

.theme4-slide-caption h2 {
    margin: 0;
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 7px;
    color: #fff;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(1.2rem, 4vw, 2.4rem);
    font-weight: 500;
    text-align: center;
}

.theme4-lang-switcher {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.theme4-lang-switcher button {
    border: 0;
    background: transparent;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--t4-dark);
}

.theme4-lang-switcher button.active {
    background: var(--t4-primary);
    color: #fff;
}

.theme4-menu-intro {
    text-align: center;
    padding: 28px 16px 8px;
    font-size: 1.05rem;
    color: var(--t4-muted);
}

.theme4-section { padding: 12px 0 40px; }

.theme4-category-card {
    display: flex;
    align-items: stretch;
    background: var(--t4-card);
    border-radius: var(--t4-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    min-height: 120px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme4-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.theme4-category-card .thumb {
    width: 42%;
    min-width: 120px;
    max-width: 180px;
    flex-shrink: 0;
    background: #ececec center/cover no-repeat;
}

.theme4-category-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme4-category-card .body {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    flex: 1;
}

.theme4-category-card h3 {
    margin: 0;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--t4-dark);
}

.theme4-page-head {
    padding: 24px 0 8px;
}

.theme4-page-head-row {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 12px;
    padding: 0 16px;
}

.theme4-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--t4-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.theme4-back-btn:hover { color: var(--t4-primary); border-color: var(--t4-accent); }

.theme4-page-head h1 {
    margin: 0;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--t4-dark);
}

.theme4-page-head .subtitle {
    color: var(--t4-muted);
    margin-top: 6px;
    font-size: 0.95rem;
}

.theme4-category-hero img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--t4-radius);
}

.theme4-category-desc {
    text-align: center;
    color: var(--t4-muted);
    padding: 12px 16px 20px;
    max-width: 720px;
    margin: 0 auto;
}

.theme4-product-row {
    display: flex;
    align-items: stretch;
    background: var(--t4-card);
    border: 1px solid #dcdcdc;
    border-radius: var(--t4-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
}

.theme4-product-row:hover { color: inherit; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); border-color: #cfcfcf; }

.theme4-product-row .thumb {
    width: 38%;
    max-width: 160px;
    min-height: 120px;
    flex-shrink: 0;
    background: #ececec;
    border-right: 1px solid #e0e0e0;
}

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

.theme4-product-row .thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
}

.theme4-product-row .thumb--placeholder img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.theme4-product-row .content {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}

.theme4-product-row h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--t4-dark);
}

.theme4-product-row p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--t4-muted);
    line-height: 1.45;
}

.theme4-price-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    flex-shrink: 0;
}

.theme4-price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.theme4-price-value {
    background: var(--t4-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.theme4-product-kcal {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--t4-muted);
    white-space: nowrap;
}

.theme4-detail-box {
    background: var(--t4-card);
    border-radius: var(--t4-radius);
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.theme4-detail-box h2 {
    color: var(--t4-primary);
    font-family: "Marcellus", Georgia, serif;
    margin: 0 0 8px;
}

.theme4-detail-box .price {
    color: var(--t4-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 12px 0;
}

.theme4-detail-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--t4-radius);
}

.theme4-variation {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.theme4-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: 24px;
}

.theme4-footer a { color: var(--t4-dark); text-decoration: none; }
.theme4-footer a:hover { color: var(--t4-primary); }

.theme4-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--t4-muted);
}

.theme4-offcanvas {
    background: #fff;
    width: min(320px, 88vw);
}

.theme4-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
}

.theme4-side-link,
.theme4-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--t4-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.theme4-side-link:hover,
.theme4-side-sublink:hover {
    background: #fdf3f1;
    color: var(--t4-primary);
}

.theme4-side-link i,
.theme4-side-sublink i {
    width: 18px;
    color: var(--t4-primary);
}

.theme4-side-sublink { padding-left: 48px; font-size: 0.92rem; }

.theme4-side-accordion .accordion-button {
    box-shadow: none !important;
    background: #fff !important;
    color: var(--t4-dark) !important;
    font-weight: 600;
}

.theme4-side-static { color: var(--t4-muted); }

@media (max-width: 576px) {
    .theme4-product-row { flex-wrap: wrap; }
    .theme4-product-row .thumb {
        width: 100%;
        max-width: none;
        height: 140px;
        border-right: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .theme4-price-badge { width: 100%; justify-content: flex-end; padding-top: 0; }
}
