/* ═════════════════════════════════════════════════
   Kava Café — Landing Page Styles
   Phase 8.17 — Brand palette aligned with logo
   ═════════════════════════════════════════════════ */
:root {
    /* Phase 8.17 — palette من اللوجو الرسمي */
    --k-teal:         #00929C;
    --k-teal-dark:    #006E78;
    --k-teal-light:   #4DB8BF;
    --k-burgundy:     #6B1F2C;          /* deep wine — من اللوجو */
    --k-burgundy-dark:#4D1620;
    --k-gold:         #D4A648;          /* accent — divider + CTA */
    --k-beige:        #EDE5D9;
    --k-cream:        #FAF7F2;          /* الخلفية الأساسية */
    --k-text:         #2C2521;
    --k-text-muted:   #777777;
    --k-shadow:       0 4px 14px rgba(107,31,44,0.08);
    --k-shadow-strong:0 10px 40px rgba(107,31,44,0.15);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--k-cream);
    color: var(--k-text);
    margin: 0; padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ═════════════════════════════════════════════════
   🎨 Animated Background (Coffee beans floating)
   ═════════════════════════════════════════════════ */
.kava-bg-decoration {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.kava-bg-decoration::before,
.kava-bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.kava-bg-decoration::before {
    width: 500px; height: 500px;
    background: var(--k-teal-light);
    top: -100px; right: -100px;
    animation: float-1 15s infinite ease-in-out;
}
.kava-bg-decoration::after {
    width: 600px; height: 600px;
    background: var(--k-burgundy);
    bottom: -200px; left: -200px;
    animation: float-2 20s infinite ease-in-out;
}
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-50px, 50px); }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(50px, -30px); }
}

/* ═════════════════════════════════════════════════
   ☕ HERO SECTION
   ═════════════════════════════════════════════════ */
/* ═════════════════════════════════════════════════
   ☕ Coffee Pattern Overlay (Phase 7.22.x — Bold & Trendy)
   subtle pattern from logo design — يـ tile كـ background على الصفحة كلها
   ═════════════════════════════════════════════════ */
.kava-coffee-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -2;
    pointer-events: none;
    background-image: url('/images/coffee-pattern.svg');
    background-repeat: repeat;
    background-size: 360px 360px;
    opacity: 0.18;
}
@media (max-width: 768px) {
    .kava-coffee-pattern { background-size: 280px 280px; opacity: 0.14; }
}

.hero {
    /* Phase 7.22.x — قللناه من 80vh لـ auto/min عشان "منتجاتنا المميزة"
       تبان بسرعة من غير ما الزبون يـ scroll كثير */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px 24px;
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(0,146,156,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(139,58,30,0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(251,247,241,0.85) 0%, rgba(237,229,217,0.7) 100%);
}
@media (min-width: 992px) {
    .hero { padding: 48px 24px 28px; }
}

/* Phase 7.18.11/13 — لما الـ banner موجود، شيل الفراغ العلوي (100vh) +
   البانر full-bleed (edge-to-edge بعرض الشاشة، بدون padding أفقي) */
.hero.has-banner {
    min-height: auto;
    padding: 0 0 24px;             /* مفيش padding أفقي — البانر edge-to-edge */
    flex-direction: column;
    justify-content: flex-start;
}
@media (max-width: 768px) {
    .hero.has-banner {
        padding: 0 0 16px;
    }
}

/* ═════ Phase 7.22.x — 2-column hero (logo left | content right) ═════ */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr);
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

