1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2866],{97148:function(e,t,a){var r={"./en-US/chat.json":[74887,4887],"./en-US/checkout.json":[42038,2038],"./en-US/common.json":[67071,7071],"./en-US/devolutionPolicy.json":[38795,8795],"./en-US/faq.json":[10250,250],"./en-US/footer.json":[32023,2023],"./en-US/home.json":[48495,8495],"./en-US/howToBuy.json":[83250,3250],"./en-US/login.json":[34667,4667],"./en-US/notFound.json":[52797,2797],"./en-US/privacyPolice.json":[117,117],"./en-US/quiz.json":[45319,5319],"./en-US/sorry.json":[59203,9203],"./en-US/termsOfUse.json":[66900,6900],"./en-US/whoWeAre.json":[16899,6899],"./pt-BR/chat.json":[26931,6931],"./pt-BR/checkout.json":[10679,679],"./pt-BR/common.json":[9858,9858],"./pt-BR/devolutionPolicy.json":[76855,6855],"./pt-BR/faq.json":[90212,212],"./pt-BR/footer.json":[85724,5724],"./pt-BR/home.json":[10971,971],"./pt-BR/howToBuy.json":[4419,4419],"./pt-BR/login.json":[3717,3717],"./pt-BR/notFound.json":[63833,3833],"./pt-BR/privacyPolice.json":[41391,1391],"./pt-BR/quiz.json":[4351,4351],"./pt-BR/sorry.json":[99314,9314],"./pt-BR/termsOfUse.json":[23343,3343],"./pt-BR/whoWeAre.json":[60946,946]};function i(e){if(!a.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return a.e(t[1]).then(function(){return a.t(i,19)})}i.keys=function(){return Object.keys(r)},i.id=97148,e.exports=i},24654:function(){},39411:function(e,t,a){Promise.resolve().then(a.bind(a,70169))},70169:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var r=a(57437),i=a(40521);function s(e){let{text:t="",curvature:a=20,className:s="",textClassName:o=""}=e,l=Math.max(300,22*t.length+100),n="M 40 ".concat(a+25," Q ").concat(l/2," ").concat(25-a," ").concat(l-40," ").concat(a+25);return(0,r.jsx)("div",{className:"flex justify-center items-center w-full ".concat(s),children:(0,r.jsxs)(i.E.svg,{viewBox:"0 0 ".concat(l," ").concat(a+50),className:"w-full h-auto max-w-md lg:max-w-lg",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,ease:"easeOut"},children:[(0,r.jsx)("defs",{children:(0,r.jsx)("path",{id:"arch-path",d:n})}),(0,r.jsx)(i.E.text,{className:"fill-current text-current font-medium ".concat(o),fontSize:"40",textAnchor:"middle",dominantBaseline:"middle",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:1.2,delay:.3},style:{filter:"drop-shadow(2px 2px 4px rgba(0,0,0,0.1))"},children:(0,r.jsx)("textPath",{href:"#arch-path",startOffset:"50%",children:t})})]})})}var o=a(2265),l=a(33145),n=a(30613),c=a(70214);class d{next(){return this.seed=(9301*this.seed+49297)%233280,this.seed/233280}constructor(e){this.seed=e}}let m=[{src:"/_next/static/media/stars1.72ed1ca6.png",height:755,width:755,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAABlBMVEX///9MaXG/fzaeAAAAAnRSTlMCAESlr7oAAAAJcEhZcwAAFxEAABcRAcom8z8AAAAeSURBVHicY2BkZGRgABFIDAYGEAtMQDgwBlwKQxcABegAKUsXe5oAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},{src:"/_next/static/media/stars2.34f9410f.png",height:261,width:261,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAADFBMVEVMaXFxEDdvETZzDzk7fRCTAAAABHRSTlMAHA0xQt9C+QAAAAlwSFlzAAAXEQAAFxEByibzPwAAACpJREFUeJwli0ESADAQwRL+/+eOrgtDAKScvBCNQBvQrBi1VZf/6RxG8QAIBwA4WHjzQwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},n.Z,c.Z];function x(){let[e,t]=(0,o.useState)([]),[a,s]=(0,o.useState)(!1),n=(0,o.useRef)(null),c=()=>{n.current&&a&&t(function(e,t,a){let r=new d(12345),i=[];for(let a=0;a<5;a++){let a=Math.floor(r.next()*e),s=Math.floor(r.next()*t),o=Math.floor(r.next()*m.length);i.push({x:a,y:s,starIndex:o})}return i}(n.current.clientWidth,n.current.clientHeight,0))};return((0,o.useEffect)(()=>{s(!0)},[]),(0,o.useEffect)(()=>{if(a)return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[a]),a)?(0,r.jsx)("div",{ref:n,className:"absolute inset-0 overflow-hidden",children:e.map((e,t)=>(0,r.jsx)(i.E.div,{initial:{opacity:0}
1,animate:{opacity:.3},transition:{duration:2},style:{position:"absolute",left:e.x,top:e.y},children:(0,r.jsx)(l.default,{priority:!0,src:m[e.starIndex],alt:"star",unoptimized:!0})},t))}):(0,r.jsx)("div",{className:"absolute inset-0 overflow-hidden"})}var h=a(87254),u=a(48614),p=a(27648),g=a(64927),f=a.n(g),A=a(66005),v=a(49089),w=a(63271);let j=i.E.create(p.default),y=e=>{var t,a;let{nome:i,id:s,imagens:n,cores:c}=e,[d,m]=(0,o.useState)(null);return(0,r.jsxs)(j,{className:"flex flex-col justify-center w-full",href:"/produto/".concat(s),whileHover:{scale:1.05},children:[(0,r.jsx)("div",{className:"border-primaryDarken justify-center border-opacity-75 border-2 rounded-xl h-[400px] w-full overflow-hidden relative",children:void 0!==n[0]?(0,r.jsx)(l.default,{src:null!==d&&(null===(t=c[d])||void 0===t?void 0:t.imagem)?c[d].imagem:(null===(a=n[0])||void 0===a?void 0:a.imagem)||"https://placehold.co/600x400/png",alt:i,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 768px) 50vw, 33vw",style:{objectFit:"cover",objectPosition:"top"}}):(0,r.jsx)(l.default,{src:w.Z,alt:"Product with no image",height:400,width:400,className:"opacity-90",unoptimized:!0})}),(0,r.jsxs)("div",{className:"flex flex-col items-center p-2 text-primary text-center",children:[(0,r.jsx)("div",{className:"font-bold",children:i}),c.length>0&&(0,r.jsxs)("div",{className:"flex items-center mt-2 space-x-2",children:[c.slice(0,2).map((e,t)=>(0,r.jsx)("button",{className:"w-8 h-8 border ".concat(d===t?"border-green-500":"border-gray-300"," rounded"),onClick:e=>{e.preventDefault(),m(t)},children:e.imagem?(0,r.jsx)(l.default,{src:e.imagem,alt:"".concat(e.nome," - ").concat(e.familia),width:30,height:30,className:"rounded",unoptimized:!0}):(0,r.jsx)("div",{className:"w-full h-full bg-gray-200 text-gray-500 flex items-center justify-center rounded",children:e.nome})},e.id)),c.length>2&&(0,r.jsxs)("button",{className:"w-8 h-8 border border-gray-300 rounded flex items-center justify-center text-gray-600",onClick:e=>{e.preventDefault()},children:[(0,r.jsx)(v.LCi,{size:16})," "]})]})]})]})},b=()=>{let e="cart-storage",t=localStorage.getItem(e);if(t)try{var a;let r=JSON.parse(t);if(!(null===(a=r.state)||void 0===a?void 0:a.cart)||!Array.isArray(r.state.cart)){localStorage.removeItem(e);return}r.state.cart.every(e=>e.color)||localStorage.removeItem(e)}catch(t){console.error("Invalid JSON in localStorage:",t),localStorage.removeItem(e)}};function N(e){var t;let{params:{lng:a}}=e,[c,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{d(!0),b()},[]);let{t:m}=(0,h.$)(a,"home"),[g,w]=(0,o.useState)([]),[j,N]=(0,o.useState)([]),[E,B]=(0,o.useState)([]),[C,D]=(0,o.useState)(!0),[S,k]=(0,o.useState)(!0),[U,z]=(0,o.useState)(!0),[R,Q]=(0,o.useState)(!1),[I,M]=(0,o.useState)(0),[F,K]=(0,o.useState)(!1),[P,L]=(0,o.useState)({}),Z=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],D(!0),k(!0);let e=f().stringify({where:{or:[{and:[{categorias:{in:[19]}}]}]}},{addQueryPrefix:!0}),t=(await (0,A._N)("produtos",e)).docs.map(e=>{var t,a;return{...e,cores:(null===(t=e.stock)||void 0===t?void 0:t.map(e=>{var t,a;return{nome:e.cor.nome,familia:null===(t=e.cor.familia)||void 0===t?void 0:t.nome,imagem:null===(a=e.cor.imagem)||void 0===a?void 0:a.blobURL,id:e.cor.id}}))||[],imagens:(null===(a=e.imagens)||void 0===a?void 0:a.map(e=>{var t;return{...e,imagem:null===(t=e.imagem)||void 0===t?void 0:t.blobURL}}))||[]}}),a=t.filter(e=>{var t;return e.imagens&&e.imagens.length>0&&(null===(t=e.imagens[0])||void 0===t?void 0:t.imagem)}).slice(0,3);w(t),N(a),D(!1),k(!1)},H=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],D(!0),k(!0);let e=f().stringify({limit:10,sort:"-createdAt",where:{or:[{and:[{categorias:{in:[26]}}]}]}},{addQueryPrefix:!0}),t=await (0,A._N)("produtos",e);console.log("Fetched top products:",t),B(t.docs.map(e=>{var t,a;return{...e,cores:(null===(t=e.stock)||void 0===t?void 0:t.map(e=>{var t,a;return{nome:e.cor.nome,familia:null===(t=e.cor.familia)||void 0===t?void 0:t.nome,imagem:null===(a=e.cor.imagem)||void 0===a?void 0:a.blobURL,id:e.cor.id}}))||[],imagens:(null===(a=e.imagens)||void 0===a?void 0:a.map(e=>{var t;return{...e,imagem:null===(t=e.imagem)||void 0===t?void 0:t.blobURL}}))||[]}}).filter(e=>{var t;return e.imagens&&e.imagens.length>0&&(null===(t=e.imagens[0])||void 0===t?void 0:t.imagem)}).slice(0,10)),z(!1)};(0,o.useEffect)(()=>{Z(),H()},["lan\xe7amentos"]),(0,o.useEffect)(()=>
1{if(j.length>1&&!F){let e=setInterval(()=>{M(e=>(e+1)%j.length)},8e3);return()=>clearInterval(e)}},[j.length,F]);let Y=()=>{Q(!R)},T=j[I],J=T?"".concat(I,"-").concat(T.id):"loading",O=()=>{let e=j[I];return e?"".concat(e.id,"-").concat(I):"loading"},V=P[O()]||!1;return c?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"relative w-full h-full",children:[(0,r.jsx)(x,{}),(0,r.jsx)("div",{className:"relative z-10 min-h-[98vh] flex items-center justify-center pt-10",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 grid lg:grid-cols-2 gap-12 items-center",children:[(0,r.jsxs)(i.E.div,{className:"space-y-8",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},children:[(0,r.jsxs)(i.E.div,{className:"inline-flex items-center gap-2 px-4 py-2 bg-black/30 backdrop-blur-md rounded-full border border-white/30 text-white text-sm font-medium drop-shadow-lg",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,r.jsx)(v.QJe,{className:"text-yellow-400"}),m("trustedByCustomers")]}),(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsxs)(i.E.h1,{className:"text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-franklyn font-bold text-secondary leading-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[(0,r.jsx)("span",{className:"block",children:(0,r.jsxs)("div",{className:"text-5xl xs:text-6xl sm:text-7xl md:text-6xl lg:text-9xl uppercase text-outlined md:text-outlined-md font-franklyn",children:[m("haveTheStyle"),","]})}),(0,r.jsx)("span",{className:"block text-primaryDarken font-fair italic",children:m("length&volume")}),(0,r.jsx)("span",{className:"block text-2xl md:text-3xl lg:text-4xl font-artegra font-normal text-secondaryDarken",children:(0,r.jsx)("div",{className:"text-2xl xs:text-3xl sm:text-4xl md:text-2xl lg:text-4xl lowercase font-artegra mt-2 text-secondary animate-outline-animation",style:{WebkitTextStroke:"1px transparent",WebkitTextFillColor:"#e0b2a5"},children:m("thatYouAlwaysWantedInSeconds")})})]})}),(0,r.jsx)(i.E.p,{className:"text-lg md:text-xl text-secondaryDarken leading-relaxed max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:m("heroDescription")}),(0,r.jsxs)(i.E.div,{className:"flex flex-col sm:flex-row gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[(0,r.jsx)(p.default,{href:"/loja",children:(0,r.jsxs)(i.E.button,{className:"group relative overflow-hidden bg-primary hover:bg-primaryDarken text-white px-8 py-4 rounded-full font-artegra font-semibold text-lg transition-all duration-300 flex items-center gap-3 shadow-lg hover:shadow-xl",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,r.jsx)(v.Xfy,{className:"group-hover:rotate-12 transition-transform"}),m("shopNow"),(0,r.jsx)(v.Z1Y,{className:"group-hover:translate-x-1 transition-transform"})]})}),(0,r.jsx)(p.default,{href:"/quiz",children:(0,r.jsxs)(i.E.button,{className:"group bg-white/10 backdrop-blur-sm hover:bg-white/20 border border-white/30 text-secondary px-8 py-4 rounded-full font-artegra font-semibold text-lg transition-all duration-300 flex items-center gap-3",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,r.jsx)(v.gmG,{className:"group-hover:translate-x-1 transition-transform"}),m("findYourColor")]})})]}),(0,r.jsxs)(i.E.div,{className:"flex items-center gap-6 pt-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)(v.QJe,{className:"text-yellow-400 w-4 h-4"},t))}),(0,r.jsxs)("span",{className:"text-white drop-shadow-md text-sm",children:["4.9/5 (2,847 ",m("reviews"),")"]})]}),(0,r.jsxs)("div",{className:"flex -space-x-2",children:[[void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("div",{className:"w-8 h-8 bg-secondary rounded-full border-2 border-white flex items-center justify-center text-xs font-bold text-primary",children:String.fromCharCode(65+t)},t)),(0,r.jsx)("div",{className:"w-8 h-8 bg-primary rounded-full border-2 border-white flex items-center justify-center text-xs font-bold text-white",children:"+"})]})]})]}),(0,r.jsxs)(i.E.div,{className:"relative h-[600px] lg:h-[700px]",initial:{opacity:0,x:50}
1,animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 to-secondary/20 rounded-3xl transform rotate-6"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/20 to-primary/20 rounded-3xl transform -rotate-3"}),(0,r.jsxs)("div",{className:"relative z-10 h-full bg-white/10 backdrop-blur-sm rounded-3xl overflow-hidden border border-white/20 shadow-2xl",children:[(0,r.jsx)(i.E.div,{className:"absolute top-6 right-6 bg-white/20 backdrop-blur-sm rounded-full p-3 border border-white/30 z-30",animate:{y:[0,-10,0]},transition:{duration:3,repeat:1/0},children:(0,r.jsx)(v.$0H,{className:"text-red-400 w-6 h-6"})}),(0,r.jsx)(i.E.div,{className:"absolute bottom-6 left-6 bg-white/20 backdrop-blur-sm rounded-full p-3 border border-white/30 z-30",animate:{y:[0,10,0]},transition:{duration:3,repeat:1/0,delay:1},children:(0,r.jsx)(v.QJe,{className:"text-yellow-400 w-6 h-6"})}),(0,r.jsx)("div",{className:"h-full relative",children:!S&&j.length>0&&T?(0,r.jsx)(p.default,{href:"/produto/".concat(T.id),className:"block h-full cursor-pointer",onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),children:(0,r.jsx)(u.M,{initial:!1,children:(0,r.jsxs)(i.E.div,{className:"relative h-full",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:1.5,ease:[.4,0,.2,1]},style:{willChange:"transform"},children:[(0,r.jsxs)("div",{className:"absolute inset-0 z-0",children:[!V&&(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/30 to-primary/30 flex items-center justify-center",children:(0,r.jsx)("div",{className:"w-8 h-8 border-2 border-white/30 border-t-white rounded-full animate-spin"})}),(null===(t=T.imagens[0])||void 0===t?void 0:t.imagem)?(0,r.jsx)(l.default,{src:T.imagens[0].imagem||"https://placehold.co/600x400/png",alt:T.nome,fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:"object-cover transition-opacity duration-300",style:{opacity:V?1:0,willChange:"transform",objectPosition:"top"},onLoad:()=>{let e=O();L(t=>({...t,[e]:!0}))},placeholder:"blur",blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="}):(0,r.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-secondary/20 to-primary/20 flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-6xl",children:"\uD83D\uDC69â\uD83E\uDDB1"})})]}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent z-10",style:{willChange:"transform"}}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-6 z-20",style:{willChange:"transform"},children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h3",{className:"text-2xl font-artegra font-bold text-white mb-2 drop-shadow-xl",children:T.nome}),(0,r.jsx)("p",{className:"text-white/80 text-sm mb-4 drop-shadow-lg",children:m("featuredCollection")}),T.cores.length>0&&(0,r.jsxs)("div",{className:"flex justify-center gap-2 mb-4",children:[T.cores.slice(0,4).map(e=>(0,r.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-white/50 shadow-lg backdrop-blur-sm",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:e.imagem?(0,r.jsx)(l.default,{src:e.imagem,alt:e.nome,width:24,height:24,className:"rounded-full w-full h-full object-cover",unoptimized:!0}):(0,r.jsx)("div",{className:"w-full h-full rounded-full",style:{backgroundColor:"#e0b2a5"}})},e.id)),T.cores.length>4&&(0,r.jsxs)("span",{className:"text-xs text-white/80 ml-2 self-center drop-shadow-lg",children:["+",T.cores.length-4]})]}),(0,r.jsxs)(i.E.div,{className:"inline-flex items-center gap-2 px-4 py-2 bg-white/20 backdrop-blur-sm rounded-full border border-white/30 text-white text-sm font-medium hover:bg-white/30 transition-all duration-300",whileHover:{scale:1.05},children:[m("seeAllProducts"),(0,r.jsx)(v.Z1Y,{className:"w-3 h-3"})]})]})})]},J)})}):(0,r.jsx)("div",{className:"flex items-center justify-center h-full",children:S?(0,r.jsxs)("div",{className:"text-center text-white",children:[(0,r.jsxs)("svg",{className:"animate-spin h-8 w-8 text-white mx-auto mb-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,r.jsx)("p",{className:"text-sm drop-shadow-lg",children:"Loading products..."})]}):(0,r.jsxs)("div",{className:"text-center text-white",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83D\uDC69â\uD83E\uDDB1"}),(0,r.jsx)("h3",{className:"text-xl font-artegra font-bold mb-2 drop-shadow-lg",children:m("featuredCollection")}),(0,r.jsx)("p",{className:"text-white/80 drop-shadow-lg",children:m("discoverPerfectStyle")})]})})})]})]})]})}),(0,r.jsx)("div",{className:"relative z-10 py-24 px-4",children:(0,r.jsxs)("div",{className:"container mx-auto",children:[(0,r.jsxs)(i.E.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-3 px-6 py-3 bg-gradient-to-r from-primary to-primaryDarken rounded-full mb-6",children:[(0,r.jsx)(v.yyP,{className:"text-white text-xl"}),(0,r.jsx)("span",{className:"text-white font-bold text-lg",children:m("topProducts")})]}),(0,r.jsx)("h2",{className:"text-3xl md:text-5xl font-franklyn font-bold text-white mb-4 drop-shadow-xl",children:m("topProductsTitle")}),(0,r.jsx)("p",{className:"text-lg text-white/90 max-w-2xl mx-auto drop-shadow-md",children:m("topProductsDescription")})]}),U?(0,r.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,r.jsxs)("svg",{className:"animate-spin h-12 w-12 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:E.map((e,t)=>(0,r.jsx)("div",{hidden:t>2&&!R,children:(0,r.jsx)(i.E.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.1*t},viewport:{once:!0},children:(0,r.jsx)(y,{nome:e.nome,id:e.id,imagens:e.imagens,cores:e.cores})},e.id)},e.id))}),(0,r.jsx)("div",{className:"w-full flex justify-center",children:(0,r.jsx)(i.E.button,{onClick:Y,className:"text-secondary bg-white font-artegra-bold border-2 border-secondary rounded-3xl text-sm md:text-lg mt-6 md:mt-10 py-2 px-4 uppercase",whileHover:{scale:1.1},children:m(R?"showLess":"showMore")})})]}),(0,r.jsx)("div",{className:"text-center mt-12",children:(0,r.jsx)(p.default,{href:"/".concat(a,"/loja"),children:(0,r.jsxs)(i.E.button,{className:"group bg-white/10 backdrop-blur-sm hover:bg-white/20 border border-white/30 text-white px-8 py-4 rounded-full font-artegra font-semibold text-lg transition-all duration-300 flex items-center gap-3 mx-auto",whileHover:{scale:1.05},whileTap:{scale:.95},children:[m("viewAllProducts"),(0,r.jsx)(v.Z1Y,{className:"group-hover:translate-x-1 transition-transform"})]})})})]})}),(0,r.jsxs)("div",{className:"relative z-10 flex flex-col items-center font-artegra text-lg",children:[(0,r.jsx)("div",{className:"text-2xl md:text-3xl uppercase text-secondary font-bold pb-4 md:pb-12",children:(0,r.jsx)(s,{text:m("newProducts"),curvature:20,textClassName:"text-2xl md:text-3xl uppercase font-artegra-bold fill-secondary"})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 w-full px-10 md:px-0 md:grid-cols-5 ga
1p-6 md:gap-12",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(l.default,{className:"h-[30px] w-[30px] md:h-[50px] md:w-[50px] absolute -z-20",src:n.Z,alt:"star",unoptimized:!0})}),(0,r.jsx)("div",{className:"md:col-span-3 min-h-[70vh]",children:C?(0,r.jsx)("div",{className:"flex justify-center items-center mt-4",children:(0,r.jsxs)("svg",{className:"animate-spin h-12 w-12 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:g.map((e,t)=>(0,r.jsx)("div",{hidden:t>2&&!R,children:(0,r.jsx)(y,{nome:e.nome,id:e.id,imagens:e.imagens,cores:e.cores})},e.id))}),(0,r.jsx)("div",{className:"w-full flex justify-center",children:(0,r.jsx)(i.E.button,{onClick:Y,className:"text-secondary bg-white font-artegra-bold border-2 border-secondary rounded-3xl text-sm md:text-lg mt-6 md:mt-10 py-2 px-4 uppercase",whileHover:{scale:1.1},children:m(R?"showLess":"showMore")})})]})}),(0,r.jsx)("div",{className:"flex justify-start",children:(0,r.jsx)(l.default,{className:"h-[30px] w-[30px] md:h-[50px] md:w-[50px]",src:n.Z,alt:"star",unoptimized:!0})})]}),(0,r.jsx)(p.default,{href:"/loja",children:(0,r.jsx)(i.E.button,{className:"text-secondary bg-white font-artegra-bold border-2 border-secondary rounded-3xl text-sm md:text-lg mt-6 md:mt-10 py-2 px-4 uppercase",whileHover:{scale:1.1},children:m("seeAllProducts")})})]}),(0,r.jsx)("div",{className:"relative z-10 py-24 px-4",children:(0,r.jsxs)("div",{className:"container mx-auto",children:[(0,r.jsxs)(i.E.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-franklyn font-bold text-white mb-4 drop-shadow-lg",children:m("whyChooseUs")}),(0,r.jsx)("p",{className:"text-lg text-white/90 max-w-2xl mx-auto drop-shadow-md",children:m("whyChooseUsDescription")})]}),(0,r.jsx)("div",{className:"grid md:grid-cols-3 gap-8",children:[{icon:"â¨",title:m("premiumQuality"),description:m("premiumQualityDescription")},{icon:"\uD83D\uDE9A",title:m("fastShipping"),description:m("fastShippingDescription")},{icon:"\uD83D\uDC9D",title:m("perfectFit"),description:m("perfectFitDescription")}].map((e,t)=>(0,r.jsxs)(i.E.div,{className:"text-center p-6 bg-white/20 backdrop-blur-md rounded-xl border border-white/30 hover:border-white/50 transition-all duration-300",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2*t},viewport:{once:!0},whileHover:{y:-5},children:[(0,r.jsx)("div",{className:"text-4xl mb-4",children:e.icon}),(0,r.jsx)("h3",{className:"font-artegra font-bold text-white text-xl mb-2 drop-shadow-lg",children:e.title}),(0,r.jsx)("p",{className:"text-white/90 drop-shadow-md",children:e.description})]},t))})]})}),(0,r.jsx)("div",{className:"relative z-10 py-24 px-4",children:(0,r.jsx)("div",{className:"container mx-auto",children:(0,r.jsxs)(i.E.div,{className:"bg-gradient-to-r from-primary to-primaryDarken rounded-3xl p-8 md:p-12 text-center",initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.6},viewport:{once:!0},children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-franklyn font-bold text-white mb-4",children:m("stayInStyle")}),(0,r.jsx)("p",{className:"text-white/80 text-lg mb-8 max-w-2xl mx-auto",children:m("newsletterDescription")}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 max-w-md mx-auto",children:[(0,r.jsx)("input",{type:"email",placeholder:m("enterEmail"),className:"flex-1 px-4 py-3 rounded-full bg-white/10 backdrop-blur-sm border border-white/30 text-white placeholder-white/70 focus:outline-none focus:ring-2 focus:ring-white/50"}),(0,r.jsx)(i.E.button,{className:"bg-white text-primary px-6 py-3 rounded-full font-artegra font-semibold hover:bg-white/90 transition-colors",whileHover:{scale:1.05},whileTap:{scale:.95},children:m("subscribe")})]})]})})}),(0,r.jsx)(x,{})]})}):(0,r.jsx)("div",{className:"relative w-full h-full min-h-screen flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"animate-spin h-8 w-8 border-2 border-primary border-t-transparent roun
1ded-full mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-secondary",children:"Loading..."})]})})}},87254:function(e,t,a){"use strict";a.d(t,{$:function(){return h}});var r=a(2265),i=a(46550),s=a(43949),o=a(89087),l=a(740),n=a(18249);let c="pt-BR",d=[c,"en-US"],m="translation",x="i18next";function h(e,t,a){let[i,l]=(0,o.fP)([x]),n=(0,s.$G)(t,a),{i18n:c}=n;{let[t,a]=(0,r.useState)(c.resolvedLanguage);(0,r.useEffect)(()=>{t!==c.resolvedLanguage&&a(c.resolvedLanguage)},[t,c.resolvedLanguage]),(0,r.useEffect)(()=>{e&&c.resolvedLanguage!==e&&c.changeLanguage(e)},[e,c]),(0,r.useEffect)(()=>{i.i18next!==e&&l(x,e,{path:"/"})},[e,i.i18next])}return n}i.ZP.use(s.Db).use(n.Z).use((0,l.Z)((e,t)=>a(97148)("./".concat(e,"/").concat(t,".json")))).init({...function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return{supportedLngs:d,fallbackLng:c,lng:e,fallbackNS:m,defaultNS:m,ns:t}}(),lng:void 0,detection:{order:["path","htmlTag","cookie","navigator"]},preload:[]})},66005:function(e,t,a){"use strict";a.d(t,{p6:function(){return x},fC:function(){return h},Hx:function(){return p},zU:function(){return u},ZE:function(){return g},eY:function(){return f},_N:function(){return d},PF:function(){return m},x4:function(){return i},zI:function(){return A}}),a(83079);var r=a(12119);(0,r.$)("4e7362f701e8c5a2a9fd8cba12f4549a8df5de92");var i=(0,r.$)("b2f179f9be7457f260235a64e82166ccd32cd1e4");(0,r.$)("7d7f3ef45aa0b0a6fec224bd48b626317651e06b"),(0,r.$)("263119d47aad36646c6600368cd0fd12379c9c78");var s=a(83464);let o=a(40257).env.PAYLOAD_API_URL||"https://strapi2hdmh.vercel.app/api",l=s.Z.create({baseURL:o,headers:{"Content-Type":"application/json"}});var n=a(64927),c=a.n(n);let d=async(e,t)=>{let a=await i(),r=t?"/".concat(e).concat(t):"/".concat(e);return(await l.get(r,{headers:{Authorization:"Bearer ".concat(a)}})).data},m=async(e,t)=>{let a=await i();return(await l.get("/".concat(e,"/").concat(t),{headers:{Authorization:"Bearer ".concat(a)}})).data},x=async e=>{let t=await i();return console.log(e),(await l.post("/enderecos",e,{headers:{Authorization:"Bearer ".concat(t)}})).data},h=async e=>{try{let t=await i();return(await l.post("/itens",e,{headers:{Authorization:"Bearer ".concat(t)}})).data}catch(e){var t,a;throw Error((null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||"Erro ao criar item")}},u=async e=>{try{let t=await i();return(await l.post("/compras-deslogadas",e,{headers:{Authorization:"Bearer ".concat(t)}})).data}catch(e){var t,a;throw Error((null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||"Erro ao criar pedido")}},p=async e=>{try{let t=await i();return console.log("token",t),console.log("order",e),(await l.post("/compras-logadas",e,{headers:{Authorization:"Bearer ".concat(t)}})).data}catch(e){var t,a;throw Error((null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||"Erro ao criar pedido")}},g=async(e,t)=>{try{let a=await i(),r={cliente:parseInt(e),produto:t};return(await l.post("/wishlists",r,{headers:{Authorization:"Bearer ".concat(a)}})).data}catch(e){var a,r;throw Error((null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.message)||"Erro ao criar item na wishlist")}},f=async(e,t)=>{try{let a=await i(),r=c().stringify({where:{cliente:{equals:parseInt(e)},produto:{equals:t}}},{addQueryPrefix:!0});return(await l.delete("/wishlists".concat(r),{headers:{Authorization:"Bearer ".concat(a)}})).data}catch(e){var a,r;throw Error((null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.message)||"Erro ao deletar item da wishlist")}},A=async(e,t)=>{try{let a=await i();console.log("Updating logged order with ID: ".concat(e)),console.log("Update data:",t);let r=await l.patch("/compras-logadas/".concat(e),t,{headers:{Authorization:"Bearer ".concat(a),"Content-Type":"application/json"}});return console.log("Order updated successfully:",r.data),r.data}catch(e){var a,r,s;throw console.error("Error updating logged order:",(null===(a=e.response)||void 0===a?void 0:a.data)||e.message),Error((null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:r.message)||"Erro ao atualizar pedido logado")}}},63271:function(e,t){"use strict";t.Z={src:"/_next/static/media/girl-with-long-hair-svgrepo-com.a80a9816.svg",height:800,width:800,blurWidth:0,blurHeight:0}},30613:function(e,t){"use strict";t.Z={src:"/_next/static/media/stars3.41437cac.png",height:148,width:148,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAGFBMVEWNAC5zEDd0EDhxDzdzDjh0Dzh2EDl0EDmJIU7nAAAAB3RSTlMBN+ucIp+X4YV8lwAAAAlwSFlzAAAXEQAAFxEByibzPwAAAC5JREFUeJxjYGBgYGRkgABWZgjNwsTEAhJnZWJnZ2JmZGBkhjLgUiDFbFBdYO0ADkcAZrgvHRcAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},70214:function(e,t){"use strict";t.Z={src:"/_next/static/media/stars4.2db1bf68.png",height:232,width:232,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEX////9/f39/f36+vr5+fn////8/Pz9/f3+/v77+/v9/f3+/v5A9gL9AAAAC3RSTlMB6Jg5DToYNaCpplU3UQwAAAAJcEhZcwAAFxEAABcRAcom8z8AAAAxSURBVHicJYrJDQAgDMPcAwp0/31RwC8rMcAYiGQ5KZtmU/u2bjtFuMTrXy9B8ScCuBi/AKSEZtK4AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}}},function(e){e.O(0,[7699,833,3145,4609,3464,7648,2191,521,1039,2971,2117,1744],function(){return e(e.s=39411)}),_N_E=e.O()}]);
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.