/* ═════════════════════════════════════════════════
   Kava Café — Landing Page Styles
   Animations + Parallax + Glassmorphism
   ═════════════════════════════════════════════════ */
:root {
    --k-teal:         #00929C;
    --k-teal-dark:    #006d76;
    --k-teal-light:   #4db8bf;
    --k-burgundy:     #8B3A1E;
    --k-burgundy-dark:#6a2a12;
    --k-beige:        #EDE5D9;
    --k-cream:        #FBF7F1;
    --k-text:         #2b2b2b;
    --k-text-muted:   #6b6b6b;
    --k-shadow:       0 4px 14px rgba(0,146,156,0.08);
    --k-shadow-strong:0 10px 40px rgba(0,146,156,0.18);
}

* { 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;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    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; }
}

