:root {
    --t2-bg: #fff8f4;
    --t2-paper: #ffffff;
    --t2-text: #1f1f1f;
    --t2-muted: #7a7168;
    --t2-accent: #ff4301;
    --t2-accent-dark: #d93600;
    --t2-accent-soft: rgba(255, 67, 1, 0.12);
    --t2-line: #efe6dc;
    --t2-dark: #1e1e1e;
    --t2-serif: "Fraunces", Georgia, serif;
    --t2-sans: "Inter", "Segoe UI", sans-serif;
    --t2-radius: 14px;
    --t2-shadow: 0 8px 24px rgba(31, 31, 31, 0.08);
}

* { box-sizing: border-box; }

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

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

/* Navbar */
.theme2-navbar {
    background: var(--t2-accent);
    box-shadow: 0 2px 12px rgba(255, 67, 1, 0.25);
    z-index: 1030;
}

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

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

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

.theme2-brand-text {
    font-family: var(--t2-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.theme2-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

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

.theme2-masa-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lang switcher */
.theme2-lang-bar,
.theme2-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 14px;
}

.theme2-carousel .theme2-lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    border: 1px solid var(--t2-line);
}

.theme2-lang-btn {
    border: 0;
    background: transparent;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--t2-muted);
    cursor: pointer;
}

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

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

.theme2-slide-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.theme2-slide-caption p {
    margin: 0;
    color: #fff;
    font-family: var(--t2-serif);
    font-size: 1.2rem;
}

/* Hero */
.theme2-hero {
    padding: 28px 0 8px;
}

.theme2-hero-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t2-accent);
}

.theme2-hero-title {
    margin: 0 0 8px;
    font-family: var(--t2-serif);
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
}

.theme2-hero-tagline {
    margin: 0 auto;
    max-width: 24rem;
    color: var(--t2-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Category grid */
.theme2-categories {
    padding: 12px 0 32px;
}

.theme2-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.theme2-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--t2-radius);
    overflow: hidden;
    background: var(--t2-paper);
    box-shadow: var(--t2-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme2-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 67, 1, 0.15);
}

.theme2-category-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a2a, #111);
}

.theme2-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme2-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.theme2-category-media.is-fallback,
.theme2-category-card.no-image .theme2-category-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--t2-accent), var(--t2-accent-dark));
}

.theme2-category-initial {
    font-family: var(--t2-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.theme2-category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.88rem;
}

.theme2-category-label i {
    color: var(--t2-accent);
    font-size: 0.75rem;
}

/* Page head */
.theme2-page-head {
    padding: 20px 0 12px;
}

.theme2-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--t2-accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.theme2-back-link:hover { color: var(--t2-accent-dark); }

.theme2-page-head h1 {
    margin: 0;
    font-family: var(--t2-serif);
    font-size: 1.6rem;
    font-weight: 600;
}

.theme2-category-banner {
    border-radius: var(--t2-radius);
    overflow: hidden;
    box-shadow: var(--t2-shadow);
}

.theme2-category-banner img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Product list */
.theme2-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.theme2-product-row:hover {
    border-color: rgba(255, 67, 1, 0.35);
    box-shadow: var(--t2-shadow);
}

.theme2-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--t2-accent-soft);
}

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

.theme2-product-thumb.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme2-product-body h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.theme2-product-body p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--t2-muted);
    line-height: 1.4;
}

.theme2-product-meta {
    text-align: right;
}

.theme2-product-price {
    display: block;
    font-weight: 700;
    color: var(--t2-accent);
    font-size: 0.95rem;
    white-space: nowrap;
}

.theme2-product-kcal {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--t2-muted);
}

/* Product detail */
.theme2-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme2-detail-image {
    border-radius: var(--t2-radius);
    overflow: hidden;
    box-shadow: var(--t2-shadow);
}

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

.theme2-detail-box {
    background: var(--t2-paper);
    border: 1px solid var(--t2-line);
    border-radius: var(--t2-radius);
    padding: 20px;
}

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

.theme2-detail-box h1 {
    margin: 0 0 8px;
    font-family: var(--t2-serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.theme2-detail-alt {
    margin: 0 0 12px;
    color: var(--t2-muted);
    font-size: 0.9rem;
}

.theme2-detail-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.theme2-detail-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t2-accent);
}

.theme2-detail-desc {
    color: var(--t2-text);
    line-height: 1.65;
    font-size: 0.92rem;
}

.theme2-variations {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--t2-line);
}

.theme2-variations h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
}

.theme2-variation-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--t2-line);
}

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

.theme2-variation-price {
    font-weight: 700;
    color: var(--t2-accent);
    white-space: nowrap;
}

/* Offcanvas */
.theme2-offcanvas {
    background: var(--t2-paper);
    width: min(300px, 88vw);
    border-right: 1px solid var(--t2-line);
}

.theme2-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--t2-line);
    padding: 16px 18px;
}

.theme2-offcanvas .offcanvas-title {
    font-family: var(--t2-serif);
    font-size: 1rem;
    font-weight: 600;
}

.theme2-side-link,
.theme2-side-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--t2-text);
    text-decoration: none;
    border-bottom: 1px solid var(--t2-line);
    font-size: 0.9rem;
}

.theme2-side-sublink { padding-left: 28px; font-size: 0.86rem; }

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

.theme2-side-static { cursor: default; }

.theme2-side-divider {
    padding: 12px 18px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t2-muted);
}

/* Footer — sayfa sonunda, sabit değil */
.theme2-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 28px 16px 36px;
    background: var(--t2-dark);
    color: rgba(255, 255, 255, 0.88);
}

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

.theme2-footer-title {
    font-family: var(--t2-serif);
    font-size: 1.15rem;
    color: #fff;
}

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

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

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

.theme2-footer-social a:hover { color: var(--t2-accent); }

.theme2-footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Empty state */
.theme2-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--t2-muted);
}

@media (min-width: 768px) {
    .theme2-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .theme2-detail-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .theme2-detail-image { flex: 1; }

    .theme2-detail-box { flex: 1; }
}

@media (max-width: 480px) {
    .theme2-icon-btn {
        width: 34px;
        height: 34px;
    }

    .theme2-brand-text { font-size: 1rem; }

    .theme2-masa-badge { max-width: 64px; font-size: 9px; }
}
