"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7094],{3335:(e,t,a)=>{a.r(t),a.d(t,{Variant2Skeleton:()=>v,default:()=>f});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(83457),i=a(37965),c=a(35299),m=a(10512),u=a(25016),x=a(84935),p=a(60129),b=a(97003),g=a(12976),h=a(32985);let f=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:s=!0,showConditionBadge:o=!0,showStockStatus:f=!0,priority:v=!1,viewMode:k="grid",hoverMode:w="zones",inWishlist:j,wishlistLoading:N,addingToCart:y,currentImageIndex:C,inCompare:S,handleAddToCart:z,handleWishlistToggle:P,handleCompareToggle:A,handleImageHover:$,handleImageLeave:M,handleSwapEnter:R,images:L,imageUrl:O,hasMultipleImages:D,hasDiscount:E,displayPrice:T,discountPercent:_,isInStock:V,conditionLabel:W,hasMoreImages:I,remainingImagesCount:B,sizeStyles:F,themeColor:G,currentLang:q,t:H,imgRef:U}){let{t:K}=(0,g.k)(),{iconDimension:J,imgSizes:Z}=F,Y=(0,h.nb)(`/product/${e.slug||e.id}`,q),X=(0,x.HS)(e.translations,"Name",q,e.name||"Unnamed Product"),Q=V?{text:K("common.inStock","In Stock"),className:"text-emerald-700 dark:text-emerald-400"}:e.isComingSoon?{text:K("common.comingSoon","Coming Soon"),className:"text-violet-600 dark:text-violet-400"}:{text:K("cart.outOfStock","Out of Stock"),className:"text-rose-600 dark:text-rose-400"},ee=e=>{e.preventDefault(),e.stopPropagation()},et=(0,r.jsx)(b.$,{"aria-label":j?K("productCard.wishlist.remove","Remove from wishlist"):K("productCard.wishlist.add","Add to wishlist"),className:(0,u.cn)("h-8 w-8 rounded-full","backdrop-blur-md border","bg-background/70 hover:bg-background/90 text-foreground","dark:bg-background/50 dark:hover:bg-background/70 dark:text-foreground dark:border-border","transition-all"),disabled:N,size:"icon",style:j?{backgroundColor:"#ef4444",color:"white",borderColor:"transparent"}:void 0,type:"button",variant:"ghost",onClick:e=>{ee(e),P(e)},children:(0,r.jsx)(l.A,{className:(0,u.cn)("h-4 w-4",j&&"fill-current")})}),ea=(0,r.jsx)(b.$,{"aria-label":S?K("productCard.compare.remove","Remove from compare"):K("productCard.compare.add","Add to compare"),className:(0,u.cn)("h-8 w-8 rounded-full","backdrop-blur-md border","bg-background/70 hover:bg-background/90 text-foreground","dark:bg-background/50 dark:hover:bg-background/70 dark:text-foreground dark:border-border","transition-all"),size:"icon",style:S?{backgroundColor:G,color:"white",borderColor:"transparent"}:void 0,type:"button",variant:"ghost",onClick:A,children:(0,r.jsx)(i.A,{className:(0,u.cn)(J)})}),er=(0,r.jsx)(b.$,{"aria-label":K("productCard.cart.add","Add to cart"),className:(0,u.cn)("h-8 w-8 rounded-full text-white","shadow-md hover:shadow-lg hover:scale-[1.04] active:scale-[0.98]","transition-all"),disabled:!V||e.isComingSoon||y,size:"icon",style:{backgroundColor:G},type:"button",onClick:e=>{ee(e),z()},children:y?(0,r.jsx)(c.A,{className:(0,u.cn)(J,"animate-spin")}):(0,r.jsx)(m.A,{className:(0,u.cn)(J)})});return"list"===k?(0,r.jsxs)("article",{itemScope:!0,className:(0,u.cn)("group/card relative overflow-hidden","rounded-2xl bg-background dark:bg-background","border border-border/70 dark:border-border","shadow-sm hover:shadow-md","transition-all duration-300",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:X,itemProp:"name"}),O&&(0,r.jsx)("meta",{content:O,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":K("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Y}),(0,r.jsxs)("div",{className:"flex w-full items-stretch gap-3 relative z-10 pointer-events-none",children:[(0,r.jsx)("div",{className:"relative w-28 sm:w-36 md:w-44 shrink-0 overflow-hidden pointer-events-auto",children:(0,r.jsxs)("div",{className:"relative h-full min-h-[110px] sm:min-h-[120px]",children:[O?(0,r.jsx)(n.default,{ref:U,fill:!0,alt:e.name||"Product image",className:"object-cover transition-transform duration-500 group-hover/card:scale-[1.04]",loading:v?"eager":"lazy",priority:v,sizes:"(max-width: 640px) 112px, (max-width: 768px) 144px, 176px",src:O}):(0,r.jsx)("div",{className:"absolute inset-0 bg-muted/50 dark:bg-muted/50"}),_>0&&(0,r.jsx)("div",{className:"absolute left-2 top-2",children:(0,r.jsxs)("span",{className:"text-[11px] font-bold px-2 py-1 rounded-full text-white",style:{backgroundColor:G},children:["-",_,"%"]})})]})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-between py-3 pr-3",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"font-heading text-sm sm:text-base font-semibold leading-snug text-foreground dark:text-foreground break-words",itemProp:"name",children:X}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[f&&(0,r.jsx)("span",{className:(0,u.cn)("text-xs font-medium",Q.className),children:Q.text}),o&&W&&e.condition!==p.kW.New&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:W})]})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-3",children:[(0,r.jsxs)("div",{itemScope:!0,className:"flex flex-col",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:T.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:V?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,r.jsx)("span",{className:"text-lg sm:text-xl md:text-2xl font-bold",style:{color:G},children:(0,u.$g)(T)}),E&&(0,r.jsx)("span",{className:"text-xs sm:text-sm text-muted-foreground line-through",children:(0,u.$g)(e.price)})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 pointer-events-auto",children:[a&&et,er]})]})]})]})]}):(0,r.jsxs)("article",{itemScope:!0,className:(0,u.cn)("group/card relative overflow-hidden flex flex-col","rounded-2xl bg-background dark:bg-background","border border-border/70 dark:border-border","shadow-sm hover:shadow-xl","transition-all duration-300","hover:-translate-y-[1px]",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:X,itemProp:"name"}),O&&(0,r.jsx)("meta",{content:O,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":K("productCard.details.view","View product details"),className:(0,u.cn)("absolute inset-0 z-0","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-zinc-900/20 dark:focus-visible:ring-white/20","focus-visible:ring-offset-white dark:focus-visible:ring-offset-zinc-950"),href:Y}),(0,r.jsx)("div",{className:"relative w-full overflow-hidden z-10",onMouseLeave:M,children:(0,r.jsxs)("div",{className:"relative",style:{aspectRatio:"5 / 6"},children:[(0,r.jsx)(d(),{"aria-label":K("productCard.details.view","View product details"),className:"md:hidden absolute inset-0 z-[2]",href:Y}),O?(0,r.jsx)(n.default,{ref:U,fill:!0,alt:e.name||"Product image",className:"object-cover transition-transform duration-500 group-hover/card:scale-[1.05]",loading:v?"eager":"lazy",priority:v,sizes:Z,src:O}):(0,r.jsx)("div",{className:"absolute inset-0 bg-muted/50 dark:bg-background"}),D&&(0,r.jsxs)(r.Fragment,{children:["swap"===w&&(0,r.jsx)(d(),{className:"hidden md:block absolute inset-0 z-10 pointer-events-auto",href:Y,onMouseEnter:R,onMouseLeave:M}),"zones"===w&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 z-10 pointer-events-none",children:L.slice(0,4).map((e,t)=>(0,r.jsx)(d(),{className:"flex-1 pointer-events-auto",href:Y,onMouseEnter:()=>$(t)},t))}),"zones"===w&&I&&3===C&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 bg-black/35 items-center justify-center z-20 pointer-events-none",children:(0,r.jsxs)("span",{className:"text-white text-3xl font-bold",children:["+",B]})})]}),(0,r.jsxs)("div",{className:"absolute left-3 top-3 z-20 pointer-events-none flex gap-2",children:[f&&!V&&(0,r.jsx)("span",{className:"text-[11px] font-semibold px-2 py-1 rounded-full bg-background/90 text-foreground dark:bg-background/80 dark:text-foreground border border-border/60 dark:border-border",children:e.isComingSoon?K("common.comingSoon","Coming Soon"):K("cart.outOfStock","Out of Stock")}),o&&W&&e.condition!==p.kW.New&&(0,r.jsx)("span",{className:"text-[11px] font-semibold px-2 py-1 rounded-full bg-background/90 text-foreground dark:bg-background/80 dark:text-foreground border border-border/60 dark:border-border",children:W})]}),_>0&&(0,r.jsx)("div",{className:"absolute right-3 top-3 z-20 pointer-events-none",children:(0,r.jsxs)("span",{className:"text-[11px] font-bold px-2 py-1 rounded-full text-white shadow-sm",style:{backgroundColor:G},children:["-",_,"%"]})}),(0,r.jsx)("div",{className:(0,u.cn)("absolute inset-x-0 bottom-3 z-30","px-3 flex items-center justify-center gap-2 pointer-events-auto","md:opacity-0 md:translate-y-2 md:group-hover/card:opacity-100 md:group-hover/card:translate-y-0","transition-all duration-300"),children:(0,r.jsxs)("div",{className:(0,u.cn)("flex items-center justify-center gap-1.5","bg-background/75 dark:bg-background/55","backdrop-blur-md border border-border/60 dark:border-border","rounded-full p-0.5 sm:p-2 shadow-sm"),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[a&&et,s&&ea,er]})}),"zones"===w&&D&&(0,r.jsx)("div",{className:"hidden md:flex absolute bottom-3 left-0 right-0 items-center justify-center gap-1.5 pointer-events-none z-20",children:L.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,u.cn)("h-1.5 w-1.5 rounded-full transition-all duration-200",C===t?"scale-125":"bg-background/60"),style:C===t?{backgroundColor:G,boxShadow:`0 0 10px ${G}`}:void 0},t))})]})}),(0,r.jsxs)("div",{className:"relative z-10 p-2 sm:p-4 block pointer-events-none",children:[(0,r.jsx)("h3",{className:"font-heading text-xs sm:text-base font-semibold leading-snug text-foreground dark:text-foreground break-words min-h-[2.6em]",itemProp:"name",children:X}),f&&(0,r.jsx)("div",{className:"mt-1 flex items-center gap-2",children:(0,r.jsx)("span",{className:(0,u.cn)("text-xs font-medium",Q.className),children:Q.text})}),(0,r.jsx)("div",{className:"mt-2 flex items-end justify-between gap-3",children:(0,r.jsxs)("div",{itemScope:!0,className:"flex flex-col",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:T.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:V?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1 text-nowrap",children:[(0,r.jsx)("span",{className:"whitespace-nowrap text-xs sm:text-sm md:text-base lg:text-lg inline-block text-right min-w-[4.5ch] font-bold",style:{color:G},children:(0,u.$g)(T)}),E&&(0,r.jsx)("span",{className:"text-xs whitespace-nowrap text-muted-foreground line-through",children:(0,u.$g)(e.price)})]})]})})]})]})});function v({viewMode:e="grid"}){return"list"===e?(0,r.jsx)("div",{className:"animate-pulse rounded-2xl border border-border/70 dark:border-border bg-background dark:bg-background shadow-sm overflow-hidden",children:(0,r.jsxs)("div",{className:"flex w-full items-stretch gap-3",children:[(0,r.jsx)("div",{className:"w-28 sm:w-36 md:w-44 shrink-0 min-h-[110px] sm:min-h-[120px] bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-between py-3 pr-3",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-full rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-2/3 rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-3 w-16 rounded-full bg-muted/70 dark:bg-muted/70"})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("div",{className:"h-6 w-20 rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-12 rounded bg-muted/60 dark:bg-muted/60"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"h-9 w-9 rounded-full bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-10 w-10 rounded-full bg-muted dark:bg-muted"})]})]})]})]})}):(0,r.jsxs)("div",{className:"animate-pulse rounded-2xl border border-border/70 dark:border-border bg-background dark:bg-background shadow-sm overflow-hidden flex flex-col",children:[(0,r.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,r.jsxs)("div",{className:"bg-muted dark:bg-muted",style:{aspectRatio:"4 / 5"},children:[(0,r.jsx)("div",{className:"absolute left-3 top-3 h-5 w-20 rounded-full bg-muted/60 dark:bg-muted/50"}),(0,r.jsx)("div",{className:"absolute right-3 top-3 h-5 w-12 rounded-full bg-muted/60 dark:bg-muted/50"})]})}),(0,r.jsxs)("div",{className:"p-3 sm:p-4 space-y-2.5",children:[(0,r.jsx)("div",{className:"h-4 w-full rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-3/5 rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-3 w-14 rounded-full bg-muted/70 dark:bg-muted/70"}),(0,r.jsxs)("div",{className:"flex items-end justify-between pt-1",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("div",{className:"h-6 w-20 rounded bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-12 rounded bg-muted/60 dark:bg-muted/60"})]}),(0,r.jsx)("div",{className:"h-3 w-8 rounded bg-muted/50 dark:bg-muted/50"})]})]})]})}},10234:(e,t,a)=>{a.r(t),a.d(t,{Variant3Skeleton:()=>k,default:()=>v});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(37965),i=a(83457),c=a(35299),m=a(10512),u=a(20063),x=a(25016),p=a(84935),b=a(60129),g=a(83209),h=a(97003),f=a(32985);let v=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:s=!0,showConditionBadge:o=!0,showStockStatus:v=!0,priority:k=!1,viewMode:w="grid",hoverMode:j="zones",inWishlist:N,wishlistLoading:y,addingToCart:C,currentImageIndex:S,inCompare:z,handleAddToCart:P,handleWishlistToggle:A,handleCompareToggle:$,handleImageHover:M,handleImageLeave:R,handleSwapEnter:L,images:O,imageUrl:D,hasMultipleImages:E,hasDiscount:T,displayPrice:_,discountPercent:V,isInStock:W,conditionLabel:I,hasMoreImages:B,remainingImagesCount:F,sizeStyles:G,themeColor:q,currentLang:H,t:U,imgRef:K}){let{titleSize:J,priceSize:Z,oldPriceSize:Y,footerPadding:X,actionIconSize:Q,addBtnHeight:ee,iconDimension:et,minTitleHeight:ea,discountBadge:er,imgSizes:es}=G,eo=(0,u.useRouter)(),ed=async()=>{await P(),eo.push((0,f.nb)("/cart",H))};return"list"===w?(0,r.jsxs)("article",{itemScope:!0,className:(0,x.cn)("group/card relative overflow-hidden transition-all duration-300","rounded-2xl border bg-background border-border/10 dark:bg-background dark:border-border/10",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:(0,p.HS)(e.translations,"Name",H,e.name||"Product"),itemProp:"name"}),D&&(0,r.jsx)("meta",{content:D,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":U("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:(0,f.nb)(`/product/${e.slug||e.id}`,H)}),(0,r.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 w-full p-3 sm:p-4 relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center gap-3 sm:gap-4 min-w-0 pointer-events-auto",children:[(0,r.jsxs)("div",{className:"relative w-20 h-20 sm:w-28 sm:h-28 md:w-36 md:h-36 flex-shrink-0 overflow-hidden rounded-xl bg-muted/50 dark:bg-muted/50 shadow-sm",children:[(0,r.jsx)(n.default,{ref:K,fill:!0,alt:e.name||"Product image",className:"object-cover transition-transform duration-300 md:group-hover/card:scale-110",loading:k?"eager":"lazy",priority:k,sizes:"(max-width: 640px) 80px, (max-width: 768px) 112px, 144px",src:D}),V>0&&(0,r.jsx)("div",{className:"absolute left-1 top-1 z-10",children:(0,r.jsxs)("div",{className:"rounded-full font-bold shadow-lg text-[8px] sm:text-[10px] px-1.5 py-0.5",style:{backgroundColor:q,color:"white",textShadow:"0 1px 2px rgba(0,0,0,0.8)",border:"1px solid rgba(0,0,0,0.2)"},children:["-",V,"%"]})})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-center flex-1 min-w-0 space-y-1.5",children:[(0,r.jsx)("h3",{className:"font-heading text-sm sm:text-base md:text-lg font-semibold leading-tight group-hover/card:text-brand-primary transition-colors break-words",itemProp:"name",children:(0,p.HS)(e.translations,"Name",H,e.name||"Unnamed Product")}),(0,r.jsxs)("div",{itemScope:!0,className:"flex items-baseline gap-2",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:_.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:W?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsx)("span",{className:"font-primary text-lg sm:text-xl md:text-2xl font-bold",style:{color:q},children:(0,x.$g)(_)}),T&&(0,r.jsx)("span",{className:"font-primary text-xs sm:text-sm text-muted-foreground/70 line-through",children:(0,x.$g)(e.price)})]}),v&&(0,r.jsx)("div",{className:"flex items-center gap-1.5",children:W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse shadow-sm shadow-emerald-500/50"}),(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-emerald-700 dark:text-emerald-400 font-medium",children:U("common.inStock","In Stock")})]}):e.isComingSoon?(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-purple-600 dark:text-purple-400 font-medium",children:U("common.comingSoon","Coming Soon")}):(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-muted-foreground",children:U("cart.outOfStock","Out of Stock")})}),o&&I&&e.condition!==b.kW.New&&(0,r.jsx)("span",{className:"font-primary text-[11px] px-2 py-0.5 rounded-full border border-border text-muted-foreground dark:border-border dark:text-muted-foreground w-fit",children:I})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 flex-shrink-0 pointer-events-auto",children:[s&&(0,r.jsxs)(h.$,{className:(0,x.cn)("h-7 w-7 sm:h-10 sm:w-10 md:h-12 md:w-12 rounded-xl","backdrop-blur-md shadow-lg transition-all"),size:"icon",style:z?{backgroundColor:q,color:"white"}:{},type:"button",variant:"secondary",onClick:$,onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:[(0,r.jsx)(l.A,{className:"h-4 w-4 sm:h-5 sm:w-5"}),(0,r.jsx)("span",{className:"sr-only",children:z?U("product.removeFromCompare","Remove from compare"):U("product.addToCompare","Add to compare")})]}),a&&(0,r.jsxs)(h.$,{className:(0,x.cn)("h-7 w-7 sm:h-10 sm:w-10 md:h-12 md:w-12 rounded-xl","backdrop-blur-md shadow-lg transition-all"),disabled:y,size:"icon",style:N?{backgroundColor:"#ef4444",color:"white"}:{},type:"button",variant:"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e)},onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:[(0,r.jsx)(i.A,{className:(0,x.cn)("h-4 w-4 sm:h-5 sm:w-5",N&&"fill-current")}),(0,r.jsx)("span",{className:"sr-only",children:N?U("product.removeFromWishlist","Remove from wishlist"):U("product.addToWishlist","Add to wishlist")})]}),(0,r.jsxs)(h.$,{className:(0,x.cn)("h-7 w-7 sm:h-10 sm:w-10 md:h-12 md:w-12 rounded-xl text-white","shadow-lg transition-all hover:scale-110 active:scale-95"),disabled:!W||e.isComingSoon||C,size:"icon",style:{backgroundColor:q},type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P()},onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:[C?(0,r.jsx)(c.A,{className:"h-3 w-3 sm:h-4 sm:w-4 animate-spin"}):(0,r.jsx)(m.A,{className:"h-3 w-3 sm:h-4 sm:w-4"}),(0,r.jsx)("span",{className:"sr-only",children:U("cart.addToCart","Add to cart")})]})]})]})]}):(0,r.jsxs)("article",{itemScope:!0,className:(0,x.cn)("group relative overflow-hidden transition-all duration-300 flex flex-col h-full","rounded-2xl border bg-background border-border/20 dark:bg-background dark:border-border",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:(0,p.HS)(e.translations,"Name",H,e.name||"Product"),itemProp:"name"}),D&&(0,r.jsx)("meta",{content:D,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":`View ${e.name||"product"} details`,className:"absolute inset-0 z-0",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),tabIndex:-1}),(0,r.jsx)(g.Wu,{className:"p-0 relative z-10",children:(0,r.jsx)("div",{className:"relative",children:(0,r.jsxs)("div",{className:"aspect-[6/5] sm:aspect-[5/4] overflow-hidden bg-muted/50 dark:bg-muted/50 rounded-t-2xl relative",children:[(0,r.jsx)(d(),{className:"hidden md:block absolute inset-0 z-10 pointer-events-auto",href:(0,f.nb)(`/product/${e.slug||e.id}`,H)}),(0,r.jsx)(d(),{"aria-label":`View ${e.name||"product"} details`,className:"md:hidden absolute inset-0 z-[2]",href:(0,f.nb)(`/product/${e.slug||e.id}`,H)}),s&&(0,r.jsx)(h.$,{"aria-label":z?U("productCard.compare.remove","Remove from compare"):U("productCard.compare.add","Add to compare"),className:"absolute right-2 top-4 z-30 h-7 w-7 rounded-full bg-background/90 backdrop-blur shadow-md flex items-center justify-center transition hover:scale-105 hover:shadow-lg active:scale-95 pointer-events-auto hover:bg-background",size:"icon",style:z?{backgroundColor:q,color:"white"}:{},type:"button",variant:"secondary",onClick:$,onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:(0,r.jsx)(l.A,{className:(0,x.cn)("text-foreground",et)})}),a&&(0,r.jsx)(h.$,{"aria-label":N?U("productCard.wishlist.remove","Remove from wishlist"):U("productCard.wishlist.add","Add to wishlist"),className:(0,x.cn)("absolute right-2 z-30 h-7 w-7 rounded-full bg-background/90","backdrop-blur shadow-md flex items-center justify-center transition","hover:scale-105 hover:shadow-lg active:scale-95 pointer-events-auto hover:bg-background",s?"top-12":"top-4"),disabled:y,size:"icon",style:N?{backgroundColor:"#ef4444",color:"white"}:{},type:"button",variant:"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e)},onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:(0,r.jsx)(i.A,{className:(0,x.cn)("text-foreground",et,N&&"fill-current")})}),(0,r.jsx)(n.default,{ref:K,fill:!0,alt:e.name||"Product image",className:"object-cover transition-opacity duration-300",loading:k?"eager":"lazy",priority:k,sizes:es,src:D}),"swap"===j&&E&&(0,r.jsx)(d(),{className:"hidden md:block absolute inset-0 z-10 pointer-events-auto",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),onMouseEnter:L,onMouseLeave:R}),"zones"===j&&E&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 z-10 gap-[2px] pointer-events-none",children:O.slice(0,4).map((t,a)=>(0,r.jsx)(d(),{className:"flex-1 hover:bg-background/5 transition-all duration-200 relative pointer-events-auto",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),onMouseEnter:()=>M(a),children:(0,r.jsx)("div",{className:"absolute inset-0 opacity-0 hover:opacity-100 transition-opacity border-x border-border/10 pointer-events-none"})},a))}),"zones"===j&&E&&B&&3===S&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 bg-background/50 items-center justify-center backdrop-blur-sm z-20 pointer-events-none",children:(0,r.jsxs)("span",{className:"text-foreground text-2xl sm:text-3xl md:text-4xl font-bold",children:["+",F]})}),"zones"===j&&E&&(0,r.jsx)("div",{className:"hidden md:flex absolute bottom-3 left-0 right-0 items-center justify-center gap-1 pointer-events-none z-20 px-4",children:O.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,x.cn)("h-1 flex-1 max-w-16 rounded-full transition-all duration-200",S===t?"shadow-md":"bg-background/40"),style:S===t?{backgroundColor:q}:{backgroundColor:"rgba(var(--background), 0.4)"}},t))}),V>0&&(0,r.jsx)("div",{className:"absolute left-3 top-3 pointer-events-none z-20",children:(0,r.jsxs)("div",{className:(0,x.cn)("rounded-full font-bold shadow-lg",er),style:{backgroundColor:q,color:"white",textShadow:"0 1px 2px rgba(0,0,0,0.8), 0 0 1px rgba(0,0,0,0.9)",border:"1px solid rgba(0,0,0,0.2)"},children:["-",V,"%"]})})]})})}),(0,r.jsxs)(g.wL,{className:(0,x.cn)("relative flex flex-col items-start gap-1.5 sm:gap-3 flex-1 z-10 px-3 py-3","space-y-2 sm:space-y-3 md:space-y-0",X),children:[(0,r.jsxs)(d(),{className:"w-full",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),children:[(0,r.jsx)("h3",{className:(0,x.cn)("text-xs sm:text-lg font-semibold","font-heading text-foreground dark:text-foreground w-full","leading-snug break-words",ea),itemProp:"name",children:(0,p.HS)(e.translations,"Name",H,e.name||"Unnamed Product")}),o&&I&&e.condition!==b.kW.New&&(0,r.jsx)("span",{className:"font-primary text-[11px] px-2 py-0.5 rounded-full border border-border text-muted-foreground dark:border-border dark:text-muted-foreground line-clamp-2",children:I}),(0,r.jsxs)("div",{itemScope:!0,className:"flex items-baseline gap-2 w-full flex-nowrap",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:_.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:W?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsx)("span",{className:(0,x.cn)(Z,"font-primary font-extrabold whitespace-nowrap","text-xs sm:text-sm md:text-base lg:text-lg","inline-block text-right min-w-[4.5ch]"),style:{color:q},children:(0,x.$g)(_)}),T&&(0,r.jsx)("span",{className:(0,x.cn)(Y,"font-primary line-through whitespace-nowrap opacity-60 text-muted-foreground dark:text-muted-foreground","text-xs sm:text-sm md:text-base lg:text-lg","inline-block text-right min-w-[4.5ch]"),children:(0,x.$g)(e.price)})]})]}),(0,r.jsx)("div",{className:"mt-auto w-full",children:(0,r.jsxs)("div",{className:"w-full flex items-center gap-3 pointer-events-auto",children:[(0,r.jsx)(h.$,{className:(0,x.cn)("bg-background hover:bg-background text-foreground shadow-sm border","h-7 w-7 sm:h-10 sm:w-10 rounded-full p-0 shrink-0"),disabled:!W||e.isComingSoon||C,type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P()},onMouseEnter:e=>{e.currentTarget.style.boxShadow=`0 0 14px ${q}CC`},onMouseLeave:e=>{e.currentTarget.style.boxShadow="none"},children:(0,r.jsx)(m.A,{className:(0,x.cn)(et)})}),(0,r.jsx)(h.$,{className:(0,x.cn)(ee,"flex-1 rounded-full font-semibold shadow-md","flex items-center justify-center gap-2 text-white transition-all hover:opacity-90","h-7 px-2 sm:h-10 sm:px-6"),disabled:!W||e.isComingSoon,style:{backgroundColor:q},type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),ed()},children:(0,r.jsx)("span",{className:"text-white",children:U("cart.buy","Buy")})})]})})]})]})});function k({viewMode:e="grid"}){return"list"===e?(0,r.jsxs)("div",{className:"animate-pulse flex items-center gap-2 sm:gap-3 md:gap-4 w-full p-2 sm:p-3 md:p-4 rounded-2xl border bg-background border-border/10 dark:bg-background dark:border-border/10 shadow-sm",children:[(0,r.jsx)("div",{className:"w-16 h-16 sm:w-20 sm:h-20 md:w-28 md:h-28 flex-shrink-0 rounded-xl bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5 sm:space-y-2",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("div",{className:"h-3 sm:h-4 w-full rounded-md bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-3 sm:h-4 w-3/4 rounded-md bg-muted dark:bg-muted"})]}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1.5 sm:gap-2 pt-0.5 sm:pt-1",children:[(0,r.jsx)("div",{className:"h-5 sm:h-6 w-16 sm:w-20 rounded-md bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-3 sm:h-4 w-12 sm:w-14 rounded-md bg-muted/60 dark:bg-muted/60"})]}),(0,r.jsx)("div",{className:"h-2.5 sm:h-3 w-12 sm:w-16 rounded-full bg-muted dark:bg-muted"})]}),(0,r.jsx)("div",{className:"flex-shrink-0 h-8 w-8 sm:h-10 sm:w-10 md:h-12 md:w-12 rounded-xl bg-muted dark:bg-muted"})]}):(0,r.jsxs)("div",{className:(0,x.cn)("overflow-hidden rounded-2xl border bg-background border-border/10 dark:bg-background dark:border-border/10"),children:[(0,r.jsx)(g.Wu,{className:"p-0",children:(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-t-2xl bg-muted/50 dark:bg-muted/50",children:[(0,r.jsx)("div",{className:"aspect-[4/3] sm:aspect-square animate-pulse bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"absolute right-3 top-3 flex flex-col gap-2",children:[(0,r.jsx)("div",{className:"h-8 w-8 rounded-full animate-pulse bg-background/80 dark:bg-muted/80 shadow-sm"}),(0,r.jsx)("div",{className:"h-8 w-8 rounded-full animate-pulse bg-background/80 dark:bg-muted/80 shadow-sm"})]}),(0,r.jsx)("div",{className:"absolute left-3 top-3 h-6 w-14 rounded-full animate-pulse bg-muted/60 dark:bg-muted/60"})]})}),(0,r.jsxs)(g.wL,{className:"flex flex-col items-start gap-1.5 sm:gap-3 p-2 sm:p-4",children:[(0,r.jsxs)("div",{className:"w-full space-y-1 sm:space-y-2",children:[(0,r.jsx)("div",{className:"h-3 sm:h-4 w-[85%] rounded animate-pulse bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-3 sm:h-4 w-[65%] rounded animate-pulse bg-muted dark:bg-muted"})]}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2 w-full",children:[(0,r.jsx)("div",{className:"h-6 w-24 rounded animate-pulse bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-14 rounded animate-pulse bg-muted/60 dark:bg-muted/60"})]}),(0,r.jsx)("div",{className:"w-full pt-1",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"h-10 w-10 rounded-full animate-pulse bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-10 flex-1 rounded-full animate-pulse bg-muted dark:bg-muted"})]})})]})]})}},21779:(e,t,a)=>{a.d(t,{J:()=>n,v:()=>i});var r=a(95155),s=a(12115),o=a(25177);let d=(0,s.createContext)(void 0),n=()=>{let e=(0,s.useContext)(d);if(!e)throw Error("useUser must be used within UserProvider");return e};async function l(){try{let e=await fetch("/api/auth/session",{credentials:"same-origin",cache:"no-store"});if(!e.ok)return{user:null,token:null};return await e.json()}catch{return{user:null,token:null}}}let i=({children:e})=>{let[t,a]=(0,s.useState)(null),[n,i]=(0,s.useState)(null),[c,m]=(0,s.useState)(!0),u=async()=>{let{user:e,token:t}=await l();a(e),i(t),(0,o.Hd)(t)},x=async()=>{try{if(!document.cookie.split("; ").find(e=>e.startsWith("hasSession=")))return void m(!1);let{user:e,token:t}=await l();if(e){a(e),i(t),m(!1);return}let{refreshed:r}=await (0,o.ZU)();if(!r){m(!1),await p();return}await u()}catch(e){console.error("Refresh error:",e),await p()}finally{m(!1)}},p=async()=>{a(null),i(null),(0,o.Hd)(null);try{await fetch("/api/auth/logout?scope=customer",{credentials:"same-origin"}),document.cookie="hasSession=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}catch{}};return(0,s.useEffect)(()=>{x()},[]),(0,r.jsx)(d.Provider,{value:{user:t,accessToken:n,isInitializing:c,login:u,refresh:x,logout:p},children:e})}},24532:(e,t,a)=>{a.r(t),a.d(t,{Variant1Skeleton:()=>k,default:()=>v});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(37965),i=a(83457),c=a(35299),m=a(10512),u=a(25016),x=a(84935),p=a(60129),b=a(83209),g=a(97003);let h=a(46682).b;var f=a(32985);let v=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:s=!0,showConditionBadge:o=!0,showStockStatus:v=!0,priority:k=!1,viewMode:w="grid",hoverMode:j="zones",inWishlist:N,wishlistLoading:y,addingToCart:C,currentImageIndex:S,inCompare:z,handleAddToCart:P,handleWishlistToggle:A,handleCompareToggle:$,handleImageHover:M,handleImageLeave:R,handleSwapEnter:L,images:O,imageUrl:D,hasMultipleImages:E,hasDiscount:T,displayPrice:_,discountPercent:V,isInStock:W,conditionLabel:I,hasMoreImages:B,remainingImagesCount:F,sizeStyles:G,themeColor:q,currentLang:H,t:U,imgRef:K}){let{titleSize:J,priceSize:Z,oldPriceSize:Y,footerPadding:X,actionIconSize:Q,addBtnHeight:ee,iconDimension:et,minTitleHeight:ea,discountBadge:er,imgSizes:es}=G;return"list"===w?(0,r.jsxs)("article",{itemScope:!0,className:(0,u.cn)("group/card relative overflow-hidden transition-[colors,box-shadow,opacity] duration-300","rounded-2xl border bg-brand-surface border-border/60 dark:bg-brand-surfacedark dark:border-border/60",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:(0,x.HS)(e.translations,"Name",H,e.name||"Product"),itemProp:"name"}),D&&(0,r.jsx)("meta",{content:D,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":U("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:(0,f.nb)(`/product/${e.slug||e.id}`,H)}),(0,r.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 w-full p-3 sm:p-4 relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center gap-3 sm:gap-4 min-w-0",children:[(0,r.jsxs)("div",{className:"relative w-20 h-20 sm:w-28 sm:h-28 md:w-36 md:h-36 flex-shrink-0 overflow-hidden rounded-xl bg-muted/50 dark:bg-muted/50 shadow-sm [will-change:transform]",children:[(0,r.jsx)(n.default,{ref:K,fill:!0,alt:e.name||"Product image",className:"object-cover transition-transform duration-300 md:group-hover/card:scale-110",loading:k?"eager":"lazy",priority:k,sizes:"(max-width: 640px) 80px, (max-width: 768px) 112px, 144px",src:D}),V>0&&(0,r.jsx)("div",{className:"absolute left-1 top-1 z-10",children:(0,r.jsxs)("div",{className:"rounded-full font-bold shadow-lg text-[8px] sm:text-[10px] px-1.5 py-0.5",style:{backgroundColor:q,color:"white",textShadow:"0 1px 2px rgba(0,0,0,0.8)",border:"1px solid rgba(0,0,0,0.2)"},children:["-",V,"%"]})})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-center flex-1 min-w-0 space-y-1.5",children:[(0,r.jsx)("h3",{className:"font-heading text-sm sm:text-base md:text-lg font-semibold leading-tight group-hover/card:text-brand-primary transition-colors break-words",itemProp:"name",children:(0,x.HS)(e.translations,"Name",H,e.name||"Unnamed Product")}),(0,r.jsxs)("div",{itemScope:!0,className:"flex items-baseline gap-2",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:_.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:W?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsx)("span",{className:"font-primary text-lg sm:text-xl md:text-2xl font-bold",style:{color:q},children:(0,u.$g)(_)}),T&&(0,r.jsx)("span",{className:"font-primary text-xs sm:text-sm text-muted-foreground/70 line-through",children:(0,u.$g)(e.price)})]}),v&&(0,r.jsx)("div",{className:"flex items-center gap-1.5",children:W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse shadow-sm shadow-emerald-500/50"}),(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-emerald-700 dark:text-emerald-400 font-medium",children:U("common.inStock","In Stock")})]}):e.isComingSoon?(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-purple-600 dark:text-purple-400 font-medium",children:U("common.comingSoon","Coming Soon")}):(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-xs text-muted-foreground",children:U("cart.outOfStock","Out of Stock")})}),o&&I&&e.condition!==p.kW.New&&(0,r.jsx)("span",{className:"font-primary text-[11px] px-2 py-0.5 rounded-full border border-border text-muted-foreground dark:border-border dark:text-muted-foreground w-fit",children:I})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 flex-shrink-0 pointer-events-auto",children:[s&&(0,r.jsx)(g.$,{"aria-label":z?U("productCard.compare.remove","Remove from compare"):U("productCard.compare.add","Add to compare"),className:(0,u.cn)("h-10 w-10 sm:h-12 sm:w-12 rounded-xl","backdrop-blur-md shadow-lg transition-all"),size:"icon",style:z?{backgroundColor:q,color:"white"}:{},type:"button",variant:"secondary",onClick:$,children:(0,r.jsx)(l.A,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),a&&(0,r.jsx)(g.$,{"aria-label":N?U("productCard.wishlist.remove","Remove from wishlist"):U("productCard.wishlist.add","Add to wishlist"),className:(0,u.cn)("h-10 w-10 sm:h-12 sm:w-12 rounded-xl","backdrop-blur-md shadow-lg transition-all"),disabled:y,size:"icon",style:N?{backgroundColor:"#ef4444",color:"white"}:{},type:"button",variant:"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e)},children:(0,r.jsx)(i.A,{className:(0,u.cn)("h-4 w-4 sm:h-5 sm:w-5",N&&"fill-current")})}),(0,r.jsx)(g.$,{"aria-label":U("productCard.cart.add","Add to cart"),className:(0,u.cn)("h-10 w-10 sm:h-12 sm:w-12 rounded-xl text-white","shadow-lg transition-all hover:scale-110 active:scale-95"),disabled:!W||e.isComingSoon||C,size:"icon",style:{backgroundColor:q},type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P()},children:C?(0,r.jsx)(c.A,{className:"h-4 w-4 sm:h-5 sm:w-5 animate-spin"}):(0,r.jsx)(m.A,{className:"h-4 w-4 sm:h-5 sm:w-5"})})]})]})]}):(0,r.jsxs)("article",{itemScope:!0,className:(0,u.cn)("group/card relative overflow-hidden transition-[colors,box-shadow,opacity] duration-300 flex flex-col h-full","rounded-2xl border bg-brand-surface border-border/60 dark:bg-brand-surfacedark dark:border-border/60",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:(0,x.HS)(e.translations,"Name",H,e.name||"Product"),itemProp:"name"}),D&&(0,r.jsx)("meta",{content:D,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":`View ${e.name||"product"} details`,className:"absolute inset-0 z-0",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),tabIndex:-1}),(0,r.jsx)(b.Wu,{className:"p-0 relative pointer-events-none",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)(h,{className:(0,u.cn)("overflow-hidden bg-brand-muted dark:bg-brand-muteddark/60 rounded-t-2xl relative [will-change:transform]"),ratio:1,onMouseLeave:R,children:[(0,r.jsx)(n.default,{ref:K,fill:!0,alt:e.name||"Product image",className:"object-cover transition-opacity duration-300",loading:k?"eager":"lazy",priority:k,sizes:es,src:D}),"swap"===j&&E&&(0,r.jsx)(d(),{className:"hidden md:block absolute inset-0 z-10 pointer-events-auto",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),onMouseEnter:L,onMouseLeave:R}),"zones"===j&&E&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 z-10 gap-[2px] pointer-events-none",children:O.slice(0,4).map((t,a)=>(0,r.jsx)(d(),{className:"flex-1 hover:bg-background/5 transition-[background-color] duration-200 relative pointer-events-auto",href:(0,f.nb)(`/product/${e.slug||e.id}`,H),onMouseEnter:()=>M(a),children:(0,r.jsx)("div",{className:"absolute inset-0 opacity-0 hover:opacity-100 transition-opacity border-x border-border/10 pointer-events-none"})},a))}),"zones"===j&&E&&B&&3===S&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 bg-background/50 items-center justify-center backdrop-blur-sm z-20 pointer-events-none",children:(0,r.jsxs)("span",{className:"text-foreground text-2xl sm:text-3xl md:text-4xl font-bold",children:["+",F]})}),"zones"===j&&E&&(0,r.jsx)("div",{className:"hidden md:flex absolute bottom-3 left-0 right-0 items-center justify-center gap-1 pointer-events-none z-20 px-4",children:O.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,u.cn)("h-1 flex-1 max-w-16 rounded-full transition-all duration-200",S===t?"shadow-md":"bg-background/40"),style:S===t?{backgroundColor:q}:{backgroundColor:"rgba(var(--background), 0.4)"}},t))})]}),V>0&&(0,r.jsx)("div",{className:"absolute left-3 top-3 pointer-events-none z-20",children:(0,r.jsxs)("div",{className:(0,u.cn)("rounded-full font-bold shadow-lg",er),style:{backgroundColor:q,color:"white",textShadow:"0 1px 2px rgba(0,0,0,0.8), 0 0 1px rgba(0,0,0,0.9)",border:"1px solid rgba(0,0,0,0.2)"},children:["-",V,"%"]})}),(s||a)&&(0,r.jsxs)("div",{className:"absolute right-3 top-3 flex gap-2 pointer-events-auto z-30",children:[s&&(0,r.jsxs)(g.$,{className:(0,u.cn)("rounded-full shadow-lg transition-all",Q,"bg-background/95 hover:bg-background dark:bg-muted/90 dark:hover:bg-muted"),size:"icon",style:z?{backgroundColor:q,color:"white"}:{},type:"button",variant:"secondary",onClick:$,children:[(0,r.jsx)(l.A,{className:(0,u.cn)(et)}),(0,r.jsx)("span",{className:"font-primary sr-only",children:z?U("product.removeFromCompare","Remove from compare"):U("product.addToCompare","Add to compare")})]}),a&&(0,r.jsxs)(g.$,{className:(0,u.cn)("rounded-full shadow-lg transition-all",Q,"bg-background/95 hover:bg-background dark:bg-muted/90 dark:hover:bg-muted"),disabled:y,size:"icon",style:N?{backgroundColor:"#ef4444",color:"white"}:{},type:"button",variant:"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e)},children:[(0,r.jsx)(i.A,{className:(0,u.cn)(et,N&&"fill-current")}),(0,r.jsx)("span",{className:"font-primary sr-only",children:N?U("product.removeFromWishlist","Remove from wishlist"):U("product.addToWishlist","Add to wishlist")})]})]})]})}),(0,r.jsxs)(b.wL,{className:(0,u.cn)("relative pointer-events-none flex flex-col items-start gap-3 flex-1",X),children:[(0,r.jsxs)("div",{itemScope:!0,className:"flex items-baseline gap-2 w-full flex-nowrap",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:_.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:W?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsx)("span",{className:(0,u.cn)(Z,"font-primary font-extrabold tabular-nums whitespace-nowrap","inline-block text-right min-w-[6ch]"),style:{color:q},children:(0,u.$g)(_)}),T&&(0,r.jsx)("span",{className:(0,u.cn)(Y,"font-primary line-through tabular-nums whitespace-nowrap opacity-60 text-text-subtle dark:text-text-subtledark","inline-block text-right min-w-[6ch]"),children:(0,u.$g)(e.price)})]}),(0,r.jsxs)("div",{className:"mt-auto w-full space-y-2.5",children:[(0,r.jsx)("h3",{className:(0,u.cn)("text-[13px] sm:text-[14px] font-semibold leading-snug","font-heading text-text-light dark:text-text-lightdark w-full",ea,"break-words"),itemProp:"name",children:(0,x.HS)(e.translations,"Name",H,e.name||"Unnamed Product")}),o&&I&&e.condition!==p.kW.New&&(0,r.jsx)("span",{className:"font-primary text-[11px] px-2 py-0.5 rounded-full border border-border/60 text-text-subtle dark:border-border/60 dark:text-text-subtledark line-clamp-2",children:I}),(0,r.jsx)("div",{className:"w-full flex items-stretch gap-2 pointer-events-auto",children:(0,r.jsx)(g.$,{className:(0,u.cn)(ee,"flex-1 rounded-xl font-semibold shadow-md flex items-center justify-center gap-2 text-white","transition-all",""),disabled:!W||e.isComingSoon||C,style:{backgroundColor:q},type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P()},children:C?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{className:(0,u.cn)(et,"animate-spin")}),(0,r.jsx)("span",{className:"font-primary hidden sm:inline",children:U("cart.checking","Checking...")}),(0,r.jsx)("span",{className:"font-primary sm:hidden",children:U("cart.wait","Wait...")})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:(0,u.cn)(et)}),(0,r.jsx)("span",{className:"font-primary",children:U("common.addToCartShort","Add")})]})})})]})]})]})});function k({viewMode:e="grid"}){return"list"===e?(0,r.jsxs)("div",{className:"animate-pulse flex items-center gap-2 sm:gap-3 md:gap-4 w-full p-2 sm:p-3 md:p-4 rounded-2xl border bg-brand-surface border-border/60 dark:bg-brand-surfacedark dark:border-border/60 shadow-sm",children:[(0,r.jsx)("div",{className:"w-16 h-16 sm:w-20 sm:h-20 md:w-28 md:h-28 flex-shrink-0 rounded-xl bg-brand-muted dark:bg-brand-muteddark"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5 sm:space-y-2",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("div",{className:"h-3 sm:h-4 w-full rounded-md bg-brand-muted dark:bg-brand-muteddark"}),(0,r.jsx)("div",{className:"h-3 sm:h-4 w-3/4 rounded-md bg-brand-muted dark:bg-brand-muteddark"})]}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1.5 sm:gap-2 pt-0.5 sm:pt-1",children:[(0,r.jsx)("div",{className:"h-5 sm:h-6 w-16 sm:w-20 rounded-md bg-brand-muted dark:bg-brand-muteddark"}),(0,r.jsx)("div",{className:"h-3 sm:h-4 w-12 sm:w-14 rounded-md bg-brand-muted/60 dark:bg-brand-muteddark/60"})]}),(0,r.jsx)("div",{className:"h-2.5 sm:h-3 w-12 sm:w-16 rounded-full bg-brand-muted dark:bg-brand-muteddark"})]}),(0,r.jsx)("div",{className:"flex-shrink-0 h-8 w-8 sm:h-10 sm:w-10 md:h-12 md:w-12 rounded-xl bg-brand-muted dark:bg-brand-muteddark"})]}):(0,r.jsxs)("div",{className:(0,u.cn)("overflow-hidden rounded-2xl border bg-brand-surface border-border/60 dark:bg-brand-surfacedark dark:border-border/60"),children:[(0,r.jsx)(b.Wu,{className:"p-0",children:(0,r.jsxs)("div",{className:(0,u.cn)("relative overflow-hidden bg-brand-muted dark:bg-brand-muteddark/60 rounded-t-2xl"),children:[(0,r.jsx)(h,{ratio:1,children:(0,r.jsx)("div",{className:"h-full w-full animate-pulse bg-brand-muted dark:bg-brand-muteddark"})}),(0,r.jsx)("div",{className:"absolute left-3 top-3 h-6 w-14 rounded-full animate-pulse bg-muted/60 dark:bg-muted/60"}),(0,r.jsxs)("div",{className:"absolute right-3 top-3 flex gap-2",children:[(0,r.jsx)("div",{className:"h-9 w-9 rounded-full animate-pulse bg-background/80 dark:bg-muted/80"}),(0,r.jsx)("div",{className:"h-9 w-9 rounded-full animate-pulse bg-background/80 dark:bg-muted/80"})]})]})}),(0,r.jsxs)(b.wL,{className:"flex flex-col items-start gap-3 p-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2 w-full",children:[(0,r.jsx)("div",{className:"h-6 w-20 rounded animate-pulse bg-brand-muted dark:bg-brand-muteddark"}),(0,r.jsx)("div",{className:"h-4 w-14 rounded animate-pulse bg-brand-muted/60 dark:bg-brand-muteddark/60"})]}),(0,r.jsxs)("div",{className:"w-full space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-full rounded animate-pulse bg-brand-muted dark:bg-brand-muteddark"}),(0,r.jsx)("div",{className:"h-4 w-2/3 rounded animate-pulse bg-brand-muted dark:bg-brand-muteddark"})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)("div",{className:"h-11 w-full rounded-xl animate-pulse bg-brand-muted dark:bg-brand-muteddark"})})]})]})}},32985:(e,t,a)=>{a.d(t,{JO:()=>d,OT:()=>o,nb:()=>i,rI:()=>l});var r=a(86181);let s={en:"gb",ka:"ge",fr:"fr",de:"de",es:"es",it:"it",pt:"pt",ru:"ru",ar:"sa",zh:"cn",ja:"jp",ko:"kr",nl:"nl",sv:"se",no:"no",da:"dk",fi:"fi",pl:"pl",tr:"tr",uk:"ua",cs:"cz",sk:"sk",ro:"ro",hu:"hu",bg:"bg",hr:"hr",sr:"rs",sl:"si",el:"gr",he:"il",hi:"in",bn:"bd",ur:"pk",fa:"ir",th:"th",vi:"vn",id:"id",ms:"my",az:"az",kk:"kz",uz:"uz",hy:"am",lt:"lt",lv:"lv",et:"ee",be:"by",mk:"mk",sq:"al",bs:"ba",af:"za",sw:"ke",am:"et",mn:"mn",my:"mm",km:"kh",lo:"la",si:"lk",ne:"np",ta:"lk",te:"in",ml:"in",kn:"in",mr:"in",gu:"in",pa:"in",is:"is",ga:"ie",cy:"gb-wls",eu:"es",ca:"es",lb:"lu",mt:"mt",tl:"ph",tk:"tm",ky:"kg",tg:"tj",ps:"af",so:"so",ha:"ng",yo:"ng",ig:"ng",zu:"za",xh:"za",rw:"rw",mg:"mg"};function o(e){return({en:"English",ka:"ქართული",fr:"Fran\xe7ais",de:"Deutsch",es:"Espa\xf1ol",it:"Italiano",pt:"Portugu\xeas",ru:"Русский",ar:"العربية",zh:"中文",ja:"日本語",ko:"한국어",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",pl:"Polski",tr:"T\xfcrk\xe7e",uk:"Українська",cs:"Čeština",sk:"Slovenčina",ro:"Rom\xe2nă",hu:"Magyar",bg:"Български",hr:"Hrvatski",sr:"Srpski",sl:"Slovenščina",el:"Ελληνικά",he:"עברית",hi:"हिन्दी",bn:"বাংলা",ur:"اردو",fa:"فارسی",th:"ไทย",vi:"Tiếng Việt",id:"Indonesia",ms:"Melayu",az:"Azərbaycan",kk:"Қазақша",uz:"O'zbek",hy:"Հայերեն",lt:"Lietuvių",lv:"Latviešu",et:"Eesti",be:"Беларуская",mk:"Македонски",sq:"Shqip",bs:"Bosanski",af:"Afrikaans",sw:"Kiswahili",am:"አማርኛ",mn:"Монгол",my:"မြန်မာ",km:"ខ្មែរ",lo:"ລາວ",si:"සිංහල",ne:"नेपाली",ta:"தமிழ்",te:"తెలుగు",ml:"മലയാളം",kn:"ಕನ್ನಡ",mr:"मराठी",gu:"ગુજરાતી",pa:"ਪੰਜਾਬੀ",is:"\xcdslenska",ga:"Gaeilge",cy:"Cymraeg",eu:"Euskara",ca:"Catal\xe0",lb:"L\xebtzebuergesch",mt:"Malti",tl:"Filipino",tk:"T\xfcrkmen",ky:"Кыргызча",tg:"Тоҷикӣ",ps:"پښتو",so:"Soomaali",ha:"Hausa",yo:"Yor\xf9b\xe1",ig:"Igbo",zu:"isiZulu",xh:"isiXhosa",rw:"Kinyarwanda",mg:"Malagasy"})[e.toLowerCase()]||e.toUpperCase()}function d(e){let t=n(e).toUpperCase();return 2!==t.length?"\uD83C\uDF10":t.split("").map(e=>String.fromCodePoint(e.charCodeAt(0)+127397)).join("")}function n(e){return s[e.toLowerCase()]??e.toLowerCase()}function l(e,t=40){let a=n(e);return`https://flagcdn.com/w${t}/${a}.png`}function i(e,t,a){let s=t.toLowerCase(),o=s===(a||r.q).toLowerCase(),d=e.startsWith("/")?e:`/${e}`;return o?d.startsWith(`/${s}/`)?d.substring(s.length+1)||"/":d===`/${s}`?"/":d:d.startsWith(`/${s}/`)||d===`/${s}`?d:`/${s}${d}`}},46253:(e,t,a)=>{a.d(t,{X:()=>n,f:()=>d});var r=a(95155),s=a(12115);let o=(0,s.createContext)(null);function d({children:e}){let[t,a]=(0,s.useState)(!1),[d,n]=(0,s.useState)("login"),l=(e="login")=>{n(e),a(!0)},i=()=>{a(!1),n("login")},c=(0,s.useMemo)(()=>({isOpen:t,mode:d,open:l,close:i,setMode:n}),[t,d]);return(0,r.jsx)(o.Provider,{value:c,children:e})}function n(){let e=(0,s.useContext)(o);if(!e)throw Error("useAuthModal must be used within AuthModalProvider");return e}},60129:(e,t,a)=>{a.d(t,{VL:()=>r,kW:()=>s,zL:()=>o});var r=function(e){return e[e.InStock=0]="InStock",e[e.OutOfStock=1]="OutOfStock",e}({}),s=function(e){return e[e.New=0]="New",e[e.Used=1]="Used",e[e.LikeNew=2]="LikeNew",e}({}),o=function(e){return e[e.CheckboxList=0]="CheckboxList",e[e.RadioButtonList=1]="RadioButtonList",e[e.RangeSlider=2]="RangeSlider",e[e.NumericInput=3]="NumericInput",e[e.BooleanSwitch=4]="BooleanSwitch",e[e.SearchBox=5]="SearchBox",e[e.DateRangePicker=6]="DateRangePicker",e}({})},68933:(e,t,a)=>{a.r(t),a.d(t,{Variant4Skeleton:()=>h,default:()=>g});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(35299),i=a(10512),c=a(83457),m=a(37965),u=a(20063),x=a(25016),p=a(84935),b=a(32985);let g=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:o=!0,showConditionBadge:g=!0,showStockStatus:h=!0,priority:f=!1,viewMode:v="grid",hoverMode:k="zones",inWishlist:w,wishlistLoading:j,addingToCart:N,currentImageIndex:y,inCompare:C,handleAddToCart:S,handleWishlistToggle:z,handleCompareToggle:P,handleImageHover:A,handleImageLeave:$,handleSwapEnter:M,images:R,imageUrl:L,hasMultipleImages:O,hasDiscount:D,displayPrice:E,discountPercent:T,isInStock:_,conditionLabel:V,hasMoreImages:W,remainingImagesCount:I,sizeStyles:B,themeColor:F,currentLang:G,t:q,imgRef:H}){let U=(0,u.useRouter)(),[K,J]=(0,s.useState)(!1),Z=async()=>{await S(),U.push((0,b.nb)("/cart",G))},Y=(0,b.nb)(`/product/${e.slug||e.id}`,G),X=(0,p.HS)(e.translations,"Name",G,e.name||"Product");return"list"===v?(0,r.jsxs)("article",{itemScope:!0,className:(0,x.cn)("group/card relative overflow-hidden transition-all duration-500","bg-background dark:bg-background border border-border/50 dark:border-border","hover:border-border dark:hover:border-border",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:X,itemProp:"name"}),L&&(0,r.jsx)("meta",{content:L,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":q("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Y}),(0,r.jsxs)("div",{className:"flex items-stretch gap-4 sm:gap-6 p-3 sm:p-4 relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center gap-4 sm:gap-6 min-w-0 pointer-events-auto",children:[(0,r.jsxs)("div",{className:"relative w-24 h-24 sm:w-32 sm:h-32 md:w-40 md:h-40 flex-shrink-0 bg-muted/50 dark:bg-background/40",children:[(0,r.jsx)(n.default,{ref:H,fill:!0,alt:e.name||"Product image",className:"object-cover transition-transform duration-700 group-hover/card:scale-105",loading:f?"eager":"lazy",priority:f,sizes:"(max-width: 640px) 96px, (max-width: 768px) 128px, 160px",src:L}),T>0&&(0,r.jsxs)("div",{className:"absolute left-0 top-0 bg-foreground text-background dark:bg-foreground dark:text-background text-[10px] font-bold px-2 py-1 uppercase tracking-tighter",children:["-",T,"%"]})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-center flex-1 min-w-0",children:[(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground dark:text-muted-foreground mb-1",children:e.brand?.name||"Premium"}),(0,r.jsx)("h3",{className:"font-heading text-sm sm:text-lg md:text-xl font-medium text-foreground dark:text-foreground break-words leading-tight mb-2",itemProp:"name",children:X}),(0,r.jsxs)("div",{itemScope:!0,className:"flex items-center gap-3",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:E.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:_?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsx)("span",{className:"font-primary text-base sm:text-xl font-light tracking-tight text-foreground",children:(0,x.$g)(E)}),D&&(0,r.jsx)("span",{className:"font-primary text-xs text-muted-foreground line-through font-light",children:(0,x.$g)(e.price)})]}),h&&(0,r.jsx)("div",{className:"mt-2",children:_?(0,r.jsx)("span",{className:"text-[9px] uppercase tracking-widest text-emerald-500 font-medium",children:q("common.inStock","Available Now")}):(0,r.jsx)("span",{className:"text-[9px] uppercase tracking-widest text-muted-foreground",children:e.isComingSoon?q("common.comingSoon","Coming Soon"):q("cart.outOfStock","Unavailable")})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-center gap-3 pointer-events-auto",children:[(0,r.jsx)("button",{"aria-label":q("productCard.cart.add","Add to cart"),className:"p-3 bg-foreground dark:bg-foreground text-background dark:text-background transition-colors hover:bg-foreground/90 disabled:opacity-50",disabled:!_||e.isComingSoon||N,onClick:e=>{e.preventDefault(),e.stopPropagation(),S()},children:N?(0,r.jsx)(l.A,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(i.A,{className:"w-4 h-4"})}),a&&(0,r.jsx)("button",{"aria-label":w?q("productCard.wishlist.remove","Remove from wishlist"):q("productCard.wishlist.add","Add to wishlist"),className:(0,x.cn)("p-3 border border-border dark:border-border transition-colors hover:bg-muted/50 dark:hover:bg-background/5",w&&"bg-muted/50 dark:bg-background/5"),disabled:j,onClick:e=>{e.preventDefault(),e.stopPropagation(),z(e)},children:(0,r.jsx)(c.A,{className:(0,x.cn)("w-4 h-4",w&&"fill-foreground dark:fill-foreground")})})]})]})]}):(0,r.jsxs)("article",{itemScope:!0,className:(0,x.cn)("group/card relative flex flex-col h-full transition-all duration-700","bg-background dark:bg-background border border-transparent","hover:shadow-[0_20px_50px_rgba(var(--foreground),0.08)] dark:hover:shadow-[0_20px_50px_rgba(0,0,0,0.3)]",t),itemType:"https://schema.org/Product",children:[(0,r.jsx)("meta",{content:X,itemProp:"name"}),L&&(0,r.jsx)("meta",{content:L,itemProp:"image"}),(0,r.jsx)(d(),{"aria-label":q("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Y}),(0,r.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-muted/50 dark:bg-background/30 z-10",onMouseEnter:()=>J(!0),onMouseLeave:()=>{J(!1),$()},children:[(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",children:(0,r.jsx)(n.default,{ref:H,fill:!0,alt:e.name||"Product image",className:(0,x.cn)("object-cover transition-all duration-[1.5s] ease-out",K?"scale-110 blur-[2px] opacity-60":"scale-100 blur-0 opacity-100"),loading:f?"eager":"lazy",priority:f,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",src:L})}),O&&"zones"===k&&(0,r.jsx)("div",{className:"hidden md:flex absolute inset-0 z-20 pointer-events-none",children:R.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:"flex-1 pointer-events-auto",onMouseEnter:()=>A(t)},t))}),"...",a&&(0,r.jsx)("button",{"aria-label":w?q("productCard.wishlist.remove","Remove from wishlist"):q("productCard.wishlist.add","Add to wishlist"),className:"absolute right-4 top-4 z-40 p-2.5 bg-background/90 dark:bg-background/90 backdrop-blur-md rounded-none border border-border/5 hover:bg-background dark:hover:bg-background transition-all pointer-events-auto",disabled:j,onClick:e=>{e.preventDefault(),e.stopPropagation(),z(e)},children:j?(0,r.jsx)(l.A,{className:(0,x.cn)("animate-spin",B.iconDimension)}):(0,r.jsx)(c.A,{className:(0,x.cn)("transition-colors",B.iconDimension,w?"fill-red-500 text-red-500":"text-muted-foreground dark:text-muted-foreground")})}),(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-3 sm:p-4 translate-y-full group-hover/card:translate-y-0 transition-transform duration-500 ease-out bg-background/80 backdrop-blur-xl z-40 hidden md:flex gap-3",children:[(0,r.jsx)("button",{"aria-label":q("productCard.cart.add","Add to cart"),className:"flex-1 py-3 bg-foreground text-background font-bold text-[9px] uppercase tracking-[0.2em] hover:opacity-90 active:scale-[0.98] transition-all pointer-events-auto",disabled:!_||e.isComingSoon||N,onClick:e=>{e.preventDefault(),e.stopPropagation(),S()},children:N?q("cart.adding","..."):q("cart.addToCart","Add to Bag")}),(0,r.jsx)("button",{"aria-label":q("cart.buy","Buy Now"),className:"flex-1 py-3 bg-transparent text-foreground font-bold text-[9px] uppercase tracking-[0.2em] hover:bg-foreground/10 active:scale-[0.98] transition-all pointer-events-auto border border-foreground/30",disabled:!_||e.isComingSoon,onClick:e=>{e.preventDefault(),e.stopPropagation(),Z()},children:q("cart.buy","Buy Now")})]}),g&&(0,r.jsx)("div",{className:"absolute left-4 top-4 z-40 pointer-events-none",children:(0,r.jsx)("span",{className:"bg-foreground text-background dark:bg-foreground dark:text-background text-[9px] font-bold uppercase px-2 py-1 tracking-[0.15em] border border-border",children:V})}),o&&(0,r.jsx)("button",{"aria-label":C?q("productCard.compare.remove","Remove from compare"):q("productCard.compare.add","Add to compare"),className:(0,x.cn)("absolute right-4 top-16 z-40 p-2.5 bg-background/90 dark:bg-background/90 backdrop-blur-md rounded-none border border-border/5 hover:bg-background dark:hover:bg-background transition-all pointer-events-auto",C&&"text-foreground dark:text-foreground ring-1 ring-border dark:ring-border"),onClick:P,children:(0,r.jsx)(m.A,{className:B.iconDimension})}),"zones"===k&&O&&(0,r.jsx)("div",{className:"absolute bottom-6 left-0 right-0 flex items-center justify-center gap-2 pointer-events-none z-30 px-10 opacity-0 group-hover/card:opacity-100 transition-opacity duration-700",children:R.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,x.cn)("h-[1px] flex-1 transition-all duration-500",y===t?"bg-foreground scale-y-150":"bg-foreground/30")},t))})]}),(0,r.jsxs)("div",{className:"p-3 sm:p-5 md:p-6 flex flex-col items-start text-left flex-1",children:[(0,r.jsxs)(d(),{className:"w-full group/title",href:Y,children:[(0,r.jsx)("span",{className:"text-[8px] sm:text-[10px] uppercase tracking-[0.2em] sm:tracking-[0.3em] text-muted-foreground dark:text-muted-foreground mb-1 sm:mb-2 block transition-colors group-hover/title:text-foreground dark:group-hover/title:text-foreground",children:e.brand?.name||"Premium Collection"}),(0,r.jsx)("h3",{className:"font-heading text-xs sm:text-base md:text-lg font-semibold text-foreground dark:text-foreground break-words min-h-0 sm:min-h-[2.5rem] md:min-h-[3rem] mb-2 sm:mb-3 leading-tight tracking-tight",itemProp:"name",children:X}),(0,r.jsxs)("div",{itemScope:!0,className:"flex flex-col items-start gap-1",itemProp:"offers",itemType:"https://schema.org/Offer",children:[(0,r.jsx)("meta",{content:"₾",itemProp:"priceCurrency"}),(0,r.jsx)("meta",{content:E.toString(),itemProp:"price"}),(0,r.jsx)("meta",{content:_?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemProp:"availability"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("span",{className:"font-primary text-sm sm:text-xl font-bold tracking-tight text-foreground dark:text-foreground",children:(0,x.$g)(E)}),D&&(0,r.jsx)("span",{className:"font-primary text-[10px] sm:text-sm text-muted-foreground line-through font-light",children:(0,x.$g)(e.price)})]})]})]}),(0,r.jsxs)("div",{className:"mt-4 w-full flex md:hidden gap-2",children:[(0,r.jsx)("button",{"aria-label":q("productCard.cart.add","Add to cart"),className:"flex-1 py-2.5 bg-foreground text-background dark:bg-foreground dark:text-background font-bold text-[9px] uppercase tracking-[0.15em] active:scale-[0.98] transition-all",disabled:!_||e.isComingSoon||N,onClick:e=>{e.preventDefault(),e.stopPropagation(),S()},children:N?q("cart.adding","..."):q("cart.addToCart","Add")}),(0,r.jsx)("button",{"aria-label":q("cart.buy","Buy Now"),className:"flex-1 py-2.5 bg-transparent text-foreground dark:text-foreground border border-border dark:border-border font-bold text-[9px] uppercase tracking-[0.15em] active:scale-[0.98] transition-all",disabled:!_||e.isComingSoon,onClick:e=>{e.preventDefault(),e.stopPropagation(),Z()},children:q("cart.buy","Buy")})]})]})]})});function h({viewMode:e="grid"}){return"list"===e?(0,r.jsx)("div",{className:"animate-pulse bg-background dark:bg-background border border-border/50 dark:border-border p-3 sm:p-4",children:(0,r.jsxs)("div",{className:"flex items-stretch gap-4 sm:gap-6",children:[(0,r.jsx)("div",{className:"w-24 h-24 sm:w-32 sm:h-32 md:w-40 md:h-40 bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col justify-center space-y-3",children:[(0,r.jsx)("div",{className:"h-2 w-20 bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("div",{className:"h-4 w-full bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-2/3 bg-muted dark:bg-muted"})]}),(0,r.jsx)("div",{className:"h-5 w-24 bg-muted dark:bg-muted"})]})]})}):(0,r.jsxs)("div",{className:"animate-pulse bg-background dark:bg-background border border-transparent",children:[(0,r.jsx)("div",{className:"aspect-square bg-muted/50 dark:bg-background/30"}),(0,r.jsxs)("div",{className:"p-4 sm:p-6 flex flex-col items-start space-y-3",children:[(0,r.jsx)("div",{className:"h-2 w-24 bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"space-y-1.5 w-full",children:[(0,r.jsx)("div",{className:"h-4 w-full bg-muted dark:bg-muted"}),(0,r.jsx)("div",{className:"h-4 w-2/3 bg-muted dark:bg-muted mx-auto"})]}),(0,r.jsx)("div",{className:"h-5 w-20 bg-muted dark:bg-muted"})]})]})}},73971:(e,t,a)=>{a.r(t),a.d(t,{Variant6Skeleton:()=>v,default:()=>k});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(35299),i=a(10512),c=a(83457),m=a(37965),u=a(57828),x=a(6191),p=a(64555),b=a(25016),g=a(84935),h=a(32985),f=a(7588);let v=()=>(0,r.jsxs)("div",{className:"animate-pulse bg-background dark:bg-background flex flex-col h-full border border-border/50",children:[(0,r.jsx)("div",{className:"aspect-square bg-muted dark:bg-muted"}),(0,r.jsxs)("div",{className:"p-5 flex flex-col flex-1",children:[(0,r.jsx)("div",{className:"h-2 w-16 bg-muted dark:bg-muted mb-3"}),(0,r.jsx)("div",{className:"h-4 w-full bg-muted dark:bg-muted mb-2"}),(0,r.jsx)("div",{className:"h-4 w-24 bg-muted dark:bg-muted mt-auto"})]})]}),k=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:o=!0,showConditionBadge:v=!0,showStockStatus:k=!0,priority:w=!1,viewMode:j="grid",hoverMode:N="zones",inWishlist:y,wishlistLoading:C,addingToCart:S,currentImageIndex:z,inCompare:P,handleAddToCart:A,handleWishlistToggle:$,handleCompareToggle:M,handleImageHover:R,handleImageLeave:L,handleSwapEnter:O,images:D,imageUrl:E,hasMultipleImages:T,hasDiscount:_,displayPrice:V,discountPercent:W,isInStock:I,conditionLabel:B,sizeStyles:F,themeColor:G,currentLang:q,t:H,imgRef:U}){let[K,J]=(0,s.useState)(!1),Z=(0,f.a)(),Y=(0,h.nb)(`/product/${e.slug||e.id}`,q),X=(0,g.HS)(e.translations,"Name",q,e.name||"Product"),Q=e.brand?.name||"Boutique",ee=e.productFacetValues?.find(e=>(e.facetName?.toLowerCase()?.includes("volume")||e.facetName?.toLowerCase()?.includes("size"))&&e.isSelected)?.facetValue;return"list"===j?(0,r.jsxs)("article",{className:(0,b.cn)("group/card relative overflow-hidden bg-background dark:bg-background border border-border dark:border-border hover:shadow-xl transition-all duration-500",t),children:[(0,r.jsx)(d(),{"aria-label":H("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Y}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row h-full relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"relative w-full md:w-64 h-64 md:h-auto bg-muted/50 dark:bg-background overflow-hidden pointer-events-auto",onMouseEnter:O,onMouseLeave:L,children:[(0,r.jsx)(n.default,{ref:U,fill:!0,alt:e.name||"Product image",className:"object-contain p-4 transition-transform duration-700 group-hover/card:scale-110",loading:w?"eager":"lazy",src:E||"/placeholder.png"}),_&&(0,r.jsxs)("div",{className:"absolute top-4 left-4 z-10 text-white text-[10px] font-bold px-2 py-1 rounded-sm uppercase tracking-tighter",style:{backgroundColor:G},children:["-",W,"%"]})]}),(0,r.jsxs)("div",{className:"flex-1 p-6 flex flex-col justify-between",children:[(0,r.jsxs)("div",{className:"pointer-events-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em] font-bold",style:{color:G},children:Q}),ee&&(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground font-medium",children:ee})]}),(0,r.jsx)("h3",{className:"text-2xl font-medium tracking-tight text-foreground dark:text-foreground mb-2",children:X}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,r.jsx)("span",{className:"text-xl font-bold",children:(0,b.$g)(V,"GEL")}),_&&(0,r.jsx)("span",{className:"text-sm text-muted-foreground line-through",children:(0,b.$g)(e.price,"GEL")})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-3 mt-4 pointer-events-auto",children:[(0,r.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),A()},disabled:S||!I,className:"flex-1 md:flex-none px-8 py-3 text-white text-xs uppercase tracking-[0.2em] font-bold transition-opacity hover:opacity-90 flex items-center justify-center gap-2 shadow-md",style:{backgroundColor:G},"aria-label":H("productCard.cart.add","Add to cart"),children:[S?(0,r.jsx)(l.A,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(i.A,{className:"w-4 h-4"}),H("common.addToCart","Add to Cart")]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[a&&(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),$(e)},disabled:C,className:"p-3 border border-border hover:bg-muted/50 transition-colors rounded-none","aria-label":y?H("productCard.wishlist.remove","Remove from wishlist"):H("productCard.wishlist.add","Add to wishlist"),children:(0,r.jsx)(c.A,{className:(0,b.cn)("w-4 h-4",y&&"fill-red-500 stroke-red-500")})}),o&&(0,r.jsx)("button",{onClick:M,className:(0,b.cn)("p-3 border border-border hover:bg-muted/50 transition-colors rounded-none",P&&"text-white"),style:P?{backgroundColor:G,borderColor:G}:{},"aria-label":P?H("productCard.compare.remove","Remove from compare"):H("productCard.compare.add","Add to compare"),children:(0,r.jsx)(m.A,{className:"w-4 h-4"})})]})]})]})]})]}):(0,r.jsxs)("article",{className:(0,b.cn)("group/card relative flex flex-col h-full bg-background dark:bg-background overflow-hidden","transition-all duration-500 border border-transparent hover:border-border dark:hover:border-border",t),onMouseEnter:()=>J(!0),onMouseLeave:()=>{J(!1),L()},children:[(0,r.jsx)(d(),{"aria-label":H("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Y}),(0,r.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-muted/50 dark:bg-background/50 z-10",children:[(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",children:(0,r.jsx)(n.default,{ref:U,src:E||"/placeholder.png",alt:X,fill:!0,className:(0,b.cn)("object-contain p-4 transition-all duration-1000 ease-out",K?"scale-110 rotate-1":"scale-100 rotate-0"),priority:w,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"})}),!Z&&(0,r.jsxs)("div",{className:"absolute top-4 right-4 z-20 flex flex-col gap-2 translate-x-12 group-hover/card:translate-x-0 transition-transform duration-500 ease-out",children:[a&&(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),$(e)},disabled:C,className:(0,b.cn)("p-2.5 rounded-full bg-background/90 backdrop-blur-md shadow-sm hover:bg-background transition-all",y?"text-red-500":"text-muted-foreground hover:text-foreground"),"aria-label":y?H("productCard.wishlist.remove","Remove from wishlist"):H("productCard.wishlist.add","Add to wishlist"),children:C?(0,r.jsx)(l.A,{className:(0,b.cn)("animate-spin",F.iconDimension)}):(0,r.jsx)(c.A,{className:(0,b.cn)(F.iconDimension,y&&"fill-current")})}),o&&(0,r.jsx)("button",{onClick:M,className:(0,b.cn)("p-2.5 rounded-full bg-background/90 backdrop-blur-md shadow-sm hover:bg-background transition-all",P?"text-white":"text-muted-foreground hover:text-foreground"),style:P?{backgroundColor:G}:{},"aria-label":P?H("productCard.compare.remove","Remove from compare"):H("productCard.compare.add","Add to compare"),children:(0,r.jsx)(m.A,{className:F.iconDimension})}),(0,r.jsx)(d(),{href:Y,title:H("productCard.details.view","View product details"),"aria-label":H("productCard.details.view","View product details"),className:"p-2.5 rounded-full bg-background/90 backdrop-blur-md shadow-sm hover:bg-background text-muted-foreground hover:text-foreground transition-all flex items-center justify-center",children:(0,r.jsx)(u.A,{className:F.iconDimension})})]}),!Z&&T&&"zones"===N&&(0,r.jsx)("div",{className:"absolute inset-0 z-20 flex",children:D.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:"flex-1 cursor-pointer pointer-events-auto",onMouseEnter:()=>R(t)},t))}),Z&&(0,r.jsxs)("div",{className:"absolute bottom-4 left-4 right-4 z-30 flex justify-between items-center pointer-events-none",children:[(0,r.jsx)("div",{className:"flex gap-2 pointer-events-auto",children:a&&(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),$(e)},className:"p-3 rounded-full bg-background text-foreground shadow-xl active:scale-90 transition-transform border border-border","aria-label":y?H("productCard.wishlist.remove","Remove from wishlist"):H("productCard.wishlist.add","Add to wishlist"),children:(0,r.jsx)(c.A,{className:(0,b.cn)(F.iconDimension,y&&"fill-red-500 text-red-500")})})}),(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),A()},disabled:S||!I,className:"p-3 rounded-full text-white shadow-xl pointer-events-auto active:scale-90 transition-transform",style:{backgroundColor:G},"aria-label":H("productCard.cart.add","Add to cart"),children:S?(0,r.jsx)(l.A,{className:(0,b.cn)("animate-spin",F.iconDimension)}):(0,r.jsx)(x.A,{className:F.iconDimension})})]}),T&&(0,r.jsx)("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 flex gap-1 z-30",children:D.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,b.cn)("w-1 h-1 rounded-full transition-all duration-300",z===t?"dark:bg-white w-3":"bg-muted dark:bg-muted"),style:z===t?{backgroundColor:G}:{}},t))})]}),(0,r.jsxs)("div",{className:"p-3 sm:p-5 md:p-6 flex flex-col items-start text-left flex-1 relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"flex justify-between items-start mb-1 sm:mb-2 w-full",children:[(0,r.jsx)("span",{className:"text-[8px] sm:text-[9px] uppercase tracking-[0.2em] sm:tracking-[0.25em] font-bold",style:{color:G},children:Q}),ee&&(0,r.jsx)("span",{className:"text-[8px] sm:text-[9px] font-bold text-muted-foreground uppercase",children:ee})]}),(0,r.jsx)("h3",{className:"text-xs sm:text-base md:text-lg font-medium tracking-tight text-foreground dark:text-foreground break-words leading-tight min-h-0 sm:min-h-[2.5rem] md:min-h-[3rem] group-hover/title:underline decoration-border underline-offset-4",children:X}),(0,r.jsxs)("div",{className:"mt-2 sm:mt-4 flex items-end justify-between gap-2 w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start min-w-0",children:[(0,r.jsx)("span",{className:"text-sm sm:text-xl font-bold tracking-tighter whitespace-nowrap tabular-nums",children:(0,b.$g)(V,"GEL")}),_&&(0,r.jsx)("span",{className:"text-[10px] sm:text-[11px] text-muted-foreground line-through whitespace-nowrap tabular-nums",children:(0,b.$g)(e.price,"GEL")})]}),!Z&&(0,r.jsx)("div",{className:"overflow-hidden flex-shrink-0 pointer-events-auto",children:(0,r.jsx)(p.P.button,{initial:!1,animate:{y:50*!K},transition:{type:"spring",damping:20,stiffness:300},onClick:e=>{e.preventDefault(),e.stopPropagation(),A()},disabled:S||!I,className:"flex items-center justify-center w-10 h-10 text-white transition-opacity hover:opacity-90 rounded-full shadow-lg disabled:opacity-50",style:{backgroundColor:G},"aria-label":H("productCard.cart.add","Add to cart"),title:H("productCard.cart.add","Add to cart"),children:S?(0,r.jsx)(l.A,{className:(0,b.cn)("animate-spin",F.iconDimension)}):(0,r.jsx)(i.A,{className:F.iconDimension})})})]})]}),(0,r.jsxs)("div",{className:"px-3 sm:px-5 py-1 sm:py-2 border-t border-border/50 dark:border-border flex items-center justify-between relative z-10 pointer-events-none",children:[v?(0,r.jsx)("span",{className:"text-[8px] uppercase tracking-widest font-bold text-muted-foreground",children:B}):(0,r.jsx)("div",{}),k&&(0,r.jsx)("span",{className:(0,b.cn)("text-[8px] uppercase tracking-widest font-bold",I?"text-emerald-500":"text-muted-foreground"),children:I?H("common.inStock","In Stock"):H("common.soldOut","Sold Out")})]})]})})},74561:(e,t,a)=>{a.r(t),a.d(t,{Variant8Skeleton:()=>h,default:()=>f});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(37965),i=a(35299),c=a(83457),m=a(10512),u=a(25016),x=a(84935),p=a(32985),b=a(7588),g=a(60129);let h=()=>(0,r.jsxs)("div",{className:"animate-pulse flex flex-col h-full",children:[(0,r.jsx)("div",{className:"aspect-square bg-muted dark:bg-muted rounded-2xl mb-3"}),(0,r.jsxs)("div",{className:"space-y-2 px-1",children:[(0,r.jsx)("div",{className:"h-2 w-1/3 bg-muted dark:bg-muted rounded mb-1"}),(0,r.jsx)("div",{className:"h-3 w-3/4 bg-muted dark:bg-muted rounded"}),(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("div",{className:"h-5 w-16 bg-muted dark:bg-muted rounded"}),(0,r.jsx)("div",{className:"h-6 w-6 bg-muted dark:bg-muted rounded-lg"})]})]})]}),f=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:s=!0,showStockStatus:o=!0,showConditionBadge:h=!0,priority:f=!1,viewMode:v="grid",hoverMode:k="zones",inWishlist:w,wishlistLoading:j,addingToCart:N,currentImageIndex:y,inCompare:C,handleAddToCart:S,handleWishlistToggle:z,handleCompareToggle:P,handleImageHover:A,handleImageLeave:$,handleSwapEnter:M,images:R,imageUrl:L,hasMultipleImages:O,hasDiscount:D,displayPrice:E,discountPercent:T,isInStock:_,conditionLabel:V,themeColor:W,currentLang:I,t:B,imgRef:F}){(0,b.a)();let G=(0,p.nb)(`/product/${e.slug||e.id}`,I),q=(0,x.HS)(e.translations,"Name",I,e.name||"Product"),H=e.brand?.name||"";return"list"===v?(0,r.jsxs)("article",{className:(0,u.cn)("group/card relative flex items-center gap-4 p-3 transition-all","bg-background dark:bg-background border-b border-border/50 dark:border-border",t),children:[(0,r.jsx)(d(),{"aria-label":B("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:G}),(0,r.jsx)("div",{className:"relative w-20 h-20 sm:w-24 sm:h-24 flex-shrink-0 overflow-hidden bg-muted/30 z-10 pointer-events-none",children:(0,r.jsx)(n.default,{ref:F,fill:!0,alt:q,className:"object-cover transition-transform duration-500 group-hover/card:scale-110",loading:f?"eager":"lazy",src:L})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 z-10 pointer-events-none",children:[H&&(0,r.jsx)("span",{className:"text-[8px] uppercase tracking-widest text-muted-foreground mb-0.5 block",children:H}),(0,r.jsx)("h3",{className:"text-sm sm:text-base font-medium text-foreground break-words mb-1",children:q}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base font-bold",style:{color:W},children:(0,u.$g)(E)}),D&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground line-through",children:(0,u.$g)(e.price)})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 z-10 pointer-events-auto",children:[s&&(0,r.jsx)("button",{onClick:P,className:(0,u.cn)("p-2 rounded-full transition-colors",C?"text-brand-primary":"text-muted-foreground hover:text-foreground"),children:(0,r.jsx)(l.A,{className:"w-4 h-4"})}),a&&(0,r.jsx)("button",{disabled:j,onClick:z,className:(0,u.cn)("p-2 rounded-full transition-colors",w?"text-red-500":"text-muted-foreground hover:text-foreground"),children:j?(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(c.A,{className:(0,u.cn)("w-4 h-4",w&&"fill-current")})}),(0,r.jsx)("button",{disabled:N,onClick:S,className:"p-2.5 rounded-full text-white shadow-sm transition-transform active:scale-90",style:{backgroundColor:W},children:N?(0,r.jsx)(i.A,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(m.A,{className:"w-4 h-4"})})]})]}):(0,r.jsxs)("article",{className:(0,u.cn)("group/card relative flex flex-col h-full bg-background dark:bg-background transition-all",t),children:[(0,r.jsx)(d(),{"aria-label":B("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:G}),(0,r.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-muted/20 mb-3 z-10",onMouseLeave:$,children:[(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",children:(0,r.jsx)(n.default,{ref:F,fill:!0,alt:q,className:"object-cover transition-all duration-700 group-hover/card:scale-105",loading:f?"eager":"lazy",src:L})}),O&&(0,r.jsxs)(r.Fragment,{children:["swap"===k&&(0,r.jsx)("div",{className:"absolute inset-0 z-10 cursor-pointer pointer-events-auto",onMouseEnter:M}),"zones"===k&&(0,r.jsx)("div",{className:"absolute inset-0 z-10 flex pointer-events-none",children:R.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:"flex-1 cursor-pointer pointer-events-auto",onMouseEnter:()=>A(t)},t))})]}),(0,r.jsxs)("div",{className:"absolute top-3 right-3 flex flex-col gap-2 z-20 pointer-events-auto",children:[a&&(0,r.jsx)("button",{onClick:z,disabled:j,className:"p-2 rounded-full bg-white/80 dark:bg-black/40 backdrop-blur-md shadow-sm transition-all hover:scale-110",children:j?(0,r.jsx)(i.A,{className:"w-3.5 h-3.5 animate-spin"}):(0,r.jsx)(c.A,{className:(0,u.cn)("w-3.5 h-3.5",w?"fill-red-500 text-red-500":"text-foreground")})}),s&&(0,r.jsx)("button",{onClick:P,className:(0,u.cn)("p-2 rounded-full bg-white/80 dark:bg-black/40 backdrop-blur-md shadow-sm transition-all hover:scale-110",C?"text-brand-primary":"text-foreground"),children:(0,r.jsx)(l.A,{className:"w-3.5 h-3.5"})})]}),(0,r.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-1.5 z-20 pointer-events-none",children:[D&&(0,r.jsxs)("span",{className:"text-[9px] font-black uppercase px-2 py-0.5 rounded-md text-white shadow-sm",style:{backgroundColor:W},children:["-",T,"%"]}),o&&!_&&(0,r.jsx)("span",{className:"text-[8px] font-bold uppercase px-2 py-0.5 rounded-md bg-black/60 text-white backdrop-blur-sm",children:e.isComingSoon?B("common.comingSoon","Soon"):B("cart.outOfStock","Out")})]}),O&&"zones"===k&&(0,r.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1 z-20 pointer-events-none",children:R.slice(0,4).map((e,t)=>(0,r.jsx)("div",{className:(0,u.cn)("w-1 h-1 rounded-full transition-all duration-300",y===t?"bg-white w-3":"bg-white/40"),style:y===t?{backgroundColor:W}:{}},t))})]}),(0,r.jsxs)("div",{className:"flex flex-col items-start px-1 z-10 pointer-events-none",children:[H&&(0,r.jsx)("span",{className:"text-[9px] uppercase tracking-[0.2em] text-muted-foreground mb-1 block",children:H}),(0,r.jsx)("h3",{className:"text-xs sm:text-sm font-medium text-foreground dark:text-foreground break-words mb-1 transition-colors group-hover/card:text-brand-primary",children:q}),(0,r.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("span",{className:"text-sm sm:text-base font-black tracking-tight text-foreground dark:text-foreground",children:(0,u.$g)(E)}),D&&(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground line-through font-normal",children:(0,u.$g)(e.price)})]}),(0,r.jsx)("button",{onClick:S,disabled:N,className:"pointer-events-auto translate-y-2 opacity-0 group-hover/card:translate-y-0 group-hover/card:opacity-100 transition-all duration-300",children:(0,r.jsx)("div",{className:"p-1.5 rounded-lg bg-brand-primary/10 text-brand-primary hover:bg-brand-primary hover:text-white transition-colors",children:N?(0,r.jsx)(i.A,{className:"w-3.5 h-3.5 animate-spin"}):(0,r.jsx)(m.A,{className:"w-3.5 h-3.5"})})})]}),h&&V&&e.condition!==g.kW.New&&(0,r.jsx)("span",{className:"mt-1 text-[8px] uppercase tracking-widest text-muted-foreground/60",children:V})]})]})})},77046:(e,t,a)=>{a.r(t),a.d(t,{Variant7Skeleton:()=>f,default:()=>v});var r=a(95155),s=a(12115),o=a(52619),d=a.n(o),n=a(15239),l=a(11503),i=a(35299),c=a(10512),m=a(83457),u=a(37965),x=a(6191),p=a(25016),b=a(84935),g=a(32985),h=a(7588);let f=()=>(0,r.jsxs)("div",{className:"animate-pulse bg-background dark:bg-background/40 rounded-[2rem] flex flex-col h-full border border-border/50 p-2 sm:p-3",children:[(0,r.jsx)("div",{className:"aspect-square bg-background dark:bg-background rounded-3xl"}),(0,r.jsxs)("div",{className:"px-1 sm:px-3 pt-3 flex flex-col flex-1",children:[(0,r.jsx)("div",{className:"h-2 w-20 bg-muted dark:bg-muted mb-3 rounded-full"}),(0,r.jsx)("div",{className:"h-4 w-full bg-muted dark:bg-muted mb-2 rounded-full"}),(0,r.jsx)("div",{className:"h-4 w-32 bg-muted dark:bg-muted mb-4 rounded-full"}),(0,r.jsx)("div",{className:"h-6 w-24 bg-muted dark:bg-muted mt-auto rounded-full"})]})]}),v=(0,s.memo)(function({product:e,className:t,showWishlist:a=!0,showCompare:o=!0,showConditionBadge:f=!0,showStockStatus:v=!0,priority:k=!1,viewMode:w="grid",hoverMode:j="zones",inWishlist:N,wishlistLoading:y,addingToCart:C,currentImageIndex:S,inCompare:z,handleAddToCart:P,handleWishlistToggle:A,handleCompareToggle:$,handleImageHover:M,handleImageLeave:R,handleSwapEnter:L,images:O,imageUrl:D,hasMultipleImages:E,hasDiscount:T,displayPrice:_,discountPercent:V,isInStock:W,conditionLabel:I,sizeStyles:B,themeColor:F,currentLang:G,t:q,imgRef:H}){let[U,K]=(0,s.useState)(!1),J=(0,h.a)(),Z=(0,g.nb)(`/product/${e.slug||e.id}`,G),Y=(0,b.HS)(e.translations,"Name",G,e.name||"Product"),X=e.brand?.name||"Farm Fresh",Q=e.productFacetValues?.find(e=>(e.facetName?.toLowerCase()?.includes("weight")||e.facetName?.toLowerCase()?.includes("volume")||e.facetName?.toLowerCase()?.includes("size")||e.facetName?.toLowerCase()?.includes("pack"))&&e.isSelected)?.facetValue,ee=e.productFacetValues?.some(e=>e.facetName?.toLowerCase().includes("organic")&&e.isSelected)||e.description?.toLowerCase().includes("organic")||!0;return"list"===w?(0,r.jsxs)("article",{className:(0,p.cn)("group/card relative overflow-hidden transition-all duration-500","bg-background dark:bg-background/60 rounded-3xl border border-border/60 dark:border-border",t),children:[(0,r.jsx)(d(),{"aria-label":q("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Z}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-6 p-3 sm:p-5 items-center relative z-10 pointer-events-none",children:[(0,r.jsxs)("div",{className:"relative w-full sm:w-36 h-48 sm:h-36 flex-shrink-0 rounded-2xl overflow-hidden bg-background dark:bg-background pointer-events-auto",onMouseEnter:L,onMouseLeave:R,children:[(0,r.jsx)(n.default,{ref:H,fill:!0,alt:e.name||"Product image",className:"object-contain p-3 transition-transform duration-700 group-hover/card:scale-105",loading:k?"eager":"lazy",src:D||"/placeholder.png"}),ee&&(0,r.jsx)("div",{className:"absolute top-2 left-2 z-10 bg-emerald-500/10 text-emerald-700 dark:text-emerald-400 p-1.5 rounded-full backdrop-blur-sm",children:(0,r.jsx)(l.A,{className:"w-3.5 h-3.5"})})]}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 text-center sm:text-left",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center sm:justify-start gap-2 mb-1.5",children:[(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground dark:text-muted-foreground font-medium",children:X}),Q&&(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground px-1.5 border-l border-border/50 dark:border-border",children:Q})]}),(0,r.jsx)("h3",{className:"text-lg sm:text-xl font-serif tracking-tight text-foreground dark:text-foreground",children:Y}),(0,r.jsx)("div",{className:"flex items-center justify-center sm:justify-start gap-4 mt-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-xl font-bold text-foreground dark:text-foreground",children:(0,p.$g)(_,"GEL")}),T&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground line-through",children:(0,p.$g)(e.price,"GEL")})]})})]}),(0,r.jsxs)("div",{className:"flex sm:flex-col gap-2 w-full sm:w-auto mt-4 sm:mt-0 pointer-events-auto",children:[(0,r.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),P()},disabled:C||!W,className:"flex-1 sm:flex-none p-3.5 rounded-2xl text-white transition-transform active:scale-95 disabled:opacity-50 flex items-center justify-center gap-2 shadow-sm",style:{backgroundColor:F},"aria-label":q("productCard.cart.add","Add to cart"),children:[C?(0,r.jsx)(i.A,{className:"w-5 h-5 animate-spin"}):(0,r.jsx)(c.A,{className:"w-5 h-5"}),(0,r.jsx)("span",{className:"sm:hidden text-xs uppercase tracking-widest font-bold",children:q("common.addToCart","Add to Cart")})]}),(0,r.jsx)("div",{className:"flex gap-2 flex-1 sm:flex-none",children:a&&(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e)},disabled:y,className:"flex-1 sm:flex-none p-3.5 rounded-2xl bg-background dark:bg-background border border-border dark:border-border hover:border-red-200 transition-colors flex items-center justify-center","aria-label":N?q("productCard.wishlist.remove","Remove from wishlist"):q("productCard.wishlist.add","Add to wishlist"),children:(0,r.jsx)(m.A,{className:(0,p.cn)("w-5 h-5 text-muted-foreground",N&&"fill-red-500 text-red-500")})})})]})]})]}):(0,r.jsxs)("article",{className:(0,p.cn)("group/card relative flex flex-col h-full bg-background dark:bg-background/40 rounded-[2rem] overflow-hidden","transition-all duration-500 border border-border/50 dark:border-border/50 hover:shadow-lg hover:border-border dark:hover:border-border",t),onMouseEnter:()=>K(!0),onMouseLeave:()=>{K(!1),R()},children:[(0,r.jsx)(d(),{"aria-label":q("productCard.details.view","View product details"),className:"absolute inset-0 z-0",href:Z}),(0,r.jsxs)("div",{className:"absolute top-4 left-4 z-20 flex flex-col gap-2 pointer-events-none",children:[T&&(0,r.jsxs)("span",{className:"text-[10px] font-bold tracking-widest uppercase px-3 py-1.5 rounded-full text-white shadow-sm self-start",style:{backgroundColor:F},children:["-",V,"%"]}),ee&&(0,r.jsxs)("span",{className:"text-[10px] font-medium tracking-wide flex items-center gap-1 px-2.5 py-1 rounded-full bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-300 self-start shadow-sm border border-emerald-2