﻿/* === KafeYönetim — Public Site Theme === */
/* Palette: Navy (#1A2A4A), Blue (#1565C0), Brown accent (#B87333), White, Light grey */

:root {
    --kw-navy: #1A2A4A;
    --kw-blue: #1565C0;
    --kw-blue-light: #1976D2;
    --kw-accent: #B87333;
    --kw-accent-light: #D4956A;
    --kw-text: #1A2A4A;
    --kw-text-muted: #546E7A;
    --kw-bg: #F8FAFC;
    --kw-card-bg: #FFFFFF;
    --kw-border: #E8EDF2;
    --kw-success: #2E7D32;
    --kw-hero-bg: linear-gradient(135deg, #1A2A4A 0%, #1565C0 100%);
}

/* === Base === */
html, body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--kw-bg);
    color: var(--kw-text);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

a { color: var(--kw-blue); }
a:hover { color: var(--kw-blue-light); }

img { max-width: 100%; height: auto; }

/* === Skip link (Accessibility) === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: var(--kw-navy);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === Blazor reconnect UI === */
#blazor-error-ui {
    background: #ffebe9;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; }

/* === Navbar === */
.navbar-kafe {
    background: var(--kw-navy);
    padding: 0.7rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.navbar-kafe .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.navbar-kafe .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    transition: background 0.15s, color 0.15s;
}
.navbar-kafe .nav-link:hover,
.navbar-kafe .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}
.btn-uyelik {
    background: var(--kw-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.4rem 1rem !important;
    transition: opacity 0.15s !important;
}
.btn-uyelik:hover { opacity: 0.88 !important; }

/* === Footer === */
.site-footer {
    background: var(--kw-navy);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}
.footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-links { margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* === Section helpers === */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--kw-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--kw-text-muted);
    font-size: 1rem;
}

/* === Page Hero (subpages) === */
.page-hero {
    background: var(--kw-hero-bg);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* === Hero Section (homepage) === */
.hero-section {
    background: var(--kw-hero-bg);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--kw-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 100px;
    padding: 0.3rem 0.875rem;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* === Stats Bar === */
.stats-bar {
    background: var(--kw-navy);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
}

/* === How it works === */
.how-it-works { background: #EEF2F8; }
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--kw-border);
    height: 100%;
    transition: box-shadow 0.2s;
}
.step-card:hover { box-shadow: 0 8px 24px rgba(21,101,192,0.1); }
.step-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--kw-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

/* === Features === */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--kw-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover { box-shadow: 0 4px 16px rgba(26,42,74,0.08); transform: translateY(-2px); }
.feature-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF2F8;
    border-radius: 10px;
}

/* === CTA Section === */
.cta-section {
    background: var(--kw-hero-bg);
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
}
.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
}

/* === Buttons === */
.btn-primary-kafe {
    background: var(--kw-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}
.btn-primary-kafe:hover { background: var(--kw-blue-light); color: #fff; transform: translateY(-1px); }
.btn-outline-kafe {
    border: 1.5px solid var(--kw-blue);
    color: var(--kw-blue);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s;
    text-decoration: none;
    background: transparent;
}
.btn-outline-kafe:hover { background: var(--kw-blue); color: #fff; }

/* === Cafe Cards === */
.cafe-card {
    background: #fff;
    border: 1px solid var(--kw-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cafe-card:hover { box-shadow: 0 8px 28px rgba(26,42,74,0.12); transform: translateY(-3px); }
.cafe-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #EEF2F8;
    flex-shrink: 0;
}
.cafe-card-stars { color: #F59E0B; font-size: 0.85rem; }
.cafe-card-logo-lg {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    background: #EEF2F8;
    display: block;
    margin: 0 auto;
}

/* === Filter Card === */
.filter-card {
    background: #fff;
    border: 1px solid var(--kw-border);
    border-radius: 16px;
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}

/* === Hizmetler Cards === */
.hizmet-card {
    background: #fff;
    border: 1px solid var(--kw-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.hizmet-card:hover { box-shadow: 0 8px 24px rgba(21,101,192,0.1); transform: translateY(-3px); }
.hizmet-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF2F8;
    border-radius: 14px;
    margin-bottom: 1rem;
}

/* === Forms === */
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--kw-text); }
.form-control, .form-select {
    border: 1.5px solid var(--kw-border);
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--kw-blue);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}

/* === Chat balloon (AI assistant) === */
.chat-balloon-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
}
.chat-toggle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--kw-navy);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,42,74,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-toggle-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(26,42,74,0.4); }

