/* Aura V16 — Amazon-inspired category listing */
.ep-wasal-category{max-width:1500px;margin:0 auto;padding:0 24px 48px;color:#0f1111;font-family:inherit}
.ep-wasal-category .ep-collection-intro{margin:20px auto 14px;padding:0 0 12px;border:0}
.ep-wasal-category .ep-collection-intro .collection-page-title{font-size:28px;font-weight:700;letter-spacing:0;color:#0f1111;margin:0 0 6px}
.ep-wasal-category .ep-collection-description{color:#565959;font-size:13px}
.ep-wasal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 14px;padding:10px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd;color:#565959;font-size:13px}
.ep-wasal-toolbar-left{display:flex;align-items:center;gap:14px}.ep-wasal-results{font-weight:600;color:#0f1111}
.ep-wasal-sort{display:flex;align-items:center;gap:8px;font-weight:500;color:#0f1111}.ep-wasal-sort select{height:34px;min-width:190px;padding:0 30px 0 10px;border:1px solid #888c8c;border-radius:7px;background:#f0f2f2;color:#0f1111;font-size:13px;box-shadow:0 2px 5px rgba(15,17,17,.08)}
.ep-wasal-filter-open{display:none;border:1px solid #888c8c;border-radius:20px;background:#fff;padding:7px 14px;color:#0f1111;font-size:13px;font-weight:700;cursor:pointer}
.ep-wasal-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start}
.ep-wasal-sidebar{border:0;border-right:1px solid #ddd;border-radius:0;background:#fff;padding:0 18px 12px 0;box-shadow:none;min-width:0}
.ep-wasal-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 12px;border-bottom:1px solid #ddd}.ep-wasal-sidebar-head h2{font-size:16px;font-weight:700;color:#0f1111;margin:0}.ep-wasal-sidebar-head button{border:0;background:none;color:#007185;font-size:12px;font-weight:600;cursor:pointer;padding:5px 0}
.ep-wasal-search{display:flex;flex-direction:column;gap:7px;padding:13px 0;border-bottom:1px solid #ddd}.ep-wasal-search span{font-size:13px;font-weight:700;color:#0f1111}.ep-wasal-search input{width:100%;height:36px;border:1px solid #888c8c;border-radius:7px;padding:0 9px;font-size:12px;min-width:0}
.ep-wasal-facet{padding:13px 0;border-bottom:1px solid #ddd}.ep-wasal-facet summary{cursor:pointer;list-style:none;position:relative;padding-right:20px;font-size:14px;font-weight:700;color:#0f1111}.ep-wasal-facet summary::-webkit-details-marker{display:none}.ep-wasal-facet summary:after{content:'⌄';position:absolute;right:2px;top:-2px;color:#565959;font-size:17px}.ep-wasal-facet[open] summary:after{content:'⌃'}
.ep-wasal-facet-options{display:flex;flex-direction:column;gap:9px;padding:12px 1px 2px;max-height:220px;overflow:auto}.ep-wasal-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#0f1111;line-height:1.35;cursor:pointer}.ep-wasal-check input{accent-color:#007185;width:16px;height:16px;flex:none;margin:0}.ep-wasal-muted{font-size:12px;color:#565959}.ep-wasal-price-values{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:11px}.ep-wasal-price-values label{font-size:11px;color:#565959;font-weight:600}.ep-wasal-price-values input{width:100%;height:34px;margin-top:5px;border:1px solid #888c8c;border-radius:6px;padding:0 7px;font-size:12px;min-width:0}
.ep-wasal-results-area{min-width:0}.ep-wasal-results-area .product-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}.ep-wasal-results-area .ep-product-card{min-width:0;border:1px solid #e7e7e7;border-radius:4px;background:#fff;overflow:hidden;box-shadow:none;transition:border-color .15s}.ep-wasal-results-area .ep-product-card:hover{border-color:#c8c8c8;box-shadow:0 2px 8px rgba(15,17,17,.08)}.ep-wasal-results-area .ep-product-card .product-thumbnail{padding:12px;background:#fff}.ep-wasal-results-area .ep-product-card .product-thumbnail img{height:190px;max-height:190px;object-fit:contain!important}.ep-wasal-results-area .ep-product-card .product-details{padding:9px 12px 6px;text-align:left}.ep-wasal-results-area .ep-product-card .product-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:56px;font-size:13px;font-weight:500;line-height:1.45;color:#007185}.ep-wasal-results-area .ep-product-card .product-title:hover{color:#c45500;text-decoration:underline}.ep-wasal-results-area .ep-product-card .prices{justify-content:flex-start}.ep-wasal-results-area .ep-product-card .product-price{font-size:18px;font-weight:700;color:#0f1111}.ep-wasal-results-area .ep-product-card__actions{padding:8px 12px 12px}.ep-wasal-results-area .ep-product-card__actions .product-btn .yc-btn-secondary{background:#ffd814;color:#0f1111;border:1px solid #fcd200;border-radius:20px;min-height:34px;font-size:12px;font-weight:600}.ep-wasal-results-area .ep-product-card__actions .product-btn .yc-btn-secondary:hover{background:#f7ca00}
.ep-wasal-category [data-ep-product-card][hidden]{display:none!important}.ep-wasal-category .ep-filter-empty{margin:15px 0}.ep-wasal-backdrop{display:none}
@media(max-width:1100px){.ep-wasal-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.ep-wasal-results-area .product-list{grid-template-columns:repeat(3,minmax(0,1fr))}.ep-wasal-results-area .ep-product-card .product-thumbnail img{height:165px;max-height:165px}}
@media(max-width:700px){.ep-wasal-category{padding:0 12px 28px}.ep-wasal-category .ep-collection-intro .collection-page-title{font-size:23px}.ep-wasal-toolbar{align-items:center;margin:8px 0 12px}.ep-wasal-toolbar-left{gap:9px}.ep-wasal-filter-open{display:inline-flex;align-items:center;gap:6px}.ep-wasal-sort{gap:5px;font-size:11px}.ep-wasal-sort select{height:34px;min-width:135px;max-width:48vw;font-size:11px}.ep-wasal-layout{display:block}.ep-wasal-sidebar{position:fixed;z-index:10020;top:0;bottom:0;left:0;width:min(330px,86vw);max-width:86vw;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease;padding:18px 16px 30px;border:0;border-radius:0 12px 12px 0;box-shadow:0 0 28px rgba(0,0,0,.25)}.ep-wasal-category.ep-filters-open .ep-wasal-sidebar{transform:translateX(0)}.ep-wasal-backdrop{display:block;position:fixed;z-index:10010;inset:0;border:0;background:rgba(15,17,17,.48);opacity:0;visibility:hidden;transition:opacity .2s;cursor:pointer}.ep-wasal-category.ep-filters-open .ep-wasal-backdrop{opacity:1;visibility:visible}.ep-wasal-results-area .product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ep-wasal-results-area .ep-product-card .product-thumbnail{padding:7px}.ep-wasal-results-area .ep-product-card .product-thumbnail img{height:135px;max-height:135px}.ep-wasal-results-area .ep-product-card .product-details{padding:7px}.ep-wasal-results-area .ep-product-card .product-title{font-size:12px;min-height:50px}.ep-wasal-results-area .ep-product-card .product-price{font-size:15px}.ep-wasal-results-area .ep-product-card__actions{padding:6px 7px 8px}}
@media(max-width:380px){.ep-wasal-sort span{display:none}.ep-wasal-sort select{min-width:120px}.ep-wasal-results-area .ep-product-card .product-thumbnail img{height:115px;max-height:115px}}


/* Aura V3 — refined category filters, spacing and brand facets */
.ep-wasal-category{
  --ep-filter-navy:#14265c;--ep-filter-orange:#ef6b16;--ep-filter-line:#e5eaf2;
  --ep-filter-muted:#66738a;--ep-filter-soft:#F7F6FB;
}
.ep-wasal-category .ep-wasal-layout{
  grid-template-columns:minmax(248px,278px) minmax(0,1fr);
  gap:26px;align-items:start;
}
.ep-wasal-category .ep-wasal-sidebar{
  box-sizing:border-box;width:100%;min-width:0;padding:18px 18px 20px;
  border:1px solid var(--ep-filter-line);border-radius:16px;background:#fff;
  box-shadow:0 8px 28px rgba(20,38,92,.07);
}
.ep-wasal-category .ep-wasal-sidebar-head{
  align-items:center;margin:0 0 2px;padding:0 0 14px;border-bottom:1px solid var(--ep-filter-line);
}
.ep-wasal-category .ep-wasal-sidebar-head h2{
  color:var(--ep-filter-navy);font-size:17px;font-weight:800;letter-spacing:-.02em;
}
.ep-wasal-category .ep-wasal-sidebar-head button{
  padding:7px 10px;border-radius:8px;background:#f1f5fb;color:var(--ep-filter-navy);
  font-size:11px;font-weight:800;white-space:nowrap;
}
.ep-wasal-category .ep-wasal-sidebar-head button:hover{background:#e6edf8}
.ep-wasal-category .ep-wasal-search{gap:8px;padding:16px 0}
.ep-wasal-category .ep-wasal-search span{
  color:#24345d;font-size:12px;font-weight:800;line-height:1.4;
}
.ep-wasal-category .ep-wasal-search input{
  box-sizing:border-box;width:100%;height:43px;padding:0 13px;border:1px solid #d9e1ed;
  border-radius:10px;background:#f9fbfe;color:#17233d;font-size:13px;
  outline:none;box-shadow:inset 0 1px 2px rgba(20,38,92,.03);transition:border-color .18s,box-shadow .18s;
}
.ep-wasal-category .ep-wasal-search input:focus{
  border-color:#526cae;background:#fff;box-shadow:0 0 0 3px rgba(44,83,160,.12);
}
.ep-wasal-category .ep-wasal-search input::placeholder{color:#98a3b6}
.ep-wasal-category .ep-wasal-facet{padding:14px 0;border-bottom:1px solid var(--ep-filter-line)}
.ep-wasal-category .ep-wasal-facet summary{
  color:var(--ep-filter-navy);font-size:13px;font-weight:800;line-height:1.4;
}
.ep-wasal-category .ep-wasal-facet-options{
  gap:3px;padding:10px 0 2px;max-height:250px;overscroll-behavior:contain;
}
.ep-wasal-category .ep-wasal-check{
  display:flex;align-items:center;gap:9px;min-height:34px;padding:6px 8px;
  border-radius:8px;color:#34415b;font-size:12px;line-height:1.35;transition:background .15s;
}
.ep-wasal-category .ep-wasal-check:hover{background:#f4f7fc}
.ep-wasal-category .ep-wasal-check input{
  width:16px;height:16px;accent-color:var(--ep-filter-orange);cursor:pointer;
}
.ep-wasal-category .ep-wasal-check-label{flex:1;min-width:0;overflow-wrap:anywhere}
.ep-wasal-category .ep-wasal-facet-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;
  padding:0 6px;border-radius:20px;background:#eef2f8;color:#69758b;font-size:10px;font-weight:800;
}
.ep-wasal-category .ep-wasal-muted{
  display:block;padding:10px;border-radius:9px;background:#FAF9FD;color:#778399;font-size:11px;line-height:1.5;
}
.ep-wasal-category .ep-wasal-price-values{gap:10px;padding-top:12px}
.ep-wasal-category .ep-wasal-price-values label{color:#53617a;font-size:11px;font-weight:700}
.ep-wasal-category .ep-wasal-price-values input{
  box-sizing:border-box;width:100%;height:40px;padding:0 10px;border:1px solid #d9e1ed;
  border-radius:9px;background:#f9fbfe;color:#17233d;font-size:12px;
}
.ep-wasal-category .ep-wasal-price-values input:focus{outline:none;border-color:#526cae;box-shadow:0 0 0 3px rgba(44,83,160,.1)}
.ep-wasal-category .ep-wasal-check input:focus-visible,
.ep-wasal-category button:focus-visible,
.ep-wasal-category summary:focus-visible{outline:3px solid rgba(239,107,22,.25);outline-offset:2px}
.ep-wasal-category .ep-wasal-toolbar{margin:10px 0 18px;padding:12px 2px}
.ep-wasal-category .ep-wasal-results-area{min-width:0}
@media(min-width:701px){
  .ep-wasal-category .ep-wasal-sidebar{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow-y:auto}
}
@media(max-width:1100px) and (min-width:701px){
  .ep-wasal-category .ep-wasal-layout{grid-template-columns:minmax(220px,250px) minmax(0,1fr);gap:18px}
}
@media(max-width:700px){
  .ep-wasal-category .ep-wasal-layout{display:block}
  .ep-wasal-category .ep-wasal-sidebar{
    box-sizing:border-box;width:min(380px,90vw);max-width:90vw;padding:20px 18px 28px;
    border:0;border-radius:0 18px 18px 0;box-shadow:12px 0 36px rgba(12,25,58,.2);
  }
  .ep-wasal-category.ep-filters-open .ep-wasal-sidebar{transform:translateX(0)}
  .ep-wasal-category .ep-wasal-sidebar-head h2{font-size:18px}
  .ep-wasal-category .ep-wasal-search input{height:46px;font-size:14px}
  .ep-wasal-category .ep-wasal-facet summary{font-size:14px}
  .ep-wasal-category .ep-wasal-check{min-height:40px;font-size:13px}
  .ep-wasal-category .ep-wasal-price-values input{height:42px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .ep-wasal-category .ep-wasal-sidebar,.ep-wasal-category .ep-wasal-search input,
  .ep-wasal-category .ep-wasal-check{transition:none}
}

/* V4 — devise marocaine et style unifié des facettes sur toutes les collections */
.ep-wasal-category .ep-wasal-currency-note{
  margin:9px 0 0;padding:8px 10px;border-radius:8px;
  background:#f5f7fb;color:#68758b;font-size:10px;line-height:1.45;
}
.ep-wasal-category .ep-wasal-price-values label{
  display:block;min-width:0;color:#465571;font-size:11px;font-weight:750;
}
.ep-wasal-category .ep-wasal-price-values input{
  font-variant-numeric:tabular-nums;
}


/* V5 — Fix global: author display rules must never override the hidden state */
.ep-wasal-category [data-ep-product-card][hidden],
.ep-wasal-category [data-ep-wasal-empty][hidden],
.ep-wasal-category [data-ep-wasal-attribute][hidden] {
  display: none !important;
}
.ep-wasal-category [data-ep-product-card]:not([hidden]) {
  visibility: visible;
}