.hero-left {
    display: flex;
    /* RTL: flex-end يبعت اللوجو لأقصى اليمين البصري داخل cell-h */
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-right: 0;
    /* Phase 8.9.1 — يمين شوية تاني (User طلب) */
    transform: translateX(24px);
}
@media (max-width: 768px) {
    .hero-left { justify-content: center; padding-right: 0; transform: none; }
}
.hero-logo-wrap {
    position: relative;
    /* Phase 7.22.x — صغّرناه شوية (كان 280) عشان الـ hero يبقى أنحف */
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .hero-logo-wrap { width: 160px; height: 160px; }
}
.hero-logo-side {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float-logo 5s infinite ease-in-out, fadeInScale 1.0s ease-out;
    filter: drop-shadow(0 12px 30px rgba(0,146,156,0.25));
}
.hero-logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    background: conic-gradient(from 0deg,
        var(--k-teal-light), var(--k-burgundy),
        var(--k-teal), var(--k-teal-light));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    z-index: 1;
    animation: rotate-glow 12s linear infinite;
}
@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes rotate-glow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .hero-right { align-items: center; }
}

/* Backward-compat: keep .hero-logo class working لو في حد بيستخدمه */
.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    padding: 20px;
    box-shadow: var(--k-shadow-strong);
    animation: pulse-logo 3s infinite ease-in-out, fadeInScale 1.2s ease-out;
}

/* Phase 7.18.13 — Hero Banner full-bleed (edge-to-edge بعرض الشاشة كاملة) */
.hero-banner {
    width: 100vw;                  /* بعرض الشاشة كاملة — تجاوز container */
    max-width: 100vw;
    height: auto;
    object-fit: cover;             /* الصورة تملا العرض، اقتصاص لو الـ aspect مش متطابق */
    object-position: center;
    margin: 0;                      /* edge-to-edge */
    display: block;
    animation: fadeInScale 1.0s ease-out;
}

/* Desktop / large screens — ارتفاع أقل، عرض كامل */
.hero-banner {
    max-height: 280px;
}
@media (max-width: 1200px) {
    .hero-banner { max-height: 240px; }
}
@media (max-width: 768px) {
    .hero-banner { max-height: 180px; }
}
@media (max-width: 480px) {
    .hero-banner { max-height: 140px; }
}
@keyframes pulse-logo {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(0,146,156,0.18); }
    50%      { transform: scale(1.04); box-shadow: 0 15px 50px rgba(0,146,156,0.28); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--k-burgundy);
    margin: 0 0 8px;
    letter-spacing: -1.5px;
    line-height: 1.05;
}
.hero-title-gradient {
    background: linear-gradient(135deg, var(--k-burgundy) 0%, var(--k-teal-dark) 50%, var(--k-teal) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@media (max-width: 768px) { .hero-title { font-size: 3rem; } }
@media (max-width: 480px) { .hero-title { font-size: 2.4rem; } }

.hero-tagline {
    font-size: 1.3rem;
    color: var(--k-teal);
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    padding-right: 16px;
}
.hero-tagline::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 4px; height: 70%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--k-teal), var(--k-burgundy));
    border-radius: 4px;
}
@media (max-width: 768px) {
    .hero-tagline { padding-right: 0; font-size: 1.1rem; letter-spacing: 3px; }
    .hero-tagline::before { display: none; }
}

.hero-welcome {
    font-size: 1.1rem;
    color: var(--k-text);
    max-width: 540px;
    line-height: 1.85;
    margin: 0 0 30px;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .hero-welcome { margin: 0 auto 26px; }
}

/* ═════════════════════════════════════════════════
   🎯 HERO CTA (Big gradient button — primary action)
   ═════════════════════════════════════════════════ */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 38px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--k-burgundy) 0%, var(--k-burgundy-dark) 50%, var(--k-burgundy) 100%);
    background-size: 200% 200%;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(139,58,30,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: 100% 0%;
    box-shadow: 0 15px 40px rgba(139,58,30,0.5);
    color: #fff;
}
.hero-cta:hover::before { transform: translateX(100%); }
.hero-cta .arrow { transition: transform 0.3s ease; }
.hero-cta:hover .arrow { transform: translateX(-6px); }
@media (max-width: 480px) {
    .hero-cta { padding: 16px 30px; font-size: 1.05rem; }
}

/* ═════════════════════════════════════════════════
   🎯 QUICK ACTIONS BAR (Phase 7.22.x — أسهل وأبرز)
   pills بدل cards كاملة، أسرع للعميل
   ═════════════════════════════════════════════════ */
