1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40141,e=>{"use strict";var t=e.i(71645),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=t.default.createContext&&t.default.createContext(r),a=["attr","size","title"];function l(){return(l=Object.assign.bind()).apply(this,arguments)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var s,a,l;s=e,a=t,l=r[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return r=>t.default.createElement(d,l({attr:n({},e.attr)},r),function e(r){return r&&r.map((r,s)=>t.default.createElement(r.tag,n({key:s},r.attr),e(r.child)))}(e.child))}function d(e){var i=r=>{var s,{attr:i,size:o,title:d}=e,c=function(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;r[s]=e[s]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)r=l[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,a),x=o||r.size||"1em";return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),t.default.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,c,{className:s,style:n(n({color:e.color||r.color},r.style),e.style),height:x,width:x,xmlns:"http://www.w3.org/2000/svg"}),d&&t.default.createElement("title",null,d),e.children)};return void 0!==s?t.default.createElement(s.Consumer,null,e=>i(e)):i(r)}e.s(["GenIcon",()=>o],40141)},65261,e=>{"use strict";let t=(0,e.i(75254).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",()=>t],65261)},75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();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 l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:n="",children:o,iconNode:d,...c},x)=>(0,t.createElement)("svg",{ref:x,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(l)/Number(r):l,className:s("lucide",n),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]])),i=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...n},o)=>(0,t.createElement)(l,{ref:o,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...n}));return i.displayName=r(e),i};e.s(["default",()=>i],75254)},84614,e=>{"use strict";let t=(0,e.i(75254).default)("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"}]]);e.s(["User",()=>t],84614)}
1,63566,e=>{"use strict";var t=e.i(43476),r=e.i(22016);e.s(["default",0,()=>(0,t.jsx)("footer",{className:"bg-[#0F172A] text-white py-16",children:(0,t.jsxs)("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-12 gap-12 lg:gap-32 mb-16",children:[(0,t.jsxs)("div",{className:"lg:col-span-4",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold mb-6",children:"Supplements & Powders"}),(0,t.jsx)("p",{className:"text-slate-300 text-[15px] leading-relaxed max-w-sm",children:"Our goal is to help users explore and compare health supplements through transparent research and unbiased reviews. We do not manufacture or sell any products."})]}),(0,t.jsxs)("div",{className:"lg:col-span-2",children:[(0,t.jsx)("h3",{className:"text-lg font-bold mb-6 uppercase tracking-wider",children:"Company"}),(0,t.jsxs)("ul",{className:"space-y-4 text-slate-400 text-[15px]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/about-us",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"About Supplements & Powders"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/why-trust-us",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Why Trust Supplements & Powders"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/contact-us",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Contact Us"})})]})]}),(0,t.jsxs)("div",{className:"lg:col-span-2",children:[(0,t.jsx)("h3",{className:"text-lg font-bold mb-6 uppercase tracking-wider",children:"Our Standards"}),(0,t.jsxs)("ul",{className:"space-y-4 text-slate-400 text-[15px]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/editorial-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Editorial Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/how-we-list-products",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"How We List Products"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/seller-manufacturer-information-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Seller & Manufacturer Information Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/affiliate-disclosure",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Affiliate Disclosure"})})]})]}),(0,t.jsxs)("div",{className:"lg:col-span-2",children:[(0,t.jsx)("h3",{className:"text-lg font-bold mb-6 uppercase tracking-wider",children:"Health & Safety"}),(0,t.jsxs)("ul",{className:"space-y-4 text-slate-400 text-[15px]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/medical-disclaimer",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Medical Disclaimer"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/health-claims-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Health Claims Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/ingredient-disclaimer",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Ingredient Information Disclaimer"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/side-effects-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Side Effects & Contraindications Policy"})})]})]}),(0,t.jsxs)("div",{className:"lg:col-span-2",children:[(0,t.jsx)("h3",{className:"text-lg font-bold mb-6 uppercase tracking-wider",children:"Policies"}),(0,t.jsxs)("ul",{className:"space-y-4 text-slate-400 text-[15px]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/terms-and-conditions",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Terms & Conditions"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/privacy-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Privacy Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/cookie-policy",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Cookie Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/price-availability-disclaimer",prefetch:!1,className:"inline-block hover:text-white hover:translate-x-[5px] transition-all duration-300",children:"Price & Availability Disclaimer"})})]})]})]}),(0,t.jsxs)("div",{className:"pt-12 border-t border-slate-800 text-center",children:[(0,t.jsx)("p",{className:"text-slate-500 text-[14px] mb-4",children:"© 2026 Supplements & Powders. All rights reserved."}),(0,t.jsx)("p",{className:"text-slate-600 text-[13px] max-w-2xl mx-auto leading-relaxed",children:"Information on this site is not intended as medical advice."})]})]})})])},4967,e=>{"use strict";e.s(["getBlurDataURL",0,(e,t)=>{let r;return`data:image/svg+xml;base64,${r=` 2<svg width="${e}" height="${t}" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"> 3 <defs> 4 <linearGradient id="g"> 5 <stop stop-color="#f6f7f8" offset="20%" /> 6 <stop stop-color="#edeef1" offset="50%" /> 7 <stop stop-color="#f6f7f8" offset="70%" /> 8 </linearGradient> 9 </defs> 10 <rect width="${e}" height="${t}" fill="#f6f7f8" /> 11 <rect id="r" width="${e}" height="${t}" fill="url(#g)" /> 12 <animate xlink:href="#r" attributeName="x" from="-${e}" to="${e}
12" dur="1s" repeatCount="indefinite" /> 13</svg>`,window.btoa(r)}`}])},45458,e=>{"use strict";var t=e.i(43476),r=e.i(14080);e.s(["default",0,()=>(0,t.jsx)("section",{className:"bg-white py-24 md:py-32 px-6 overflow-hidden",children:(0,t.jsx)("div",{className:"max-w-[1600px] mx-auto",children:(0,t.jsxs)("div",{className:"relative bg-[#0F172A] rounded-[32px] p-10 md:p-20 overflow-hidden flex flex-col md:flex-row items-center justify-between gap-12",children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 w-[40%] h-full bg-blue-600/10 blur-[120px] rounded-full translate-x-1/2 -translate-y-1/2"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-[30%] h-full bg-indigo-600/10 blur-[100px] rounded-full -translate-x-1/2 translate-y-1/2"}),(0,t.jsxs)("div",{className:"relative z-10 flex-1 text-center md:text-left",children:[(0,t.jsx)("span",{className:"text-blue-400 font-bold text-xs tracking-[0.2em] uppercase mb-4 block",children:"Newsletter"}),(0,t.jsxs)("h2",{className:"text-[32px] md:text-[42px] font-black text-white mb-6 leading-tight",children:["Join our health ",(0,t.jsx)("br",{className:"hidden lg:block"})," community"]}),(0,t.jsx)("p",{className:"text-slate-400 text-base md:text-lg max-w-md mb-8 leading-relaxed",children:"Get expert health tips and supplement guides delivered to your inbox every week."}),(0,t.jsxs)("form",{className:"flex flex-col sm:flex-row items-center gap-3 max-w-md mx-auto md:mx-0",children:[(0,t.jsx)("input",{type:"email",placeholder:"Email address",className:"flex-1 w-full bg-white/10 border border-white/10 rounded-xl px-6 py-4 text-white placeholder:text-slate-500 outline-none focus:bg-white/15 focus:border-white/20 transition-all font-medium"}),(0,t.jsx)("button",{className:"w-full sm:w-auto bg-white text-[#0F172A] font-bold px-8 py-4 rounded-xl hover:bg-slate-100 transition-all active:scale-95 whitespace-nowrap",children:"Subscribe"})]})]}),(0,t.jsx)("div",{className:"relative z-10 hidden lg:flex flex-1 justify-end",children:(0,t.jsxs)("div",{className:"relative w-[340px] aspect-square group",children:[(0,t.jsxs)("div",{className:"absolute -top-6 -left-6 bg-white/5 backdrop-blur-xl border border-white/10 p-5 rounded-2xl shadow-2xl animate-bounce-slow",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-blue-500/20 rounded-full flex items-center justify-center text-blue-400 font-bold",children:"1k+"}),(0,t.jsx)("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-wider mt-2",children:"Active Readers"})]}),(0,t.jsx)("div",{className:"relative w-full h-full rounded-full border border-white/5 p-4 flex items-center justify-center",children:(0,t.jsx)("div",{className:"relative w-full h-full rounded-full border border-white/10 p-4 flex items-center justify-center animate-pulse-slow",children:(0,t.jsx)(r.default,{src:"/omega.png",alt:"Supplement Community",width:240,height:240,className:"object-contain drop-shadow-[0_20px_40px_rgba(0,0,0,0.5)] rotate-6 group-hover:rotate-0 transition-transform duration-700",style:{width:"auto",height:"auto"}})})})]})})]})})})])},63570,e=>{"use strict";var t=e.i(43476),r=e.i(52760),s=e.i(14080),a=e.i(1859),l=e.i(54858),i=e.i(4967),n=e.i(71645),o=e.i(45458),d=e.i(63566),c=e.i(37888),x=e.i(18566);let m=()=>(0,t.jsxs)("div",{className:"bg-white border border-slate-100 rounded-[2rem] md:rounded-[3rem] p-3 md:p-6 flex flex-col animate-pulse",children:[(0,t.jsx)("div",{className:"relative aspect-square mb-4 md:mb-8 bg-slate-100 rounded-[1.5rem] md:rounded-[2.5rem]"}),(0,t.jsxs)("div",{className:"flex flex-col grow px-1 md:px-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"h-3 w-20 bg-slate-100 rounded"}),(0,t.jsx)("div",{className:"h-3 w-8 bg-slate-100 rounded"})]}),(0,t.jsx)("div",{className:"h-6 w-3/4 bg-slate-100 rounded mb-3"}),(0,t.jsx)("div",{className:"h-4 w-full bg-slate-100 rounded mb-2"}),(0,t.jsx)("div",{className:"h-4 w-2/3 bg-slate-100 rounded mb-6"}),(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)("div",{className:"h-8 w-1/3 bg-slate-100 rounded mb-6"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{className:"h-12 w-full bg-slate-100 rounded-xl"}),(0,t.jsx)("div",{className:"h-12 w-full bg-slate-100 rounded-xl"})]})]})]})]});function u(){let e=(0,x.useSearchParams)(),r=(0,x.useRouter)(),[o,d]=(0,n.use
13State)(null),u=e.get("search")||"",h=e.get("category")||"",p=e.get("subCategory")||"",[f,g]=(0,n.useState)([]),{formatPrice:b}=(0,c.useCurrency)(),[v,w]=(0,n.useState)(!0),[j,N]=(0,n.useState)([]),[y,k]=(0,n.useState)([]),[S,P]=(0,n.useState)(h),[C,A]=(0,n.useState)(p),[O,E]=(0,n.useState)(""),[L,R]=(0,n.useState)(""),[F,$]=(0,n.useState)("Most Popular"),[D,z]=(0,n.useState)(1),[B,H]=(0,n.useState)(1),[M,T]=(0,n.useState)(0),[U,_]=(0,n.useState)(!1),[W,G]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([(0,l.GetCategory)(),(0,l.GetAllSubCategories)()]);e&&e.categories&&N(e.categories),t&&t.subCategories&&k(t.subCategories)}catch(e){console.error("Static fetch error:",e)}})()},[]);let I=async()=>{1===D?w(!0):_(!0);try{let e="rating",t=-1;"Price: Low to High"===F?(e="basePrice",t=1):"Price: High to Low"===F?(e="basePrice",t=-1):"Newest"===F&&(e="createdAt",t=-1);let r=await (0,l.GetAllProducts)(D,8,u,{category:S,subCategory:C,sortBy:e,sortOrder:t,isActive:!0});r&&r.products&&(1===D?g(r.products):g(e=>[...e,...r.products]),r.pagination&&(H(r.pagination.totalPages),T(r.pagination.total),G(r.pagination.page<r.pagination.totalPages)))}catch(e){console.error("Fetch products error:",e)}finally{w(!1),_(!1)}};(0,n.useEffect)(()=>{I()},[D,u,S,C,F]),(0,n.useEffect)(()=>{h&&P(h),p&&A(p)},[h,p]),(0,n.useEffect)(()=>{z(1)},[u,S,C,O,L,F]);let V=f.filter(e=>{let t=!O||e.rating>=Number(O),r=!L||(()=>{let t=e.basePrice;switch(L){case"under50":return t<50;case"50to100":return t>=50&&t<=100;case"100to200":return t>100&&t<=200;case"over200":return t>200;default:return!0}})();return t&&r});return((e,t)=>{if(t<=7)return Array.from({length:t},(e,t)=>t+1);let r=Math.max(e-1,1)>2,s=Math.min(e+1,t)<t-2;return!r&&s})(D,B),(0,t.jsx)("div",{className:"bg-slate-50 min-h-screen pb-20",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-8",children:[(0,t.jsx)("div",{className:"mb-8 md:mb-12 mt-6 md:mt-10",children:u?(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("h1",{className:"text-[32px] md:text-[40px] font-black text-slate-900 mb-2",children:["Search Results for: ",(0,t.jsxs)("span",{className:"text-[#0F5A9E]",children:["â",u,"â"]})]}),(0,t.jsx)("button",{onClick:()=>r.push("/products"),className:"text-sm font-bold text-slate-400 hover:text-slate-600 uppercase tracking-widest transition-colors flex items-center gap-2",children:"View all products"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-[32px] md:text-[40px] lg:text-[48px] font-bold text-slate-900 mb-4 md:mb-6 tracking-tight leading-tight",children:"The Expertâs Choice in Wellness Longevity"}),(0,t.jsx)("p",{className:"text-[16px] md:text-[18px] lg:text-[20px] text-slate-500 max-w-3xl font-medium leading-relaxed",children:"Curated recommendations from trusted brands, independently tested for purity and efficacy. Designed for your high-performance lifestyle."})]})}),(0,t.jsxs)("div",{className:"bg-white px-4 md:px-8 py-4 rounded-2xl md:rounded-[20px] shadow-lg shadow-slate-200/60 mb-12 border border-slate-100 flex flex-col xl:flex-row items-center justify-between gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 md:gap-6 w-full xl:w-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 text-slate-900 font-bold whitespace-nowrap",children:[(0,t.jsx)(a.RiFilter3Line,{size:22,className:"text-[#0F5A9E]"}),(0,t.jsx)("span",{className:"text-sm md:text-base",children:"Filter by:"})]}),(0,t.jsx)("div",{className:"hidden md:block w-px h-8 bg-slate-200"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 md:gap-3 w-full xl:w-auto",children:[(0,t.jsxs)("div",{className:"relative group flex-1 md:flex-none md:min-w-[140px]",children:[(0,t.jsxs)("select",{value:S,onChange:e=>{P(e.target.value),A("")},className:"w-full appearance-none bg-white border border-slate-200 rounded-full px-4 md:px-5 py-2 md:py-2.5 pr-10 md:pr-12 font-bold text-slate-600 hover:border-slate-300 transition-all cursor-pointer outline-none focus:ring-2 focus:ring-slate-100 text-xs md:text-sm",children:[(0,t.jsx)("option",{value:"",children:"Categories"}),j.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e._id))]}),(0,t.jsx)(a.RiArrowDownSLine,{className:"absolute right-4 md:right-5 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400 group-hover:text-slate-600",size:18})]}),S&&(0,t.jsxs)("div",{className:"relative group flex-1 md:flex-none md:min-w-[140px] animate-in fade-in slide-in-from-left-2 duration-300",children:[(0,t.jsxs)("select",{value:C,onChange:e=>A(e.target.value),className:"w-full appearance-none bg-white border border-slate-200 rounded-full px-4 md:px-5 py-2 md:py-2.5 pr-10 md:pr-12 font-bold text-slate-600 hover:border-slate-300 transition-all cursor-pointer outline-none focus:ring-2 focus:ring-slate-100 text-xs md:text-sm",children:[(0,t.jsx)("option",{value:"",children:"Sub Categories"}),y.filter(e=>{let t=j.find(e=>e.name===S);return e.category===t?._id||"object"==typeof e.category&&e.category.name===S}).map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e._id))]}),(0,t.jsx)(a.RiArrowDownSLine,{className:"absolute right-4 md:right-5 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400 group-hover:text-slate-600",size:18})]}),(S||C||O||L)&&(0,t.jsx)("button",{onClick:()=>{P(""),A(""),E(""),R("")},className:"text-[10px] md:text-[11px] font-black text-rose-500 hover:text-rose-600 uppercase tracking-widest transition-colors px-2",children:"Reset"})]})]}),(0,t.jsx)("div",{className:"flex items-center gap-4 w-full xl:w-auto justify-end border-t xl:border-t-0 pt-4 xl:pt-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-slate-500 font-bold whitespace-nowrap text-sm",children:"Sort by:"}),(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsxs)("select",{value:F,onChange:e=>$(e.target.value),className:"appearance-none bg-transparent font-black text-slate-900 pr-8 outline-none cursor-pointer text-sm md:text-base",children:[(0,t.jsx)("option",{value:"Most Popular",children:"Most Popular"}),(0,t.jsx)("option",{value:"Price: Low to High",children:"Price: Low to High"}),(0,t.jsx)("option",{value:"Price: High to Low",children:"Price: High to Low"}),(0,t.jsx)("option",{value:"Newest",children:"Newest"})]}),(0,t.jsx)(a.RiArrowDownSLine,{className:"absolute right-0 top-1/2 -translate-y-1/2 pointer-events-none",size:18})]})]})})]}),v?(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 md:gap-10",children:[...Array(8)].map((e,r)=>(0,t.jsx)(m,{},r))}):0===V.length?(0,t.jsxs)("div",{className:"text-center py-32 bg-white rounded-[3rem] border-2 border-dashed border-slate-100",children:[(0,t.jsx)("h2",{className:"text-2xl font-black text-slate-800 mb-2",children:"No matching items found"}),(0,t.jsx)("p",{className:"text-slate-400 font-medium",children:"Try adjusting your filters to find what you're looking for."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 md:gap-10",children:[V.map(e=>(0,t.jsxs)("div",{className:"group bg-white border border-slate-100 rounded-[1.5rem] md:rounded-[2.5rem] p-3 md:p-6 flex flex-col transition-all duration-700 hover:shadow-2xl hover:shadow-slate-200/50 hover:-translate-y-2",children:[(0,t.jsxs)("div",{className:"relative aspect-square mb-4 md:mb-8 bg-slate-50/50 rounded-[1.2rem] md:rounded-[2rem] overflow-hidden cursor-pointer flex items-center justify-center p-2 md:p-10 group-hover:bg-slate-50 transition-colors",onClick:()=>{d(e.slug),r.push(`/products/${e.slug}`)},children:[o===e.slug&&(0,t.jsx)("div",{className:"absolute inset-0 bg-white/40 backdrop-blur-sm z-10 flex items-center justify-center rounded-[1.2rem] md:rounded-[2rem]",children:(0,t.jsx)("div",{className:"w-10 h-10 border-4 border-[#0F5A9E]/30 border-t-[#0F5A9E] rounded-full animate-spin"})}),(0,t.jsx)(s.default,{src:e.image&&e.image[0]?e.image[0].startsWith("http")?e.image[0]:`${l.SERVER_URL}/images/${e.image[0]}`:"/placeholder.png",alt:e.name,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 250px",className:"object-contain p-4 group-hover:scale-110 transition-transform duration-1000",placeholder:"blur",blurDataURL:(0,i.getBlurDataURL)(400,400)}),(e.topBadge||e.ribbon)&&(0,t.jsx)("div",{className:"absolute top-2 md:top-5 right-2 md:right-5",children:(0,t.jsx)("span",{className:`${(e=>{switch(e){case"Clearance Sale":return"bg-rose-500";case"New Arrival":return"bg-blue-600";case"Bestseller":case"Best Seller":return"bg-amber-500";case"Featured":return"bg-indigo-600";case"Hot":return"bg-orange-600";case"Trending":return"bg-pink-500";case"Discount":return"bg-emerald-600";case"Special Offer":return"bg-purple-600";default:return"bg-slate-600"}})(e.topBadge||e.ribbon||"")} text-white text-[8px] md:text-[10px] font-black uppercase tracking-widest px-2 md:px-4 py-1 md:py-2 rounded-lg md:xl shadow-lg whitespace-nowrap`,children:e.topBadge||e.ribbon})})]}),(0,t.jsxs)("div",{className:"flex flex-col grow px-1 md:px-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-3 md:mb-5",children:[(0,t.jsx)("div",{className:`flex ${e.rating<2.6?"text-red-500":"text-yellow-400"}`,children:[void 0,void 0,void 0,void 0,void 0].map((r,s)=>(0,t.jsx)("span",{className:`text-[10px] md:text-[13px] ${s<Math.floor(e.rating||0)?e.rating<2.6?"text-red-500":"text-yellow-400":"text-slate-200"}`,children:"â
"},s))}),(0,t.jsx)("span",{className:"text-[9px] md:text-[11px] font-black text-slate-300 uppercase tracking-widest leading-none",children:(e.numberOfReviews??0).toLocaleStr
13ing()})]}),(0,t.jsx)("h2",{className:"text-sm md:text-2xl font-black text-[#0F172A] mb-2 md:mb-4 cursor-pointer hover:text-[#0F5A9E] transition-colors leading-[1.2] tracking-tight line-clamp-1",onClick:()=>{d(e.slug),r.push(`/products/${e.slug}`)},children:e.name}),(0,t.jsx)("p",{className:"text-[10px] md:text-[15px] text-slate-400 font-medium mb-4 md:mb-8 line-clamp-2 leading-relaxed",children:e.description}),(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)("p",{className:"text-xl md:text-[32px] font-black text-[#0F172A] mb-4 md:mb-8 tracking-tighter",children:b(e.basePrice)}),(0,t.jsx)("div",{className:"flex flex-col gap-2 md:gap-3",children:e.redirectLink?(0,t.jsxs)("a",{href:`/RedirectTracker?dest=${l.SERVER_URL}${e.redirectLink}`,target:"_blank",rel:"noopener noreferrer",className:"w-full py-2.5 md:py-4.5 bg-gray-100 text-[#0F5A9E] rounded-xl md:rounded-2xl text-[9px] md:text-[14px] font-black uppercase tracking-widest flex items-center justify-center gap-2 md:gap-3 text-center cursor-pointer hover:bg-gray-200 transition-all hover:scale-105 active:scale-95 group",children:["Purchase ",(0,t.jsx)(a.RiShareBoxLine,{className:"w-3 h-3 md:w-[18px] md:h-[18px] transition-transform group-hover:translate-x-1 group-hover:-translate-y-1"})]}):(0,t.jsx)("button",{onClick:()=>{d(e.slug),r.push(`/products/${e.slug}`)},disabled:o===e.slug,className:"w-full py-2.5 md:py-4.5 bg-white text-[#0F5A9E] rounded-xl md:rounded-2xl text-[9px] md:text-[14px] font-black uppercase tracking-widest flex items-center justify-center gap-2 md:gap-3 cursor-pointer hover:bg-blue-50/50 transition-all hover:scale-105 active:scale-95 group disabled:opacity-70 disabled:hover:scale-100 disabled:cursor-not-allowed",children:o===e.slug?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-3 h-3 md:w-4 md:h-4 border-2 border-[#0F5A9E]/30 border-t-[#0F5A9E] rounded-full animate-spin"}),"Loading..."]}):(0,t.jsxs)(t.Fragment,{children:["View ",(0,t.jsx)(a.RiShareBoxLine,{className:"w-3 h-3 md:w-[18px] md:h-[18px] transition-transform group-hover:translate-x-1 group-hover:-translate-y-1"})]})})})]})]})]},e._id)),U&&[void 0,void 0,void 0,void 0].map((e,r)=>(0,t.jsx)(m,{},r))]}),W&&(0,t.jsx)("div",{className:"flex justify-center mt-16 pb-8",children:(0,t.jsxs)("button",{onClick:()=>{!U&&W&&(_(!0),z(e=>e+1))},disabled:U,className:"px-12 py-5 bg-white border border-slate-200 text-[#0F172A] rounded-full text-sm font-black uppercase tracking-widest hover:bg-slate-50 hover:border-slate-300 transition-all disabled:opacity-50 flex items-center gap-3 shadow-xl shadow-slate-200/50",children:["Load More Results",(0,t.jsx)(a.RiArrowDownSLine,{size:18,className:U?"animate-bounce":""})]})})]})]})})}function h(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-slate-50",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-[#0F5A9E]"})}),children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.default,{}),(0,t.jsx)(d.default,{})]})}e.s(["default",()=>h])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.