/* === Menu layout (public digital menu) === */
.menu-wrapper {
    min-height: 100vh;
    background: #faf9f7;
}

.menu-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.menu-header {
    background: #1A2A4A;
    color: #fff;
    padding: 2rem 1rem 0;
    margin: 0 -1rem 2rem;
    border-radius: 0 0 16px 16px;
}

.menu-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
}

.menu-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.menu-cafe-info { flex: 1; }

.menu-cafe-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.menu-cafe-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.menu-cafe-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-style: normal;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.menu-contact-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.menu-contact-link:hover { color: #D4956A; }

.menu-cat-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.menu-cat-nav::-webkit-scrollbar { display: none; }

.menu-cat-nav-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.menu-cat-nav-item:hover { background: rgba(255,255,255,0.2); color: #fff; }

.menu-category { margin-bottom: 2.5rem; }

.menu-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A2A4A;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #E8EDF2;
}

.menu-cat-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: #546E7A;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item {
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.15s;
}
.menu-item:hover { box-shadow: 0 2px 10px rgba(26,42,74,0.08); }

.menu-item-img-wrap { flex-shrink: 0; }

.menu-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Urun gorseli yoksa gosterilen Kafemiz logosu (yer tutucu) */
.menu-item-img--placeholder {
    object-fit: contain;
    background: #F3EFE8;
    padding: 10px;
    opacity: 0.9;
}

.menu-item-info { flex: 1; min-width: 0; }

.menu-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A2A4A;
    margin: 0 0 0.25rem;
}

.menu-item-desc {
    font-size: 0.82rem;
    color: #546E7A;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.menu-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #B87333;
}

.menu-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #546E7A;
    border-top: 1px solid #E8EDF2;
    margin-top: 2rem;
}

.menu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #546E7A;
}

.menu-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8EDF2;
    border-top-color: #B87333;
    border-radius: 50%;
    animation: menu-spin 0.8s linear infinite;
}

.menu-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.menu-not-found-inner { max-width: 320px; }

.menu-not-found-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

@keyframes menu-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .menu-header-inner { flex-direction: column; align-items: center; text-align: center; }
    .menu-cafe-contact { justify-content: center; }
    .menu-item { flex-direction: column; }
    .menu-item-img { width: 100%; height: 180px; }
    .menu-item .urun-kart-ok { display: none; }
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section { padding: 3.5rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .page-hero { padding: 2.5rem 1rem 1.75rem; }
    .site-footer { margin-top: 3rem; }
    .filter-card { position: static; }
}

/* === Image Lightbox === */
.lightbox-clickable { cursor: zoom-in; transition: opacity .15s, transform .15s; }
.lightbox-clickable:hover { opacity: .85; transform: scale(1.02); }

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lightbox-content {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lightbox-img-wrap {
    position: relative;
    background: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #1A2A4A;
    font-size: 1.1rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.lightbox-close:hover { background: #fff; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #1A2A4A;
    font-size: 1.5rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-caption {
    padding: 1rem 1.25rem;
    border-top: 1px solid #E8EDF2;
}
.lightbox-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1A2A4A;
}
.lightbox-price {
    font-weight: 700;
    color: #B87333;
    white-space: nowrap;
}
.lightbox-desc {
    margin: .4rem 0 0;
    font-size: .9rem;
    color: #546E7A;
    line-height: 1.6;
}
.lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,0.6);
    color: #fff;
    font-size: .75rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    z-index: 2;
}


/* ============================================================
   Tuketici bilgilendirme: icerik / alerjen / enerji (TGK)
   Menu sayfasi, kafe detay onizlemesi ve yazdirilabilir bilgi karti
   ============================================================ */

