/* ==================================================
   Castino menu — "قائمة الطلبات" design
   Everything is scoped under .cmx so no legacy rule can interfere.
   Loaded AFTER main.css in functions.php.
   ================================================== */

.cmx {
    --rosso: #701B22;
    --rosso-dark: #4E1217;
    --cream: #F4ECE1;
    --paper: #FBF7F1;
    --line: #DCC8C9;
    --ink: #3A1C1F;
    --muted: #5A3438;
    --muted-2: #7A5558;
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    box-sizing: border-box;
    background: var(--cream);
    color: var(--ink);
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    scroll-margin-top: var(--header-h, 80px);
}
.cmx *, .cmx *::before, .cmx *::after { box-sizing: border-box; }
.cmx a { color: var(--rosso); text-decoration: none; }
.cmx a:hover { color: var(--rosso-dark); }
.cmx [hidden] { display: none !important; }
.cmx h2, .cmx h3, .cmx h4, .cmx p { letter-spacing: normal; }
.cmx h2, .cmx h3, .cmx h4,
.cmx .cmx-price span, .cmx .cmx-results-title { font-family: 'El Messiri', 'Cairo', serif; }

.cmx-pattern {
    position: absolute; top: 0; right: 0; left: 0; height: 520px; opacity: .07; pointer-events: none;
    background: url(../images/menu-pattern.png) repeat-x top center / 440px auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
}
.cmx-wrap {
    position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; gap: 36px;
}
.cmx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.cmx-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cmx-top-side { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cmx-badge {
    width: 108px; height: 108px; border-radius: 50%; background: var(--rosso); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 34px -18px rgba(58,28,31,.6);
}
.cmx-badge img { width: 90px; height: auto; animation: cmxSpin 30s linear infinite; }
.cmx-top-text { display: flex; flex-direction: column; gap: 10px; }
.cmx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--rosso); }
.cmx-eyebrow span { width: 32px; height: 2px; background: var(--rosso); }
.cmx-title { margin: 0; font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.2; color: var(--rosso); }
.cmx-word { display: inline-block; animation: cmxRise .8s cubic-bezier(.2,.8,.2,1) both; }
.cmx-word.w2 { animation-delay: .12s; }
.cmx-sub { margin: 0; font-size: 16px; color: var(--muted); }
.cmx-top-search { display: flex; flex-direction: column; gap: 10px; flex: 0 1 380px; min-width: 260px; }
.cmx-tagline { height: 58px; width: auto; align-self: flex-end; }
.cmx-tagline-text { align-self: flex-end; font-family: 'El Messiri', serif; font-size: 1.5rem; font-weight: 700; color: var(--rosso); }
.cmx-search-wrap { position: relative; }
.cmx-search-wrap svg { position: absolute; top: 15px; inset-inline-start: 18px; pointer-events: none; }
.cmx-search {
    width: 100%; height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
    padding: 0 50px; font: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.cmx-search::placeholder { color: #9A7F80; }
.cmx-search:focus { outline: none; border-color: var(--rosso); box-shadow: 0 0 0 4px rgba(112,27,34,.12); }

/* ---------- Tabs ---------- */
.cmx-tabs-wrap { position: relative; }
.cmx-tabs {
    display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px;
    scrollbar-width: none; scroll-behavior: smooth;
}
.cmx-tabs::-webkit-scrollbar { display: none; }
.cmx-tab {
    all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--rosso);
    font-family: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
    transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.cmx-tab svg { color: var(--tc, var(--rosso)); flex-shrink: 0; }
.cmx-tab:hover { transform: translateY(-2px); }
.cmx-tab:focus-visible, .cmx-clear:focus-visible, .cmx-size:focus-visible, .cmx-arrow:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }
.cmx-tab-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 999px; font-size: 12px; background: #F0E4DB; color: var(--muted);
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}
.cmx-tab.is-active { background: var(--tc, var(--rosso)); border-color: var(--tc, var(--rosso)); color: var(--cream); }
.cmx-tab.is-active svg { color: var(--cream); }
.cmx-tab.is-active .cmx-tab-count { background: rgba(244,236,225,.18); color: var(--cream); }

