/* MAHVA R11 — Reference-faithful editorial café menu stylesheet. */
@font-face{font-family:"MAHVA Estedad";src:url("/assets/mahva/estedad-arabic-wght-normal.e0efecd48802.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root{
  color-scheme:light;
  --forest:#0B1E1C;
  --forest-deep:#061915;
  --forest-mid:#09211D;
  --paper:#FCFAF4;
  --ivory:#F6F2E8;
  --ink:#142B24;
  --muted:#6E685F;
  --brown:#76543A;
  --champagne:#D6BA92;
  --border:#E3DDD1;
  --gutter:20px;
  font-family:"MAHVA Estedad",Tahoma,sans-serif;
  font-synthesis:none;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
h1,h2,p{margin:0}
:focus-visible{outline:3px solid #B87A3E;outline-offset:3px}
.skip-link{position:fixed;inset-block-start:-120px;inset-inline-start:10px;background:var(--paper);border:2px solid var(--forest);padding:11px 15px;z-index:99;font-weight:600}
.skip-link:focus{inset-block-start:12px}
.site-shell{max-width:1200px;margin-inline:auto;min-height:100dvh;background:var(--paper)}

/* ==========================================================================
   B. Hero Composition — Ceramic latte on physical LEFT, brand lockup on RIGHT
   ========================================================================== */
.brand-side{position:relative;background:var(--forest-deep)}
.brand-hero{position:relative;isolation:isolate;overflow:hidden;height:clamp(132px,38vw,238px);background:var(--forest-deep)}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:28% 71%;z-index:-3}
/* Right-side dark negative space blending into photographic shadow without obscuring the left ceramic cup */
.brand-hero::after{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(270deg,rgba(6,25,21,.58),rgba(6,25,21,.28) 39%,transparent 62%);
}
/* Bottom photographic transition connecting seamlessly into the top edge of the menu */
.brand-hero::before{
  content:"";position:absolute;bottom:0;right:0;width:42%;height:44px;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at bottom right,var(--forest-deep),transparent 73%);
}
/* In RTL, inset-inline-start is physical RIGHT */
.hero-identity{
  position:absolute;inset-block-start:0;inset-inline-start:clamp(16px,4.5vw,26px);
  display:flex;align-items:center;gap:clamp(10px,3vw,16px);
  padding-block-start:clamp(14px,5vw,28px);
  max-width:calc(100% - 32px);color:var(--paper);isolation:isolate;
}
.hero-identity::before{
  content:"";position:absolute;z-index:-1;inset:6px -14px auto auto;width:130px;height:120px;pointer-events:none;
  background:radial-gradient(ellipse,rgba(214,186,146,.14),transparent 72%);
}
.brand-logo{width:62px;height:73px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}
.hero-divider{
  display:block;width:1px;height:66px;flex-shrink:0;
  background:linear-gradient(180deg,transparent,rgba(214,186,146,.52) 22%,rgba(214,186,146,.52) 78%,transparent);
}
.hero-lettering{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.hero-eyebrow{color:var(--champagne);font-size:11.5px;font-weight:500;line-height:1.5;margin-bottom:4px;letter-spacing:.01em}
.hero-title{display:flex;flex-direction:column;align-items:flex-start;font-weight:720;white-space:nowrap;line-height:1.22;color:var(--paper)}
.hero-title-intro{font-size:17px;font-weight:460;color:#EFE7D8}
.hero-title-name{font-size:32px;font-weight:760;letter-spacing:-.01em}
.hero-hairline{width:28px;height:1px;margin-block-start:7px;background:var(--champagne)}

/* ==========================================================================
   C. Continuous Sculpted Forest-Green Category Rail & Unified Forest Surface
   ========================================================================== */
.menu-pane{
  position:relative;z-index:1;min-width:0;margin-top:-5px;
  background:var(--paper);border-top-left-radius:14px;overflow:hidden;
}
.category-nav{min-width:0;container-type:inline-size}
/* One continuous forest-green substrate behind BOTH the category icon rail AND expanded products */
.category-index{
  --rail:clamp(68px,23%,115px);
  position:relative;list-style:none;margin:0;padding:0;
  background:linear-gradient(180deg,var(--forest-deep) 0%,var(--forest-mid) 35%,var(--forest) 100%);
  isolation:isolate;
}
.category-item{margin:0;padding:0;min-width:0}
.category-toggle{
  display:grid;grid-template-columns:var(--rail) minmax(0,1fr);
  min-height:76px;position:relative;align-items:stretch;
  cursor:pointer;user-select:none;list-style:none;
}
.category-toggle::marker{content:""}
.category-toggle::-webkit-details-marker{display:none}

/* D. Category Icon Presentation inside the continuous forest rail */
.category-art{
  grid-column:1;grid-row:1;z-index:2;position:relative;
  display:grid;place-items:center;min-width:0;
  padding:6px 5px 6px 13px;pointer-events:none;
}
/* Low-opacity, softly diffused warm ambient illumination behind each illustration (no hard circle) */
.category-art::before{
  content:"";position:absolute;inset:12% 8%;
  background:radial-gradient(ellipse at 54% 50%,rgba(244,224,184,.24) 0%,rgba(226,192,138,.09) 46%,transparent 76%);
  filter:blur(9px);pointer-events:none;
}
.category-illustration{
  position:relative;z-index:1;width:var(--art-width, 70px);height:var(--art-height, 68px);max-width:100%;
  object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.28));
}
/* Per-icon perceived visual weight calibration */
.category-art-espresso-bar{--art-width:76px;--art-height:66px}
.category-art-specialty-brews{--art-width:64px;--art-height:70px}
.category-art-tea{--art-width:70px;--art-height:65px}
.category-art-herbal-infusions{--art-width:67px;--art-height:66px}
.category-art-milk-chocolate{--art-width:70px;--art-height:68px}
.category-art-cakes{--art-width:74px;--art-height:62px}
.category-art-cookies{--art-width:71px;--art-height:61px}

/* E. Warm Paper Category Surface + Coherent Organic S-Curve Wave */
.category-paper{
  grid-column:2;grid-row:1;position:relative;
  background:var(--paper);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-width:0;padding:10px 13px 10px 10px;isolation:isolate;
}
/* Single coherent SVG wave bridging the forest rail (right) and warm paper (left) with matching drop-shadow */
.category-wave{
  position:absolute;top:0;left:calc(100% - 9px);width:32px;height:100%;z-index:-1;pointer-events:none;overflow:hidden;
}
.category-wave svg{
  height:100%;width:100%;display:block;overflow:visible;
  filter:drop-shadow(2px 0 3px rgba(2,12,9,.22));
}
.category-wave path{fill:var(--paper)}

/* Thin muted warm separator ONLY inside the paper portion; stops well before the green rail */
.category-paper::after{
  content:"";position:absolute;bottom:0;right:14px;left:18px;height:1px;
  background:var(--border);opacity:.85;
}
.category-item:last-child .category-disclosure:not([open]) .category-paper::after{display:none}
.category-disclosure[open] .category-paper::after{opacity:0}

.category-label{
  flex:1;min-width:0;
  font-size:clamp(16px,4.1vw,18.5px);font-weight:700;line-height:1.65;
  color:var(--ink);text-wrap:pretty;overflow-wrap:break-word;
}
/* Minimum 44x44 CSS px touch target for chevron on the physical LEFT side */
.category-chevron-box{
  flex:none;width:44px;height:44px;display:grid;place-items:center;margin-inline-end:-6px;
}
.category-chevron{
  width:9px;height:9px;
  border-left:1.8px solid var(--brown);border-bottom:1.8px solid var(--brown);
  transform:rotate(45deg);transition:transform .28s cubic-bezier(.22,1,.36,1);opacity:.85;
}
.category-disclosure[open]>.category-toggle .category-chevron{transform:rotate(-45deg)}
.category-toggle:focus-visible{outline:3px solid #B87A3E;outline-offset:-4px}
.category-toggle:hover .category-label{color:#23493F}

/* ==========================================================================
   F. Expanded Products — Transparent container over the SAME forest surface
   ========================================================================== */
.category-panel{background:transparent;min-width:0;overflow:hidden}
/* Asymmetric insets (~80-82% card width on 390px): larger forest margin on RIGHT (under rail), smaller inset on LEFT */
.category-panel-inner{
  min-width:0;
  padding:12px clamp(24px,12.5vw,56px) 16px clamp(14px,6.4vw,28px);
  animation:mahva-enter .28s cubic-bezier(.22,1,.36,1) both;
}
@keyframes mahva-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

@supports (interpolate-size:allow-keywords){
  :root{interpolate-size:allow-keywords}
  @supports selector(details::details-content){
    details::details-content{block-size:0;opacity:0;overflow:clip;transition:block-size .3s cubic-bezier(.22,1,.36,1),opacity .22s ease,content-visibility .3s allow-discrete}
    details[open]::details-content{block-size:auto;opacity:1}
  }
}

/* ==========================================================================
   3. Product Cards — Warm Ivory, Photo on RIGHT, Title RIGHT, Price LEFT
   ========================================================================== */
.category-panel .product-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.category-panel .product-item{
  margin:0;padding:11px 13px 11px 16px;
  background:var(--ivory);border-radius:14px;
  min-height:66px;display:flex;align-items:center;gap:12px;
  box-shadow:0 3px 10px rgba(3,14,11,.18);min-width:0;
}
.category-panel .product-item.has-photo{min-height:102px;padding:10px 10px 10px 16px}

/* Image inside card on the far RIGHT (first child in RTL flex container) */
.product-photo{
  flex:none;inline-size:84px;aspect-ratio:1 / 1;
  display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);overflow:hidden;border-radius:11px;background:transparent;
}
.product-photo img{min-width:0;min-height:0;height:100%;width:100%;object-fit:contain}

.product-item.has-photo:has(> .product-wide-metadata){
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;
}
.product-item:has(> .product-wide-metadata) .product-photo{inline-size:clamp(56px,19vw,76px)}
.product-wide-metadata{grid-column:1 / -1;min-width:0}

.product-content{flex:1;min-width:0}
.product-topline{
  display:grid;grid-template-columns:minmax(0,1fr) fit-content(46%);align-items:start;gap:8px;
}
.product-title{
  font-size:16px;font-weight:720;line-height:1.45;color:var(--ink);
  min-width:0;overflow-wrap:anywhere;margin:0;
}
.product-subtitle,.product-ingredients,.product-description,.daily-special-note{
  font-size:13px;line-height:1.75;color:var(--muted);margin-top:3px;overflow-wrap:anywhere;
}

/* Price zone on physical LEFT with restrained bronze vertical hairline */
.product-price-zone{
  display:flex;align-items:center;justify-content:flex-end;min-width:0;
  border-inline-start:1px solid rgba(118,84,58,.24);padding-inline-start:8px;
}
.product-price{
  color:var(--brown);font-size:13px;font-weight:650;line-height:1.5;direction:rtl;overflow-wrap:anywhere;
}

.stock-badge{
  display:inline-flex;align-items:center;gap:5px;color:var(--muted);
  font-size:11.5px;font-weight:600;line-height:1.6;margin-top:4px;
}
.stock-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.stock-available{color:#2E6349}
.stock-unavailable,.variant-unavailable{color:#944F38}
.product-item.is-daily-special{border-inline-start:3px solid #B99365}

.product-variants{list-style:none;padding:0;margin:6px 0 0;display:flex;gap:6px 14px;flex-wrap:wrap}
.product-variants li{font-size:12.5px;color:var(--muted);display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0;overflow-wrap:anywhere}
.variant-price{font-weight:680;color:var(--brown)}

.category-panel .empty-category{
  background:var(--ivory);border-radius:14px;padding:15px 16px;color:var(--muted);font-size:13px;line-height:1.8;
}

/* Permanent espresso customization information — an editorial note, not order controls. */
.espresso-extras{
  margin-block:18px 3px;padding:14px clamp(12px, 3vw, 20px) 5px;
  border-block-start:1px solid rgba(214,186,146,.48);
  background:#132c26;border-radius:0 0 14px 14px;color:var(--ivory);
}
.espresso-extras:first-child{margin-block-start:0}
.espresso-extras h2{
  font-size:1.25rem;font-weight:680;line-height:1.55;
}
.espresso-extras p{font-size:.875rem;line-height:1.8;color:#e2d6c3;margin-block-start:4px;max-inline-size:48ch}
.espresso-extras ul{list-style:none;margin:6px 0 0;padding:0}
.espresso-extras li{
  display:grid;grid-template-columns:22px minmax(0,1fr) fit-content(40%);
  align-items:center;min-block-size:50px;
  column-gap:14px;padding-block:7px;font-size:1rem;font-weight:550;line-height:1.65;
  overflow-wrap:anywhere;
}
.espresso-extras li+li{border-block-start:1px solid rgba(214,186,146,.20)}
.extra-mark{color:var(--champagne)}
.extra-price{color:var(--champagne);text-align:end;font-size:.8125rem;font-weight:600}
@container (max-width: 240px){
  .espresso-extras li{grid-template-columns:22px minmax(0,1fr);column-gap:10px}
  .extra-price{grid-column:2;text-align:start}
}

/* Quiet editorial contact details: optional social/phone links, no visual CTA noise. */
.site-footer{padding:20px var(--gutter) 28px;color:var(--muted);border-top:1px solid var(--border);margin-top:0}
.site-footer address{font-size:12.5px;font-style:normal;line-height:2}
.footer-links{display:flex;flex-wrap:wrap;gap:2px 22px;align-items:center;margin-block-start:8px;min-width:0}
.site-footer .footer-link{display:inline-flex;min-height:44px;align-items:center;gap:8px;color:var(--brown);font-size:13px;font-weight:550;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;overflow-wrap:anywhere}
.site-footer .footer-link span{color:var(--muted);font-size:12px;font-weight:500}
.site-footer .footer-link bdi{unicode-bidi:isolate;direction:ltr}
.site-footer .footer-link:hover{text-decoration-color:currentColor}
.site-footer .footer-link:focus-visible{text-decoration-color:currentColor}

/* Native Image Dialog */
.photo-dialog{
  border:0;border-radius:20px;padding:16px;max-width:min(94vw,680px);max-height:90dvh;
  background:var(--paper);color:var(--ink);box-shadow:0 20px 70px rgba(0,0,0,.35);
}
.photo-dialog::backdrop{background:rgba(3,21,16,.8);backdrop-filter:blur(4px)}
.photo-dialog form{display:flex;justify-content:flex-start;margin-bottom:6px}
.photo-dialog-close{
  border:0;background:var(--forest);color:#fff;font:inherit;font-size:24px;
  width:46px;height:46px;border-radius:50%;cursor:pointer;display:grid;place-items:center;
}
.photo-dialog-image{display:block;max-width:100%;max-height:70dvh;width:auto;height:auto;object-fit:contain;margin-inline:auto}
.photo-dialog-caption{text-align:center;font-size:14px;margin:8px auto 0;color:var(--muted)}

/* Standalone Category Deep-Link Pages */
.category-page{max-width:900px;margin-inline:auto;min-height:100dvh;background:var(--paper);display:flex;flex-direction:column}
.detail-masthead{height:110px;background:var(--forest);display:flex;align-items:center;gap:14px;padding:10px var(--gutter);color:var(--paper)}
.detail-masthead img{height:70px;width:60px;object-fit:contain}
.masthead-link{min-height:80px;min-width:72px;display:grid;place-items:center}
.detail-masthead>span{font-size:13px;color:#E9D5B5}
.detail-main{flex:1;padding:18px var(--gutter) 28px;min-width:0;container-type:inline-size}
.back-link{display:inline-flex;align-items:center;min-height:48px;font-size:14px;font-weight:600;color:var(--brown)}
.detail-heading{border-bottom:1px solid var(--border);padding:12px 0 15px;margin-bottom:18px}
.detail-heading h1{font-size:24px;font-weight:710;line-height:1.55}
.detail-main .product-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.detail-main .product-item{background:var(--ivory);border:1px solid var(--border);border-radius:14px;min-height:72px;padding:12px 14px;display:flex;align-items:center;gap:14px}
.detail-main .product-item.has-photo{min-height:104px}
.detail-main .empty-category{padding:25px 0;color:var(--muted)}
.category-page .site-footer{margin-top:auto}
.not-found{min-height:100dvh;display:grid;align-content:center;justify-items:center;gap:14px;padding:24px}
.not-found a{color:var(--brown);text-decoration:underline;text-underline-offset:4px}

/* ==========================================================================
   Responsive Breakpoints — Tablet/Desktop (768px+) & Narrow Mobile (<=359px)
   ========================================================================== */
@media(min-width:768px){
  :root{--gutter:clamp(26px,3.5vw,52px)}
  body{padding:clamp(12px,1.7vw,24px);background:#EFECE4}
  .site-shell{
    display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);
    min-height:calc(100dvh - 48px);border-radius:18px;overflow:hidden;
    box-shadow:0 12px 40px rgba(6,25,21,.08);
  }
  .brand-side{grid-column:2;grid-row:1}
  .brand-hero{height:100%;min-height:740px}
  .hero-photo{
    height:min(620px,76vh);object-fit:cover;object-position:8% 50%;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);
  }
  .brand-hero::after{background:linear-gradient(to bottom,rgba(6,25,21,.72),rgba(6,25,21,.15) 50%,rgba(6,25,21,.35))}
  .hero-identity{padding-block-start:clamp(28px,4vw,52px);gap:18px}
  .brand-logo{width:98px;height:112px}
  .hero-divider{height:84px}
  .hero-eyebrow{font-size:12.5px}
  .hero-title-intro{font-size:22px}
  .hero-title-name{font-size:42px}
  .menu-pane{grid-column:1;grid-row:1;margin-top:0;border-radius:0;display:flex;flex-direction:column}
  .category-index{--rail:116px}
  .category-toggle{min-height:112px}
  .category-paper{padding-inline:26px 16px}
  .category-label{font-size:17.5px}
  .category-panel-inner{padding:16px 42px 24px 26px}
  .site-footer{margin-top:auto}
}

@media(max-width:359px){
  :root{--gutter:14px}
  .hero-identity{gap:8px;padding-block-start:18px;inset-inline-start:12px}
  .brand-logo{width:58px;height:68px}
  .hero-divider{height:52px}
  .hero-eyebrow{font-size:10px}
  .hero-title-intro{font-size:14.5px}
  .hero-title-name{font-size:25px}
  .category-index{--rail:74px}
  .category-toggle{min-height:70px}
  .category-art{padding:6px 6px 6px 10px}
  .category-illustration{width:62px;height:62px}
  .category-paper{padding:12px 12px 12px 6px;gap:6px}
  .category-label{font-size:15px}
  /* Relax asymmetric insets on 320px so text and prices never crowd */
  .category-panel-inner{padding:10px 20px 14px 12px}
  .category-panel .product-item{padding:10px 10px 10px 12px;gap:9px;min-height:60px}
  .category-panel .product-item.has-photo{min-height:88px;padding:8px 8px 8px 12px}
  .product-photo{inline-size:68px;border-radius:9px}
  .product-title{font-size:14.5px}
  .product-price-zone{padding-inline-start:6px}
  .product-price{font-size:12.5px}
}

@container(max-width:280px){
  .category-index{--rail:64px}
  .category-label{font-size:13.5px;overflow-wrap:anywhere}
  .category-illustration{width:52px;height:52px}
  .category-toggle{min-height:86px}
  .category-chevron-box{width:24px;margin-inline-end:0}
  .category-panel-inner{padding:9px 8px}
  .product-photo{inline-size:56px}
  .product-item:has(> .product-wide-metadata) .product-photo{inline-size:56px}
  .product-topline{grid-template-columns:minmax(0,1fr);gap:3px}
  .product-price-zone{justify-content:flex-start;border:0;padding:0}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