.menu-item-compliance {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0 0 .5rem;
}

.compliance-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .4rem;
}

.compliance-row-label {
    font-size: .72rem;
    font-weight: 600;
    color: #546E7A;
}

/* Alerjen ikon satiri (AllergenIcons.razor) */
.allergen-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    line-height: 1;
}

.allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #F5F7FA;
    border: 1px solid #E3E9EF;
    border-radius: 999px;
    padding: .12rem .4rem;
    font-size: .72rem;
    color: #37474F;
    white-space: nowrap;
}

.allergen-chip-icon { font-size: .85rem; line-height: 1; }
.allergen-chip-name { font-size: .72rem; }
.allergen-icons--named .allergen-chip { padding: .15rem .5rem; }

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    padding: .12rem .5rem;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.compliance-badge--free {
    background: #E8F5EC;
    border: 1px solid #BFE3CC;
    color: #1A6B3C;
}

.compliance-badge--warn {
    background: #FDF3E7;
    border: 1px solid #F0D6B4;
    color: #8A5A16;
}

.menu-item-ingredients {
    font-size: .78rem;
    color: #546E7A;
    background: #FAFBFC;
    border: 1px solid #E8EDF2;
    border-radius: 8px;
    padding: .3rem .55rem;
}

.menu-item-ingredients > summary {
    cursor: pointer;
    font-weight: 600;
    color: #37474F;
    list-style: revert;
}

.menu-item-ingredients > p {
    margin: .35rem 0 0;
    line-height: 1.45;
    word-break: break-word;
}

.menu-item-energy {
    margin: 0;
    font-size: .78rem;
    font-weight: 600;
    color: #8A5A16;
}

/* Menu altindaki alerjen aciklamasi */
.allergen-legend {
    margin-top: 2rem;
    padding: 1rem;
    background: #FAFBFC;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
}

.allergen-legend-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1A2A4A;
    margin: 0 0 .6rem;
}

.allergen-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .3rem .6rem;
}

.allergen-legend-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #546E7A;
}

.allergen-legend-icon { font-size: .95rem; }

/* Yasal bilgilendirme notu */
.menu-legal-note {
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: #FFF9F0;
    border: 1px solid #F0D6B4;
    border-radius: 10px;
    font-size: .78rem;
    line-height: 1.5;
    color: #6B5333;
}

.menu-legal-note p { margin: 0 0 .4rem; }
.menu-legal-note a { color: #8A5A16; font-weight: 600; }

@media (max-width: 575.98px) {
    .allergen-legend-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .allergen-chip { font-size: .7rem; }
}

/* ---------- Kafe detay: urun karti + urun detay popup'i ---------- */

.urun-kart {
    position: relative;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.urun-kart:hover,
.urun-kart:focus-visible {
    border-color: #C9D3E0 !important;
    box-shadow: 0 4px 14px rgba(26, 42, 74, .08);
    transform: translateY(-1px);
    outline: none;
}

.urun-kart:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 107, 60, .25), 0 4px 14px rgba(26, 42, 74, .08);
}

.urun-kart-ok {
    align-self: center;
    font-size: 1.4rem;
    line-height: 1;
    color: #B0BAC6;
    padding-left: .25rem;
    transition: color .15s ease, transform .15s ease;
}