.quick-actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    /* Phase 7.22.x — قللنا الـ padding عشان نقرّب featured products فوق */
    padding: 18px 20px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #fff;
    color: var(--k-burgundy);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--k-shadow);
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}
.action-pill .pill-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--k-teal-light), var(--k-teal));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}
.action-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--k-shadow-strong);
    border-color: var(--k-teal-light);
    color: var(--k-burgundy);
}
.action-pill:hover .pill-icon { transform: rotate(360deg) scale(1.1); }
.action-pill.primary {
    background: linear-gradient(135deg, var(--k-burgundy) 0%, var(--k-burgundy-dark) 100%);
    color: #fff;
}
.action-pill.primary .pill-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.action-pill.primary:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.action-pill.whatsapp .pill-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
/* Phase 7.22.x — pill جديد للوكيشن جنب الواتساب */
.action-pill.location .pill-icon {
    background: linear-gradient(135deg, #4285F4, #1A73E8);
}

/* ═════════════════════════════════════════════════
   🌐 Social Media Floating Top-Left (Phase 7.22.x)
   ═════════════════════════════════════════════════ */
.kava-social-top {
    position: fixed;
    top: 18px;
    left: 18px;     /* فعلياً يسار الشاشة بصرياً (RTL doesn't affect fixed pos) */
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kava-social-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}
.social-top-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.social-top-link.facebook  { background: linear-gradient(135deg, #1877F2, #0D5DBC); }
.social-top-link.instagram { background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45); }
.social-top-link.tiktok    { background: linear-gradient(135deg, #25F4EE, #000, #FE2C55); }
.social-top-link:hover {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
@media (max-width: 480px) {
    .kava-social-top {
        top: 12px;
        left: 12px;
        gap: 6px;
        padding: 6px 10px;
    }
    .social-top-link { width: 34px; height: 34px; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .quick-actions-bar { padding: 20px 12px; gap: 8px; }
    .action-pill { padding: 11px 18px; font-size: 0.9rem; }
    .action-pill .pill-icon { width: 32px; height: 32px; font-size: 0.95rem; }
}

/* ═════════════════════════════════════════════════
   📱 Floating Action Button (Mobile FAB)
   عشان "اطلب" دايماً ظاهر للعميل ميضيعش
   ═════════════════════════════════════════════════ */
.kava-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 998;
    background: linear-gradient(135deg, var(--k-burgundy) 0%, var(--k-burgundy-dark) 100%);
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 60px;
    box-shadow: 0 10px 28px rgba(139,58,30,0.4);
    display: none;             /* mobile only */
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none !important;
    animation: fab-bounce 2.5s ease-in-out infinite;
}
.kava-fab i { font-size: 1.3rem; }
.kava-fab .fab-text { display: inline-block; }
.kava-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(139,58,30,0.55);
}
@keyframes fab-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@media (max-width: 768px) {
    .kava-fab { display: inline-flex; }
}
@media (max-width: 380px) {
    .kava-fab .fab-text { display: none; }
    .kava-fab { padding: 14px; }
}

/* ═════════════════════════════════════════════════
   📦 SECTION (general)
   ═════════════════════════════════════════════════ */
.section {
    padding: 80px 20px;
    position: relative;
}
.section.alt-bg {
    background: var(--k-beige);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--k-burgundy);
    margin: 0 0 8px;
}
.section-title p {
    color: var(--k-text-muted);
    font-size: 1rem;
    margin: 0;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--k-teal), var(--k-burgundy));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ═════════════════════════════════════════════════
   🍽️ FEATURED PRODUCTS (Pinterest-style)
   ═════════════════════════════════════════════════ */
.featured-grid {
    column-count: 1;
    column-gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 600px)  { .featured-grid { column-count: 2; } }
@media (min-width: 992px)  { .featured-grid { column-count: 3; } }
@media (min-width: 1280px) { .featured-grid { column-count: 4; } }

.feature-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--k-shadow);
    margin-bottom: 18px;
    break-inside: avoid;
    transition: all 0.35s;
    position: relative;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--k-shadow-strong);
}
.feature-card-img {
    width: 100%;
    background: var(--k-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.feature-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.feature-card:hover .feature-card-img img { transform: scale(1.08); }
.feature-card-img .placeholder {
    font-size: 4rem;
    color: var(--k-text-muted);
    opacity: 0.4;
}

.feature-card-body { padding: 16px 18px; }
.feature-card-name {
    font-weight: 800;
    color: var(--k-burgundy);
    font-size: 1.1rem;
    margin: 0 0 6px;
}
.feature-card-desc {
    color: var(--k-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.feature-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e8e0d0;
}
.feature-card-price {
    font-weight: 800;
    color: var(--k-teal-dark);
    font-size: 1.1rem;
}
.feature-card-cta {
    background: var(--k-teal);
    color: white;
    /* Phase 8.20.x — was 6px tall padding → ~30px button, smaller than
       WCAG 2.5.5 minimum (44×44). Bumped vertical padding to 12px so the
       button is ~44px tall while keeping the pill look. */
    padding: 12px 18px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    min-height: 44px;
    transition: background 0.2s;
}
.feature-card-cta:hover {
    background: var(--k-burgundy);
    color: white;
}

/* ═════════════════════════════════════════════════
   🕐 HOURS + 📍 LOCATION
   ═════════════════════════════════════════════════ */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--k-shadow);
    text-align: center;
}
.info-card .info-icon {
    width: 60px; height: 60px;
    background: var(--k-cream);
    border-radius: 50%;
    color: var(--k-burgundy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}
.info-card h3 {
    color: var(--k-burgundy);
    font-weight: 800;
    margin: 0 0 12px;
}

.map-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%;  /* aspect ratio */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--k-shadow);
    background: var(--k-beige);
}
.map-embed-container iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.map-fallback {
    padding: 80px 20px;
    text-align: center;
    color: var(--k-text-muted);
}

