import{t as o,$ as s,y as l,K as e}from"./index-CqfREQhZ.js";import{P as d}from"./ProductCard-Dr5Cy7e7.js";import"./products-Q1MHi1iw.js";import"./star-DW-815Mn.js";const n=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],m=o("flame",n);function f(){const[a,r]=s.useState([]);return s.useEffect(()=>{let t=!0;return l().then(c=>{t&&r(c.filter(i=>i.oldPrice))}).catch(()=>{}),()=>{t=!1}},[]),e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"bg-gradient-hero text-white py-16",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx(m,{className:"w-12 h-12 mx-auto text-brand"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold mt-3",children:"Special Offers"}),e.jsx("p",{className:"text-white/80 mt-3 max-w-xl mx-auto",children:"Hand-picked deals at unbeatable prices. Limited stock — grab them while they last."})]})}),e.jsx("section",{className:"container mx-auto px-4 py-12",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 md:gap-6",children:a.map(t=>e.jsx(d,{product:t},t.id))})})]})}export{f as component};