.urun-kart:hover .urun-kart-ok { color: #1A6B3C; transform: translateX(2px); }

.urun-detay-modal { border: 0; border-radius: 16px; overflow: hidden; }
.urun-detay-modal .modal-header { background: #F7F9FC; border-bottom: 1px solid #E8EDF2; }
.urun-detay-modal .modal-footer { background: #FAFBFC; border-top: 1px solid #E8EDF2; }

.urun-detay-ust {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.urun-detay-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    background: #F3EFE8;
}

.urun-detay-img--placeholder { object-fit: contain; padding: 18px; }

.urun-detay-baslik { flex: 1 1 auto; min-width: 0; }

.urun-detay-kategori {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #546E7A;
    margin-bottom: .2rem;
}

.urun-detay-ad {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A2A4A;
    margin: 0 0 .25rem;
    word-break: break-word;
}

.urun-detay-fiyat {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A6B3C;
    margin-bottom: .5rem;
}

.urun-detay-aciklama {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: #444;
    word-break: break-word;
}

.urun-detay-liste {
    margin: 0;
    border-top: 1px solid #E8EDF2;
}

.urun-detay-satir {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: .35rem 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid #E8EDF2;
}

.urun-detay-satir > dt {
    font-size: .8rem;
    font-weight: 700;
    color: #1A2A4A;
}

.urun-detay-satir > dd {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #37474F;
    word-break: break-word;
}

.urun-detay-yok { color: #8A96A3; font-style: italic; }

.urun-detay-enerji { font-weight: 600; color: #8A5A16; }

.urun-detay-not {
    margin: .9rem 0 0;
    padding: .65rem .85rem;
    background: #FFF9F0;
    border: 1px solid #F0D6B4;
    border-radius: 10px;
    font-size: .76rem;
    line-height: 1.5;
    color: #6B5333;
}

@media (max-width: 575.98px) {
    .urun-detay-ust { flex-direction: column; align-items: center; text-align: center; }
    .urun-detay-img { width: 100%; max-width: 260px; height: 200px; }
    .urun-detay-satir { grid-template-columns: 1fr; gap: .2rem; }
    .urun-detay-modal .modal-footer { flex-direction: column; align-items: stretch; }
    .urun-detay-modal .modal-footer .btn { width: 100%; }
}

/* ---------- Yazdirilabilir bilgi karti (A4) ---------- */

.info-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    color: #263238;
}

.info-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.info-card-header {
    border-bottom: 2px solid #1A2A4A;
    padding-bottom: .6rem;
    margin-bottom: 1.25rem;
}

.info-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A2A4A;
    margin: 0;
}

.info-card-subtitle {
    font-size: .95rem;
    font-weight: 600;
    color: #8A5A16;
    margin: .15rem 0 .35rem;
}

.info-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .75rem;
    color: #546E7A;
    margin: 0;
}

.info-card-section { margin-bottom: 1.5rem; }

.info-card-cat {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2A4A;
    margin: 0 0 .4rem;
}

.info-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    table-layout: fixed;
}

.info-card-table th,
.info-card-table td {
    border: 1px solid #CFD8DC;
    padding: .35rem .5rem;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.info-card-table thead th {
    background: #F5F7FA;
    font-weight: 700;
    color: #1A2A4A;
}

.info-card-table tbody th { font-weight: 600; }

.info-card-table .col-name { width: 20%; }
.info-card-table .col-ing  { width: 32%; }
.info-card-table .col-all  { width: 22%; }
.info-card-table .col-kcal { width: 13%; }
.info-card-table .col-warn { width: 13%; }

.info-card-legend {
    margin-top: 1.5rem;
    padding-top: .75rem;
    border-top: 1px solid #CFD8DC;
}

.info-card-legend h2 {
    font-size: .9rem;
    font-weight: 700;
    color: #1A2A4A;
    margin: 0 0 .5rem;
}

.info-card-footer {
    margin-top: 1rem;
    padding-top: .6rem;
    border-top: 1px solid #CFD8DC;
    font-size: .72rem;
    line-height: 1.5;
    color: #546E7A;
}

@media (max-width: 767.98px) {
    .info-card-table { font-size: .72rem; }
    .info-card-table th, .info-card-table td { padding: .3rem .35rem; }
}

@media print {
    @page { size: A4; margin: 12mm; }

    .menu-brandbar,
    .btn-print,
    .info-card-actions,
    .floating-widgets,
    .skip-link,
    nav,
    footer {
        display: none !important;
    }

    body { background: #fff; color: #000; font-size: 10pt; }

    .info-card { max-width: none; padding: 0; }
    .info-card-footer, .info-card-legend { display: block !important; }

    table { page-break-inside: auto; width: 100%; }
    tr { page-break-inside: avoid; page-break-after: auto; }
    thead { display: table-header-group; }

    .info-card-section { page-break-inside: auto; }
    .info-card-cat { page-break-after: avoid; }
    a[href]::after { content: ""; }
}