/* ═════════════════════════════════════════════════
   🌐 SOCIAL LINKS
   ═════════════════════════════════════════════════ */
.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
.social-link {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    transition: all 0.25s;
    box-shadow: var(--k-shadow);
}
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--k-shadow-strong);
    color: white;
}
.social-link.facebook  { background: #1877F2; }
.social-link.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.whatsapp  { background: #25D366; }
.social-link.tiktok    { background: #000000; }
.social-link.maps      { background: #4285F4; }
.social-link.phone     { background: var(--k-teal); }

/* ═════════════════════════════════════════════════
   📋 FOOTER
   ═════════════════════════════════════════════════ */
.kava-footer {
    background: linear-gradient(135deg, var(--k-burgundy) 0%, var(--k-burgundy-dark) 100%);
    color: white;
    padding: 50px 20px 30px;
    text-align: center;
}
.kava-footer .footer-logo {
    width: 80px; height: 80px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 16px;
}
.kava-footer h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0 0 8px;
}
.kava-footer p {
    opacity: 0.85;
    margin: 0;
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    font-size: 0.88rem;
}
.footer-links a {
    color: white;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--k-teal-light); }

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 18px;
    margin-top: 24px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ═════════════════════════════════════════════════
   📋 CATALOG (Pinterest-style with Add to Cart)
   ═════════════════════════════════════════════════ */
.catalog-header {
    background: linear-gradient(135deg, var(--k-teal) 0%, var(--k-teal-dark) 100%);
    color: white;
    padding: 50px 20px 100px;
    text-align: center;
    position: relative;
}
.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 8px;
}
.catalog-header p { opacity: 0.9; margin: 0; }

.catalog-cats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 14px 16px;
    background: white;
    box-shadow: var(--k-shadow);
    margin: -50px 16px 30px;
    border-radius: 16px;
    position: sticky;
    top: 10px;
    z-index: 10;
    scrollbar-width: thin;
}
.cat-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 22px;
    background: var(--k-beige);
    color: var(--k-text);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.cat-pill.active {
    background: var(--k-teal);
    color: white;
    box-shadow: 0 3px 10px rgba(0,146,156,0.3);
}
.cat-pill:hover { border-color: var(--k-teal-light); }