.cmx-fade {
    position: absolute; top: 0; height: 62px; width: 96px; display: flex; align-items: center;
    pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.cmx-fade--start { inset-inline-start: 0; justify-content: flex-start; padding-inline-start: 2px; background: linear-gradient(to left, var(--cream) 45%, rgba(244,236,225,0)); }
.cmx-fade--end   { inset-inline-end: 0; justify-content: flex-end; padding-inline-end: 2px; background: linear-gradient(to right, var(--cream) 45%, rgba(244,236,225,0)); }
html[dir="ltr"] .cmx .cmx-fade--start, .cmx[dir="ltr"] .cmx-fade--start { background: linear-gradient(to right, var(--cream) 45%, rgba(244,236,225,0)); }
.cmx[dir="ltr"] .cmx-fade--end { background: linear-gradient(to left, var(--cream) 45%, rgba(244,236,225,0)); }
.cmx[dir="ltr"] .cmx-arrow svg { transform: scaleX(-1); }
.cmx-tabs-wrap.has-start .cmx-fade--start,
.cmx-tabs-wrap.has-end .cmx-fade--end { opacity: 1; visibility: visible; }
.cmx-arrow {
    pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: none; padding: 0;
    background: var(--rosso); color: var(--cream); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(112,27,34,.6); transition: transform .25s, background .25s;
}
.cmx-arrow:hover { transform: scale(1.08); background: var(--rosso-dark); }

/* ---------- Search results bar ---------- */
.cmx-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cmx-results-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--rosso); }
.cmx-results-count { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 15px; font-weight: 500; color: var(--muted-2); }
.cmx-clear {
    min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--rosso);
    background: transparent; color: var(--rosso); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ---------- Category panels ---------- */
