(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{9672:function(e,r,t){Promise.resolve().then(t.bind(t,9198)),Promise.resolve().then(t.bind(t,4443)),Promise.resolve().then(t.bind(t,3376)),Promise.resolve().then(t.t.bind(t,9390,23))},9198:function(e,r,t){"use strict";t.d(r,{default:function(){return O}});var n=t(3890),i=t(8779),l=t(8496),s=t(1720),o=t(6788),a=t(4786),c=t(2352);let d=(0,c.Z)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var h=t(6843),f=t(7201);let p=(0,c.Z)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var m=t(9812);let u=(0,c.Z)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);var x=t(1354);let g=[{name:"Alle Produkte",nameMobile:"Alle\nProdukte",slug:"alle-produkte",href:"/shop",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),(0,n.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),(0,n.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),(0,n.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),{}),desktopOnly:!0},{name:"Anthony William",nameMobile:"Anthony\nWilliam",slug:"aw-buecher-und-mehr",href:"/kategorie/aw-buecher-und-mehr",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),(0,n.jsx)("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),{})},{name:"GLP-1 Abnehmen",nameMobile:"GLP-1\nAbnehmen",slug:"glp-1",href:"/kategorie/glp-1",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z"}),(0,n.jsx)("path",{d:"M7 12h10"}),(0,n.jsx)("path",{d:"M9 9v6"}),(0,n.jsx)("path",{d:"M12 8v8"}),(0,n.jsx)("path",{d:"M15 9v6"})]}),{}),matchSlugs:["glp-1","abnehmen"]},{name:"Spermidin & OPC",nameMobile:"Spermidin\nOPC",slug:"spermidin",href:"/kategorie/spermidin",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5z"}),(0,n.jsx)("path",{d:"M5 3l.5 1.5L7 5l-1.5.5L5 7l-.5-1.5L3 5l1.5-.5z"}),(0,n.jsx)("path",{d:"M19 15l.5 1.5 1.5.5-1.5.5-.5 1.5-.5-1.5-1.5-.5 1.5-.5z"})]}),{}),matchSlugs:["spermidin","spermidin_opc_shilajit_melatonin"]},{name:"Mann & Frau",nameMobile:"Mann\nFrau",slug:"mann-frau",href:"/kategorie/mann-frau",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("circle",{cx:"9",cy:"5",r:"2"}),(0,n.jsx)("path",{d:"M6 21v-4H4l2-6h6l2 6h-2v4"}),(0,n.jsx)("circle",{cx:"17",cy:"5",r:"2"}),(0,n.jsx)("path",{d:"M14 9h6l-1 5h-1v7h-2v-7h-1l-1-5z"})]}),{}),matchSlugs:["mann-frau","fuer-den-mann","fuer-die-frau"]},{name:"Leber & Darm",nameMobile:"Leber\nDarm",slug:"leber-darm",href:"/kategorie/leber-darm",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10z"}),(0,n.jsx)("path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"})]}),{}),matchSlugs:["leber-darm","leber","darm"]},{name:"Kr\xe4utertinkturen",nameMobile:"Kr\xe4uter\ntinkturen",slug:"kraeutertinkturen",href:"/kategorie/kraeutertinkturen",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M8 2h8l1 4H7L8 2z"}),(0,n.jsx)("rect",{x:"5",y:"6",width:"14",height:"16",rx:"2"}),(0,n.jsx)("path",{d:"M8 11h8"}),(0,n.jsx)("path",{d:"M8 15h5"})]}),{})},{name:"Bestseller & Bundles",nameMobile:"Bestseller\nBundles",slug:"bestseller",href:"/kategorie/bestseller",icon:(0,n.jsx)(()=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),{}),matchSlugs:["bestseller","bestseller-bundles"]}];function y(e){let{activeSlug:r}=e,t=(0,l.useRef)(null),[i,s]=(0,l.useState)(!1),[a,c]=(0,l.useState)(!1),d=()=>{let e=t.current;if(!e)return;let r=e.scrollWidth>e.clientWidth+4;s(e.scrollLeft>8),c(r&&e.scrollLeft{let e=t.current;if(e)return setTimeout(d,120),e.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{e.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[]),(0,l.useEffect)(()=>{if(!r||!t.current)return;let e=t.current.querySelector("[data-slug]");e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[r]);let h=e=>{let r=t.current;r&&r.scrollBy({left:"left"===e?-320:320,behavior:"smooth"})};return(0,n.jsxs)("div",{className:"catslider-wrapper",children:[i&&(0,n.jsx)("button",{className:"catslider-arrow catslider-arrow-left",onClick:()=>h("left"),"aria-label":"Zur\xfcck",children:"‹"}),(0,n.jsx)("div",{ref:t,className:"catslider-track",children:g.map(e=>{let t=!!r&&(e.matchSlugs?e.matchSlugs.includes(r):e.slug===r);return(0,n.jsxs)(o.default,{href:e.href,"data-slug":e.slug,className:"catslider-tile".concat(t?" active":"").concat(e.desktopOnly?" catslider-desktop-only":""),children:[(0,n.jsxs)("div",{className:"catslider-box",children:[(0,n.jsx)("div",{className:"catslider-icon-wrap",children:e.icon}),(0,n.jsx)("span",{className:"catslider-label catslider-label-desktop",children:e.name}),(0,n.jsx)("span",{className:"catslider-label catslider-label-mobile",style:{whiteSpace:"pre-line"},children:e.nameMobile})]}),t&&(0,n.jsx)("div",{className:"catslider-underline"})]},e.slug)})}),a&&(0,n.jsx)("button",{className:"catslider-arrow catslider-arrow-right",onClick:()=>h("right"),"aria-label":"Weiter",children:"›"})]})}let v="https://www.yourpowerfoods.com/wp-content/uploads/2026/04/ypf-logo-v2_435ebbb1.webp",b="https://www.yourpowerfoods.com/wp-content/uploads/2026/04",j=[{label:"GLP-1\nAbnehmen",href:"/kategorie/glp-1",gradient:"linear-gradient(135deg, #8A3800 0%, #E07820 50%, #FFCC80 100%)",img:"".concat(b,"/glp1-v2_abd469cc.webp")},{label:"Leber\n& Darm",href:"/kategorie/leber-darm",gradient:"linear-gradient(135deg, #2A5A08 0%, #4A8A1A 50%, #9FCC6B 100%)",img:"".concat(b,"/leber-v2_3046145b.webp")},{label:"Anti-\nAging",href:"/kategorie/spermidin",gradient:"linear-gradient(135deg, #083860 0%, #2880B8 50%, #90C8E8 100%)",img:"".concat(b,"/mann-frau-v2_005e3ad0.webp")},{label:"Mann\n& Frau",href:"/kategorie/mann-frau",gradient:"linear-gradient(135deg, #4A0A78 0%, #8B30C0 50%, #D4A0E8 100%)",img:"".concat(b,"/anti-aging-v2_add48897.webp")}],w={"glp-1":"".concat(b,"/cat-glp1-v12-v2_3cf054da.webp"),spermidin:"".concat(b,"/cat-spermidin-v12-opt_e238eb9d.webp"),"leber-darm":"".concat(b,"/cat-leber-v12-opt_489cc9cb.webp"),kraeutertinkturen:"".concat(b,"/cat-kraeutertinkturen-v12-opt_a9bf6378.webp"),"mann-frau":"".concat(b,"/cat-mann-frau-v12-opt_8e6bfda2.webp"),bestseller:"".concat(b,"/cat-bestseller-v8_f5f685b3.webp"),"anthony-william":"".concat(b,"/cat-anthony-william-v12-opt_6bebc815.webp")},k=[{label:"Alle Produkte",href:"/shop",img:null},{label:"Anthony William",href:"/kategorie/anthony-william",img:w["anthony-william"]},{label:"GLP-1 Abnehmen",href:"/kategorie/glp-1",img:w["glp-1"]},{label:"Spermidin & OPC",href:"/kategorie/spermidin",img:w.spermidin},{label:"Mann & Frau",href:"/kategorie/mann-frau",img:w["mann-frau"]},{label:"Leber & Darm",href:"/kategorie/leber-darm",img:w["leber-darm"]},{label:"Kr\xe4utertinkturen",href:"/kategorie/kraeutertinkturen",img:w.kraeutertinkturen},{label:"Bestseller & Bundles",href:"/kategorie/bestseller",img:w.bestseller}];function C(){let e=(0,i.usePathname)()||"/",{totalItems:r,openCart:t}=(0,x.j)(),[c,b]=(0,l.useState)(!1),[w,C]=(0,l.useState)(!1);(0,l.useCallback)(()=>b(!1),[]),(0,l.useCallback)(()=>C(!1),[]);let[S,z]=(0,l.useState)(""),[N,A]=(0,l.useState)(""),[W,B]=(0,l.useState)(!1),[M,F]=(0,l.useState)(!1),L=(0,l.useRef)(null),E=(0,l.useRef)(null),_=(0,l.useRef)(null),I=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=setTimeout(()=>A(S),150);return()=>clearTimeout(e)},[S]);let P=[];(0,l.useEffect)(()=>{let e=e=>{I.current&&!I.current.contains(e.target)&&F(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,l.useEffect)(()=>{b(!1),C(!1),B(!1)},[e]),(0,l.useEffect)(()=>{w&&setTimeout(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.focus()},80)},[w]),(0,l.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&B(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,l.useEffect)(()=>(document.body.style.overflow=c?"hidden":"",()=>{document.body.style.overflow=""}),[c]);let T=r=>e===r||e.startsWith(r+"/"),R=e.startsWith("/kategorie/")?e.replace("/kategorie/","").split("/")[0]:void 0,H=[{href:"/kategorie/bestseller",label:"Bestseller/Aktionen"},{href:"/erfahrungen-bewertungen",label:"Bewertungen"},{href:"/blog",label:"Blog"},{href:"/faq",label:"FAQ"},{href:"/kontakt",label:"Kontakt"},{href:"/ueber-uns",label:"\xdcber uns"}];return(0,n.jsxs)("div",{className:"ypf-sticky-nav",children:[(0,n.jsx)("div",{className:"ypf-topbar",children:(0,n.jsxs)("div",{className:"ypf-topbar-inner",children:[(0,n.jsxs)("span",{className:"ypf-topbar-item",children:[(0,n.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"rgba(255,255,255,0.7)",flexShrink:0},children:(0,n.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})}),"Kostenloser Versand"]}),(0,n.jsxs)("span",{className:"ypf-topbar-item",children:[(0,n.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"rgba(255,255,255,0.7)",flexShrink:0},children:(0,n.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),"60 Tage Geld-zur\xfcck-Garantie"]}),(0,n.jsxs)("span",{className:"ypf-topbar-item ypf-topbar-desktop",children:[(0,n.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"rgba(255,255,255,0.7)",flexShrink:0},children:[(0,n.jsx)("path",{d:"M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2z"}),(0,n.jsx)("path",{d:"M8 12l2.5 2.5L16 9"})]}),"Bio-zertifizierter Betrieb"]}),(0,n.jsxs)("span",{className:"ypf-topbar-item ypf-topbar-desktop",children:[(0,n.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"rgba(255,255,255,0.7)",flexShrink:0},children:[(0,n.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,n.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,n.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,n.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),"35.000+ zufriedene Kunden"]}),(0,n.jsxs)("a",{href:"https://www.yourpowerfoods.com/bewertungen/",target:"_blank",rel:"noopener noreferrer",className:"ypf-topbar-item ypf-topbar-link",children:[(0,n.jsx)("span",{style:{color:"rgba(255,220,100,0.95)",letterSpacing:"0.5px",fontSize:"0.65rem"},children:"★★★★★"}),(0,n.jsx)("span",{children:"Bewertungen"})]})]})}),(0,n.jsx)("header",{className:"ypf-header",children:(0,n.jsxs)("div",{className:"ypf-header-inner container",children:[(0,n.jsx)("button",{className:"nav-icon-btn ypf-hamburger",onClick:()=>b(!c),"aria-label":"Men\xfc",style:{padding:"0.3rem 0.5rem"},children:c?(0,n.jsx)(a.Z,{className:"ypf-icon-mobile",size:22}):(0,n.jsx)(d,{className:"ypf-icon-mobile",size:22})}),(0,n.jsx)(o.default,{href:"/",className:"ypf-logo-link",children:(0,n.jsx)("img",{src:v,alt:"YourPowerFoods",className:"ypf-logo-img",width:"160",height:"40",decoding:"async"})}),(0,n.jsxs)("div",{className:"ypf-search-wrap",ref:I,children:[(0,n.jsxs)("div",{className:"ypf-search-box",id:"ypf-search-box-desktop",children:[(0,n.jsxs)("svg",{className:"ypf-search-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,n.jsx)("path",{d:"m21 21-4.35-4.35"})]}),(0,n.jsx)("input",{ref:L,type:"search",placeholder:"Produkte suchen…",value:S,onChange:e=>z(e.target.value),onFocus:()=>F(!0),onKeyDown:e=>{"Escape"===e.key&&(F(!1),z("")),"Enter"===e.key&&S.trim()&&(window.location.href="/shop?search=".concat(encodeURIComponent(S.trim())))},className:"ypf-search-input",autoComplete:"off"}),S&&(0,n.jsx)("button",{className:"ypf-search-clear",onClick:()=>z(""),"aria-label":"L\xf6schen",children:(0,n.jsx)(a.Z,{size:14})})]}),M&&N.length<3&&(0,n.jsxs)("div",{className:"ypf-search-dropdown ypf-search-dropdown--categories",children:[(0,n.jsx)("div",{className:"ypf-search-dropdown-label",children:"Kategorien"}),(0,n.jsx)("div",{className:"ypf-search-cat-grid",children:g.map(e=>(0,n.jsxs)(o.default,{href:e.href,className:"ypf-search-cat-item",onClick:()=>{F(!1),z("")},children:[(0,n.jsx)("span",{className:"ypf-search-cat-icon",children:e.icon}),(0,n.jsx)("span",{className:"ypf-search-cat-name",children:e.name})]},e.slug))})]}),N.length>=3&&(0,n.jsx)("div",{className:"ypf-search-dropdown",children:(null==P?void 0:P.length)?(0,n.jsxs)(n.Fragment,{children:[P.slice(0,6).map(e=>{var r,t;return(0,n.jsxs)(o.default,{href:"/produkt/".concat(e.slug),className:"ypf-search-result",onClick:()=>{F(!1),z("")},children:[(0,n.jsx)("div",{className:"ypf-search-result-img",children:(0,n.jsx)("img",{src:(null===(t=e.images)||void 0===t?void 0:null===(r=t[0])||void 0===r?void 0:r.src)||"",alt:e.name,width:"60",height:"60",decoding:"async"})}),(0,n.jsxs)("div",{className:"ypf-search-result-info",children:[(0,n.jsx)("p",{className:"ypf-search-result-name",children:e.name}),(0,n.jsxs)("p",{className:"ypf-search-result-price",children:[e.on_sale?e.sale_price:e.price," €"]})]})]},e.id)}),(0,n.jsxs)(o.default,{href:"/shop?search=".concat(encodeURIComponent(N)),className:"ypf-search-all-link",onClick:()=>{F(!1),z("")},children:[(0,n.jsx)("span",{children:"Alle Ergebnisse anzeigen"}),(0,n.jsx)("span",{children:"→"})]})]}):(0,n.jsxs)("div",{className:"ypf-search-empty",children:["Keine Ergebnisse f\xfcr „",N,"“"]})})]}),(0,n.jsx)("nav",{className:"ypf-nav-links",children:(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{ref:_,className:"ypf-nav-dropdown-wrap",children:[(0,n.jsxs)("button",{className:"ypf-nav-link ypf-nav-dropdown-btn".concat(T("/shop")||T("/kategorie")?" active":""),onClick:()=>B(!W),children:["Alle Produkte",(0,n.jsx)(h.Z,{size:13,className:"ypf-chevron".concat(W?" open":"")})]}),W&&(0,n.jsxs)("div",{className:"ypf-dropdown ypf-dropdown--tiles",children:[(0,n.jsx)("div",{className:"ypf-dropdown-color-grid ypf-dropdown-color-grid--4col",children:j.map(e=>(0,n.jsx)(o.default,{href:e.href,className:"ypf-dropdown-color-tile",onClick:()=>B(!1),children:(0,n.jsxs)("div",{className:"ypf-dct-inner",style:{background:e.gradient},children:[(0,n.jsx)("span",{className:"ypf-dct-name",style:{whiteSpace:"pre-line"},children:e.label}),(0,n.jsx)("img",{src:e.img,alt:e.label,className:"ypf-dct-img",width:"80",height:"80",decoding:"async"}),(0,n.jsx)("div",{className:"ypf-dct-arrow",children:(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"white",strokeWidth:"2.2",children:(0,n.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"})})})]})},e.href))}),(0,n.jsx)("div",{className:"ypf-dropdown-pills",children:k.map(e=>(0,n.jsxs)(o.default,{href:e.href,className:"ypf-dropdown-pill",onClick:()=>B(!1),children:[(0,n.jsx)("div",{className:"ypf-dropdown-pill-thumb",children:e.img?(0,n.jsx)("img",{src:e.img,alt:e.label,loading:"lazy",width:"40",height:"40",decoding:"async"}):(0,n.jsx)("span",{style:{color:"#fff",fontSize:14},children:"→"})}),(0,n.jsx)("span",{className:"ypf-dropdown-pill-label",children:e.label}),(0,n.jsx)("span",{className:"ypf-dropdown-pill-arrow",children:"›"})]},e.href))})]})]}),H.map(e=>{let{href:r,label:t}=e;return(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:r,className:"ypf-nav-link".concat(T(r)?" active":""),children:t})},r)})]})}),(0,n.jsxs)("div",{className:"ypf-header-actions",children:[(0,n.jsx)("button",{className:"nav-icon-btn ypf-mobile-search-btn",onClick:()=>C(!0),"aria-label":"Suche",children:(0,n.jsx)(f.Z,{className:"ypf-icon-mobile",size:20})}),(0,n.jsx)(o.default,{href:"/ueber-uns",className:"nav-icon-btn ypf-desktop-only-action","aria-label":"\xdcber uns / Kontakt",children:(0,n.jsx)(p,{size:20})}),(0,n.jsx)(o.default,{href:"/mein-konto",className:"nav-icon-btn","aria-label":"Mein Konto",onClick:()=>window.dispatchEvent(new CustomEvent("konto-reset")),children:(0,n.jsx)(m.Z,{className:"ypf-icon-mobile",size:20})}),(0,n.jsxs)("button",{className:"nav-icon-btn",onClick:t,"aria-label":"Warenkorb",style:{position:"relative"},children:[(0,n.jsx)(u,{className:"ypf-icon-mobile",size:20}),r>0&&(0,n.jsx)("span",{className:"nav-cart-badge",children:r>9?"9+":r})]})]})]})}),(0,n.jsx)("div",{className:"nav-category-slider-wrapper",children:(0,n.jsx)(y,{activeSlug:R})}),w&&(0,s.createPortal)((0,n.jsx)("div",{className:"ypf-search-overlay",onClick:()=>{C(!1),z("")},children:(0,n.jsxs)("div",{className:"ypf-search-overlay-inner",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"ypf-search-overlay-box",children:[(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"#aaa",flexShrink:0},children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,n.jsx)("path",{d:"m21 21-4.35-4.35"})]}),(0,n.jsx)("input",{ref:E,autoFocus:!0,type:"search",placeholder:"Produkte suchen…",value:S,onChange:e=>z(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(C(!1),z("")),"Enter"===e.key&&S.trim()&&(window.location.href="/shop?search=".concat(encodeURIComponent(S.trim())))},className:"ypf-search-overlay-input"}),(0,n.jsx)("button",{onClick:()=>{C(!1),z("")},className:"ypf-search-overlay-close",children:(0,n.jsx)(a.Z,{size:18})})]}),N.length>=3?(0,n.jsx)("div",{className:"ypf-search-overlay-results",children:(null==P?void 0:P.length)?P.slice(0,6).map(e=>{var r,t;return(0,n.jsxs)(o.default,{href:"/produkt/".concat(e.slug),className:"ypf-search-result",onClick:()=>{C(!1),z("")},children:[(0,n.jsx)("div",{className:"ypf-search-result-img",children:(0,n.jsx)("img",{src:(null===(t=e.images)||void 0===t?void 0:null===(r=t[0])||void 0===r?void 0:r.src)||"",alt:e.name,width:"60",height:"60",decoding:"async"})}),(0,n.jsxs)("div",{className:"ypf-search-result-info",children:[(0,n.jsx)("p",{className:"ypf-search-result-name",children:e.name}),(0,n.jsxs)("p",{className:"ypf-search-result-price",children:[e.on_sale?e.sale_price:e.price," €"]})]})]},e.id)}):(0,n.jsxs)("div",{className:"ypf-search-empty",children:["Keine Ergebnisse f\xfcr „",N,"“"]})}):(0,n.jsxs)("div",{className:"ypf-search-overlay-cats",children:[(0,n.jsx)("p",{className:"ypf-search-cats-label",children:"Beliebte Kategorien"}),(0,n.jsx)("div",{className:"ypf-search-cats-list",children:void 0})]})]})}),document.body),c&&(0,s.createPortal)((0,n.jsx)("div",{className:"ypf-drawer-overlay",onClick:()=>b(!1),children:(0,n.jsxs)("div",{className:"ypf-drawer",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"ypf-drawer-header",children:[(0,n.jsx)(o.default,{href:"/",onClick:()=>b(!1),children:(0,n.jsx)("img",{src:v,alt:"YourPowerFoods",width:"200",height:"41",style:{height:"28px",width:"auto"},decoding:"async"})}),(0,n.jsx)("button",{onClick:()=>b(!1),className:"ypf-drawer-close",children:(0,n.jsx)(a.Z,{size:20})})]}),(0,n.jsxs)("nav",{className:"ypf-drawer-nav",children:[(0,n.jsx)(o.default,{href:"/shop",className:"ypf-drawer-link ypf-drawer-link-main",children:"Alle Produkte →"}),(0,n.jsx)("div",{className:"ypf-drawer-color-grid ypf-drawer-color-grid--padded",children:j.map(e=>(0,n.jsx)(o.default,{href:e.href,className:"ypf-drawer-color-tile",onClick:()=>b(!1),children:(0,n.jsxs)("div",{className:"ypf-dct-inner",style:{background:e.gradient},children:[(0,n.jsx)("span",{className:"ypf-dct-name",style:{whiteSpace:"pre-line",fontSize:"13px"},children:e.label}),(0,n.jsx)("img",{src:e.img,alt:e.label,className:"ypf-dct-img",width:"80",height:"80",decoding:"async"}),(0,n.jsx)("div",{className:"ypf-dct-arrow",children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"white",strokeWidth:"2.2",children:(0,n.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"})})})]})},e.href))}),(0,n.jsx)("div",{className:"ypf-drawer-pills",children:k.map(e=>(0,n.jsxs)(o.default,{href:e.href,className:"ypf-drawer-pill",onClick:()=>b(!1),children:[(0,n.jsx)("div",{className:"ypf-drawer-pill-thumb",children:e.img?(0,n.jsx)("img",{src:e.img,alt:e.label,loading:"lazy",width:"40",height:"40",decoding:"async"}):(0,n.jsx)("span",{style:{color:"#fff",fontSize:14},children:"→"})}),(0,n.jsx)("span",{className:"ypf-drawer-pill-label",children:e.label}),(0,n.jsx)("span",{className:"ypf-drawer-pill-arrow",children:"›"})]},e.href))}),(0,n.jsx)("div",{className:"ypf-drawer-divider"}),H.map(e=>{let{href:r,label:t}=e;return(0,n.jsx)(o.default,{href:r,className:"ypf-drawer-link",children:t},r)})]}),(0,n.jsxs)("div",{className:"ypf-drawer-footer",children:[(0,n.jsxs)("div",{className:"ypf-drawer-footer-rating",children:[(0,n.jsx)("span",{style:{color:"#f5a623",fontSize:"0.8rem"},children:"★★★★★"}),(0,n.jsx)("span",{children:"4,9/5 \xb7 2.483 Bewertungen"})]}),(0,n.jsxs)("div",{className:"ypf-drawer-footer-bio",children:[(0,n.jsx)("img",{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/ypf-bio-logo_127c4270.png",alt:"Bio",width:"80",height:"80",style:{height:"18px",width:"auto"},decoding:"async"}),(0,n.jsx)("span",{children:"Bio-zertifiziert AT-BIO-401"})]})]})]})}),document.body)]})}let S=e=>{let{open:r}=e;return(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.25s ease",transform:r?"rotate(180deg)":"rotate(0deg)",flexShrink:0},children:(0,n.jsx)("path",{d:"M6 9l6 6 6-6"})})};function z(e){let{title:r,children:t}=e,[i,s]=(0,l.useState)(!1);return(0,n.jsxs)("div",{style:{borderBottom:"1px solid rgba(255,255,255,0.1)"},children:[(0,n.jsxs)("button",{onClick:()=>s(!i),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1.125rem 0",background:"none",border:"none",cursor:"pointer",color:"#fff",fontFamily:"var(--font)",fontSize:"1rem",fontWeight:500,textAlign:"left"},children:[r,(0,n.jsx)(S,{open:i})]}),i&&(0,n.jsx)("div",{style:{paddingBottom:"1.25rem"},children:t})]})}function N(e){let{items:r}=e;return(0,n.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:"0.75rem"},children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(o.default,{href:e.href,style:{color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.9rem",display:"inline-flex",alignItems:"center",gap:"0.4rem",transition:"color 0.15s"},onMouseEnter:e=>e.currentTarget.style.color="#fff",onMouseLeave:e=>e.currentTarget.style.color="rgba(255,255,255,0.6)",children:[e.label,e.badge&&(0,n.jsx)("span",{style:{background:"var(--color-primary)",color:"#fff",fontSize:"0.55rem",fontWeight:700,padding:"2px 5px",borderRadius:3,letterSpacing:"0.06em"},children:e.badge})]})},e.href+e.label))})}let A=[{label:"Alle Produkte",href:"/shop"},{label:"GLP-1 Abnehmen",href:"/kategorie/glp-1",badge:"NEU"},{label:"Leber & Darm",href:"/kategorie/leber-darm"},{label:"Spermidin & OPC",href:"/kategorie/spermidin"},{label:"Mann & Frau",href:"/kategorie/mann-frau"},{label:"Kr\xe4utertinkturen",href:"/kategorie/kraeutertinkturen"},{label:"Anthony William",href:"/kategorie/aw-buecher-und-mehr"},{label:"Bestseller",href:"/kategorie/bestseller"}],W=[{label:"\xdcber uns",href:"/ueber-uns"},{label:"Kontakt",href:"/kontakt"},{label:"Erfahrungen",href:"/erfahrungen-bewertungen"},{label:"Blog",href:"/blog"},{label:"Pressebereich",href:"/pressebereich"}],B=[{label:"FAQ",href:"/faq"},{label:"Zahlung & Versand",href:"/zahlung-und-versand"},{label:"Mein Konto",href:"/mein-konto"}],M=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"},{label:"AGB",href:"/agb"},{label:"Widerruf",href:"/widerruf"}],F=[{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),href:"https://www.youtube.com/@yourpowerfoods",label:"YouTube"},{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),href:"https://www.facebook.com/yourpowerfoods",label:"Facebook"},{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),href:"https://x.com/yourpowerfoods",label:"X"},{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),href:"https://www.linkedin.com/company/yourpowerfoods",label:"LinkedIn"},{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})}),href:"https://www.tiktok.com/@yourpowerfoods",label:"TikTok"},{Icon:()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),href:"https://www.instagram.com/yourpowerfoods",label:"Instagram"}],L=[{label:"Visa",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#fff"}),(0,n.jsx)("text",{x:"19",y:"16.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"700",fontSize:"10",fill:"#1A1F71",letterSpacing:"-0.5",children:"VISA"})]})},{label:"Mastercard",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#fff"}),(0,n.jsx)("circle",{cx:"15",cy:"12",r:"6.5",fill:"#EB001B"}),(0,n.jsx)("circle",{cx:"23",cy:"12",r:"6.5",fill:"#F79E1B"}),(0,n.jsx)("path",{d:"M19 6.2a6.5 6.5 0 0 1 0 11.6A6.5 6.5 0 0 1 19 6.2z",fill:"#FF5F00"})]})},{label:"Apple Pay",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#000"}),(0,n.jsx)("text",{x:"19",y:"15.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"600",fontSize:"7",fill:"#fff",children:"Apple Pay"})]})},{label:"American Express",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#2E77BC"}),(0,n.jsx)("text",{x:"19",y:"13",textAnchor:"middle",fontFamily:"Arial",fontWeight:"700",fontSize:"5.5",fill:"#fff",letterSpacing:"0.2",children:"AMERICAN"}),(0,n.jsx)("text",{x:"19",y:"20",textAnchor:"middle",fontFamily:"Arial",fontWeight:"700",fontSize:"5.5",fill:"#fff",letterSpacing:"0.2",children:"EXPRESS"})]})},{label:"PayPal",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#fff"}),(0,n.jsx)("text",{x:"15",y:"15.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"700",fontSize:"8.5",fill:"#003087",children:"Pay"}),(0,n.jsx)("text",{x:"25",y:"15.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"700",fontSize:"8.5",fill:"#009CDE",children:"Pal"})]})},{label:"Klarna",svg:(0,n.jsxs)("svg",{width:"38",height:"24",viewBox:"0 0 38 24",fill:"none",children:[(0,n.jsx)("rect",{width:"38",height:"24",rx:"3",fill:"#FFB3C7"}),(0,n.jsx)("text",{x:"19",y:"16",textAnchor:"middle",fontFamily:"Arial",fontWeight:"800",fontSize:"9",fill:"#17120E",letterSpacing:"-0.3",children:"klarna"})]})}],E=[{label:"DHL",svg:(0,n.jsxs)("svg",{width:"44",height:"24",viewBox:"0 0 44 24",fill:"none",children:[(0,n.jsx)("rect",{width:"44",height:"24",rx:"3",fill:"#FFCC00"}),(0,n.jsx)("text",{x:"22",y:"16.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"900",fontSize:"11",fill:"#D40511",letterSpacing:"1",children:"DHL"})]})},{label:"\xd6sterreichische Post",svg:(0,n.jsxs)("svg",{width:"44",height:"24",viewBox:"0 0 44 24",fill:"none",children:[(0,n.jsx)("rect",{width:"44",height:"24",rx:"3",fill:"#fff",stroke:"#e0e0e0",strokeWidth:"0.5"}),(0,n.jsx)("rect",{x:"4",y:"7",width:"36",height:"10",rx:"1.5",fill:"#FFCC00"}),(0,n.jsx)("text",{x:"22",y:"15.5",textAnchor:"middle",fontFamily:"Arial",fontWeight:"800",fontSize:"6.5",fill:"#C8102E",letterSpacing:"0.4",children:"POST AT"})]})}],_="https://www.yourpowerfoods.com/wp-content/uploads/2026/04/footer-forest-RD7LLXPLdGQYRMmRz9sjWk.webp";function I(){let[e,r]=(0,l.useState)(""),[t,i]=(0,l.useState)(!1);return(0,n.jsxs)("footer",{style:{backgroundColor:"#111111",color:"#fff"},children:[(0,n.jsxs)("div",{className:"footer-mobile-nature",style:{position:"relative",backgroundImage:"url(".concat(_,")"),backgroundSize:"cover",backgroundPosition:"center top",backgroundRepeat:"no-repeat",overflow:"hidden"},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(17,17,17,0.55) 15%, rgba(17,17,17,0.85) 30%, rgba(17,17,17,0.97) 45%, #111111 60%)",pointerEvents:"none"}}),(0,n.jsxs)("div",{style:{position:"relative",zIndex:1,padding:"3rem 1.5rem 2.5rem"},children:[(0,n.jsxs)("p",{style:{fontFamily:"var(--font)",fontSize:"clamp(1.6rem, 7vw, 2.2rem)",fontWeight:600,color:"#fff",lineHeight:1.15,letterSpacing:"-0.025em",marginBottom:"0.75rem"},children:["Natur pur.",(0,n.jsx)("br",{}),(0,n.jsx)("span",{style:{color:"var(--color-primary-light, #a8d8a8)"},children:"Kraft pur."})]}),(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"0.9rem",color:"rgba(255,255,255,0.7)",lineHeight:1.6,maxWidth:"340px"},children:"Bio-zertifizierte Supplements f\xfcr mehr Energie, Vitalit\xe4t und Wohlbefinden – f\xfcr ganz Europa."})]})]}),(0,n.jsx)("div",{className:"footer-mobile-accordion",style:{borderBottom:"1px solid rgba(255,255,255,0.1)"},children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsx)(z,{title:"Produkte",children:(0,n.jsx)(N,{items:A})}),(0,n.jsx)(z,{title:"\xdcber uns",children:(0,n.jsx)(N,{items:W})}),(0,n.jsx)(z,{title:"Hilfe",children:(0,n.jsx)(N,{items:B})}),(0,n.jsx)(z,{title:"Rechtliches",children:(0,n.jsx)(N,{items:M})})]})}),(0,n.jsxs)("div",{className:"footer-desktop-grid",style:{position:"relative",backgroundImage:"url(".concat(_,")"),backgroundSize:"cover",backgroundPosition:"center top",backgroundRepeat:"no-repeat",overflow:"hidden"},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(17,17,17,0.65) 10%, rgba(17,17,17,0.88) 20%, rgba(17,17,17,0.97) 30%, #111111 42%)",pointerEvents:"none"}}),(0,n.jsxs)("div",{className:"container",style:{position:"relative",zIndex:1,padding:"4.5rem 0 3.5rem"},children:[(0,n.jsxs)("div",{style:{marginBottom:"3.5rem",maxWidth:"520px"},children:[(0,n.jsxs)("p",{style:{fontFamily:"var(--font)",fontSize:"clamp(1.6rem, 2.8vw, 2.4rem)",fontWeight:600,color:"#fff",lineHeight:1.15,letterSpacing:"-0.025em",marginBottom:"0.75rem"},children:["Natur pur.",(0,n.jsx)("br",{}),(0,n.jsx)("span",{style:{color:"var(--color-primary-light, #a8d8a8)"},children:"Kraft pur."})]}),(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"0.95rem",color:"rgba(255,255,255,0.7)",lineHeight:1.6,maxWidth:"400px"},children:"Bio-zertifizierte Supplements f\xfcr mehr Energie, Vitalit\xe4t und Wohlbefinden – f\xfcr ganz Europa."})]}),(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1.5fr 1fr 1fr 1fr",gap:"2.5rem"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.4)",marginBottom:"1.25rem"},children:"Produkte"}),(0,n.jsx)(N,{items:A})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.4)",marginBottom:"1.25rem"},children:"\xdcber uns"}),(0,n.jsx)(N,{items:W})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.4)",marginBottom:"1.25rem"},children:"Hilfe"}),(0,n.jsx)(N,{items:B})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.4)",marginBottom:"1.25rem"},children:"Rechtliches"}),(0,n.jsx)(N,{items:M})]})]})]})]}),(0,n.jsx)("div",{style:{borderTop:"1px solid rgba(255,255,255,0.1)",padding:"1.25rem 0"},children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"footer-icon-row",children:[E.map(e=>(0,n.jsx)("div",{title:e.label,className:"footer-icon-item",children:e.svg},e.label)),(0,n.jsx)("span",{className:"footer-icon-divider"}),L.map(e=>(0,n.jsx)("div",{title:e.label,className:"footer-icon-item",children:e.svg},e.label))]})})}),(0,n.jsx)("div",{style:{borderTop:"1px solid rgba(255,255,255,0.1)",padding:"1.75rem 0 2rem"},children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",marginBottom:"1rem"},children:[(0,n.jsx)("img",{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/ypf-logo-v2_435ebbb1.webp",alt:"YourPowerFoods",width:"300",height:"61",style:{height:"24px",width:"auto",filter:"brightness(0) invert(1)",opacity:.85,display:"block",flexShrink:0},decoding:"async"}),(0,n.jsx)("div",{style:{display:"flex",gap:"0.55rem",alignItems:"center",flexWrap:"nowrap",justifyContent:"flex-end"},children:F.map(e=>{let{Icon:r,href:t,label:i}=e;return(0,n.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":i,style:{display:"flex",alignItems:"center",justifyContent:"center",color:"rgba(255,255,255,0.5)",textDecoration:"none",transition:"color 0.2s",flexShrink:0},onMouseEnter:e=>{e.currentTarget.style.color="#fff"},onMouseLeave:e=>{e.currentTarget.style.color="rgba(255,255,255,0.5)"},children:(0,n.jsx)(r,{})},i)})})]}),(0,n.jsxs)("p",{style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",margin:0,fontFamily:"var(--font)"},children:["\xa9 2018 – ",new Date().getFullYear()," Manufaktur Koch GmbH. Alle Rechte vorbehalten."]}),(0,n.jsx)("p",{style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.2)",margin:"0.35rem 0 0",fontFamily:"var(--font)"},children:"* Alle Preise inkl. der gesetzlichen MwSt."})]})})]})}function P(){let e=(0,i.usePathname)();return(0,l.useEffect)(()=>{window.scrollTo({top:0,behavior:"instant"})},[e]),null}let T=(0,c.Z)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var R=t(9625),H=t(8113);function D(){let{state:e,closeCart:r,removeItem:t,updateQuantity:i,subtotal:s,totalItems:c,appliedCoupon:d,setAppliedCoupon:h}=(0,x.j)(),[f,p]=(0,l.useState)(""),[m,u]=(0,l.useState)(!1),[g,y]=(0,l.useState)(""),[v,b]=(0,l.useState)(!1),j=async()=>{if(f.trim()){y(""),b(!0);try{let t=await fetch("/api/checkout/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:f.trim(),cartItems:e.items.map(e=>({productId:e.product.id,quantity:e.quantity,price:parseFloat(e.product.on_sale?e.product.sale_price:e.product.price),name:e.product.name})),cartTotal:s})}),n=await t.json();if(!t.ok||n.error)y(n.error||"Gutscheincode ung\xfcltig.");else{var r;h({code:f.trim().toUpperCase(),discount:n.discountAmount,label:null!==(r=n.description)&&void 0!==r?r:f.trim().toUpperCase()}),y(""),p(""),u(!1)}}catch(e){y("Fehler bei der Validierung. Bitte versuche es erneut.")}finally{b(!1)}}};if(!function(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"popup";(0,l.useEffect)(()=>{if(!e)return;window.history.pushState({[t]:!0},"");let n=t=>{e&&r()};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[e,r,t])}(e.isOpen,r,"cart"),!e.isOpen)return null;let w=d?Math.max(s-d.discount,0):s;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:r,style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.5)",zIndex:200,backdropFilter:"blur(2px)",WebkitBackdropFilter:"blur(2px)",animation:"fadeIn 0.2s ease"}}),(0,n.jsxs)("div",{style:{position:"fixed",top:0,right:0,bottom:0,width:"min(420px, 100vw)",backgroundColor:"white",zIndex:201,display:"flex",flexDirection:"column",borderLeft:"1px solid var(--color-border)",animation:"slideInRight 0.3s ease",overflow:"hidden"},children:[(0,n.jsxs)("div",{style:{padding:"1rem 1rem 1rem 1.25rem",borderBottom:"1px solid var(--color-border)",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,backgroundColor:"white"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-lg)",fontWeight:600,color:"var(--color-text)",margin:0,letterSpacing:"-0.01em"},children:"Dein Warenkorb"}),(0,n.jsxs)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-text-muted)",margin:"0.1rem 0 0"},children:[c," ","Artikel"]})]}),(0,n.jsx)("button",{onClick:r,"aria-label":"Warenkorb schlie\xdfen",style:{background:"none",border:"none",cursor:"pointer",padding:"0.5rem",color:"var(--color-text-muted)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",minWidth:"44px",minHeight:"44px",flexShrink:0},children:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,n.jsx)("div",{className:"cart-scroll-area",style:{flex:1,overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",paddingTop:"0.75rem",paddingBottom:"0.75rem",paddingLeft:"1.25rem",paddingRight:"max(1.25rem, env(safe-area-inset-right))",minHeight:0,boxSizing:"border-box",scrollbarWidth:"thin",scrollbarColor:"var(--color-primary) #f0f0f0"},children:0===e.items.length?(0,n.jsxs)("div",{style:{textAlign:"center",padding:"3rem 1rem"},children:[(0,n.jsx)("div",{style:{fontSize:"3rem",marginBottom:"1rem"},children:"\uD83D\uDED2"}),(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-base)",fontWeight:600,color:"var(--color-text)",marginBottom:"0.5rem"},children:"Dein Warenkorb ist leer"}),(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",color:"var(--color-text-muted)",marginBottom:"1.5rem"},children:"Entdecke unsere Bio-Supplements"}),(0,n.jsx)("button",{onClick:r,className:"btn btn-primary",children:"Zum Shop"})]}):e.items.map(e=>(0,n.jsxs)("div",{style:{display:"flex",gap:"0.75rem",padding:"0.75rem 0",borderBottom:"1px solid var(--color-border-light)",minWidth:0},children:[(0,n.jsx)("div",{style:{width:"64px",height:"64px",borderRadius:"var(--radius-md)",overflow:"hidden",backgroundColor:"var(--color-bg-soft)",flexShrink:0},children:(0,n.jsx)("img",{src:(0,H.C6)(e.product),alt:e.product.name,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"},loading:"lazy",onError:e=>{let r=e.currentTarget;r.onerror=null,r.style.display="none";let t=r.parentElement;t&&(t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML='')}})}),(0,n.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",fontWeight:500,color:"var(--color-text)",margin:0,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.product.name}),(0,n.jsxs)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-text-muted)",margin:0},children:[e.product.on_sale?(0,H.T4)(e.product.sale_price):(0,H.T4)(e.product.price)," / St\xfcck"]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem",marginTop:"0.25rem"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",border:"1px solid var(--color-border)",borderRadius:"var(--radius-sm)",overflow:"hidden",flexShrink:0},children:[(0,n.jsx)("button",{onClick:()=>i(e.product.id,e.quantity-1),style:{padding:"0.25rem 0.5rem",background:"none",border:"none",cursor:"pointer",fontFamily:"var(--font)",fontWeight:600,color:"var(--color-text)",fontSize:"1rem",minWidth:"36px",minHeight:"36px",display:"flex",alignItems:"center",justifyContent:"center"},children:"−"}),(0,n.jsx)("span",{style:{padding:"0.25rem 0.375rem",fontFamily:"var(--font)",fontWeight:700,fontSize:"var(--font-size-sm)",minWidth:"1.75rem",textAlign:"center",color:"var(--color-text)"},children:e.quantity}),(0,n.jsx)("button",{onClick:()=>i(e.product.id,e.quantity+1),style:{padding:"0.25rem 0.5rem",background:"none",border:"none",cursor:"pointer",fontFamily:"var(--font)",fontWeight:600,color:"var(--color-text)",fontSize:"1rem",minWidth:"36px",minHeight:"36px",display:"flex",alignItems:"center",justifyContent:"center"},children:"+"})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexShrink:0},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontWeight:600,fontSize:"var(--font-size-sm)",color:"var(--color-text)",whiteSpace:"nowrap"},children:(0,H.T4)((parseFloat(e.product.on_sale?e.product.sale_price:e.product.price)*e.quantity).toFixed(2))}),(0,n.jsx)("button",{onClick:()=>t(e.product.id),"aria-label":"Artikel entfernen",style:{background:"none",border:"none",cursor:"pointer",color:"var(--color-text-muted)",padding:"0.25rem",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"32px",minHeight:"32px",borderRadius:"4px"},children:(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,n.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,n.jsx)("path",{d:"M19 6l-1 14H6L5 6"}),(0,n.jsx)("path",{d:"M10 11v6M14 11v6"}),(0,n.jsx)("path",{d:"M9 6V4h6v2"})]})})]})]})]})]},e.product.id))}),e.items.length>0&&(0,n.jsxs)("div",{style:{flexShrink:0,borderTop:"1px solid var(--color-border)",backgroundColor:"var(--color-bg-soft)",paddingTop:"0.875rem",paddingBottom:"max(0.875rem, env(safe-area-inset-bottom))",paddingLeft:"1.25rem",paddingRight:"max(1.25rem, env(safe-area-inset-right))",overflow:"hidden",boxSizing:"border-box"},children:[(0,n.jsx)("div",{style:{backgroundColor:"var(--color-primary-light)",borderRadius:"var(--radius-sm)",padding:"0.5rem 0.75rem",marginBottom:"0.75rem",fontSize:"var(--font-size-xs)",color:"var(--color-primary-dark)",fontFamily:"var(--font)",fontWeight:500},children:(0,n.jsx)("span",{children:"✓ Du hast schnellen kostenlosen Versand!"})}),d?(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#f0faf0",border:"1px solid var(--color-primary)",borderRadius:"var(--radius-sm)",padding:"0.5rem 0.75rem",marginBottom:"0.75rem"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem",minWidth:0,flex:1},children:[(0,n.jsx)(T,{size:13,color:"var(--color-primary)",style:{flexShrink:0}}),(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",fontWeight:600,color:"var(--color-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.code}),(0,n.jsxs)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-primary)",flexShrink:0},children:["−",(0,H.T4)(d.discount.toFixed(2))]})]}),(0,n.jsx)("button",{onClick:()=>{h(null),y(""),p(""),u(!1)},"aria-label":"Gutschein entfernen",style:{background:"none",border:"none",cursor:"pointer",padding:"0.25rem",display:"flex",alignItems:"center",color:"var(--color-text-muted)",flexShrink:0,minWidth:"28px",minHeight:"28px",justifyContent:"center"},children:(0,n.jsx)(a.Z,{size:14})})]}):(0,n.jsxs)("div",{style:{marginBottom:"0.75rem"},children:[m?(0,n.jsxs)("div",{style:{display:"flex",gap:"0.5rem",width:"100%"},children:[(0,n.jsx)("input",{type:"text",value:f,onChange:e=>{p(e.target.value),y("")},onKeyDown:e=>"Enter"===e.key&&j(),placeholder:"Gutscheincode",autoFocus:!0,style:{flex:1,minWidth:0,fontFamily:"var(--font)",fontSize:"16px",padding:"0.5rem 0.75rem",border:"1.5px solid ".concat(g?"var(--color-sale)":"var(--color-border)"),borderRadius:"var(--radius-sm)",outline:"none",background:"white",color:"var(--color-text)",boxSizing:"border-box",height:"44px"}}),(0,n.jsxs)("button",{onClick:j,disabled:v||!f.trim(),style:{flexShrink:0,fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",fontWeight:700,padding:"0 0.875rem",backgroundColor:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",cursor:v||!f.trim()?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:"0.3rem",whiteSpace:"nowrap",opacity:v||!f.trim()?.6:1,height:"44px"},children:[v?(0,n.jsx)(R.Z,{size:13,className:"animate-spin"}):null,"Einl\xf6sen"]})]}):(0,n.jsxs)("button",{onClick:()=>u(!0),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-primary)",fontWeight:600,padding:"0.25rem 0",display:"flex",alignItems:"center",gap:"0.3rem",minHeight:"36px"},children:[(0,n.jsx)(T,{size:13}),"Gutscheincode eingeben"]}),g&&(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-sale)",margin:"0.3rem 0 0"},children:g})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.2rem"},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",color:"var(--color-text-muted)"},children:"Zwischensumme"}),(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",color:d?"var(--color-text-muted)":"var(--color-text)",textDecoration:d?"line-through":"none"},children:(0,H.T4)(s.toFixed(2))})]}),d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.2rem"},children:[(0,n.jsxs)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",color:"var(--color-primary)"},children:["Rabatt (",d.code,")"]}),(0,n.jsxs)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-sm)",color:"var(--color-primary)",fontWeight:600},children:["−",(0,H.T4)(d.discount.toFixed(2))]})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.2rem"},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-base)",fontWeight:700,color:"var(--color-text)"},children:"Gesamt"}),(0,n.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-lg)",fontWeight:700,color:"var(--color-text)",letterSpacing:"-0.01em"},children:(0,H.T4)(w.toFixed(2))})]})]}),(0,n.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"var(--font-size-xs)",color:"var(--color-text-muted)",margin:"0.2rem 0 0.75rem"},children:"inkl. MwSt."}),(0,n.jsx)("button",{onClick:r,className:"btn btn-outline",style:{width:"100%",justifyContent:"center",marginBottom:"0.5rem",minHeight:"44px",boxSizing:"border-box",display:"flex"},children:"Weiter einkaufen"}),(0,n.jsx)(o.default,{href:"/checkout",onClick:r,className:"btn btn-primary btn-lg",style:{width:"100%",justifyContent:"center",display:"flex",minHeight:"48px",boxSizing:"border-box"},children:"Sicher zur Kasse →"}),(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"0.3rem",flexWrap:"wrap",marginTop:"0.625rem"},children:[{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/visa_df971fa7.jpeg",alt:"Visa"},{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/master-card_4f4a3023.jpeg",alt:"Mastercard"},{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/maestro_128cb3d5.jpeg",alt:"Maestro"},{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/paypal_abcd0f44.jpeg",alt:"PayPal"},{src:"https://www.yourpowerfoods.com/wp-content/uploads/2026/04/sicher-bezahlen-mit-klarna-auf-rechnung_89838f5e.jpg",alt:"Klarna"}].map(e=>(0,n.jsx)("img",{src:e.src,alt:e.alt,style:{height:"20px",width:"auto",objectFit:"contain",borderRadius:"3px",border:"1px solid var(--color-border-light)"}},e.alt))})]})]})]})}function O(e){let{children:r}=e,t=(0,i.usePathname)(),l=null==t?void 0:t.startsWith("/admin"),s=(null==t?void 0:t.startsWith("/checkout"))||(null==t?void 0:t.startsWith("/danke"));return l||s?(0,n.jsx)(n.Fragment,{children:r}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P,{}),(0,n.jsx)(C,{}),(0,n.jsx)(D,{}),(0,n.jsx)("main",{children:r}),(0,n.jsx)(I,{})]})}},1354:function(e,r,t){"use strict";t.d(r,{Z:function(){return d},j:function(){return h}});var n=t(3890),i=t(8496),l=t(8113);function s(e,r){switch(r.type){case"ADD_ITEM":if(e.items.find(e=>e.product.id===r.product.id))return{...e,isOpen:!0,items:e.items.map(e=>e.product.id===r.product.id?{...e,quantity:e.quantity+(r.quantity||1)}:e)};return{...e,isOpen:!0,items:[...e.items,{product:r.product,quantity:r.quantity||1}]};case"REMOVE_ITEM":return{...e,items:e.items.filter(e=>e.product.id!==r.productId)};case"UPDATE_QUANTITY":if(r.quantity<=0)return{...e,items:e.items.filter(e=>e.product.id!==r.productId)};return{...e,items:e.items.map(e=>e.product.id===r.productId?{...e,quantity:r.quantity}:e)};case"CLEAR_CART":return{...e,items:[]};case"OPEN_CART":return{...e,isOpen:!0};case"CLOSE_CART":return{...e,isOpen:!1};case"LOAD_CART":return{...e,items:r.items};default:return e}}let o=(0,i.createContext)(null),a="ypf-cart",c="ypf-coupon";function d(e){let{children:r}=e,[t,d]=(0,i.useReducer)(s,{items:[],isOpen:!1}),[h,f]=(0,i.useState)(!1),[p,m]=(0,i.useState)(null);(0,i.useEffect)(()=>{try{let e=localStorage.getItem(a);if(e){let r=JSON.parse(e);d({type:"LOAD_CART",items:r})}let r=localStorage.getItem(c);r&&m(JSON.parse(r))}catch(e){}finally{f(!0)}},[]),(0,i.useEffect)(()=>{if(h)try{localStorage.setItem(a,JSON.stringify(t.items))}catch(e){}},[t.items,h]);let u=t.items.reduce((e,r)=>e+r.quantity,0),x=t.items.reduce((e,r)=>e+parseFloat(r.product.on_sale?r.product.sale_price:r.product.price||r.product.regular_price||"0")*r.quantity,0),g=(0,l.T4)(x),y=(0,i.useCallback)((e,r)=>d({type:"ADD_ITEM",product:e,quantity:r}),[]),v=(0,i.useCallback)(e=>d({type:"REMOVE_ITEM",productId:e}),[]),b=(0,i.useCallback)((e,r)=>d({type:"UPDATE_QUANTITY",productId:e,quantity:r}),[]),j=(0,i.useCallback)(()=>d({type:"CLEAR_CART"}),[]),w=(0,i.useCallback)(()=>d({type:"OPEN_CART"}),[]),k=(0,i.useCallback)(()=>d({type:"CLOSE_CART"}),[]);return(0,n.jsx)(o.Provider,{value:{state:t,addItem:y,removeItem:v,updateQuantity:b,clearCart:j,openCart:w,closeCart:k,totalItems:u,totalPrice:g,subtotal:x,isLoaded:h,appliedCoupon:p,setAppliedCoupon:e=>{m(e);try{e?localStorage.setItem(c,JSON.stringify(e)):localStorage.removeItem(c)}catch(e){}}},children:r})}function h(){let e=(0,i.useContext)(o);if(!e)throw Error("useCart must be used within CartProvider");return e}},3376:function(e,r,t){"use strict";t.d(r,{default:function(){return l}});var n=t(3890),i=t(1354);function l(e){let{children:r}=e;return(0,n.jsx)(i.Z,{children:r})}},2352:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n=t(8496);let i=function(){for(var e=arguments.length,r=Array(e),t=0;t!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()},l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()),o=e=>{let r=s(e);return r.charAt(0).toUpperCase()+r.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0;return!1},d=(0,n.createContext)({}),h=()=>(0,n.useContext)(d),f=(0,n.forwardRef)((e,r)=>{var t,l,s;let{color:o,size:d,strokeWidth:f,absoluteStrokeWidth:p,className:m="",children:u,iconNode:x,...g}=e,{size:y=24,strokeWidth:v=2,absoluteStrokeWidth:b=!1,color:j="currentColor",className:w=""}=null!==(t=h())&&void 0!==t?t:{},k=(null!=p?p:b)?24*Number(null!=f?f:v)/Number(null!=d?d:y):null!=f?f:v;return(0,n.createElement)("svg",{ref:r,...a,width:null!==(l=null!=d?d:y)&&void 0!==l?l:a.width,height:null!==(s=null!=d?d:y)&&void 0!==s?s:a.height,stroke:null!=o?o:j,strokeWidth:k,className:i("lucide",w,m),...!u&&!c(g)&&{"aria-hidden":"true"},...g},[...x.map(e=>{let[r,t]=e;return(0,n.createElement)(r,t)}),...Array.isArray(u)?u:[u]])}),p=(e,r)=>{let t=(0,n.forwardRef)((t,s)=>{let{className:a,...c}=t;return(0,n.createElement)(f,{ref:s,iconNode:r,className:i("lucide-".concat(l(o(e))),"lucide-".concat(e),a),...c})});return t.displayName=o(e),t}},6843:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(2352).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},9625:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(2352).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},7201:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(2352).Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},9812:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(2352).Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},4786:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(2352).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6788:function(e,r,t){"use strict";t.d(r,{default:function(){return i.a}});var n=t(9498),i=t.n(n)},8779:function(e,r,t){"use strict";var n=t(1020);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},4443:function(e,r,t){"use strict";t.r(r),r.default="ac2353319419"},9390:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}}},function(e){e.O(0,[5824,8994,9498,8113,9649,2945,1744],function(){return e(e.s=9672)}),_N_E=e.O()}]);