/* Catalog products use same masonry as featured but with add-to-cart */
.catalog-grid { padding: 0 16px; }

.cart-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--k-burgundy), var(--k-burgundy-dark));
    color: white;
    border-radius: 30px;
    padding: 14px 24px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(139,58,30,0.4);
    z-index: 100;
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    animation: slideUp 0.3s;
}
.cart-fab.show { display: flex; }
.cart-fab:hover {
    background: var(--k-burgundy-dark);
    color: white;
    transform: translateY(-3px);
}
@keyframes slideUp {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.cart-fab .badge {
    background: white;
    color: var(--k-burgundy);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.85rem;
}

/* ═════════════════════════════════════════════════
   📱 RESPONSIVE
   ═════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .hero-tagline { font-size: 1rem; letter-spacing: 2px; }
    .hero-welcome { font-size: 1rem; }
    .hero-logo { width: 130px; height: 130px; }
    .section { padding: 50px 16px; }
    .section-title h2 { font-size: 1.7rem; }
    .catalog-header h1 { font-size: 1.8rem; }
}

/* ═════════════════════════════════════════════════
   🎨 Toast (للـ "أضيف للسلة")
   ═════════════════════════════════════════════════ */
.kava-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--k-teal-dark);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: var(--k-shadow-strong);
    z-index: 1000;
    animation: toastSlide 0.3s;
}
@keyframes toastSlide {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   ♿ Accessibility — احترام تفضيل المستخدم لتقليل الحركة
   (مهم للمستخدمين عندهم حساسية للحركة / vestibular issues)
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═════════════════════════════════════════════════
   📸 GALLERY (Phase 7.22.x)
   ═════════════════════════════════════════════════ */
.gallery-section { background: var(--k-cream); }

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 220px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: var(--k-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: block;
    background: var(--k-beige);
}
/* صور مختلفة الأحجام عشان الـ grid يبقى أحلى — كل ثالثة تبقى wide، كل خامسة tall */
.gallery-item:nth-child(5n+3) { grid-column: span 2; }
.gallery-item:nth-child(7n+5) { grid-row: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--k-shadow-strong);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 30px 14px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.gallery-zoom {
    position: absolute;
    top: 12px; left: 12px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.95);
    color: var(--k-teal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 8px;
    }
    .gallery-item:nth-child(5n+3) { grid-column: auto; }
    .gallery-item:nth-child(7n+5) { grid-row: auto; }
}

/* ─── Lightbox ─── */
.kava-lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.kava-lightbox.open { display: flex; }

.kava-lightbox-stage {
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lb-zoom 0.3s ease;
}
@keyframes lb-zoom {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.kava-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.kava-lightbox-caption {
    color: #fff;
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.kava-lightbox-close,
.kava-lightbox-prev,
.kava-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, sans-serif;
    line-height: 1;
}
.kava-lightbox-close { top: 20px; right: 20px; font-size: 28px; }
.kava-lightbox-prev  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.kava-lightbox-next  { left: 20px;  top: 50%; transform: translateY(-50%); font-size: 32px; }

.kava-lightbox-close:hover,
.kava-lightbox-prev:hover,
.kava-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .kava-lightbox-prev { right: 10px; width: 40px; height: 40px; font-size: 26px; }
    .kava-lightbox-next { left: 10px;  width: 40px; height: 40px; font-size: 26px; }
    .kava-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 22px; }
}

/* ═════════════════════════════════════════════════
   Phase 8.17 — Sticky Header (الـ navigation الرئيسي)
   Logo + Nav links + Cart/Account icons
   ═════════════════════════════════════════════════ */
