*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#130f0d;color:#f2e3d5;font-family:Cairo,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}header{padding:20px 17px 28px;background:radial-gradient(ellipse at 80% 0%,#50331f,transparent 65%),#1b1511;text-align:center;border-bottom:1px solid #513c2c}.top{display:flex;justify-content:space-between;color:#edbf91;font-size:13px;letter-spacing:1px}.top a{color:inherit;text-decoration:none}h1{font-size:29px;color:#eac094;margin:22px 0 0}header p{margin:0 0 20px;color:#cdb6a0;font-size:13px}#search{width:100%;padding:13px 16px;background:#2b2420;border:1px solid #6d5340;border-radius:16px;color:white;outline:none}main{max-width:1060px;margin:auto;padding:12px 12px 35px}main>h2{font-size:22px;color:#eac094;margin:8px 5px}#categories{display:flex;gap:8px;overflow:auto;padding:8px 2px 20px;scrollbar-width:none}#categories button{flex:none;border:1px solid #594334;border-radius:13px;background:#29211c;color:#e8d7c8;padding:9px 15px;font-size:12px;font-weight:700}#categories button.active{background:#eac094;color:#21160f}.category{background:linear-gradient(140deg,#251c17,#17120f);border:1px solid #473529;border-radius:19px;padding:12px;margin-bottom:14px}.category h2{font-size:19px;color:#edc094;margin:0 2px 13px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{min-width:0;background:#29211c;border:1px solid #513c30;border-radius:14px;overflow:hidden}.photo{height:104px;background:linear-gradient(135deg,#443020,#1c1714);display:flex;align-items:center;justify-content:center;color:#c59a75;font-size:30px}.photo img{width:100%;height:100%;object-fit:cover}.details{padding:10px}.details h3{font-size:13px;min-height:42px;line-height:1.6;margin:0}.bottom-row{display:flex;justify-content:space-between;align-items:center;gap:5px}.price{font-weight:800;color:#f0c49a;font-size:12px;white-space:nowrap}.add{border:0;background:#edc196;color:#25170f;border-radius:50%;height:33px;width:33px;font-size:22px}#status{text-align:center;padding:25px;color:#dfba97}.bottom{position:fixed;bottom:0;left:0;right:0;background:#211914;border-top:1px solid #604735;display:flex;justify-content:space-around;padding:10px 0 calc(10px + env(safe-area-inset-bottom));z-index:10}.bottom button{background:none;border:0;color:#ebc096;font-size:12px}.bottom b{background:#edc196;color:#21160f;border-radius:20px;padding:0 5px}dialog{width:min(94vw,450px);max-height:85vh;overflow:auto;border:1px solid #70513a;border-radius:18px;background:#241b16;color:#f5e5d6;padding:20px}dialog::backdrop{background:#000b}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head button{border:0;background:none;color:white;font-size:30px}.cart-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #584031;font-size:13px}.cart-line button{border:0;border-radius:8px;background:#4a3428;color:#eec094}dialog input,dialog textarea{display:block;width:100%;margin:10px 0;padding:11px;background:#34271f;border:1px solid #624a39;color:white;border-radius:10px}#copy{width:100%;border:0;border-radius:10px;padding:12px;background:#eac094;font-weight:800}dialog small{display:block;color:#ac9582;margin-top:12px}@media(min-width:700px){.grid{grid-template-columns:repeat(4,1fr)}.photo{height:175px}header{padding:25px 60px}main{padding:20px 25px 35px}}
.brand-logo{display:block;width:80px;height:96px;object-fit:contain;margin:12px auto 0;border-radius:12px;background:#f9f6f2;padding:4px;box-shadow:0 6px 22px #0005}header h1{margin-top:7px}

/* Reels Café identity and top actions */
header{background:radial-gradient(circle at 50% 4%,#51351f 0,transparent 56%),linear-gradient(180deg,#241911,#140f0c);border-bottom:1px solid #765238}.top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:560px;margin:auto;letter-spacing:0}.top-action{min-width:0;display:flex;align-items:center;justify-content:center;gap:3px;padding:10px 4px;min-height:40px;border:1px solid #765439;border-radius:12px;background:#33251b;color:#f1d1a9!important;font-size:11px;font-weight:800;white-space:nowrap;text-decoration:none;line-height:1.2}.top-action.cart-action{background:#eac094;color:#24160e!important;border-color:#eac094}.top-action b{background:#432b1b;color:#fff;border-radius:10px;padding:1px 5px;font-size:10px}.brand-logo{width:88px;height:105px;margin-top:20px;border:2px solid #ad8055;background:#f9f6f2}header h1{font-weight:800;letter-spacing:.2px}.category{border-color:#59402c}.add{box-shadow:0 3px 10px #0004}#installHelp p{font-size:14px;line-height:2;color:#e7c9ab}@media(max-width:350px){.top-action{font-size:10px;padding:8px 2px}}
/* Compact, unified Reels Café menu identity */
:root{--reels-bg:#130e0b;--reels-panel:#241a14;--reels-card:#2b2019;--reels-gold:#d8ab79;--reels-gold-soft:#f1d6b5;--reels-line:#4a3526;--reels-muted:#b9a18b}
body{background:var(--reels-bg);color:#f4e7d9;font-size:12px}
header{padding:12px 12px 15px;background:radial-gradient(ellipse at top,#392519 0%,#1b130f 75%);border-color:var(--reels-line)}
.top{max-width:520px;gap:5px}.top-action{min-height:34px;padding:7px 3px;border-radius:9px;font-size:10px;background:#2d2018;border-color:#644831;color:var(--reels-gold-soft)!important}
.top-action.cart-action{background:var(--reels-gold);border-color:var(--reels-gold);color:#24160f!important}
.brand-logo{width:62px;height:76px;padding:3px;margin:10px auto 0;border-radius:9px;border:1px solid #a67b51;box-shadow:0 3px 14px #0005}
header h1{font-size:21px;line-height:1.5;margin:4px 0 0;color:var(--reels-gold-soft)}
header p{font-size:10px;margin:0 0 11px;color:var(--reels-muted)}
#search{max-width:650px;display:block;margin:0 auto;padding:9px 12px;border-radius:10px;font-size:11px;background:#2b2019;border-color:#604633}
main{max-width:1050px;padding:9px 9px 24px}
main>h2{font-size:16px;margin:4px 3px;color:var(--reels-gold-soft)}
#categories{gap:6px;padding:6px 1px 11px}
#categories button{padding:6px 10px;border-radius:9px;font-size:10px;background:#261b15;color:#e8d2bc;border-color:var(--reels-line)}
#categories button.active{background:var(--reels-gold);color:#1c130d;border-color:var(--reels-gold)}
.category{padding:9px;margin-bottom:9px;border-radius:12px;background:#211812;border-color:var(--reels-line)}
.category h2{font-size:14px;margin:0 2px 8px;color:var(--reels-gold-soft)}
.grid{gap:7px}
.product{border-radius:10px;background:var(--reels-card);border-color:#493527}
.photo{height:85px;font-size:23px;background:linear-gradient(140deg,#48301e,#241a14);color:var(--reels-gold)}
.details{padding:7px}
.details h3{font-size:11px;line-height:1.5;min-height:34px;font-weight:700}
.price{font-size:10px;color:var(--reels-gold-soft)}
.add{width:27px;height:27px;font-size:19px;line-height:1;background:var(--reels-gold);color:#21150f;box-shadow:none}
#status{font-size:11px;padding:15px}
dialog{border-color:#74543b;border-radius:14px;padding:15px;background:#211812;color:#f3e3d1}
dialog h2{font-size:17px}dialog input,dialog textarea{font-size:12px;padding:9px;border-radius:8px}
#copy{padding:10px;font-size:12px;background:var(--reels-gold)}
@media(min-width:700px){header{padding:15px 25px 20px}main{padding:14px 18px 30px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.photo{height:140px}.details h3{font-size:12px;min-height:37px}.category{padding:12px}.brand-logo{width:75px;height:90px}}
@media(max-width:360px){.photo{height:75px}.details{padding:6px}.details h3{font-size:10px}.top-action{font-size:9px}}

/* Reels Café warm milk + red visual identity */
:root{--reels-bg:#f7f2e9;--reels-panel:#fffaf3;--reels-card:#fffdf9;--reels-gold:#b73535;--reels-gold-soft:#872c2d;--reels-line:#e8d8cc;--reels-muted:#88786f}
html,body{background:#f7f2e9;color:#3c302b}
header{background:radial-gradient(ellipse at 50% 0%,#fffdf9 0%,#f7f0e6 72%);border-bottom:1px solid #eadbd0}
.top-action{background:#fffaf5;color:#872c2d!important;border:1px solid #ead9cf;box-shadow:0 2px 8px #7a49350b}
.top-action.cart-action{background:#ad3336;border-color:#ad3336;color:#fffaf5!important}
.top-action.cart-action b{background:#fff8f2;color:#a52d31}
.brand-logo{background:#fffdf9;border:1px solid #e9d7cc;box-shadow:0 4px 14px #6b382016}
header h1,main>h2,.category h2{color:#922e32}
header p{color:#927d70}
#search{background:#fffdfa;border-color:#e7d5c9;color:#43352e;box-shadow:0 2px 9px #5e34200a}
#search::placeholder{color:#a49387}
#categories button{background:#fffaf4;color:#6a5046;border:1px solid #e7d8cb}
#categories button.active{background:#b33437;color:#fff;border-color:#b33437}
.category{background:#fffaf4;border-color:#e8d9cc;box-shadow:0 3px 13px #74452c0a}
.product{background:#fffdf9;border-color:#eee0d5;box-shadow:0 2px 9px #6b382010}
.photo{background:linear-gradient(140deg,#f6e9db,#fdf8f1);color:#b73a3c}
.details h3{color:#49352e}
.price{color:#a52f34}
.add{background:#b33437;color:#fff;box-shadow:0 2px 7px #b3343726}
#status{color:#8b6e62}
dialog{background:#fffaf5;color:#3d2e29;border-color:#ead8c8;box-shadow:0 16px 60px #2a16153d}
.dialog-head button{color:#9e3135}
.cart-line{border-color:#ebddd2}
.cart-line button{background:#f7e7e3;color:#9b3033}
dialog input,dialog textarea{background:#fff;color:#3e312b;border-color:#e5d4c8}
#copy{background:#b33437;color:#fff}
dialog small,#installHelp p{color:#806d63}

/* Prevent iOS Safari zoom when focusing the menu search */
#search{font-size:16px!important}

/* Avoid automatic focus zoom on iOS for every editable field */
input,textarea,select,[contenteditable="true"]{font-size:16px!important}

/* Yoonyo menu dimensions (v3 + v5), preserving Reels colors and layout */
main{max-width:825px;padding:15px}
header{padding:10px 14px 13px}
.top{max-width:825px}
.top-action{min-height:35px;border-radius:12px}
.brand-logo{width:52px;height:62px;margin:10px auto 0}
header h1{font-size:21px}
header p{font-size:10px}
main>h2{font-size:14px;margin:12px 0 9px}
#categories{gap:7px;padding-bottom:5px}
#categories button{padding:7.5px 13px;border-radius:999px;font-size:10px}
.category{padding:9px;margin-bottom:12px;border-radius:17px}
.category h2{font-size:14px;margin:0 0 9px}
.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product{border-radius:17px;padding:7.5px;overflow:visible;position:relative}
.photo{height:125px;min-height:125px;border-radius:13px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8px;background:#fff}
.photo img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;display:block}
.details{padding:7.5px 0 0}
.details h3{font-size:10.5px;min-height:32px;line-height:1.5;margin:0 0 3px}
.price{font-size:10px}
.add{width:26px;height:26px;border-radius:9px;font-size:16px;flex-shrink:0}
#search{border-radius:11px;padding:9px 12px}
@media(min-width:700px){main{max-width:825px;padding:15px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.photo{height:145px;min-height:145px}.brand-logo{width:60px;height:72px}.category{padding:12px}}

/* Yoonyo-style checkout form */
#cart .checkout-field{display:flex;flex-direction:column;gap:5px;margin:9px 0}
#cart .checkout-field label{font-size:12px;font-weight:700;color:#872c2d}
#cart .checkout-field input,#cart .checkout-field select,#cart .checkout-field textarea{width:100%;box-sizing:border-box;background:#fffdf9;border:1px solid #e8d8cc;border-radius:11px;padding:10px 12px;color:#3a2926;font-family:inherit;font-size:16px!important;min-height:42px}
#cart .checkout-field textarea{min-height:64px;resize:vertical}
#cart .checkout-totals{border-top:1px solid #e8d8cc;margin-top:13px;padding-top:8px}
#cart .checkout-totals p{display:flex;justify-content:space-between;margin:6px 0;font-size:12px}
#cart .checkout-totals h3{font-size:15px;color:#922e32;margin:10px 0}
#sendOrder{width:100%;background:#ad3336;color:white;border:0;border-radius:12px;padding:12px;font:700 14px Cairo,sans-serif;cursor:pointer}
#sendOrder:disabled{opacity:.55;cursor:wait}
#orderMsg{color:#ad3336;font-size:12px;min-height:15px}

/* Ensure empty cart never displays checkout fields */
#checkoutFields[hidden]{display:none!important}

/* Installed PWA: hidden must override top-action display declarations */
#installButton[hidden]{display:none!important}

/* Keep top action positions fixed: hidden install leaves no replacement or stretch */
.top{display:flex!important;justify-content:flex-start!important;align-items:center;gap:5px}
.top>.top-action{flex:0 0 calc((100% - 10px)/3);width:calc((100% - 10px)/3);max-width:calc((100% - 10px)/3)}
#installButton[hidden]{display:none!important}

/* Fixed three-slot header: keep the middle slot reserved when install is hidden */
.top{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;justify-content:initial!important}
.top>.top-action{width:100%!important;max-width:none!important;min-width:0;flex:initial!important}
.top>#cartButton{grid-column:1!important}
.top>#installButton{grid-column:2!important}
.top>a.top-action{grid-column:3!important}
.top>#installButton[hidden]{display:flex!important;visibility:hidden!important;pointer-events:none!important}

/* Compact cart modal and checkout spacing */
#cart{padding:12px 13px!important;border-radius:14px!important;max-height:88dvh!important}
#cart .dialog-head{margin:0 0 4px!important;min-height:28px}
#cart .dialog-head h2{font-size:15px!important;margin:0!important}
#cart .dialog-head button{font-size:23px!important;line-height:1;padding:0 3px}
#cart #items{margin:0!important;padding:0!important}
#cart .cart-line{padding:5px 0!important;gap:7px!important;font-size:11px!important;align-items:center;line-height:1.45}
#cart .cart-line button{padding:4px 7px!important;font-size:10px!important;white-space:nowrap}
#cart .checkout-field{gap:2px!important;margin:5px 0!important}
#cart .checkout-field label{font-size:11px!important;line-height:1.3}
#cart .checkout-field input,#cart .checkout-field select{min-height:35px!important;padding:6px 9px!important;margin:0!important;border-radius:8px!important}
#cart .checkout-field textarea{min-height:44px!important;padding:6px 9px!important;margin:0!important;border-radius:8px!important}
#cart .checkout-totals{margin-top:7px!important;padding-top:5px!important}
#cart .checkout-totals p{margin:3px 0!important;font-size:11px!important}
#cart .checkout-totals h3{margin:5px 0 7px!important;font-size:13px!important}
#cart #sendOrder{padding:8px!important;min-height:36px!important;border-radius:9px!important}
#cart #orderMsg{margin:3px 0 0!important;min-height:0!important;line-height:1.4}

/* Restore readable cart typography while keeping compact spacing */
#cart .dialog-head h2{font-size:18px!important}
#cart .cart-line{font-size:14px!important;line-height:1.65!important}
#cart .cart-line button{font-size:13px!important}
#cart .checkout-field label{font-size:13px!important;line-height:1.5!important}
#cart .checkout-totals p{font-size:13px!important}
#cart .checkout-totals h3{font-size:16px!important}
#cart #sendOrder{font-size:15px!important}
#cart #orderMsg{font-size:13px!important}

/* Reels Café premium burgundy hero behind the home logo */
header{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#7d1525 0%,#a82032 46%,#651020 100%)!important;border-bottom:1px solid #b84b58!important;box-shadow:0 6px 20px rgba(99,18,33,.16)}
header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 60% 65% at 50% 40%,rgba(255,255,255,.13),transparent 75%),radial-gradient(circle at 0 0,rgba(255,213,192,.14),transparent 40%),linear-gradient(125deg,transparent 0 43%,rgba(255,255,255,.045) 43% 46%,transparent 46% 100%)}
header::after{content:"";position:absolute;width:240px;height:240px;top:20px;left:50%;transform:translateX(-50%);border:1px solid rgba(255,255,255,.10);border-radius:50%;z-index:-1;pointer-events:none}
header .brand-logo{position:relative;background:#fffaf5!important;border:2px solid rgba(255,255,255,.8)!important;box-shadow:0 5px 18px rgba(56,4,15,.28)!important}
header h1{color:#fff8f3!important;text-shadow:0 2px 6px rgba(58,6,16,.22)}
header p{color:#ffe0df!important}
header .top-action{background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.32)!important;color:#fff9f6!important;backdrop-filter:blur(5px)}
header .top-action.cart-action{background:#fff7f1!important;color:#861c2b!important;border-color:#fff7f1!important}
header #search{background:#fffaf7!important;border:1px solid rgba(255,255,255,.8)!important;color:#48232a!important;box-shadow:0 3px 10px rgba(76,8,23,.13)}
header #search::placeholder{color:#95777a!important}

/* Readable product titles and prices with tighter vertical rhythm */
.product .details h3{font-size:14px!important;line-height:1.45!important;min-height:0!important;height:auto!important;margin:0 0 4px!important;font-weight:800!important}
.product .details .bottom-row{margin-top:0!important;gap:5px!important;align-items:center!important}
.product .details .price{font-size:14px!important;line-height:1.4!important;font-weight:800!important}
.product .details{padding-top:7px!important}

/* Small confirmation after adding an item to cart */
#cartToast{position:fixed;z-index:1000;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,15px);opacity:0;visibility:hidden;pointer-events:none;max-width:calc(100vw - 32px);padding:11px 17px;border-radius:13px;background:#8f2031;color:#fff;font-size:13px;font-weight:700;line-height:1.5;text-align:center;box-shadow:0 6px 22px #45132145;transition:opacity .2s,transform .2s,visibility .2s}
#cartToast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* Larger, easier-to-tap category tabs */
#categories{gap:8px!important;padding:9px 2px 13px!important}
#categories button{font-size:14px!important;font-weight:800!important;padding:10px 16px!important;min-height:42px!important;border-radius:11px!important;white-space:nowrap}

/* Reduce gap between category tabs and product list */
#categories{margin-bottom:0!important;padding-bottom:3px!important}
main>h2{margin-bottom:2px!important}
#products{margin-top:0!important;padding-top:0!important}
#products .category:first-child{margin-top:0!important}

/* Improve cart button label readability */
header #cartButton{font-size:12px!important;font-weight:800!important;line-height:1.4!important}
header #cartButton b{font-size:10px!important}

/* Product photo flush with the card's top, left and right edges */
.product{padding:0!important;overflow:hidden!important}
.product .photo{width:100%!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important}
.product .photo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
.product .details{padding:8px 9px 9px!important}

/* Clear swipe affordance for horizontally scrolling category tabs */
.categories-wrap{position:relative;min-width:0}
.categories-wrap #categories{overflow-x:auto!important;scrollbar-width:none;scroll-behavior:smooth;padding-left:62px!important}
.categories-wrap #categories::-webkit-scrollbar{display:none}
.categories-swipe-hint{position:absolute;left:0;top:0;bottom:3px;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 6px 0 13px;min-width:66px;pointer-events:none;color:#a32d3b;font-size:10px;font-weight:800;background:linear-gradient(to right,#fffaf4 73%,rgba(255,250,244,0));white-space:nowrap}
.categories-swipe-hint .swipe-arrow{font-size:19px;line-height:1;animation:reels-swipe-arrow 1.6s ease-in-out infinite}
@keyframes reels-swipe-arrow{0%,100%{transform:translateX(0)}50%{transform:translateX(-5px)}}
@media(prefers-reduced-motion:reduce){.categories-swipe-hint .swipe-arrow{animation:none}}

/* Place the swipe hint ABOVE category buttons, never overlaying them */
.categories-wrap{display:flex;flex-direction:column}
.categories-wrap .categories-swipe-hint{position:static!important;order:-1;align-self:flex-start;min-width:0!important;height:auto!important;padding:0 3px!important;margin:0 0 2px!important;background:none!important;pointer-events:none}
.categories-wrap #categories{padding-left:2px!important}

/* Position swipe guidance above categories on the opposite (right) side */
.categories-wrap .categories-swipe-hint{align-self:flex-end!important;margin:0 3px 2px 0!important}
