(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{1489:(e,t,s)=>{"use strict";s.d(t,{Jp:()=>i,Sn:()=>c,ik:()=>u,mr:()=>d,oW:()=>m,pd:()=>x,vw:()=>o,wR:()=>n,yY:()=>h,zu:()=>a});var r=s(5155);s(2115);var l=s(5772);function a({className:e="h-14 w-auto"}){return(0,r.jsx)("div",{className:`relative inline-flex items-center justify-center shrink-0 ${e}`,children:(0,r.jsx)(l.default,{src:"/images/logo/Logo_1.png",alt:"KNOTELLE — Handmade Crochet Creations",width:360,height:420,priority:!0,className:"object-contain w-auto h-full max-h-full drop-shadow-xs transition-transform duration-300 group-hover:scale-105"})})}function n({className:e="w-24 h-6 text-[#E7D1CC]"}){return(0,r.jsxs)("svg",{viewBox:"0 0 120 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M60 14C45 14 35 7 20 7C10 7 2 12 2 14C2 16 10 21 20 21C35 21 45 14 60 14Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M60 14C75 14 85 7 100 7C110 7 118 12 118 14C118 16 110 21 100 21C85 21 75 14 60 14Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"60",cy:"14",r:"3",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"35",cy:"11",r:"1.5",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"85",cy:"11",r:"1.5",fill:"currentColor"})]})}function o({className:e="w-5 h-5 text-[#913638]"}){return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"7",r:"3.5",fill:"currentColor",fillOpacity:"0.3",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("circle",{cx:"16.5",cy:"10.5",r:"3.5",fill:"currentColor",fillOpacity:"0.3",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("circle",{cx:"15",cy:"16",r:"3.5",fill:"currentColor",fillOpacity:"0.3",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("circle",{cx:"9",cy:"16",r:"3.5",fill:"currentColor",fillOpacity:"0.3",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("circle",{cx:"7.5",cy:"10.5",r:"3.5",fill:"currentColor",fillOpacity:"0.3",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"2.5",fill:"#C89B61"})]})}function i({text:e="Good Things Are Handmade",className:t=""}){return(0,r.jsxs)("div",{className:`relative bg-[#FFF9F6] border border-[#E7D1CC] rounded-xl p-3 shadow-md text-center max-w-[150px] rotate-2 ${t}`,children:[(0,r.jsxs)("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 flex flex-col items-center",children:[(0,r.jsx)("div",{className:"w-1.5 h-3 bg-[#C89B61]/80 rounded-t"}),(0,r.jsx)("div",{className:"w-2.5 h-2.5 rounded-full bg-white border border-[#E7D1CC]"})]}),(0,r.jsxs)("div",{className:"pt-1",children:[(0,r.jsx)("p",{className:"font-script-boutique text-base sm:text-lg font-bold text-[#2E211E] leading-tight",children:e}),(0,r.jsx)("span",{className:"text-xs text-[#913638] block mt-0.5",children:"♡"})]})]})}function c({className:e="w-16 h-16 text-[#EFB8B0]"}){return(0,r.jsxs)("svg",{viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M32 54C32 54 10 40 10 24C10 16 16 10 24 10C28.5 10 31.5 13 32 14C32.5 13 35.5 10 40 10C48 10 54 16 54 24C54 40 32 54 32 54Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M16 22C24 26 40 26 48 22",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M14 30C26 36 38 36 50 30",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M20 40C28 44 36 44 44 40",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}function d({className:e="w-4 h-4"}){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,r.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})})}function x({className:e="w-5 h-5"}){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:(0,r.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}function h({className:e="w-5 h-5"}){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"})})}function m({className:e="w-5 h-5"}){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})}function u({className:e="w-5 h-5"}){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:(0,r.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}},1743:()=>{},2599:(e,t,s)=>{"use strict";s.d(t,{NT:()=>o,sf:()=>n,uK:()=>a,yF:()=>i});var r=s(2115);let l={};function a(e,t){if(void 0!==l[e])return l[e];try{let t=localStorage.getItem(e);if(t){let s=JSON.parse(t);return l[e]=s,s}}catch(e){}return t}function n(e,t){l[e]=t;try{localStorage.setItem(e,JSON.stringify(t)),window.dispatchEvent(new CustomEvent("knotelle_cache_updated",{detail:{key:e}}))}catch(e){}}function o(e,t){return[(0,r.useSyncExternalStore)(t=>{let s=s=>{(s.key===e||"knotelle_media_updated"===s.key||"knotelle_contact_updated"===s.key||"knotelle_about_updated"===s.key||"knotelle_media_sync"===s.key)&&t()},r=s=>{let r=s?.detail;r&&r.key!==e||t()};return window.addEventListener("storage",s),window.addEventListener("knotelle_cache_updated",r),()=>{window.removeEventListener("storage",s),window.removeEventListener("knotelle_cache_updated",r)}},()=>a(e,t),()=>t),t=>{n(e,t)}]}function i(e){let t=null;if("BroadcastChannel"in window)try{(t=new BroadcastChannel("knotelle_media_sync")).onmessage=t=>{let s=t?.data?.type||"";("MEDIA_UPDATED"===s||"knotelle_media_updated"===s||"knotelle_contact_updated"===s||"knotelle_about_updated"===s||"KNOTELLE_SYNC"===s)&&e()}}catch(e){console.warn("BroadcastChannel error:",e)}let s=t=>{("knotelle_media_updated"===t.key||"knotelle_media_sync"===t.key||t.key?.startsWith("knotelle_cache_"))&&e()},r=()=>{"visible"===document.visibilityState&&e()};return window.addEventListener("storage",s),window.addEventListener("focus",e),document.addEventListener("visibilitychange",r),()=>{t&&t.close(),window.removeEventListener("storage",s),window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",r)}}},4439:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,1743,23)),Promise.resolve().then(s.bind(s,7097)),Promise.resolve().then(s.bind(s,8374)),Promise.resolve().then(s.bind(s,7694)),Promise.resolve().then(s.bind(s,8311)),Promise.resolve().then(s.bind(s,9782)),Promise.resolve().then(s.bind(s,4710)),Promise.resolve().then(s.bind(s,4734)),Promise.resolve().then(s.bind(s,8221)),Promise.resolve().then(s.bind(s,1507))},4710:(e,t,s)=>{"use strict";s.d(t,{CartProvider:()=>c,_:()=>d});var r=s(5155),l=s(2115),a=s(8221),n=s(7529),o=s(4734);let i=(0,l.createContext)(void 0);function c({children:e}){let{media:t}=(0,o.r)(),[s,d]=(0,l.useState)([]),[x,h]=(0,l.useState)(!1),[m,u]=(0,l.useState)(""),[p,f]=(0,l.useState)(0),[b,v]=(0,l.useState)(!1),{showToast:g}=(0,a.d)(),j=Number(t?.global?.free_shipping_min??t?.settings?.free_shipping_min??999),w=Number(t?.global?.default_shipping_rate??t?.settings?.default_shipping_rate??99);(0,l.useEffect)(()=>{try{let e=localStorage.getItem("knotelle_cart");e&&d(JSON.parse(e));let t=localStorage.getItem("knotelle_promo");if(t){let e=JSON.parse(t);u(e.code),f(e.discount)}}catch(e){console.error("Failed to load cart from localStorage",e)}finally{v(!0)}},[]),(0,l.useEffect)(()=>{if(b)try{localStorage.setItem("knotelle_cart",JSON.stringify(s))}catch(e){console.error("Failed to save cart to localStorage",e)}},[s,b]);let N=(e,t=!1)=>{d(t=>t.filter(t=>t.id!==e)),t||g("Item Removed","Your cart has been updated.","info")},C=async e=>{let t=e.trim().toUpperCase();if(!t)return!1;let r=s.reduce((e,t)=>e+t.price*t.quantity,0);try{let e=await (0,n.oY)(t,r);if(e&&e.success){u(t);let s=10;return e.offer?.offer_type==="percentage"&&e.offer?.discount_value?s=Number(e.offer.discount_value):e.discount_amount&&r>0&&(s=Math.round(e.discount_amount/r*100)),f(s),localStorage.setItem("knotelle_promo",JSON.stringify({code:t,discount:s})),g("Coupon Applied! \uD83C\uDF89",e.message||`${t} discount applied.`,"success"),!0}if(e&&e.message&&!e.message.includes("Connection error"))return g("Coupon Error",e.message,"error"),!1}catch(e){console.warn("Backend offer validation network fallback",e)}return"KNOTELLE10"===t||"WELCOME10"===t?(u(t),f(10),localStorage.setItem("knotelle_promo",JSON.stringify({code:t,discount:10})),g("Coupon Applied! \uD83C\uDF89","10% handmade love discount applied to your order.","success"),!0):"STITCH20"===t?(u(t),f(20),localStorage.setItem("knotelle_promo",JSON.stringify({code:t,discount:20})),g("Special Discount! ✨","20% discount applied to your order.","success"),!0):(g("Invalid Coupon Code","Please check the code and try again.","error"),!1)},E=s.reduce((e,t)=>e+t.quantity,0),y=s.reduce((e,t)=>e+t.price*t.quantity,0),k=Math.round(y*p/100),F=y>=j||0===y?0:w,_=Math.max(0,y-k+F),D=Math.max(0,j-y);return(0,r.jsx)(i.Provider,{value:{items:s,addItem:(e,t=1,s)=>{var r;let l,a,n,o=(r=e.id,l=s?.color?.name||"default",a=s?.size||"default",n=s?.customText||"",`${r}-${l}-${a}-${n}`);d(r=>{let l=r.findIndex(e=>e.id===o);if(!(l>-1))return[...r,{id:o,productId:e.id,product:e,quantity:t,customization:s,price:e.price}];{let e=[...r];return e[l].quantity+=t,e}}),g("Added to Your Cart \uD83E\uDDFA",`${t}x ${e.name} ready for you.`,"cart")},removeItem:N,updateQuantity:(e,t)=>{t<=0?N(e):d(s=>s.map(s=>s.id===e?{...s,quantity:t}:s))},clearCart:()=>{d([]),u(""),f(0),localStorage.removeItem("knotelle_cart"),localStorage.removeItem("knotelle_promo")},isCartOpen:x,setIsCartOpen:h,totalItemsCount:E,subtotal:y,shipping:F,discount:k,total:_,promoCode:m,applyPromoCode:C,removePromoCode:()=>{u(""),f(0),localStorage.removeItem("knotelle_promo"),g("Coupon Removed","Discount has been removed.","info")},freeShippingThreshold:j,amountToFreeShipping:D},children:e})}function d(){let e=(0,l.useContext)(i);if(!e)throw Error("useCart must be used within a CartProvider");return e}},4734:(e,t,s)=>{"use strict";s.d(t,{MediaProvider:()=>c,r:()=>d});var r=s(5155),l=s(2115),a=s(7529),n=s(2599);let o="knotelle_cache_media",i=(0,l.createContext)(void 0);function c({children:e,initialMedia:t=null}){let[s,d]=(0,l.useState)(t),[x,h]=(0,l.useState)(!t),[m,u]=(0,l.useState)(Date.now()),p=(0,l.useRef)(!1);(0,l.useEffect)(()=>{try{let e=localStorage.getItem(o);if(e){let t=JSON.parse(e);t&&d(t)}}catch{}},[]);let f=(0,l.useCallback)(async()=>{if(!p.current){p.current=!0;try{let e=await (0,a.Z2)();if(e){d(e),u(Date.now());try{localStorage.setItem(o,JSON.stringify(e))}catch{}}}catch(e){console.warn("Live media sync notice:",e)}finally{p.current=!1,h(!1)}}},[]);return(0,l.useEffect)(()=>{f();let e=(0,n.yF)(()=>{f()}),t=setInterval(()=>{"visible"===document.visibilityState&&f()},6e4);return()=>{e(),clearInterval(t)}},[f]),(0,r.jsx)(i.Provider,{value:{media:s,loading:x,lastUpdated:m,refetchMedia:f},children:e})}function d(){let e=(0,l.useContext)(i);if(!e)throw Error("useWebsiteMedia must be used within a MediaProvider");return e}},7097:(e,t,s)=>{"use strict";s.d(t,{AnnouncementBar:()=>c});var r=s(5155);s(2115);var l=s(8500),a=s.n(l),n=s(6369),o=s(5796),i=s(1489);function c(){return(0,r.jsx)("div",{className:"bg-[#FCE9E5] text-[#786864] text-[11px] sm:text-xs py-1.5 px-4 border-b border-[#E7D1CC] relative z-40 transition-colors",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4 mx-auto sm:mx-0",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1.5 font-medium text-[#2E211E]",children:[(0,r.jsx)("span",{className:"text-[#C89B61]",children:"✨"}),(0,r.jsx)("span",{children:"Handmade with Love"})]}),(0,r.jsx)("span",{className:"text-[#E7D1CC]",children:"|"}),(0,r.jsx)(a(),{href:"/custom-order",prefetch:!0,className:"hover:text-[#913638] transition-colors font-medium",children:"Custom Orders Available"}),(0,r.jsx)("span",{className:"text-[#E7D1CC] hidden md:inline",children:"|"}),(0,r.jsx)("span",{className:"hidden md:inline font-medium",children:"Pan India Shipping"})]}),(0,r.jsxs)("div",{className:"hidden sm:flex items-center gap-4 text-xs font-medium text-[#2E211E]",children:[(0,r.jsxs)("a",{href:"tel:+919773039243",className:"flex items-center gap-1.5 hover:text-[#913638] transition-colors",children:[(0,r.jsx)(n.A,{className:"w-3.5 h-3.5 text-[#913638]"}),(0,r.jsx)("span",{children:"+91 97730 39243"})]}),(0,r.jsx)("a",{href:"mailto:support@knotelle.in","aria-label":"Email support",className:"p-1 hover:text-[#913638] transition-colors",children:(0,r.jsx)(o.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)("a",{href:"https://wa.me/919773039243",target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp chat",className:"p-1 hover:text-[#913638] transition-colors",children:(0,r.jsx)(i.mr,{className:"w-3.5 h-3.5 text-[#913638]"})})]})]})})}},7694:(e,t,s)=>{"use strict";s.d(t,{Footer:()=>f});var r=s(5155),l=s(2115),a=s(5772),n=s(8500),o=s.n(n),i=s(1489),c=s(6369),d=s(5796),x=s(7033),h=s(4734),m=s(7529);let u="/images/categories/footer.png",p="/images/footer/footer.png";function f(){let{media:e}=(0,h.r)(),[t,s]=(0,l.useState)(u);(0,l.useEffect)(()=>{let t=e?.footer?.bg||e?.footer?.image;t&&!t.toLowerCase().includes(".json")&&s((0,m.Me)(t,u))},[e?.footer?.bg,e?.footer?.image]);let n=e?.footer,f=n?.social?.instagram||{url:"https://instagram.com/knotelleindia",is_active:!0},b=n?.social?.facebook||{url:"https://facebook.com/knotelleindia",is_active:!0},v=n?.social?.pinterest||{url:"https://pinterest.com/knotelleindia",is_active:!0},g=n?.social?.youtube||{url:"https://youtube.com/@knotelleindia",is_active:!0},j=n?.social?.twitter||{url:"",is_active:!1},w=n?.social?.linkedin||{url:"",is_active:!1},N=n?.column_1?.title||"Quick Links",C=n?.column_1?.links&&n.column_1.links.length>0?n.column_1.links.filter(e=>!1!==e.is_active):[{label:"Home",url:"/"},{label:"Shop",url:"/shop"},{label:"Custom Order",url:"/custom-order"},{label:"About",url:"/about"},{label:"Contact",url:"/contact"}],E=n?.column_2?.title||"Help",y={"shipping policy":"/contact",shipping:"/contact","return & refund":"/contact/return-refund","return and refund":"/contact/return-refund",returns:"/contact/return-refund",faq:"/contact/faq",faqs:"/contact/faq","frequently asked questions":"/contact/faq","track order":"/account/orders","track your order":"/account/orders",orders:"/account/orders"},k=[{label:"Shipping Policy",url:"/contact"},{label:"Return & Refund",url:"/contact/return-refund"},{label:"FAQ",url:"/contact/faq"},{label:"Track Order",url:"/account/orders"}],F=k;if(n?.column_2?.links&&n.column_2.links.length>0){let e=n.column_2.links.filter(e=>!1!==e.is_active).map(e=>{let t=e.label||e.name||"Help",s=y[t.trim().toLowerCase()];return{label:t,url:s||e.url||e.href||"/contact"}}),t=new Set(e.map(e=>e.label.trim().toLowerCase()));F=[...e,...k.filter(e=>!t.has(e.label.toLowerCase()))]}let _=n?.column_3?.title||"Contact",D=n?.column_3?.phone||"+91 97730 39243",S=n?.column_3?.phone_link||`tel:${D.replace(/\s+/g,"")}`,A=n?.column_3?.email||"support@knotelle.in",L=n?.column_3?.email_link||`mailto:${A}`,T=n?.column_3?.address||"India",z=new Date().getFullYear(),M=n?.copyright_text||"\xa9 {year} Knotelle. All rights reserved.",O=M.includes("{year}")?M.replace("{year}",z.toString()):M,B=n?.heart_tagline||"Made with ♡ for a kinder, cozier world.";return n?.is_active===!1?null:(0,r.jsxs)("footer",{className:"relative w-full overflow-hidden bg-[#FFF9F6] border-t border-[#E7D1CC]/70 pt-12 sm:pt-16 pb-8 text-[#2E211E]",children:[(0,r.jsxs)("div",{className:"absolute inset-0 z-0 w-full h-full",children:[(0,r.jsx)(a.default,{src:t,alt:"KNOTELLE Boutique Footer",fill:!0,quality:100,sizes:"100vw",unoptimized:!0,className:"object-cover object-center lg:object-bottom pointer-events-none",onError:()=>{t!==u?s(u):t!==p&&s(p)}}),(0,r.jsx)("div",{className:"absolute inset-0 bg-[#FFF9F6]/85 sm:bg-[#FFF9F6]/75 md:bg-[#FFF9F6]/60 lg:bg-[#FFF9F6]/40 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-[#D6A79F]/30 to-transparent pointer-events-none"})]}),(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-12 relative z-10",children:[(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row items-start justify-between gap-8 lg:gap-12 mb-12",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start space-y-4 lg:pr-10 lg:border-r lg:border-[#E7D1CC]/90 shrink-0 w-full lg:w-auto",children:[(0,r.jsx)(o(),{href:(0,m.nT)("/"),className:"inline-block group","aria-label":"KNOTELLE Home",children:(0,r.jsx)(i.zu,{className:"h-24 sm:h-28 w-auto drop-shadow-xs"})}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 pt-1.5 text-[#2E211E]",children:[!1!==f.is_active&&f.url&&(0,r.jsx)("a",{href:f.url,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)(i.oW,{className:"w-4.5 h-4.5"})}),!1!==b.is_active&&b.url&&(0,r.jsx)("a",{href:b.url,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)(i.ik,{className:"w-4.5 h-4.5"})}),!1!==v.is_active&&v.url&&(0,r.jsx)("a",{href:v.url,target:"_blank",rel:"noopener noreferrer","aria-label":"Pinterest",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)(i.yY,{className:"w-4.5 h-4.5"})}),!1!==g.is_active&&g.url&&(0,r.jsx)("a",{href:g.url,target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)(i.pd,{className:"w-4.5 h-4.5"})}),!1!==j.is_active&&j.url&&(0,r.jsx)("a",{href:j.url,target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter / X",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),!1!==w.is_active&&w.url&&(0,r.jsx)("a",{href:w.url,target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"w-8.5 h-8.5 rounded-full bg-white/85 backdrop-blur-xs border border-[#E7D1CC] shadow-xs flex items-center justify-center text-[#2E211E] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:scale-108 transition-all active:scale-95",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:(0,r.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.28 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.75M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"})})})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-6 sm:gap-x-10 gap-y-8 sm:gap-y-10 lg:gap-16 w-full flex-1",children:[(0,r.jsxs)("div",{className:"space-y-3.5",children:[(0,r.jsx)("h4",{className:"font-bold text-sm text-[#2E211E]",children:(0,r.jsx)("span",{className:"border-b-2 border-[#913638] pb-1 inline-block",children:N})}),(0,r.jsx)("ul",{className:"space-y-2 text-xs sm:text-sm text-[#5C4D49] font-medium pt-1",children:C.map((e,t)=>{let s=(0,m.nT)(e.url||e.href||"/"),l=e.label||e.name||"Link";return(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:s,prefetch:!0,className:"hover:text-[#913638] transition-colors",children:l})},t)})})]}),(0,r.jsxs)("div",{className:"space-y-3.5",children:[(0,r.jsx)("h4",{className:"font-bold text-sm text-[#2E211E]",children:(0,r.jsx)("span",{className:"border-b-2 border-[#913638] pb-1 inline-block",children:E})}),(0,r.jsx)("ul",{className:"space-y-2 text-xs sm:text-sm text-[#5C4D49] font-medium pt-1",children:F.map((e,t)=>{let s=(0,m.nT)(e.url||"/contact"),l=e.label||"Help";return(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:s,prefetch:!0,className:"hover:text-[#913638] transition-colors",children:l})},t)})})]}),(0,r.jsxs)("div",{className:"col-span-2 sm:col-span-1 space-y-3.5 pt-1 sm:pt-0",children:[(0,r.jsx)("h4",{className:"font-bold text-sm text-[#2E211E]",children:(0,r.jsx)("span",{className:"border-b-2 border-[#913638] pb-1 inline-block",children:_})}),(0,r.jsxs)("div",{className:"space-y-3 text-xs sm:text-sm text-[#5C4D49] font-medium pt-1",children:[(0,r.jsxs)("p",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(c.A,{className:"w-4 h-4 text-[#2E211E] shrink-0"}),(0,r.jsx)("a",{href:S,className:"hover:text-[#913638] transition-colors font-semibold text-[#2E211E]",children:D})]}),(0,r.jsxs)("p",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 text-[#2E211E] shrink-0"}),(0,r.jsx)("a",{href:L,className:"hover:text-[#913638] transition-colors font-semibold text-[#2E211E]",children:A})]}),(0,r.jsxs)("p",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(x.A,{className:"w-4 h-4 text-[#2E211E] shrink-0"}),(0,r.jsx)("span",{className:"font-semibold text-[#2E211E]",children:T})]})]})]})]})]}),(0,r.jsxs)("div",{className:"pt-6 border-t border-[#E7D1CC]/80 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-[#5C4D49] font-medium",children:[(0,r.jsx)("p",{children:O}),(0,r.jsx)("p",{className:"flex items-center gap-1.5",children:(0,r.jsx)("span",{children:B})})]})]})]})}},8311:(e,t,s)=>{"use strict";s.d(t,{Navbar:()=>A});var r=s(5155),l=s(2115),a=s(8500),n=s.n(a),o=s(3321),i=s(467),c=s(6304),d=s(6272),x=s(5377),h=s(4757),m=s(3744),u=s(6720),p=s(1489),f=s(4710),b=s(1507),v=s(4734),g=s(7529),j=s(5772),w=s(9005),N=s(2599);function C({isOpen:e,onClose:t}){let{media:s}=(0,v.r)(),[a,c]=(0,l.useState)(""),h=(0,o.useRouter)(),m=(0,l.useRef)(null),u=(0,l.useMemo)(()=>(0,N.uK)("knotelle_cache_products",[]),[e]),p=(0,l.useMemo)(()=>s?.categories||[],[s?.categories]);if((0,l.useEffect)(()=>(e?(setTimeout(()=>m.current?.focus(),100),document.body.style.overflow="hidden"):document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;let f=a.trim()?u.filter(e=>e.name.toLowerCase().includes(a.toLowerCase())||e.category.toLowerCase().includes(a.toLowerCase())||e.tags?.some(e=>e.toLowerCase().includes(a.toLowerCase()))||e.description?.toLowerCase().includes(a.toLowerCase())).slice(0,5):[],b=a.trim()?p.filter(e=>e.name.toLowerCase().includes(a.toLowerCase())).slice(0,3):[],g=e=>{e.preventDefault(),a.trim()&&(h.push(`/search?q=${encodeURIComponent(a.trim())}`),t())};return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-16 sm:pt-24 px-4 bg-black/40 backdrop-blur-sm animate-in fade-in duration-200",children:(0,r.jsxs)("div",{className:"w-full max-w-2xl bg-white rounded-3xl border border-[#E8D4CF] shadow-2xl overflow-hidden animate-in zoom-in-95 duration-200",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("form",{onSubmit:g,className:"relative flex items-center px-6 py-4 border-b border-[#E8D4CF]",children:[(0,r.jsx)(x.A,{className:"w-5 h-5 text-[#8F3032] mr-3 shrink-0"}),(0,r.jsx)("input",{ref:m,type:"text",value:a,onChange:e=>c(e.target.value),placeholder:"Search crochet flowers, bags, plushies, keychains...",className:"w-full text-base sm:text-lg text-[#3A211D] placeholder-[#78635E]/60 bg-transparent focus:outline-none"}),a&&(0,r.jsx)("button",{type:"button",onClick:()=>c(""),className:"text-[#78635E] hover:text-[#3A211D] p-1.5 mr-2",children:(0,r.jsx)(w.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{type:"button",onClick:t,className:"text-xs font-semibold text-[#8F3032] hover:bg-[#FDE9E5] px-3 py-1.5 rounded-full transition-colors",children:"ESC"})]}),(0,r.jsx)("div",{className:"p-6 max-h-[65vh] overflow-y-auto",children:a.trim()?(0,r.jsxs)("div",{className:"space-y-6",children:[b.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs uppercase font-semibold text-[#78635E] tracking-wider mb-2.5",children:"Categories"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:b.map(e=>(0,r.jsxs)(n(),{href:`/category/${e.slug}`,onClick:t,className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-[#FFF8F5] border border-[#E8D4CF] text-xs font-medium text-[#3A211D] hover:bg-[#FDE9E5] hover:border-[#8F3032] transition-colors",children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)(i.A,{className:"w-3 h-3 text-[#8F3032]"})]},e.id))})]}),f.length>0?(0,r.jsxs)("div",{children:[(0,r.jsxs)("h4",{className:"text-xs uppercase font-semibold text-[#78635E] tracking-wider mb-3",children:["Matching Products (",f.length,")"]}),(0,r.jsx)("div",{className:"divide-y divide-[#E8D4CF]/60",children:f.map(e=>(0,r.jsxs)(n(),{href:`/product/${e.slug}`,onClick:t,className:"flex items-center gap-4 py-3 group hover:bg-[#FFF8F5] -mx-3 px-3 rounded-2xl transition-colors",children:[(0,r.jsx)("div",{className:"relative w-14 h-14 rounded-xl overflow-hidden bg-[#FFF8F5] shrink-0 border border-[#E8D4CF]",children:(0,r.jsx)(j.default,{src:e.images[0],alt:e.name,fill:!0,sizes:"56px",className:"object-cover group-hover:scale-105 transition-transform"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-[#3A211D] group-hover:text-[#8F3032] transition-colors truncate",children:e.name}),(0,r.jsx)("p",{className:"text-xs text-[#78635E] mt-0.5",children:e.category})]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsxs)("p",{className:"text-sm font-bold text-[#8F3032]",children:["₹",e.price.toLocaleString("en-IN")]}),(0,r.jsxs)("span",{className:"text-[11px] text-[#78635E] group-hover:text-[#8F3032] transition-colors flex items-center justify-end gap-1",children:["View ",(0,r.jsx)(i.A,{className:"w-3 h-3"})]})]})]},e.id))}),(0,r.jsx)("div",{className:"mt-4 pt-3 border-t border-[#E8D4CF] text-center",children:(0,r.jsxs)("button",{onClick:g,className:"text-xs font-semibold text-[#8F3032] hover:underline inline-flex items-center gap-1",children:[(0,r.jsxs)("span",{children:['View all results for "',a,'"']}),(0,r.jsx)(i.A,{className:"w-3.5 h-3.5"})]})})]}):(0,r.jsxs)("div",{className:"py-8 text-center",children:[(0,r.jsxs)("p",{className:"text-sm text-[#3A211D] font-medium",children:['No little stitch found for "',a,'"']}),(0,r.jsx)("p",{className:"text-xs text-[#78635E] mt-1",children:'Try searching for "bouquet", "bunny", or request a custom order!'}),(0,r.jsxs)(n(),{href:"/custom-order",onClick:t,className:"inline-flex items-center gap-1.5 mt-4 px-4 py-2 rounded-full bg-[#FDE9E5] text-[#8F3032] text-xs font-semibold hover:bg-[#F4C7C1] transition-colors",children:[(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"}),(0,r.jsx)("span",{children:"Create Custom Order"})]})]})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs uppercase font-semibold text-[#78635E] tracking-wider mb-3",children:"Trending Searches"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-6",children:["Rose Bouquet","Cute Bunny","Granny Square Bag","Sunflower","Phone Cover","Bookmark"].map(e=>(0,r.jsx)("button",{onClick:()=>{c(e)},className:"px-3.5 py-1.5 rounded-full bg-[#FFF8F5] border border-[#E8D4CF] text-xs font-medium text-[#3A211D] hover:bg-[#FDE9E5] hover:border-[#8F3032] transition-colors",children:e},e))}),(0,r.jsxs)("div",{className:"p-4 rounded-2xl bg-[#FFF8F5] border border-[#E8D4CF] flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-[#3A211D]",children:"Can't find what you're dreaming of?"}),(0,r.jsx)("p",{className:"text-[11px] text-[#78635E]",children:"We specialize in custom handmade creations tailored to you."})]}),(0,r.jsx)(n(),{href:"/custom-order",onClick:t,className:"px-3.5 py-1.5 rounded-full bg-[#8F3032] text-white text-xs font-medium hover:bg-[#722628] transition-colors shrink-0 ml-3",children:"Custom Order →"})]})]})})]})})}var E=s(6721),y=s(6145),k=s(7428),F=s(6369),_=s(5796),D=s(9782);function S({isOpen:e,onClose:t,onOpenSearch:s,navLinks:a}){let i=(0,o.usePathname)(),c=(0,o.useRouter)(),{media:j}=(0,v.r)(),{wishlistCount:N}=(0,b.n)(),{totalItemsCount:C}=(0,f._)(),{isLoggedIn:A,user:L,logout:T}=(0,D.A)(),[z,M]=(0,l.useState)("");if((0,l.useEffect)(()=>{let s=e=>{"Escape"===e.key&&t()};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):document.body.style.overflow="unset",()=>{document.body.style.overflow="unset",window.removeEventListener("keydown",s)}},[e,t]),!e)return null;let O=j?.footer,B=j?.categories||[],I=O?.column_3?.phone||"+91 97730 39243",$=O?.column_3?.phone_link||`tel:${I.replace(/\s+/g,"")}`,q=O?.column_3?.email||"support@knotelle.in",P=O?.column_3?.email_link||`mailto:${q}`,W=a&&a.length>0?a:[{name:"Home",href:"/",is_highlighted:!1},{name:"Shop",href:"/shop/",is_highlighted:!1},{name:"Custom Order",href:"/custom-order/",is_highlighted:!0},{name:"About",href:"/about/",is_highlighted:!1},{name:"Contact",href:"/contact/",is_highlighted:!1}],H=e=>s=>{if(t(),s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||0!==s.button)return;let r=e.split("?")[0].split("#")[0].replace(/\/$/,"");setTimeout(()=>{window.location.pathname.split("?")[0].split("#")[0].replace(/\/$/,"")!==r&&(window.location.href=e)},120)};return(0,r.jsxs)("div",{className:"fixed inset-0 z-[100] overflow-hidden",role:"dialog","aria-modal":"true","aria-label":"Mobile Navigation",children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-xs transition-opacity duration-300 ease-out",onClick:t,"aria-hidden":"true"}),(0,r.jsx)("div",{className:"fixed inset-y-0 left-0 max-w-full flex pr-10 sm:pr-14 z-[101]",children:(0,r.jsxs)("div",{className:"w-screen max-w-[330px] sm:max-w-sm bg-white border-r border-[#E7D1CC] shadow-2xl flex flex-col h-full overflow-hidden animate-in slide-in-from-left duration-300",children:[(0,r.jsxs)("div",{className:"p-4 sm:p-5 border-b border-[#E7D1CC]/80 flex items-center justify-between bg-[#FFF9F6]",children:[(0,r.jsx)(n(),{href:(0,g.nT)("/"),prefetch:!0,onClick:t,className:"flex items-center gap-2 group cursor-pointer",children:(0,r.jsx)(p.zu,{className:"h-10 sm:h-12 w-auto"})}),(0,r.jsx)("button",{type:"button",onClick:t,className:"p-2 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] transition-colors cursor-pointer","aria-label":"Close navigation menu",children:(0,r.jsx)(w.A,{className:"w-5 h-5"})})]}),(0,r.jsx)("div",{className:"px-5 pt-4 pb-2 bg-white",children:(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),z.trim()?(t(),c.push((0,g.nT)(`/search?q=${encodeURIComponent(z.trim())}`))):s()},className:"relative",children:[(0,r.jsx)("input",{type:"text",placeholder:"Search handmade crochet...",value:z,onChange:e=>M(e.target.value),className:"w-full bg-[#FFF9F6] border border-[#E7D1CC] rounded-full pl-9 pr-4 py-2 text-xs text-[#2E211E] placeholder:text-[#786864]/70 focus:outline-none focus:border-[#913638] focus:ring-1 focus:ring-[#913638]"}),(0,r.jsx)(x.A,{className:"w-4 h-4 text-[#786864] absolute left-3 top-2.5 pointer-events-none"})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 px-5 py-3 bg-[#FFF9F6] border-y border-[#E7D1CC]/70",children:[(0,r.jsxs)(n(),{href:(0,g.nT)("/account/wishlist"),prefetch:!0,onClick:t,className:"flex items-center justify-center gap-2 py-2 px-3 rounded-xl bg-white border border-[#E7D1CC] text-xs font-semibold text-[#2E211E] hover:bg-[#FCE9E5] hover:text-[#913638] transition-colors shadow-2xs relative",children:[(0,r.jsx)(h.A,{className:"w-3.5 h-3.5 text-[#913638]"}),(0,r.jsx)("span",{children:"Wishlist"}),N>0&&(0,r.jsx)("span",{className:"w-4 h-4 rounded-full bg-[#913638] text-white text-[9px] font-bold flex items-center justify-center ml-1",children:N})]}),(0,r.jsxs)(n(),{href:(0,g.nT)("/cart"),prefetch:!0,onClick:t,className:"flex items-center justify-center gap-2 py-2 px-3 rounded-xl bg-white border border-[#E7D1CC] text-xs font-semibold text-[#2E211E] hover:bg-[#FCE9E5] hover:text-[#913638] transition-colors shadow-2xs relative",children:[(0,r.jsx)(u.A,{className:"w-3.5 h-3.5 text-[#913638]"}),(0,r.jsx)("span",{children:"Basket"}),C>0&&(0,r.jsx)("span",{className:"w-4 h-4 rounded-full bg-[#913638] text-white text-[9px] font-bold flex items-center justify-center ml-1",children:C})]})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-[#786864]/80 mb-2",children:"Navigation"}),(0,r.jsx)("nav",{className:"flex flex-col space-y-1",children:W.map((e,t)=>{let s=(0,g.nT)(e.href),l=(0,g.gZ)(i,s),a=!!e.is_highlighted;return(0,r.jsxs)(n(),{href:s,prefetch:!0,onClick:H(s),className:`group flex items-center justify-between px-3.5 py-2.5 rounded-xl text-sm font-medium transition-all ${l?"bg-[#913638] text-white font-bold shadow-xs":a?"bg-[#FCE9E5] text-[#913638] font-semibold hover:bg-[#913638] hover:text-white":"text-[#2E211E] hover:bg-[#FCE9E5]/60 hover:text-[#913638]"}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[a&&(0,r.jsx)(d.A,{className:`w-3.5 h-3.5 ${l?"text-white":"text-[#913638] group-hover:text-white"}`}),(0,r.jsx)("span",{children:e.name})]}),(0,r.jsx)(E.A,{className:`w-4 h-4 opacity-50 group-hover:opacity-100 transition-opacity ${l?"text-white":"text-[#786864]"}`})]},e.href+t)})})]}),B.length>0&&(0,r.jsxs)("div",{className:"pt-2 border-t border-[#E7D1CC]/70",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-[#786864]/80",children:"Featured Categories"}),(0,r.jsx)(n(),{href:(0,g.nT)("/shop"),prefetch:!0,onClick:H((0,g.nT)("/shop")),className:"text-[10px] font-semibold text-[#913638] hover:underline",children:"View All"})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-1.5",children:B.slice(0,6).map(e=>{let t=(0,g.nT)(`/category/${e.slug}`);return(0,r.jsxs)(n(),{href:t,prefetch:!0,onClick:H(t),className:"flex items-center gap-1.5 px-2.5 py-2 rounded-lg bg-[#FFF9F6] border border-[#E7D1CC]/60 text-xs text-[#2E211E] hover:bg-[#FCE9E5] hover:text-[#913638] transition-colors truncate",children:[(0,r.jsx)(y.A,{className:"w-3 h-3 text-[#913638] shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:e.name})]},e.id||e.slug)})})]}),(0,r.jsxs)("div",{className:"pt-2 border-t border-[#E7D1CC]/70",children:[(0,r.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-[#786864]/80 mb-2",children:"Account"}),A?(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("div",{className:"p-3 rounded-xl bg-[#FCE9E5]/60 border border-[#E7D1CC]",children:[(0,r.jsx)("p",{className:"text-[10px] uppercase tracking-wider font-bold text-[#913638]",children:"Signed in as"}),(0,r.jsx)("p",{className:"text-xs font-bold text-[#2E211E] truncate",children:L?.name||L?.email})]}),(0,r.jsxs)(n(),{href:(0,g.nT)("/account"),prefetch:!0,onClick:H((0,g.nT)("/account")),className:"flex items-center gap-2.5 px-3 py-2 rounded-xl text-xs font-medium text-[#2E211E] hover:bg-[#FCE9E5]/60 hover:text-[#913638] transition-colors",children:[(0,r.jsx)(m.A,{className:"w-4 h-4 text-[#913638]"}),(0,r.jsx)("span",{children:"My Account"})]}),(0,r.jsxs)(n(),{href:(0,g.nT)("/account/orders"),prefetch:!0,onClick:H((0,g.nT)("/account/orders")),className:"flex items-center gap-2.5 px-3 py-2 rounded-xl text-xs font-medium text-[#2E211E] hover:bg-[#FCE9E5]/60 hover:text-[#913638] transition-colors",children:[(0,r.jsx)(u.A,{className:"w-4 h-4 text-[#913638]"}),(0,r.jsx)("span",{children:"My Orders"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{T(),t()},className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-xl text-xs font-medium text-[#913638] hover:bg-red-50 transition-colors text-left cursor-pointer",children:[(0,r.jsx)(k.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Sign Out"})]})]}):(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)(n(),{href:(0,g.nT)("/login"),prefetch:!0,onClick:H((0,g.nT)("/login")),className:"flex items-center justify-center py-2 px-3 rounded-xl bg-[#913638] text-white text-xs font-semibold hover:bg-[#74292B] transition-colors text-center shadow-xs",children:"Login"}),(0,r.jsx)(n(),{href:(0,g.nT)("/signup"),prefetch:!0,onClick:H((0,g.nT)("/signup")),className:"flex items-center justify-center py-2 px-3 rounded-xl bg-white border border-[#E7D1CC] text-[#2E211E] text-xs font-semibold hover:bg-[#FCE9E5] hover:text-[#913638] transition-colors text-center shadow-2xs",children:"Register"})]})]}),(0,r.jsxs)("div",{className:"p-3.5 rounded-2xl bg-gradient-to-br from-[#FCE9E5] to-[#EFB8B0]/30 border border-[#E7D1CC] text-center space-y-1",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 text-[#913638] mx-auto"}),(0,r.jsx)("h4",{className:"font-serif-luxury text-xs font-bold text-[#2E211E]",children:"Need Custom Crochet?"}),(0,r.jsx)("p",{className:"text-[10px] text-[#786864] leading-tight",children:"Send us your design ideas and our artisans will craft it for you."}),(0,r.jsx)("div",{className:"pt-1.5",children:(0,r.jsx)(n(),{href:(0,g.nT)("/custom-order"),prefetch:!0,onClick:H((0,g.nT)("/custom-order")),className:"inline-block w-full py-1.5 px-3 rounded-full bg-[#913638] text-white text-[11px] font-semibold hover:bg-[#74292B] active:scale-[0.98] transition-all text-center cursor-pointer shadow-2xs",children:"Start Custom Order →"})})]})]}),(0,r.jsxs)("div",{className:"p-4 border-t border-[#E7D1CC] bg-[#FFF9F6] space-y-1.5 text-[11px] text-[#786864]",children:[(0,r.jsxs)("a",{href:$,className:"flex items-center gap-2 hover:text-[#913638] transition-colors",children:[(0,r.jsx)(F.A,{className:"w-3.5 h-3.5 text-[#913638] shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:I})]}),(0,r.jsxs)("a",{href:P,className:"flex items-center gap-2 hover:text-[#913638] transition-colors",children:[(0,r.jsx)(_.A,{className:"w-3.5 h-3.5 text-[#913638] shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:q})]})]})]})})]})}function A(){let e=(0,o.usePathname)(),{media:t}=(0,v.r)(),{totalItemsCount:s,setIsCartOpen:a}=(0,f._)(),{wishlistCount:j}=(0,b.n)(),[w,N]=(0,l.useState)(!1),[E,y]=(0,l.useState)(!1),k=t?.navbar,F=k?.announcement,_=k?.actions,D=(k?.nav_links&&k.nav_links.length>0?k.nav_links:[{name:"Home",href:"/",is_highlighted:!1,is_active:!0},{name:"Shop",href:"/shop/",is_highlighted:!1,is_active:!0},{name:"Custom Order",href:"/custom-order/",is_highlighted:!0,is_active:!0},{name:"About",href:"/about/",is_highlighted:!1,is_active:!0},{name:"Contact",href:"/contact/",is_highlighted:!1,is_active:!0}]).filter(e=>!1!==e.is_active),A=_?.show_search!==!1,L=_?.show_wishlist!==!1,T=_?.show_account!==!1,z=_?.show_cart!==!1,M=e=>t=>{if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button)return;let s=e.split("?")[0].split("#")[0].replace(/\/$/,"");setTimeout(()=>{window.location.pathname.split("?")[0].split("#")[0].replace(/\/$/,"")!==s&&(window.location.href=e)},120)};return(0,r.jsxs)(r.Fragment,{children:[F?.is_active&&F?.text&&(0,r.jsx)("div",{className:"bg-[#913638] text-white text-xs font-medium py-2 px-4 text-center tracking-wide transition-all z-50 relative",children:F.link?(0,r.jsxs)(n(),{href:(0,g.nT)(F.link),prefetch:!0,onClick:M((0,g.nT)(F.link)),className:"inline-flex items-center justify-center gap-1.5 hover:underline decoration-white/60 underline-offset-4",children:[(0,r.jsx)("span",{children:F.text}),(0,r.jsx)(i.A,{className:"w-3.5 h-3.5"})]}):(0,r.jsx)("span",{children:F.text})}),(0,r.jsx)("header",{className:"sticky top-0 z-40 bg-white/95 backdrop-blur-md border-b border-[#E7D1CC] transition-all",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"flex items-center justify-between h-20",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>y(!0),className:"lg:hidden p-2.5 -ml-1 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] active:scale-95 transition-all cursor-pointer","aria-label":"Open mobile menu",children:(0,r.jsx)(c.A,{className:"w-6 h-6 text-[#2E211E]"})}),(0,r.jsx)(n(),{href:(0,g.nT)("/"),prefetch:!0,onClick:M((0,g.nT)("/")),className:"flex items-center group py-1","aria-label":"KNOTELLE Home",children:(0,r.jsx)(p.zu,{className:"h-12 sm:h-16 w-auto"})})]}),(0,r.jsx)("nav",{className:"hidden lg:flex items-center gap-7 xl:gap-9",children:D.map((t,s)=>{let l=(0,g.nT)(t.href),a=(0,g.gZ)(e,l);return t.is_highlighted?(0,r.jsxs)(n(),{href:l,prefetch:!0,onClick:M(l),className:`inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-semibold tracking-wide transition-all shadow-xs active:scale-95 ${a?"bg-[#913638] text-white ring-2 ring-[#913638]/25 shadow-sm":"bg-[#FCE9E5] text-[#913638] border border-[#E7D1CC] hover:bg-[#913638] hover:text-white hover:border-[#913638] hover:shadow-xs"}`,children:[(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"}),(0,r.jsx)("span",{children:t.name})]},t.href+s):(0,r.jsxs)(n(),{href:l,prefetch:!0,onClick:M(l),className:`relative text-sm font-medium tracking-wide py-2 transition-colors flex flex-col items-center ${a?"text-[#913638] font-bold":"text-[#2E211E] hover:text-[#913638]"}`,children:[(0,r.jsx)("span",{children:t.name}),a&&(0,r.jsx)("span",{className:"absolute bottom-0 w-6 h-0.5 bg-[#913638] rounded-full"})]},t.href+s)})}),(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[A&&(0,r.jsx)("button",{onClick:()=>N(!0),className:"p-2.5 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] transition-colors cursor-pointer","aria-label":"Search store",children:(0,r.jsx)(x.A,{className:"w-5 h-5"})}),L&&(0,r.jsxs)(n(),{href:(0,g.nT)("/account/wishlist"),prefetch:!0,onClick:M((0,g.nT)("/account/wishlist")),className:"relative p-2.5 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] transition-colors flex items-center justify-center","aria-label":"View wishlist",children:[(0,r.jsx)(h.A,{className:"w-5 h-5"}),j>0&&(0,r.jsx)("span",{className:"absolute top-1 right-1 w-4 h-4 rounded-full bg-[#913638] text-white text-[9px] font-bold flex items-center justify-center",children:j})]}),T&&(0,r.jsx)(n(),{href:(0,g.nT)("/account"),prefetch:!0,onClick:M((0,g.nT)("/account")),className:"p-2.5 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] transition-colors flex items-center justify-center","aria-label":"My Account",children:(0,r.jsx)(m.A,{className:"w-5 h-5"})}),z&&(0,r.jsxs)("button",{onClick:()=>a(!0),className:"relative p-2.5 rounded-full text-[#2E211E] hover:text-[#913638] hover:bg-[#FCE9E5] transition-colors flex items-center justify-center cursor-pointer","aria-label":"Shopping Cart",children:[(0,r.jsx)(u.A,{className:"w-5 h-5"}),s>0&&(0,r.jsx)("span",{className:"absolute top-1 right-1 w-4 h-4 rounded-full bg-[#913638] text-white text-[9px] font-bold flex items-center justify-center",children:s})]})]})]})})}),(0,r.jsx)(C,{isOpen:w,onClose:()=>N(!1)}),(0,r.jsx)(S,{isOpen:E,onClose:()=>y(!1),onOpenSearch:()=>{y(!1),N(!0)},navLinks:D})]})}},8374:(e,t,s)=>{"use strict";s.d(t,{CartDrawer:()=>w});var r=s(5155),l=s(2115),a=s(5772),n=s(8500),o=s.n(n),i=s(6720),c=s(9005),d=s(3488),x=s(5879),h=s(6565),m=s(2125),u=s(467),p=s(6272),f=s(4757),b=s(4710),v=s(1507),g=s(8221),j=s(7529);function w(){let{items:e,isCartOpen:t,setIsCartOpen:s,removeItem:n,updateQuantity:w,subtotal:N,total:C,totalItemsCount:E,amountToFreeShipping:y,freeShippingThreshold:k}=(0,b._)(),{addToWishlist:F}=(0,v.n)(),{showToast:_}=(0,g.d)(),[D,S]=(0,l.useState)(null),A=async e=>{await F(e.product),n(e.id,!0),_("Moved to Wishlist \uD83D\uDC95",`${e.product.name} moved to your wishlist.`,"wishlist"),S(null)};if((0,l.useEffect)(()=>(t?document.body.style.overflow="hidden":(document.body.style.overflow="unset",S(null)),()=>{document.body.style.overflow="unset"}),[t]),!t)return null;let L=Math.min(100,Math.round((k-y)/k*100));return(0,r.jsxs)("div",{className:"fixed inset-0 z-50 overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-xs transition-opacity animate-in fade-in duration-300",onClick:()=>s(!1)}),(0,r.jsx)("div",{className:"fixed inset-y-0 right-0 max-w-full flex pl-10",children:(0,r.jsxs)("div",{className:"w-screen max-w-md bg-white border-l border-[#E7D1CC] shadow-2xl flex flex-col animate-in slide-in-from-right duration-300 relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"p-5 border-b border-[#E7D1CC] flex items-center justify-between bg-[#FFF9F6]",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(i.A,{className:"w-5 h-5 text-[#913638]"}),(0,r.jsx)("h2",{className:"font-serif-luxury text-lg font-bold text-[#2E211E]",children:"Your Shopping Basket"}),(0,r.jsx)("span",{className:"text-xs bg-[#FCE9E5] text-[#913638] font-semibold px-2 py-0.5 rounded-full",children:E})]}),(0,r.jsx)("button",{onClick:()=>s(!1),className:"p-1.5 rounded-full text-[#786864] hover:text-[#2E211E] hover:bg-[#FCE9E5] transition-colors cursor-pointer","aria-label":"Close cart",children:(0,r.jsx)(c.A,{className:"w-5 h-5"})})]}),(0,r.jsxs)("div",{className:"px-5 py-3 bg-[#FCE9E5]/60 border-b border-[#E7D1CC]",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-xs font-medium text-[#2E211E] mb-1.5",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[#913638]",children:[(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"}),y>0?(0,r.jsxs)("span",{children:["Add ",(0,r.jsxs)("strong",{className:"font-bold",children:["₹",y]})," more for"," ",(0,r.jsx)("strong",{children:"FREE Delivery"})]}):(0,r.jsx)("span",{className:"font-semibold text-emerald-800",children:"\uD83C\uDF89 You've unlocked FREE Pan-India Shipping!"})]}),(0,r.jsxs)("span",{className:"text-[11px] text-[#786864]",children:[L,"%"]})]}),(0,r.jsx)("div",{className:"w-full h-1.5 bg-[#E7D1CC] rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-[#913638] transition-all duration-500 rounded-full",style:{width:`${L}%`}})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-5 space-y-4",children:0===e.length?(0,r.jsxs)("div",{className:"h-full flex flex-col items-center justify-center text-center py-12",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-[#FFF9F6] border border-[#E7D1CC] flex items-center justify-center text-[#913638] mb-4",children:(0,r.jsx)(i.A,{className:"w-8 h-8 stroke-1"})}),(0,r.jsx)("h3",{className:"font-serif-luxury text-lg font-semibold text-[#2E211E] mb-1",children:"Your basket is empty"}),(0,r.jsx)("p",{className:"text-xs text-[#786864] max-w-xs mb-6 leading-relaxed",children:"Your cart is waiting for a little handmade happiness. Explore our bestselling crochet items."}),(0,r.jsx)("button",{onClick:()=>s(!1),className:"px-6 py-2.5 rounded-full bg-[#913638] text-white text-xs font-semibold hover:bg-[#74292B] active:scale-[0.98] shadow-xs transition-all cursor-pointer",children:"Start Shopping →"})]}):e.map(e=>(0,r.jsxs)("div",{className:"flex gap-4 p-3.5 rounded-2xl bg-[#FFF9F6] border border-[#E7D1CC]/80 transition-all hover:border-[#913638]/30",children:[(0,r.jsx)(o(),{href:`/product/${e.product.slug}`,onClick:()=>s(!1),className:"relative w-20 h-20 rounded-xl overflow-hidden bg-white shrink-0 border border-[#E7D1CC]",children:(0,r.jsx)(a.default,{src:(0,j.Me)(e.product.main_image||e.product.images?.[0],"/images/products/bunny-keychain.jpg"),alt:e.product.name,fill:!0,sizes:"80px",className:"object-cover"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)(o(),{href:`/product/${e.product.slug}`,onClick:()=>s(!1),className:"font-serif-luxury text-sm font-semibold text-[#2E211E] hover:text-[#913638] transition-colors line-clamp-1",children:e.product.name}),(0,r.jsx)("button",{onClick:()=>S(e),className:"text-[#786864] hover:text-[#913638] p-1 transition-colors cursor-pointer","aria-label":"Remove item",children:(0,r.jsx)(x.A,{className:"w-3.5 h-3.5"})})]}),e.customization&&(0,r.jsxs)("div",{className:"mt-1 text-[11px] text-[#786864] space-y-0.5",children:[e.customization.color&&(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"w-2.5 h-2.5 rounded-full border border-black/10 inline-block shrink-0",style:{backgroundColor:e.customization.color.hex}}),(0,r.jsx)("span",{className:"truncate",children:e.customization.color.name})]}),e.customization.size&&(0,r.jsxs)("p",{children:["Size: ",e.customization.size]}),e.customization.customText&&(0,r.jsxs)("p",{className:"text-[#913638] font-medium truncate",children:["“",e.customization.customText,"”"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mt-2 pt-2 border-t border-[#E7D1CC]/60",children:[(0,r.jsxs)("div",{className:"flex items-center border border-[#E7D1CC] rounded-full bg-white overflow-hidden shadow-xs",children:[(0,r.jsx)("button",{onClick:()=>{e.quantity>1?w(e.id,e.quantity-1):S(e)},className:"px-2 py-1 text-[#786864] hover:text-[#2E211E] hover:bg-[#FCE9E5] transition-colors cursor-pointer","aria-label":"Decrease quantity",children:(0,r.jsx)(h.A,{className:"w-3 h-3"})}),(0,r.jsx)("span",{className:"px-2 text-xs font-bold text-[#2E211E] min-w-[20px] text-center",children:e.quantity}),(0,r.jsx)("button",{onClick:()=>w(e.id,e.quantity+1),className:"px-2 py-1 text-[#786864] hover:text-[#2E211E] hover:bg-[#FCE9E5] transition-colors cursor-pointer","aria-label":"Increase quantity",children:(0,r.jsx)(m.A,{className:"w-3 h-3"})})]}),(0,r.jsxs)("span",{className:"text-sm font-bold text-[#913638]",children:["₹",(e.price*e.quantity).toLocaleString("en-IN")]})]})]})]},e.id))}),e.length>0&&(0,r.jsxs)("div",{className:"p-5 border-t border-[#E7D1CC] bg-[#FFF9F6] space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-1.5 text-xs text-[#786864]",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"Subtotal"}),(0,r.jsxs)("span",{className:"font-semibold text-[#2E211E]",children:["₹",N.toLocaleString("en-IN")]})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"Shipping"}),(0,r.jsx)("span",{children:0===y?(0,r.jsx)("span",{className:"text-emerald-800 font-semibold",children:"FREE"}):"Calculated at next step"})]}),(0,r.jsxs)("div",{className:"flex justify-between text-sm font-bold text-[#2E211E] pt-1.5 border-t border-[#E7D1CC]",children:[(0,r.jsx)("span",{children:"Estimated Total"}),(0,r.jsxs)("span",{className:"text-[#913638]",children:["₹",N.toLocaleString("en-IN")]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2 pt-2",children:[(0,r.jsx)(o(),{href:"/cart",onClick:()=>s(!1),className:"py-3 px-4 rounded-full bg-white text-[#2E211E] hover:bg-[#FCE9E5] hover:text-[#913638] border border-[#E7D1CC] hover:border-[#EFB8B0] text-xs font-semibold active:scale-[0.98] shadow-xs transition-all text-center cursor-pointer",children:"View Full Cart"}),(0,r.jsxs)(o(),{href:"/checkout",onClick:()=>s(!1),className:"py-3 px-4 rounded-full bg-[#913638] text-white text-xs font-semibold hover:bg-[#74292B] active:scale-[0.98] shadow-xs hover:shadow-md transition-all flex items-center justify-center gap-1.5 text-center cursor-pointer",children:[(0,r.jsx)("span",{children:"Checkout"}),(0,r.jsx)(u.A,{className:"w-3.5 h-3.5"})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1 text-[11px] text-[#786864] text-center pt-1",children:[(0,r.jsx)(p.A,{className:"w-3 h-3 text-[#C69A5A]"}),(0,r.jsx)("span",{children:"Every item is carefully handcrafted with love"})]})]}),D&&(0,r.jsx)("div",{className:"absolute inset-0 z-50 bg-stone-900/40 backdrop-blur-xs flex items-end sm:items-center justify-center p-3 sm:p-4 animate-in fade-in duration-200",onClick:e=>{e.target===e.currentTarget&&S(null)},children:(0,r.jsxs)("div",{className:"bg-white rounded-3xl p-5 w-full border border-[#E7D1CC] shadow-2xl space-y-4 animate-in slide-in-from-bottom-6 duration-200",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,r.jsx)("div",{className:"relative w-14 h-14 rounded-2xl bg-[#FFF9F6] border border-[#E7D1CC] overflow-hidden shrink-0",children:(0,r.jsx)(a.default,{src:(0,j.Me)(D.product.main_image||D.product.images?.[0],"/images/products/bunny-keychain.jpg"),alt:D.product.name,fill:!0,sizes:"56px",className:"object-cover"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h4",{className:"font-serif-luxury text-sm font-bold text-[#2E211E] truncate",children:D.product.name}),(0,r.jsxs)("p",{className:"text-xs text-[#913638] font-bold mt-0.5",children:["₹",(D.price*D.quantity).toLocaleString("en-IN")]})]})]}),(0,r.jsx)("button",{onClick:()=>S(null),className:"p-1.5 rounded-full text-[#786864] hover:text-[#2E211E] hover:bg-[#FCE9E5] transition-colors cursor-pointer shrink-0","aria-label":"Close",children:(0,r.jsx)(c.A,{className:"w-4 h-4"})})]}),(0,r.jsxs)("div",{className:"bg-[#FFF9F6] rounded-2xl p-3.5 border border-[#E7D1CC]/70 text-xs text-[#786864] leading-relaxed",children:["Would you like to move this handcrafted item to your ",(0,r.jsx)("strong",{className:"text-[#913638] font-semibold",children:"Wishlist"})," to save for later, or ",(0,r.jsx)("strong",{className:"text-[#2E211E] font-semibold",children:"remove"})," it from your cart?"]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 pt-1",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>A(D),className:"flex items-center justify-center gap-1.5 py-3 px-3 rounded-2xl border-2 border-[#913638] text-[#913638] bg-[#FFF9F6] hover:bg-[#FCE9E5] active:scale-[0.98] text-xs font-bold transition-all shadow-xs cursor-pointer text-center",children:[(0,r.jsx)(f.A,{className:"w-4 h-4 fill-[#913638] shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:"Move to Wishlist"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{n(D.id,!1),S(null)},className:"flex items-center justify-center gap-1.5 py-3 px-3 rounded-2xl bg-[#913638] hover:bg-[#74292B] active:scale-[0.98] text-white text-xs font-bold transition-all shadow-sm hover:shadow-md cursor-pointer text-center",children:[(0,r.jsx)(x.A,{className:"w-4 h-4 shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:"Remove from Cart"})]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>S(null),className:"w-full py-1 text-center text-xs font-medium text-[#786864] hover:text-[#2E211E] transition-colors cursor-pointer",children:"Cancel and keep in cart"})]})})]})})]})}}},e=>{e.O(0,[3334,422,8437,5429,7529,1507,8441,3794,7358],()=>e(e.s=4439)),_N_E=e.O()}]);