/* Phase 8.19 — fully fixed header (was sticky, switched because some parent
   containers — especially in _MenuLayout's 3-column grid — broke sticky's
   positioning context. `fixed` is bulletproof across browsers + nested
   layouts. */
.kava-header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
/* Reserve space at the top of the body so the fixed header doesn't overlap
   the page content. Measured ON DEVICE (iPhone 12 viewport 390×844 in the
   Playwright suite) — the rendered header is ~61px on mobile, more than the
   simple "8+8 padding + 38px logo = 54px" math suggested (line-height +
   shadow extension push it taller). E2E test
   `Mobile_first_content_row_not_hidden_under_fixed_header` regressed when
   it was 54px → bumped to 68px on mobile, 56px on the smallest phones. */
body { padding-top: 72px; }
@media (max-width: 600px) {
    body { padding-top: 68px; }
}
@media (max-width: 360px) {
    body { padding-top: 60px; }
}
.kava-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    max-width: 1320px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.kava-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--k-burgundy);
    text-decoration: none;
}
.kava-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--k-cream);
    padding: 4px;
}
.kava-brand-fallback {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--k-teal);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.2rem;
}
.kava-nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.kava-nav-links a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--k-text);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.kava-nav-links a:hover {
    background: var(--k-cream);
    color: var(--k-teal);
}
.kava-nav-links a.active {
    background: var(--k-teal);
    color: white;
}
.kava-nav-icons {
    display: flex;
    gap: 8px;
}
.kava-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--k-cream);
    border: none;
    color: var(--k-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}
.kava-nav-icon:hover {
    background: var(--k-teal);
    color: white;
    transform: translateY(-2px);
}
.kava-mobile-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none;
    background: var(--k-cream);
    color: var(--k-burgundy);
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.kava-mobile-toggle:active {
    background: var(--k-teal);
    color: white;
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════
   Phase 8.20.x — Mobile header redesign.
   Old: mobile menu was an inline flex column under the header with
   no background, no shadow, items overlapping the page content.
   New: proper dropdown panel anchored to header, with backdrop,
   smooth transition, clear active state, larger touch targets.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .kava-nav-wrap {
        flex-wrap: nowrap;             /* keep brand + icons on one row */
        gap: 8px;
        padding: 8px 12px;
    }
    .kava-brand {
        font-size: 1.05rem;            /* tighten — was 1.25rem and ate width */
        gap: 8px;
    }
    .kava-brand img,
    .kava-brand-fallback {
        width: 38px; height: 38px;
    }
    .kava-mobile-toggle { display: flex; align-items: center; justify-content: center; }

    .kava-nav-icons { gap: 6px; }
    .kava-nav-icon { width: 38px; height: 38px; font-size: 1rem; }

    /* Backdrop — dimmed page when menu is open. Click to close. */
    .kava-nav-links::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(20, 25, 30, 0.4);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
        z-index: -1;
    }

    .kava-nav-links {
        display: block;                /* always rendered, hidden via transform */
        position: fixed;
        top: 54px;                     /* header height on phones */
        left: 0;
        right: 0;
        background: white;
        margin: 0;
        padding: 8px;
        list-style: none;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
        border-top: 3px solid var(--k-gold);
        border-radius: 0 0 16px 16px;
        max-height: calc(100vh - 54px);
        overflow-y: auto;

        /* Slide-down animation */
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease-out, opacity 0.2s ease-out;
        z-index: 999;
    }
    .kava-nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .kava-nav-links.open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .kava-nav-links li { list-style: none; }
    .kava-nav-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        border-radius: 10px;
        border-bottom: none;
        font-size: 1rem;
        font-weight: 700;
        color: var(--k-text);
        min-height: 48px;              /* WCAG touch target */
    }
    .kava-nav-links a:hover { background: var(--k-cream); }
    .kava-nav-links a.active {
        background: var(--k-teal);
        color: white;
        box-shadow: 0 4px 12px rgba(0, 146, 156, 0.25);
    }
    .kava-nav-links a.active::before {
        content: "•";
        font-size: 1.4rem;
        margin-inline-end: 4px;
    }
}
@media (max-width: 360px) {
    .kava-nav-wrap { padding: 6px 10px; gap: 6px; }
    .kava-brand { font-size: 0.95rem; }
    .kava-brand img,
    .kava-brand-fallback { width: 34px; height: 34px; }
    .kava-mobile-toggle,
    .kava-nav-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .kava-nav-links { top: 50px; }
}

