1import{a as Y}from"./chunk-QNIH5LGQ.js";import{a as U}from"./chunk-54QWNOYD.js";import"./chunk-3FGXXW46.js";import"./chunk-T6I3DU7K.js";import"./chunk-2RGEBY7T.js";import{g as j,j as B,o as $,p as L,q,v as H}from"./chunk-NAU3XTVO.js";import"./chunk-5TYVEJUI.js";import"./chunk-DY3BFKGZ.js";import"./chunk-IY5U4LIO.js";import{m as D,s as G}from"./chunk-2P73RYP5.js";import{$ as O,Ab as h,Cb as g,Eb as s,Jc as N,Lc as A,Ob as V,Pa as a,Qb as l,Rb as w,Sb as P,Tb as z,U as S,Z as d,_ as p,aa as v,ab as F,bc as y,ec as R,gc as T,ja as E,lc as u,mb as _,nb as f,pb as I,qb as C,rb as b,sb as M,tb as n,ub as r,vb as m}from"./chunk-TJAUOT4B.js";import{a as k}from"./chunk-GAL4ENT6.js";var K=()=>[1,2,3,4,5,6,7,8],Q=()=>[],Z=(t,c)=>c.groupId,J=(t,c)=>c.attributeId,W=(t,c)=>c.id;function X(t,c){t&1&&(n(0,"div",4),m(1,"div",7),n(2,"p"),l(3,"Buscando productos..."),r()())}function ee(t,c){if(t&1){let e=h();n(0,"div",5)(1,"p"),l(2),r(),n(3,"button",8),g("click",function(){d(e);let o=s();return p(o.retry())}),l(4,"Reintentar"),r()()}if(t&2){let e=s();a(2),w(e.error())}}function te(t,c){if(t&1){let e=h();n(0,"button",26),g("click",function(){d(e);let o=s(2);return p(o.clearFilters())}),l(1,"Limpiar filtros"),r()}}function ne(t,c){if(t&1&&(n(0,"span",30),l(1),r()),t&2){let e=s(3);a(),w(e.activeFilterCount)}}function ie(t,c){if(t&1){let e=h();n(0,"label",38)(1,"input",39),g("change",function(){let o=d(e).$implicit,x=s(5);return p(x.toggleAttribute(o.attributeId))}),r(),m(2,"span",40),n(3,"span",41),l(4),n(5,"span",42),l(6),r()()()}if(t&2){let e=c.$implicit,i=s(5);a(),M("checked",i.isAttributeSelected(e.attributeId)),a(3),P("",e.name," "),a(2),P("(",e.productCount,")")}}function oe(t,c){if(t&1&&(n(0,"div",36)(1,"div",37),C(2,ie,7,3,"label",38,J),r()()),t&2){let e=s().$implicit;a(2),b(e.options)}}function re(t,c){if(t&1){let e=h();n(0,"div",32)(1,"button",33),g("click",function(){let o=d(e).$implicit,x=s(3);return p(x.toggleFilterGroup("attributes-"+o.groupId))}),n(2,"span"),l(3),r(),O(),n(4,"svg",34),m(5,"polyline",35),r()(),_(6,oe,4,0,"div",36),r()}if(t&2){let e=c.$implicit,i=s(3);a(3),w(e.groupName),a(),V("dropdown-chevron--open",i.openFilterGroup==="attributes-"+e.groupId),a(2),f(i.openFilterGroup==="attributes-"+e.groupId?6:-1)}}function ae(t,c){if(t&1){let e=h();n(0,"div",23)(1,"button",27),g("click",function(){d(e);let o=s(2);return p(o.openFilters())}),O(),n(2,"svg",28),m(3,"polygon",29),r(),v(),n(4,"span"),l(5,"Filtros"),r(),_(6,ne,2,1,"span",30),r(),n(7,"div",31),C(8,re,7,4,"div",32,Z),r()()}if(t&2){let e=s(2);a(6),f(e.hasActiveFilters?6:-1),a(2),b(e.filterGroups())}}function le(t,c){t&1&&(n(0,"div",43),m(1,"span",44)(2,"div",45),n(3,"div",46),m(4,"span",47)(5,"span",48)(6,"span",49)(7,"span",50)(8,"span",51)(9,"span",52),r()())}function ce(t,c){t&1&&(n(0,"div",24),C(1,le,10,0,"div",43,I),r()),t&2&&(a(),b(y(0,K)))}function se(t,c){if(t&1&&(m(0,"app-product-card",54),R(1,"number"),R(2,"number")),t&2){let e=c.$implicit;M("mediumImageUrl",e.image)("promoText",e.discount?"-"+e.discount+"%":"")("title",e.name)("originalPrice",e.originalPrice&&e.originalPrice>e.price?"$"+T(1,14,e.originalPrice,"1.2-2"):"")("salePrice","$"+T(2,17,e.price,"1.2-2"))("productId",e.id.toString())("sku",e.sku)("inStock",e.inStock)("colors",e.colors)("variantPills",e.variantPills??y(20,Q))("hasOtherVariants",e.hasOtherVariants??!1)("unitPrice",e.price)("linkRewrite",e.linkRewrite??void 0)("showPrice",e.showPrice??!0)}}function de(t,c){if(t&1){let e=h();n(0,"div",55)(1,"button",56),g("click",function(){d(e);let o=s(3);return p(o.prevPage())}),O(),n(2,"svg",57),m(3,"polyline",58),r(),l(4," Anterior "),r(),v(),n(5,"span",59),l(6),r(),n(7,"button",56),g("click",function(){d(e);let o=s(3);return p(o.nextPage())}),l(8," Siguiente "),O(),n(9,"svg",57),m(10,"polyline",60),r()()()}if(t&2){let e=s(3);a(),M("disabled",!e.hasPrevPage()),a(5),z(" P\xE1g. ",e.currentPage()," de ",e.totalPages()," "),a(),M("disabled",!e.hasNextPage())}}function pe(t,c){if(t&1&&(n(0,"div",53),C(1,se,3,21,"app-product-card",54,W),r(),_(3,de,11,4,"div",55)),t&2){let e=s(2);a(),b(e.sortedProducts),a(2),f(e.hasPrevPage()||e.hasNextPage()?3:-1)}}function ge(t,c){t&1&&(n(0,"div",25),O(),n(1,"svg",61),m(2,"circle",62)(3,"line",63),r(),v(),n(4,"h3",64),l(5,"No se encontraron productos"),r(),n(6,"p",65),l(7,"Intenta con otros t\xE9rminos de b\xFAsqueda"),r()())}function me(t,c){if(t&1){let e=h();
1n(0,"div",9)(1,"div",10)(2,"span",11),l(3),r(),_(4,te,2,0,"button",12),r(),n(5,"div",13)(6,"span",14),l(7,"Ordenar por:"),r(),n(8,"select",15),g("ngModelChange",function(o){d(e);let x=s();return p(x.setSortBy(o))}),n(9,"option",16),l(10,"Nombre: A-Z"),r(),n(11,"option",17),l(12,"Nombre: Z-A"),r(),n(13,"option",18),l(14,"M\xE1s recientes"),r(),n(15,"option",19),l(16,"Descuentos primero"),r(),n(17,"option",20),l(18,"Precio: Menor a Mayor"),r(),n(19,"option",21),l(20,"Precio: Mayor a Menor"),r(),n(21,"option",22),l(22,"Disponibilidad"),r()()()(),_(23,ae,10,1,"div",23),_(24,ce,3,1,"div",24)(25,pe,4,1)(26,ge,8,0,"div",25)}if(t&2){let e=s();a(3),P("",e.totalCount()," resultados"),a(),f(e.hasActiveFilters?4:-1),a(4),M("ngModel",e.sortBy),a(15),f(e.filterGroups().length||e.priceRange()?23:-1),a(),f(e.loading()?24:e.sortedProducts.length>0?25:26)}}function ue(t,c){if(t&1){let e=h();n(0,"label",38)(1,"input",39),g("change",function(){let o=d(e).$implicit,x=s(3);return p(x.toggleAttribute(o.attributeId))}),r(),m(2,"span",40),n(3,"span",41),l(4),n(5,"span",42),l(6),r()()()}if(t&2){let e=c.$implicit,i=s(3);a(),M("checked",i.isAttributeSelected(e.attributeId)),a(3),P("",e.name," "),a(2),P("(",e.productCount,")")}}function he(t,c){if(t&1&&(n(0,"div",72)(1,"h3",76),l(2),r(),n(3,"div",77),C(4,ue,7,3,"label",38,J),r()()),t&2){let e=c.$implicit;a(2),w(e.groupName),a(2),b(e.options)}}function _e(t,c){if(t&1){let e=h();n(0,"div",66),g("click",function(){d(e);let o=s();return p(o.closeFilters())}),n(1,"div",67),g("click",function(o){return d(e),p(o.stopPropagation())}),n(2,"div",68)(3,"h2",69),l(4,"Filtros"),r(),n(5,"button",70),g("click",function(){d(e);let o=s();return p(o.closeFilters())}),l(6,"\xD7"),r()(),n(7,"div",71),C(8,he,6,1,"div",72,Z),r(),n(10,"div",73)(11,"button",74),g("click",function(){d(e);let o=s();return p(o.clearFilters())}),l(12,"Limpiar todo"),r(),n(13,"button",75),g("click",function(){d(e);let o=s();return p(o.closeFilters())}),l(14,"Aplicar filtros"),r()()()()}if(t&2){let e=s();a(8),b(e.filterGroups())}}var Se=(()=>{class t{route=S(D);searchService=S(U);routeSub;products=u(()=>this.searchService.productsUI());loading=u(()=>this.searchService.isLoading());error=u(()=>this.searchService.error());hasNextPage=u(()=>this.searchService.hasNextPage());hasPrevPage=u(()=>this.searchService.hasPreviousPage());totalCount=u(()=>this.searchService.totalCount());totalPages=u(()=>this.searchService.totalPages());currentPage=u(()=>this.searchService.currentPage());filterGroups=u(()=>this.searchService.searchResult()?.contextualFilters?.attributeGroups??[]);brands=u(()=>this.searchService.searchResult()?.contextualFilters?.brands??[]);priceRange=u(()=>this.searchService.searchResult()?.contextualFilters?.priceRange??null);searchTerm=E("");sortBy="newest";selectedAttributeIds=[];selectedManufacturerIds=[];priceMin=null;priceMax=null;inStockOnly=!1;openFilterGroup=null;showFilterModal=!1;pageSize=20;ngOnInit(){this.routeSub=this.route.queryParamMap.subscribe(e=>{let i=e.get("q")||"";this.searchTerm.set(i),i&&this.loadSearchResults(i,1)})}ngOnDestroy(){this.routeSub?.unsubscribe()}loadSearchResults(e,i){this.searchService.searchProducts(k(k(k(k(k({query:e,page:i,pageSize:this.pageSize},this.selectedAttributeIds.length?{attributeIds:this.selectedAttributeIds}:{}),this.selectedManufacturerIds.length?{manufacturerIds:this.selectedManufacturerIds}:{}),this.priceMin!=null?{priceMin:this.priceMin}:{}),this.priceMax!=null?{priceMax:this.priceMax}:{}),this.inStockOnly?{inStockOnly:!0}:{})).subscribe()}toggleAttribute(e){this.selectedAttributeIds=this.selectedAttributeIds.includes(e)?this.selectedAttributeIds.filter(i=>i!==e):[...this.selectedAttributeIds,e],this.openFilterGroup=null,this.loadSearchResults(this.searchTerm(),1)}isAttributeSelected(e){return this.selectedAttributeIds.includes(e)}toggleManufacturer(e){this.selectedManufacturerIds=this.selectedManufacturerIds.includes(e)?this.selectedManufacturerIds.filter(i=>i!==e):[...this.selectedManufacturerIds,e],this.loadSearchResults(this.searchTerm(),1)}isManufacturerSelected(e){return this.selectedManufacturerIds.includes(e)}toggleFilterGroup(e){this.openFilterGroup=this.openFilterGroup===e?null:e}applyPriceRange(){this.loadSearchResults(this.searchTerm(),1)}toggleInStock(){this.inStockOnly=!this.inStockOnly,this.loadSearchResults(this.searchTerm(),1)}
1openFilters(){this.showFilterModal=!0,document.body.style.overflow="hidden"}closeFilters(){this.showFilterModal=!1,document.body.style.overflow=""}clearFilters(){this.selectedAttributeIds=[],this.selectedManufacturerIds=[],this.priceMin=null,this.priceMax=null,this.inStockOnly=!1,this.loadSearchResults(this.searchTerm(),1)}get hasActiveFilters(){return this.selectedAttributeIds.length>0||this.selectedManufacturerIds.length>0||this.priceMin!==null||this.priceMax!==null||this.inStockOnly}get activeFilterCount(){return this.selectedAttributeIds.length+this.selectedManufacturerIds.length+ +(this.priceMin!==null)+ +(this.priceMax!==null)+Number(this.inStockOnly)}get sortedProducts(){let e=[...this.products()];switch(this.sortBy){case"name-asc":e.sort((i,o)=>i.name.localeCompare(o.name));break;case"name-desc":e.sort((i,o)=>o.name.localeCompare(i.name));break;case"discount":e.sort((i,o)=>(o.discount??0)-(i.discount??0));break;case"price-low":e.sort((i,o)=>i.price-o.price);break;case"price-high":e.sort((i,o)=>o.price-i.price);break;case"newest":e.sort((i,o)=>(o.isNew?1:0)-(i.isNew?1:0));break;case"stock":e.sort((i,o)=>Number(o.inStock)-Number(i.inStock));break}return e}setSortBy(e){this.sortBy=e}retry(){this.searchTerm()&&this.loadSearchResults(this.searchTerm(),this.currentPage())}nextPage(){this.hasNextPage()&&(this.loadSearchResults(this.searchTerm(),this.currentPage()+1),window.scrollTo({top:0,behavior:"smooth"}))}prevPage(){this.hasPrevPage()&&(this.loadSearchResults(this.searchTerm(),this.currentPage()-1),window.scrollTo({top:0,behavior:"smooth"}))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=F({type:t,selectors:[["app-search-results"]],decls:9,vars:3,consts:[[1,"search-results-page"],[1,"search-results-content"],[1,"search-results-header"],[1,"search-results-title"],[1,"search-results-loading"],[1,"search-results-error"],[1,"filter-modal-overlay"],[1,"search-results-loading-spinner"],[1,"search-results-retry-btn",3,"click"],[1,"search-results-controls"],[1,"search-results-controls-left"],[1,"search-results-count"],[1,"search-results-clear-filters"],[1,"search-results-sort"],[1,"search-results-sort-label"],[1,"search-results-sort-select",3,"ngModelChange","ngModel"],["value","name-asc"],["value","name-desc"],["value","newest"],["value","discount"],["value","price-low"],["value","price-high"],["value","stock"],[1,"catalog-filters","catalog-filters--dynamic"],["aria-busy","true","aria-label","Actualizando resultados",1,"search-results-grid","search-results-grid--skeleton"],[1,"search-results-empty"],[1,"search-results-clear-filters",3,"click"],[1,"catalog-mobile-filter-btn",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",1,"filter-icon"],["points","22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"],[1,"filter-count-badge"],[1,"catalog-desktop-filters"],[1,"filter-dropdown"],[1,"filter-dropdown-btn",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",1,"dropdown-chevron"],["points","6 9 12 15 18 9"],[1,"filter-dropdown-panel"],[1,"filter-dropdown-scroll"],[1,"filter-checkbox-item"],["type","checkbox",3,"change","checked"],[1,"filter-checkbox-mark"],[1,"filter-checkbox-label"],[1,"filter-checkbox-count"],[1,"search-result-skeleton"],[1,"search-result-skeleton-wishlist"],[1,"search-result-skeleton-image"],[1,"search-result-skeleton-content"],[1,"search-result-skeleton-swatches"],[1,"search-result-skeleton-line","search-result-skeleton-line--short"],[1,"search-result-skeleton-line"],[1,"search-result-skeleton-line","search-result-skeleton-line--medium"],[1,"search-result-skeleton-price"],[1,"search-result-skeleton-button"],[1,"search-results-grid"],[3,"mediumImageUrl","promoText","title","originalPrice","salePrice","productId","sku","inStock","colors","variantPills","hasOtherVariants","unitPrice","linkRewrite","showPrice"],[1,"search-results-pagination"],[1,"search-results-pagination-btn",3,"click","disabled"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["points","15 18 9 12 15 6"],[1,"search-results-pagination-current"],["points","9 18 15 12 9 6"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",1,"empty-icon"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],[1,"empty-title"],[1,"empty-text"],[1,"filter-modal-overlay",3,"click"],[1,"filter-modal",3,"click"],[1,"filter-modal-header"],[1,"filter-modal-title"],[1,"filter-modal-close",3,"click"],[1,"filter-modal-content"],[1,"filter-modal-section"],[1,"filter-modal-actions"],[1,"filter-modal-btn-secondary",3,"click"],[1,"filter-modal-btn-primary",3,"click"],[1,"filter-modal-section-title"],[1,"filter-modal-list"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l(4),r()(),_(5,X,4,0,"div",4)(6,ee,5,1,"div",5)(7,me,27,5),r(),_(8,_e,15,0,"div",6),r()),i&2&&(a(4),P('Resultados para "',o.searchTerm(),'"'),a(),f(o.loading()&&!o.products().length?5:o.error()&&!o.products().length?6:7),a(3),f(o.showFilterModal?8:-1))},dependencies:[A,G,H,L,q,$,j,B,Y,N],styles:['.catalog-page[_ngcontent-%COMP%]{min-height:100vh;background-color:#f3f3f5;font-family:inherit}.catalog-content[_ngcontent-%COMP%]{max-width:1400px;margin:0 auto;padding:2rem 1rem}.catalog-header[_ngcontent-%COMP%]{margin-bottom:1.5rem}.catalog-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#212529;margin:0}@media(min-width:768px){.catalog-title[_ngcontent-%COMP%]{font-size:2rem}}
1.catalog-controls[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;gap:1rem}.catalog-controls-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.catalog-product-count[_ngcontent-%COMP%]{color:#6b7280;font-size:.875rem}.catalog-clear-all[_ngcontent-%COMP%]{background:none;border:none;color:#1a8163;font-size:.875rem;cursor:pointer;padding:0}.catalog-clear-all[_ngcontent-%COMP%]:hover{text-decoration:underline}.catalog-price-inline[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.catalog-price-inline--modal[_ngcontent-%COMP%]{flex-wrap:wrap}.catalog-price-label[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;white-space:nowrap}.catalog-price-input[_ngcontent-%COMP%]{width:90px;padding:5px 8px;border:1px solid #d1d5db;border-radius:4px;font:inherit;font-size:.875rem}.catalog-price-sep[_ngcontent-%COMP%]{color:#9ca3af}.catalog-price-apply[_ngcontent-%COMP%]{padding:5px 12px;border:0;border-radius:4px;background:#1a8163;color:#fff;font:inherit;font-size:.875rem;cursor:pointer}.catalog-stock-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:.875rem;cursor:pointer;white-space:nowrap}.catalog-stock-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.catalog-stock-checkbox-mark[_ngcontent-%COMP%]{width:16px;height:16px;border:1.5px solid #d1d5db;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .15s,background-color .15s}input[_ngcontent-%COMP%]:checked + .catalog-stock-checkbox-mark[_ngcontent-%COMP%]{border-color:#1a8163;background-color:#1a8163}input[_ngcontent-%COMP%]:checked + .catalog-stock-checkbox-mark[_ngcontent-%COMP%]:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px)}.catalog-sort[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.catalog-sort-label[_ngcontent-%COMP%]{color:#6b7280;font-size:.875rem}.catalog-sort-select[_ngcontent-%COMP%]{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.5rem;font-weight:600;font-size:.875rem;background-color:#fff;cursor:pointer}.catalog-sort-select[_ngcontent-%COMP%]:focus{outline:none;border-color:#1a8163}.catalog-filters[_ngcontent-%COMP%]{margin-bottom:1.5rem}@media(min-width:768px){.catalog-filters--dynamic[_ngcontent-%COMP%]{position:sticky;top:0;z-index:20;background-color:#f3f3f5;padding-top:.75rem;padding-bottom:.75rem}}.catalog-mobile-filter-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.5rem;background-color:#fff;font-weight:600;font-size:.875rem;cursor:pointer;transition:border-color .2s}.catalog-mobile-filter-btn[_ngcontent-%COMP%]:hover{border-color:#1a8163}.filter-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.filter-count-badge[_ngcontent-%COMP%]{margin-left:.25rem;padding:.125rem .5rem;background-color:#1a8163;color:#fff;border-radius:9999px;font-size:.75rem}@media(min-width:768px){.catalog-mobile-filter-btn[_ngcontent-%COMP%]{display:none}}.catalog-desktop-filters[_ngcontent-%COMP%]{display:none;flex-wrap:wrap;gap:1rem}@media(min-width:768px){.catalog-desktop-filters[_ngcontent-%COMP%]{display:flex}}.filter-dropdown[_ngcontent-%COMP%]{position:relative}.filter-dropdown-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;
1min-width:200px;padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.5rem;background-color:#fff;font-weight:600;font-size:.875rem;cursor:pointer;transition:border-color .2s}.filter-dropdown-btn[_ngcontent-%COMP%]:hover{border-color:#1a8163}.filter-selected-count[_ngcontent-%COMP%]{color:#1a8163;margin-left:.5rem}.dropdown-chevron[_ngcontent-%COMP%]{width:1rem;height:1rem;margin-left:.5rem;transition:transform .2s}.dropdown-chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.filter-dropdown-panel[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;z-index:50;width:300px;margin-top:.5rem;background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.filter-dropdown-scroll[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto;padding:1rem}.filter-checkbox-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem;border-radius:.25rem;cursor:pointer;transition:background-color .15s}.filter-checkbox-item[_ngcontent-%COMP%]:hover{background-color:#f9fafb}.filter-checkbox-item[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.filter-checkbox-mark[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid #d1d5db;border-radius:.25rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}.filter-checkbox-item[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + .filter-checkbox-mark[_ngcontent-%COMP%]{background-color:#1a8163;border-color:#1a8163}.filter-checkbox-item[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + .filter-checkbox-mark[_ngcontent-%COMP%]:after{content:"";width:.375rem;height:.625rem;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:2px}.filter-checkbox-label[_ngcontent-%COMP%]{flex:1;font-size:.875rem;color:#212529}.filter-checkbox-count[_ngcontent-%COMP%]{color:#6b7280;margin-left:.25rem}.catalog-active-filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}.active-filter-pill[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;gap:.5rem;padding:.25rem .75rem;min-height:44px;background-color:#1a8163;color:#fff;border:none;border-radius:9999px;font-size:.875rem;cursor:pointer;transition:background-color .2s}.active-filter-pill[_ngcontent-%COMP%]:hover{background-color:#156b52}.active-filter-x[_ngcontent-%COMP%]{width:.75rem;height:.75rem}.catalog-products-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1.5rem;width:100%;min-width:0}.catalog-products-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{min-width:0;max-width:100%;display:flex}.catalog-products-grid[_ngcontent-%COMP%] app-product-card[_ngcontent-%COMP%]{width:100%}.catalog-products-grid[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%]{height:100%}@media(min-width:768px){.catalog-products-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.catalog-products-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1280px){.catalog-products-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@keyframes _ngcontent-%COMP%_catalog-skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.catalog-product-skeleton[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:.5rem;background:#fff;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.catalog-product-skeleton-image[_ngcontent-%COMP%], .catalog-product-skeleton-line[_ngcontent-%COMP%], .catalog-product-skeleton-price[_ngcontent-%COMP%], .catalog-product-skeleton-swatches[_ngcontent-%COMP%], .catalog-product-skeleton-button[_ngcontent-%COMP%], .catalog-product-skeleton-wishlist[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f0f0f0 25%,#e2e2e2,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_catalog-skeleton-shimmer 1.35s linear infinite}.catalog-product-skeleton-image[_ngcontent-%COMP%]{width:100%;height:330px}.catalog-product-skeleton-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;gap:.6rem;padding:1rem}
1.catalog-product-skeleton-line[_ngcontent-%COMP%], .catalog-product-skeleton-price[_ngcontent-%COMP%]{display:block;height:.9rem;border-radius:.25rem}.catalog-product-skeleton-line--short[_ngcontent-%COMP%]{width:42%}.catalog-product-skeleton-line--medium[_ngcontent-%COMP%]{width:72%}.catalog-product-skeleton-price[_ngcontent-%COMP%]{width:48%;height:1.25rem;margin-top:auto}.catalog-product-skeleton-swatches[_ngcontent-%COMP%]{width:88px;height:16px;border-radius:9999px}.catalog-product-skeleton-button[_ngcontent-%COMP%]{height:38px;border-radius:9999px;margin-top:.25rem}.catalog-product-skeleton-wishlist[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;z-index:1;width:32px;height:32px;border-radius:50%}@media(max-width:767px){.catalog-product-skeleton[_ngcontent-%COMP%]{flex-direction:row;border-radius:4px}.catalog-product-skeleton-image[_ngcontent-%COMP%]{width:33.333%;height:auto;min-height:144px}.catalog-product-skeleton-content[_ngcontent-%COMP%]{justify-content:center;padding:12px}.catalog-product-skeleton-swatches[_ngcontent-%COMP%], .catalog-product-skeleton-button[_ngcontent-%COMP%]{display:none}}.catalog-no-results[_ngcontent-%COMP%]{text-align:center;padding:4rem 1rem}.no-results-icon[_ngcontent-%COMP%]{width:4rem;height:4rem;stroke:#6b7280;margin:0 auto 1rem}.no-results-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#212529;margin-bottom:.5rem}.no-results-text[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;margin-bottom:1.5rem}.no-results-btn[_ngcontent-%COMP%]{padding:.75rem 1.5rem;background-color:#1a8163;color:#fff;border:none;border-radius:9999px;font-weight:500;cursor:pointer;transition:background-color .2s}.no-results-btn[_ngcontent-%COMP%]:hover{background-color:#156b52}.filter-modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:100;display:flex;align-items:flex-end;justify-content:center;padding:0}.filter-modal[_ngcontent-%COMP%]{width:100%;max-height:85vh;background-color:#fff;border-radius:1rem 1rem 0 0;display:flex;flex-direction:column;overflow:hidden;animation:_ngcontent-%COMP%_filter-sheet-up .3s ease-out}@keyframes _ngcontent-%COMP%_filter-sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(min-width:768px){.filter-modal-overlay[_ngcontent-%COMP%]{align-items:center;padding:1rem}.filter-modal[_ngcontent-%COMP%]{max-width:500px;max-height:90vh;border-radius:.75rem;animation:none}}.filter-modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem}.filter-modal-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:700;color:#212529;margin:0}.filter-modal-close[_ngcontent-%COMP%]{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:#6b7280;border-radius:.25rem}.filter-modal-close[_ngcontent-%COMP%]:hover{background-color:#f3f4f6}.filter-modal-close[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.filter-modal-description[_ngcontent-%COMP%]{padding:0 1.5rem 1rem;margin:0;font-size:.875rem;color:#6b7280}.filter-modal-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:0 1.5rem}.filter-modal-section[_ngcontent-%COMP%]{margin-bottom:1.5rem}.filter-modal-section-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;color:#212529;margin:0 0 .75rem}.filter-modal-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:.25rem 1rem}.filter-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.filter-modal-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding:1rem 1.5rem;padding-bottom:calc(1rem + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;background-color:#fff}.filter-modal-btn-secondary[_ngcontent-%COMP%]{flex:1;padding:.5rem 1rem;background-color:#fff;color:#212529;border:1px solid #d1d5db;border-radius:.5rem;font-weight:600;font-size:.875rem;cursor:pointer;transition:background-color .15s}.filter-modal-btn-secondary[_ngcontent-%COMP%]:hover{background-color:#f9fafb}.filter-modal-btn-primary[_ngcontent-%COMP%]{flex:1;padding:.5rem 1rem;background-color:#1a8163;color:#fff;border:none;border-radius:.5rem;font-weight:600;font-size:.875rem;cursor:pointer;transition:background-color .15s}.filter-modal-btn-primary[_ngcontent-%COMP%]:hover{background-color:#156b52}
1.catalog-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40vh;gap:1rem;color:#6b7280;font-size:1rem}.catalog-loading-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#1a8163;border-radius:50%;animation:_ngcontent-%COMP%_catalogSpin .8s linear infinite}@keyframes _ngcontent-%COMP%_catalogSpin{to{transform:rotate(360deg)}}.catalog-error[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40vh;gap:1rem;color:#6b7280;font-size:1rem}.catalog-retry-btn[_ngcontent-%COMP%]{padding:.5rem 1.5rem;background-color:#1a8163;color:#fff;border:none;border-radius:9999px;font-weight:600;font-size:.875rem;cursor:pointer;transition:background-color .2s}.catalog-retry-btn[_ngcontent-%COMP%]:hover{background-color:#156b52}.search-results-page[_ngcontent-%COMP%]{max-width:1400px;margin:0 auto;padding:24px 16px}.search-results-header[_ngcontent-%COMP%]{margin-bottom:24px}.search-results-title[_ngcontent-%COMP%]{font-size:28px;font-weight:700;color:#1a1a1a;margin:0}.search-results-loading[_ngcontent-%COMP%], .search-results-error[_ngcontent-%COMP%], .search-results-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;text-align:center;gap:16px}.search-results-loading-spinner[_ngcontent-%COMP%]{width:48px;height:48px;border:4px solid #f0f0f0;border-top-color:#1eb487;border-radius:50%;animation:_ngcontent-%COMP%_spin .9s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.search-results-retry-btn[_ngcontent-%COMP%]{padding:10px 20px;background:#1eb487;color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer}.search-results-controls[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}.search-results-count[_ngcontent-%COMP%]{font-size:14px;color:#555}.search-results-clear-filters[_ngcontent-%COMP%]{margin-left:12px;padding:0;border:0;background:transparent;color:#166c57;font:inherit;cursor:pointer;text-decoration:underline}.search-results-sort[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.search-results-sort-label[_ngcontent-%COMP%]{font-size:14px;color:#555}.search-results-sort-select[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #d4d4d4;border-radius:6px;background:#fff;font-size:14px;cursor:pointer}.search-results-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;align-items:stretch}.search-results-grid[_ngcontent-%COMP%] app-product-card[_ngcontent-%COMP%]{display:flex;height:100%}.search-results-grid[_ngcontent-%COMP%] app-product-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%;height:100%}@keyframes _ngcontent-%COMP%_search-skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.search-result-skeleton[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:.5rem;background:#fff;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.search-result-skeleton-image[_ngcontent-%COMP%], .search-result-skeleton-line[_ngcontent-%COMP%], .search-result-skeleton-price[_ngcontent-%COMP%], .search-result-skeleton-swatches[_ngcontent-%COMP%], .search-result-skeleton-button[_ngcontent-%COMP%], .search-result-skeleton-wishlist[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f0f0f0 25%,#e2e2e2,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_search-skeleton-shimmer 1.35s linear infinite}.search-result-skeleton-image[_ngcontent-%COMP%]{width:100%;height:330px}.search-result-skeleton-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;gap:10px;padding:16px}.search-result-skeleton-line[_ngcontent-%COMP%], .search-result-skeleton-price[_ngcontent-%COMP%]{display:block;height:14px;border-radius:4px}.search-result-skeleton-line--short[_ngcontent-%COMP%]{width:42%}.search-result-skeleton-line--medium[_ngcontent-%COMP%]{width:72%}.search-result-skeleton-price[_ngcontent-%COMP%]{width:48%;height:20px;margin-top:auto}.search-result-skeleton-swatches[_ngcontent-%COMP%]{width:88px;height:16px;border-radius:9999px}.search-result-skeleton-button[_ngcontent-%COMP%]{height:38px;border-radius:9999px;margin-top:4px}.search-result-skeleton-wishlist[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;z-index:1;width:32px;height:32px;border-radius:50%}@media(max-width:767px){.search-result-skeleton[_ngcontent-%COMP%]{flex-direction:row;border-radius:4px}.search-result-skeleton-image[_ngcontent-%COMP%]{width:33.333%;height:auto;min-height:144px}.search-result-skeleton-content[_ngcontent-%COMP%]{justify-content:center;padding:12px}.search-result-skeleton-swatches[_ngcontent-%COMP%], .search-result-skeleton-button[_ngcontent-%COMP%]{display:none}}.search-results-pagination[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:32px}.search-results-pagination-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;min-height:44px;border:1px solid #d4d4d4;border-radius:6px;background:#fff;cursor:pointer;font-size:14px}.search-results-pagination-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px}.search-results-pagination-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.search-results-pagination-current[_ngcontent-%COMP%]{font-size:14px;color:#555}.empty-icon[_ngcontent-%COMP%]{width:56px;height:56px;color:#999}.empty-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;margin:0}
1.empty-text[_ngcontent-%COMP%]{color:#777;margin:0}']})}return t})();export{Se as SearchResultsComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.