.cmx-body { display: flex; flex-direction: column; gap: 36px; }
.cmx-panel { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
.cmx.is-searching .cmx-panel { gap: 18px; }
.cmx.is-searching .cmx-head, .cmx.is-searching .cmx-extra { display: none; }
.cmx.is-searching .cmx-catchip { display: inline-block; }
.cmx.is-searching .cmx-panel + .cmx-panel { margin-top: -18px; }

/* ---------- Themed banners ---------- */
.cmx-head {
    position: relative; overflow: hidden; border-radius: 28px; padding: 36px 40px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
    min-height: 200px; background: var(--rosso) url(../images/menu/cat-pattern.png) repeat / 360px auto;
    color: var(--cream); animation: cmxRise .6s cubic-bezier(.2,.8,.2,1) both;
}
.cmx-head-overlay { position: absolute; inset: 0; background: var(--rosso); opacity: .88; }
.cmx-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cmx-deco > * { position: absolute; }
.cmx-head-main { position: relative; display: flex; align-items: center; gap: 22px; flex: 1 1 360px; min-width: 0; }
.cmx-iconbox {
    width: 76px; height: 76px; border-radius: 22px; background: var(--cream); color: var(--rosso);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cmx-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmx-temp {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(244,236,225,.16); color: var(--cream);
}
.cmx-head-name { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.2; color: #fff; text-shadow: var(--ts, none); }
.cmx-head-desc { margin: 0; font-size: 17px; color: #F0E1DE; text-shadow: var(--ts, none); }
.cmx-head-en { align-self: flex-end; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #DCC8C9; text-shadow: var(--ts, none); }
.cmx-head-photo {
    position: relative; width: 220px; height: 180px; border-radius: 20px; overflow: hidden; border: 5px solid var(--cream);
    box-shadow: 0 22px 40px -18px rgba(0,0,0,.55); flex-shrink: 0; background: #EADBD2;
    transform: rotate(-3deg); animation: cmxPhotoIn .9s cubic-bezier(.2,.8,.2,1) .1s both;
}
.cmx-head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; animation: cmxKb 10s ease-out both; }

/* theme: coffee */
.cmx-head--coffee { background-color: #8A5A38; color: #FFF8F0; box-shadow: 0 24px 44px -26px rgba(90,52,28,.7); --ts: 0 2px 10px rgba(60,30,12,.55), 0 1px 1px rgba(60,30,12,.5); }
.cmx-head--coffee .cmx-head-overlay { background: radial-gradient(ellipse at 72% 40%, rgba(232,190,140,.55) 0%, rgba(232,190,140,0) 55%), linear-gradient(135deg, #7A4B2C 0%, #9C6A44 50%, #B8865C 100%); opacity: .95; }
.cmx-head--coffee .cmx-head-name { color: #FFF8F0; }
.cmx-head--coffee .cmx-head-desc { color: #FFF3E6; }
.cmx-head--coffee .cmx-head-en { color: #FFEBD6; }
.cmx-head--coffee .cmx-iconbox { background: #F7E9D7; color: #7A4B2C; box-shadow: 0 10px 24px -12px rgba(20,8,2,.7); }
.cmx-head--coffee .cmx-temp { background: rgba(247,233,215,.16); color: #F7E9D7; }
/* theme: iced */
.cmx-head--iced { background-color: #CFE4EE; color: #123247; border: 1.5px solid rgba(255,255,255,.95); box-shadow: inset 0 0 60px rgba(255,255,255,.85), 0 24px 44px -26px rgba(46,109,142,.6); }
.cmx-head--iced .cmx-head-overlay { background: linear-gradient(135deg, #F1F8FB 0%, #D5E9F2 50%, #B3D2E2 100%); opacity: 1; }
.cmx-head--iced .cmx-head-name { color: #123247; }
.cmx-head--iced .cmx-head-desc { color: #2C4E63; }
.cmx-head--iced .cmx-head-en { color: #36596E; }
.cmx-head--iced .cmx-iconbox { background: rgba(255,255,255,.75); border: 1.5px solid #fff; color: #2E6D8E; box-shadow: 0 10px 24px -14px rgba(46,109,142,.6); }
.cmx-head--iced .cmx-temp { background: rgba(255,255,255,.7); color: #1F4E6B; }
/* theme: bake */
.cmx-head--bake { background-color: #B8743A; color: #fff; box-shadow: 0 24px 44px -26px rgba(120,64,22,.75); --ts: 0 2px 10px rgba(90,44,10,.55), 0 1px 1px rgba(90,44,10,.6); }
.cmx-head--bake .cmx-head-overlay { background: radial-gradient(ellipse at 75% 30%, #EDBE7C 0%, rgba(237,190,124,0) 55%), linear-gradient(135deg, #9A5A26 0%, #C9884A 45%, #DDA35F 70%, #A9672D 100%); opacity: .95; }
.cmx-head--bake .cmx-head-desc { color: #FFF5E8; }
.cmx-head--bake .cmx-head-en { color: #FFF0DC; }
.cmx-head--bake .cmx-iconbox { background: #FFF3E1; color: #8A4F1F; box-shadow: 0 10px 24px -12px rgba(90,44,10,.7); }
.cmx-head--bake .cmx-temp { background: rgba(255,243,225,.22); color: #fff; }
/* theme: choco */
.cmx-head--choco { background-color: #4A2A1A; color: #FFF8F0; padding-top: 56px; box-shadow: 0 24px 44px -26px rgba(62,34,22,.75); --ts: 0 2px 10px rgba(30,14,6,.5); }
.cmx-head--choco .cmx-head-overlay { background: linear-gradient(135deg, #3E2216 0%, #5C341F 55%, #7A4A2C 100%); opacity: .93; }
.cmx-head--choco .cmx-head-name { color: #FFF8F0; }
.cmx-head--choco .cmx-head-desc { color: #F1DCCB; }
.cmx-head--choco .cmx-head-en { color: #E3C3A8; }
.cmx-head--choco .cmx-iconbox { background: #F7E9D7; color: #5A321E; box-shadow: 0 10px 24px -12px rgba(30,14,6,.7); }
.cmx-head--choco .cmx-temp { background: rgba(247,233,215,.16); color: #F7E9D7; }
/* theme: gold */
.cmx-head--gold { background-color: #C9A050; color: #2A1608; border: 1.5px solid #E9D29A; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 24px 44px -26px rgba(138,100,36,.7); --ts: 0 2px 12px rgba(80,52,12,.55), 0 1px 1px rgba(80,52,12,.7); }
.cmx-head--gold .cmx-head-overlay { background: linear-gradient(120deg, #A8772C 0%, #C99A48 35%, #E2C27A 50%, #C2963F 68%, #96692A 100%); opacity: 1; }
.cmx-head--gold .cmx-head-desc, .cmx-head--gold .cmx-head-en { color: #fff; }
.cmx-head--gold .cmx-iconbox { background: #FBF3E2; border: 1.5px solid #F3DFA6; color: #8A6424; box-shadow: 0 10px 24px -14px rgba(138,100,36,.7); }
.cmx-head--gold .cmx-temp { background: rgba(42,22,8,.12); color: #2A1608; }

/* ---------- Banner decoration ---------- */
.cmx-heat { inset: 0; background: radial-gradient(ellipse at 30% 120%, rgba(214,108,58,.45) 0%, rgba(214,108,58,0) 60%); animation: cmxGlow 3.5s ease-in-out infinite; }
.cmx-steam { opacity: 0; animation: cmxSteam 4.6s ease-in-out infinite; }
.cmx-steam.w2 { animation-delay: 1.2s; } .cmx-steam.w3 { animation-delay: 2.3s; } .cmx-steam.w4 { animation-delay: 3.3s; }
.cmx-crema-tex { inset: 0; opacity: .7; background-image: radial-gradient(rgba(255,226,186,.3) 1px, transparent 1.8px), radial-gradient(rgba(70,36,14,.2) 1.2px, transparent 2px); background-size: 15px 15px, 22px 22px; background-position: 0 0, 7px 9px; }
.cmx-crema-swirl { inset-inline-start: 6%; top: 50%; width: 320px; height: 320px; margin-top: -160px; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, rgba(214,160,100,0) 0 14px, rgba(214,160,100,.12) 15px 17px, rgba(214,160,100,0) 18px 30px); animation: cmxSpin 40s linear infinite; }
.cmx-bean { animation: cmxBean 7s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); line-height: 0; }
.cmx-bean.k2 { animation-delay: -1s; animation-duration: 8s; } .cmx-bean.k3 { animation-delay: -2.2s; animation-duration: 6s; }
.cmx-bean.k4 { animation-delay: -3.1s; } .cmx-bean.k5 { animation-delay: -4s; animation-duration: 9s; }
.cmx-bean.k6 { animation-delay: -5s; animation-duration: 7.5s; } .cmx-bean.k7 { animation-delay: -2.6s; animation-duration: 8.5s; }
.cmx-bean.k8 { animation-delay: -1.5s; } .cmx-bean.k9 { animation-delay: -3.8s; animation-duration: 6.5s; }
.cmx-crust-tex { inset: 0; opacity: .9; background-image: radial-gradient(rgba(120,60,18,.35) 1.2px, transparent 2px), radial-gradient(rgba(255,230,190,.35) 1px, transparent 1.8px), radial-gradient(rgba(110,52,14,.22) 2.5px, transparent 3.5px); background-size: 17px 15px, 23px 19px, 41px 37px; background-position: 0 0, 9px 7px, 20px 13px; }
.cmx-oven { inset: 0; background: radial-gradient(ellipse at 25% 110%, rgba(255,200,120,.45) 0%, rgba(255,200,120,0) 60%); animation: cmxGlow 3.5s ease-in-out infinite; }
.cmx-seed { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF8EA 0 30%, #F2DDB6 70%); box-shadow: 0 1px 1px rgba(90,44,10,.35); animation: cmxSeed 4s ease-in-out infinite; }
.cmx-seed.s2 { animation-delay: .4s; } .cmx-seed.s3 { animation-delay: .8s; } .cmx-seed.s4 { animation-delay: 1.2s; } .cmx-seed.s5 { animation-delay: 1.6s; }
.cmx-seed.s6 { animation-delay: 2s; } .cmx-seed.s7 { animation-delay: 2.4s; } .cmx-seed.s8 { animation-delay: 2.8s; } .cmx-seed.s9 { animation-delay: 3.2s; }
.cmx-crumb { border-radius: 40% 60% 55% 45%; background: #E9B572; box-shadow: inset -1px -1px 0 rgba(120,60,18,.45); opacity: 0; animation: cmxCrumb 6s ease-in infinite; }
.cmx-crumb.c2 { animation-delay: 1.2s; animation-duration: 5s; } .cmx-crumb.c3 { animation-delay: 2.4s; animation-duration: 7s; }
.cmx-crumb.c4 { animation-delay: 3.6s; } .cmx-crumb.c5 { animation-delay: 4.8s; animation-duration: 5.5s; }
.cmx-sheen { inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 35%); }
.cmx-drip { top: 0; left: 0; width: 100%; height: 58px; transform-origin: top; animation: cmxOoze 6s ease-in-out infinite; }
.cmx-cdrop { top: 44px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #2E170D; opacity: 0; animation: cmxChocoFall 5s ease-in infinite; }
.cmx-cdrop.c2 { animation-delay: 1.7s; } .cmx-cdrop.c3 { animation-delay: 3.3s; }
.cmx-sprinkle { width: 4px; border-radius: 4px; animation: cmxSprinkle 4s ease-in-out infinite; }
.cmx-sprinkle.p2 { animation-delay: .6s; } .cmx-sprinkle.p3 { animation-delay: 1.2s; } .cmx-sprinkle.p4 { animation-delay: 1.8s; }
.cmx-sprinkle.p5 { animation-delay: 2.4s; } .cmx-sprinkle.p6 { animation-delay: 3s; } .cmx-sprinkle.p7 { animation-delay: 3.5s; }
.cmx-gold-pattern { inset: 0; opacity: .16; mix-blend-mode: multiply; background: url(../images/menu-pattern.png) repeat / 360px auto; }
.cmx-shimmer { top: -60%; bottom: -60%; width: 140px; transform: rotate(18deg); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)); animation: cmxShimmer 5.5s ease-in-out infinite; }
.cmx-shimmer--gold { width: 160px; background: linear-gradient(90deg, rgba(255,250,230,0), rgba(255,250,230,.75), rgba(255,250,230,0)); }
.cmx-spark { opacity: 0; animation: cmxTwinkle 2.8s ease-in-out infinite; }
.cmx-spark.s2 { animation-delay: .5s; } .cmx-spark.s3 { animation-delay: 1s; animation-duration: 3.4s; } .cmx-spark.s4 { animation-delay: 1.5s; }
.cmx-spark.s5 { animation-delay: 2s; animation-duration: 3.2s; } .cmx-spark.s6 { animation-delay: 2.4s; }
.cmx-frost { inset: 0; opacity: .9; background-image: radial-gradient(rgba(255,255,255,.95) 1px, transparent 1.7px), radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.5) 2px, transparent 3px); background-size: 13px 13px, 21px 21px, 47px 47px; background-position: 0 0, 6px 10px, 18px 4px; -webkit-mask-image: radial-gradient(ellipse at 60% 55%, transparent 25%, #000 80%); mask-image: radial-gradient(ellipse at 60% 55%, transparent 25%, #000 80%); }
.cmx-flake { opacity: 0; animation: cmxSnow 9s linear infinite; }
.cmx-flake.f2 { animation-delay: 1.5s; animation-duration: 7s; } .cmx-flake.f3 { animation-delay: 3s; animation-duration: 11s; }
.cmx-flake.f4 { animation-delay: 4.5s; } .cmx-flake.f5 { animation-delay: 6s; animation-duration: 8s; } .cmx-flake.f6 { animation-delay: 7.5s; animation-duration: 10s; }
.cmx-drop { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.35) 40%, rgba(120,170,195,.35) 100%); box-shadow: 0 1px 1px rgba(46,109,142,.25); animation: cmxDrip 7s ease-in infinite; }
.cmx-drop.d2 { animation-delay: 1.8s; } .cmx-drop.d3 { animation-delay: 3.2s; animation-duration: 9s; } .cmx-drop.d4 { animation-delay: 4.4s; } .cmx-drop.d5 { animation-delay: 5.6s; animation-duration: 8s; }

/* ---------- Cards ---------- */
.cmx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cmx-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 170px; overflow: hidden;
    background: var(--paper); border: 1px solid #E3D2C8; border-radius: 22px; padding: 22px;
    animation: cmxRise .55s cubic-bezier(.2,.8,.2,1) both;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cmx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(112,27,34,.5); border-color: var(--line); }
.cmx-card.is-hidden { display: none; }
.cmx-media { position: relative; margin: -22px -22px 0; height: 300px; overflow: hidden; background: #EADBD2; }
.cmx-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.cmx-card:hover .cmx-media-img { transform: scale(1.06); }
.cmx-art-wrap { display: flex; align-items: flex-end; justify-content: center; padding-top: 12px; background: radial-gradient(circle at 50% 58%, #FBF4EC 0%, #EADBD2 75%); }
.cmx-ph-pattern { position: absolute; inset: 0; opacity: .06; background: url(../images/menu-pattern.png) repeat / 220px auto; }
.cmx-art-disc { position: absolute; left: 50%; top: 54%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; background: #F3E4D8; }
.cmx-art { position: relative; height: 92%; width: auto; overflow: visible; animation: cmxFloaty 5s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(58,28,31,.18)); }
.cmx-art-steam { animation: cmxArtSteam 3s ease-in-out infinite; }
.cmx-noart { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--rosso); padding: 16px; text-align: center; }
.cmx-noart svg { position: relative; }

.cmx-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.cmx-names { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmx-catchip { display: none; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #F0E4DB; color: var(--rosso); font-size: 12px; font-weight: 600; }
.cmx-name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: #1A1A1A; }
.cmx-name a { color: inherit; }
.cmx-name a:hover { color: var(--rosso); }
.cmx-alt { align-self: flex-end; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
[dir="ltr"].cmx .cmx-alt { align-self: flex-start; }
.cmx-price {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 50px; width: auto; height: 50px; padding: 0 10px; border-radius: 14px; background: var(--rosso); color: var(--cream); text-align: center;
    animation: cmxPop .45s cubic-bezier(.3,1.4,.4,1) both;
}
.cmx-price.is-pop { animation: none; }
.cmx-price span { display: block; font-size: 19px; font-weight: 700; line-height: 1; }
.cmx-price small { display: block; font-size: 10px; line-height: 1; color: #E6D3D0; }
.cmx-note { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.cmx-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.cmx-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.cmx-size {
    all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
    border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line);
    background: transparent; color: var(--rosso); transition: background .25s, color .25s, border-color .25s;
}
.cmx-size.is-active { background: var(--rosso); border-color: var(--rosso); color: var(--cream); }
.cmx-size--plain { cursor: default; min-height: 30px; padding: 0 12px; border: none; background: #F0E4DB; color: var(--muted); }
.cmx-cal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #1A1A1A; }
.cmx-cal b { font-weight: 500; }
.cmx-cal svg { color: var(--rosso); }

.cmx-extra { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 20px; background: var(--paper); border: 1.5px dashed var(--line); }
.cmx-extra span { width: 36px; height: 36px; border-radius: 50%; background: var(--rosso); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; flex-shrink: 0; }
.cmx-extra p { margin: 0; font-size: 15px; color: var(--ink); }

.cmx-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; border-radius: 24px; border: 1.5px dashed var(--line); text-align: center; }
.cmx-empty p { margin: 0; font-family: 'El Messiri', serif; font-size: 24px; font-weight: 700; color: var(--rosso); }
.cmx-empty .cmx-empty-sub { font-family: inherit; font-size: 15px; font-weight: 400; color: var(--muted); }
.cmx-foot-note { margin: 0; font-size: 13px; color: var(--muted-2); text-align: center; }

/* ---------- Motion ---------- */
@keyframes cmxSpin { to { transform: rotate(360deg); } }
@keyframes cmxRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cmxPop { from { opacity: .2; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes cmxPhotoIn { from { opacity: 0; transform: translateX(-30px) rotate(-4deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes cmxKb { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes cmxFloaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cmxArtSteam { 0%, 100% { opacity: .15; transform: translateY(4px); } 50% { opacity: .8; transform: translateY(-4px); } }
@keyframes cmxSteam { 0% { opacity: 0; transform: translateY(30px) scaleY(.8); } 35% { opacity: .3; } 100% { opacity: 0; transform: translateY(-70px) scaleY(1.15); } }
@keyframes cmxGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes cmxBean { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 4px -12px; rotate: 18deg; } }
@keyframes cmxSeed { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cmxCrumb { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(240px) rotate(220deg); } }
@keyframes cmxOoze { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.12); } }
@keyframes cmxChocoFall { 0%, 40% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(120px); } }
@keyframes cmxSprinkle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes cmxTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes cmxShimmer { 0% { left: -30%; } 55%, 100% { left: 120%; } }
@keyframes cmxSnow { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .95; } 90% { opacity: .8; } 100% { opacity: 0; transform: translateY(260px) translateX(-20px) rotate(180deg); } }
@keyframes cmxDrip { 0%, 55% { transform: translateY(0); opacity: .9; } 100% { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmx *, .cmx *::before, .cmx *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .cmx { padding: 64px 0 72px; }
    .cmx-wrap { padding: 0 16px; gap: 28px; }
    .cmx-badge { width: 80px; height: 80px; }
    .cmx-badge img { width: 66px; }
    .cmx-top-search { flex: 1 1 100%; }
    .cmx-tagline { height: 44px; }
    .cmx-tab { min-height: 46px; padding: 0 14px; font-size: 14px; }
    .cmx-head { padding: 24px 22px; border-radius: 22px; gap: 18px; }
    .cmx-head--choco { padding-top: 46px; }
    .cmx-iconbox { width: 60px; height: 60px; border-radius: 18px; }
    .cmx-iconbox svg { width: 30px; height: 30px; }
    .cmx-head-desc { font-size: 15px; }
    .cmx-head-en { align-self: flex-start; }
    .cmx-head-photo { width: 100%; height: 150px; transform: none; animation: none; }
    .cmx-grid { grid-template-columns: 1fr; }
    .cmx-media { height: 260px; }
    .cmx-fade { width: 64px; }
    .cmx-arrow { width: 40px; height: 40px; }
}