/* ═════════════════════════════════════════════════
   Phase 8.17 — Best Sellers carousel
   Horizontal scroll مع أزرار يمين/يسار
   ═════════════════════════════════════════════════ */
.bs-section {
    padding: 30px 16px 60px;
    max-width: 1320px;
    margin: 0 auto;
}
.bs-header {
    text-align: center;
    margin-bottom: 24px;
}
.bs-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--k-burgundy);
    margin: 0;
}
.bs-divider {
    width: 60px; height: 4px;
    background: var(--k-gold);
    border-radius: 2px;
    margin: 12px auto;
}
.bs-sub {
    color: var(--k-text-muted);
    margin-top: 4px;
    font-size: 0.95rem;
}
.bs-carousel {
    position: relative;
}
.bs-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--k-teal) transparent;
}
.bs-track::-webkit-scrollbar { height: 4px; }
.bs-track::-webkit-scrollbar-thumb { background: var(--k-teal); border-radius: 2px; }
.bs-card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
}
.bs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    color: inherit;
}
.bs-badge {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 1;
    background: var(--k-burgundy);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
}
.bs-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--k-cream), #e8dfd2);
    display: flex; align-items: center; justify-content: center;
    color: var(--k-burgundy); font-size: 2.5rem;
}
.bs-img-empty {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--k-cream), #e8dfd2);
    display: flex; align-items: center; justify-content: center;
    color: var(--k-burgundy); font-size: 2.5rem;
}
.bs-info {
    padding: 12px;
    text-align: center;
}
.bs-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 6px;
    color: var(--k-text);
}
.bs-price {
    color: var(--k-teal);
    font-weight: 900;
    font-size: 1.1rem;
}
.bs-price small {
    color: var(--k-text-muted);
    font-size: 0.72rem;
    font-weight: 400;
}
.bs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--k-teal);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.bs-arrow:hover { background: var(--k-teal); color: white; }
.bs-arrow.right { right: -8px; }
.bs-arrow.left { left: -8px; }
@media (max-width: 600px) {
    .bs-arrow { display: none; }
    .bs-card { min-width: 170px; max-width: 170px; flex: 0 0 170px; }
}

/* ═════════════════════════════════════════════════
   Phase 8.17 — Footer Banner (مفتوح الآن + ساعات العمل)
   ═════════════════════════════════════════════════ */
.fb-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--k-burgundy), #2c0d12);
    min-height: 240px;
    display: flex;
    align-items: center;
    padding: 50px 20px;
    margin-top: 40px;
}
.fb-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
        radial-gradient(circle at 80% 20%, rgba(212,166,72,0.25), transparent 60%);
    pointer-events: none;
}
.fb-content {
    position: relative;
    z-index: 1;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.fb-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    margin: 0 0 14px;
}
.fb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    background: #28a745;
    color: white;
}
.fb-status-pill.closed { background: #6c757d; }
.fb-status-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: white;
    animation: fb-pulse 1.6s ease-in-out infinite;
}
@keyframes fb-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.fb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--k-gold);
    color: var(--k-burgundy);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    margin-top: 14px;
    transition: transform 0.2s;
}
.fb-cta:hover { transform: translateY(-2px); color: var(--k-burgundy); }
.fb-hours-title {
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--k-gold);
    font-size: 1.05rem;
}
.fb-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fb-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
}
.fb-hours-list li:last-child { border-bottom: none; }
.fb-hours-list .day { font-weight: 700; }
.fb-hours-list .time { opacity: 0.9; direction: ltr; }
.fb-copyright {
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,0.5);
    background: #1a0a0d;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .fb-content { grid-template-columns: 1fr; text-align: center; }
    .fb-status-pill { justify-content: center; }
}

