:root {
    --t3-primary: #e42114;
    --t3-primary-dark: #9e170e;
    --t3-black: #111111;
    --t3-dark: #212529;
    --t3-light: #f3f4f6;
    --t3-muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body.theme3-body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--t3-black);
    color: #fff;
}

.theme3-page-wrap {
    min-height: 100vh;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
}

.theme3-navbar {
    background: var(--t3-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1030;
}

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

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

.theme3-navbar .navbar-brand img {
    max-height: 56px;
    width: auto;
}

.theme3-navbar .navbar-brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.theme3-navbar-spacer {
    width: 38px;
    flex-shrink: 0;
}

.theme3-offcanvas {
    background: #1a1a1a;
    color: #fff;
    width: min(320px, 88vw);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.theme3-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
}

.theme3-offcanvas .offcanvas-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.theme3-side-nav .theme3-side-link,
.theme3-side-subnav .theme3-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    line-height: 1.4;
}

.theme3-side-nav .theme3-side-link:hover,
.theme3-side-subnav .theme3-side-sublink:hover {
    background: rgba(228, 33, 20, 0.15);
    color: #fff;
}

.theme3-side-nav .theme3-side-static {
    color: rgba(255, 255, 255, 0.75);
}

.theme3-side-nav .theme3-side-link i,
.theme3-side-subnav .theme3-side-sublink i {
    width: 18px;
    text-align: center;
    color: var(--t3-primary);
}

.theme3-side-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.theme3-side-accordion-btn {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 600;
}

.theme3-side-accordion-btn:not(.collapsed) {
    background: rgba(255, 255, 255, 0.04) !important;
}

.theme3-side-accordion-btn::after {
    filter: invert(1);
}

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

.theme3-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    text-decoration: none;
}

.theme3-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.theme3-masa-badge {
    background: rgba(228, 33, 20, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

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

.theme3-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(transparent, rgba(17, 17, 17, 0.75));
}

.theme3-slide-caption p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.theme3-lang-switcher {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.theme3-lang-switcher button {
    border: 0;
    background: transparent;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.theme3-lang-switcher button.active {
    background: rgba(255, 255, 255, 0.18);
}

.theme3-content-section {
    padding: 24px 0 40px;
}

.theme3-category-card {
    position: relative;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 16px;
}

.theme3-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.theme3-category-card.no-image {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.theme3-category-card .inner {
    position: relative;
    z-index: 1;
    padding: 24px 16px;
}

.theme3-category-card h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.theme3-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--t3-black);
    border: 0;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.theme3-btn-light:hover {
    background: var(--t3-light);
    color: var(--t3-black);
}

.theme3-page-title {
    padding: 28px 16px 8px;
}

.theme3-page-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.theme3-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme3-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateX(-2px);
}

.theme3-page-title-text {
    text-align: center;
    min-width: 0;
}

.theme3-page-title h1 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.85rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.theme3-page-title .subtitle {
    color: var(--t3-muted);
    margin-top: 8px;
    font-size: 0.95rem;
}

.theme3-product-card {
    background: var(--t3-light);
    color: var(--t3-dark);
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    text-align: center;
}

.theme3-product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.theme3-product-card h3 {
    color: var(--t3-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.theme3-product-card p {
    color: #4b5563;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.theme3-product-card .price {
    color: var(--t3-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.theme3-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.theme3-product-kcal {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.theme3-product-card a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.theme3-detail-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.theme3-detail-box {
    background: var(--t3-light);
    color: var(--t3-dark);
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
}

.theme3-detail-box h2.theme3-product-title {
    color: var(--t3-primary);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

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

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

.theme3-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 28px 16px 36px;
    background: var(--t3-dark);
    border-top: 2px solid var(--t3-primary);
    color: rgba(255, 255, 255, 0.88);
}

.theme3-footer-address {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.theme3-footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.theme3-footer-about {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    max-width: 28rem;
    margin: 8px auto 0;
}

.theme3-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 14px 0 0;
}

.theme3-footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.86rem;
}

.theme3-footer-links a:hover {
    color: var(--t3-primary);
}

.theme3-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 14px 0 0;
}

.theme3-footer-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.theme3-footer-social a:hover {
    color: var(--t3-primary);
}

.theme3-footer-copy {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--t3-muted);
}

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

@media (max-width: 576px) {
    .theme3-page-wrap {
        padding-top: 64px;
    }

    .theme3-lang-switcher {
        top: 10px;
        gap: 8px;
        padding: 4px 8px;
    }

    .theme3-category-card {
        min-height: 180px;
    }
}