/* ═════════════════════════════════════════════════
   Phase 8.17 — Contact circles (ثابت بألوان البرند)
   ═════════════════════════════════════════════════ */
.k-contact-section {
    background: linear-gradient(135deg, white, var(--k-cream));
    padding: 50px 20px;
}
.k-contact-circles {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.k-contact-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}
.k-contact-circle:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    color: white;
}
.kc-wa  { background: #25D366; }
.kc-fb  { background: #1877F2; }
.kc-ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.kc-tt  { background: #000; }
.kc-map { background: #4285F4; }
.kc-mail{ background: #ea4335; }
.kc-call{ background: var(--k-teal); }
@media (max-width: 600px) {
    .k-contact-circle { width: 56px; height: 56px; font-size: 1.4rem; }
}

/* ═════════════════════════════════════════════════
   Phase 8.18 — Mobile + Desktop polish (responsive)
   - iPhone notch / safe-area-inset support
   - 44×44 minimum touch targets (Apple/Google HIG)
   - Brand name truncation on tight headers
   - Smooth scaling for tablets
   ═════════════════════════════════════════════════ */

/* iPhone notch + Android nav-bar handling (only adds padding if the safe-area
   is non-zero; harmless on desktop where it returns 0). */
.kava-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Brand name truncates instead of wrapping onto a 2nd line on tight headers */
.kava-brand {
    min-width: 0;             /* allow flex item to shrink */
    flex-shrink: 1;
    max-width: 60%;
}
.kava-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Touch targets — Apple HIG + Google Material recommend ≥ 44×44 */
.kava-nav-icon,
.kava-mobile-toggle {
    min-width: 44px;
    min-height: 44px;
}

/* Tablets (768–991): hamburger appears, but nav also visible if it fits.
   Currently the nav is hidden — fine, hamburger gives access. */

/* Phones (≤ 600): tighten spacing, allow brand name to take less width */
@media (max-width: 600px) {
    .kava-nav-wrap {
        padding: 8px 12px;
        gap: 8px;
    }
    .kava-brand { font-size: 1.05rem; max-width: 50%; }
    .kava-brand img,
    .kava-brand-fallback { width: 38px; height: 38px; }
    .kava-nav-icon {
        width: 38px; height: 38px;
        min-width: 44px; min-height: 44px;  /* keep tap area large via padding */
        padding: 0;
    }
}

/* Very small phones (≤ 360 — iPhone SE 1st gen, cheap Androids):
   hide the brand TEXT (keep the logo) — saves ~80–120px for nav icons */
@media (max-width: 360px) {
    .kava-brand > span:last-child { display: none; }
    .kava-nav-wrap { gap: 4px; padding: 6px 10px; }
}

/* Hero + sections on phones: tighter padding so content doesn't waste height */
@media (max-width: 600px) {
    .bs-section { padding: 20px 12px 40px; }
    .bs-header h2 { font-size: 1.4rem; }
    .bs-track { gap: 12px; padding-bottom: 6px; scroll-padding-inline-start: 12px; }
    .fb-banner { padding: 32px 16px; }
    .fb-content h2 { font-size: 1.5rem; }
}

/* Large desktops (≥ 1600): cap content width so wide screens don't sprawl */
@media (min-width: 1600px) {
    .kava-nav-wrap,
    .fb-content,
    .bs-section { max-width: 1320px; }
}

/* High-DPI logo sharpening (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .kava-brand img { image-rendering: -webkit-optimize-contrast; }
}

/* Reduce motion for users who prefer it (accessibility) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Make sure body content has room below sticky header on every page using
   the kava-header. (sticky doesn't push content, so this is belt-and-suspenders
   for any anchor scroll targets.) */
html { scroll-padding-top: 80px; }

