:root {
  --ces-accent: #166534;
  --ces-accent-hover: #14532d;
  --ces-border: #e5e7eb;
  --ces-muted: #6b7280;
  --ces-bg: #ffffff;
}

.ces-shop { position: relative; width: 100%; }
.ces-shop-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ces-filters { background: var(--ces-bg); border: 1px solid var(--ces-border); border-radius: 12px; padding: 20px; }
.ces-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ces-filter-heading h2 { font-size: 22px; margin: 0; }
.ces-filter-close, .ces-filter-toggle { display: none; }
.ces-filter-group { border: 0; border-top: 1px solid var(--ces-border); margin: 0; padding: 18px 0; min-width: 0; }
.ces-filter-group:first-of-type { border-top: 0; }
.ces-filter-group h3, .ces-filter-group legend, .ces-label { color: #111827; display: block; font-size: 15px; font-weight: 700; margin: 0 0 12px; padding: 0; }
.ces-filter-group input[type="search"], .ces-filter-group input[type="number"], .ces-orderby { background: #fff; border: 1px solid #d1d5db; border-radius: 8px; min-height: 42px; padding: 8px 11px; width: 100%; }
.ces-options-list { max-height: 220px; overflow: auto; padding-right: 4px; }
.ces-choice { align-items: center; color: #374151; cursor: pointer; display: flex; font-size: 14px; gap: 9px; margin-bottom: 9px; }
.ces-choice input { accent-color: var(--ces-accent); flex: 0 0 auto; }
.ces-choice span { flex: 1; }
.ces-choice small { color: var(--ces-muted); }
.ces-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ces-price-fields span { color: var(--ces-muted); display: block; font-size: 12px; margin-bottom: 5px; }
.ces-filter-actions { display: grid; gap: 9px; }
.ces-apply-filters, .ces-clear-filters { border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; min-height: 44px; padding: 10px 14px; }
.ces-apply-filters { background: var(--ces-accent); color: #fff; }
.ces-apply-filters:hover { background: var(--ces-accent-hover); }
.ces-clear-filters { background: #f3f4f6; color: #374151; }
.ces-toolbar { align-items: center; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ces-result-count { color: var(--ces-muted); font-size: 14px; }
.ces-orderby { min-width: 190px; }
.ces-products-wrap ul.products { display: grid !important; gap: 24px; grid-template-columns: repeat(var(--ces-columns, 3), minmax(0, 1fr)); margin: 0 !important; }
.ces-products-wrap ul.products::before, .ces-products-wrap ul.products::after { display: none !important; }
.ces-products-wrap ul.products li.product { float: none !important; margin: 0 !important; width: auto !important; }
.ces-pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 36px; }
.ces-pagination .page-numbers { align-items: center; border: 1px solid var(--ces-border); border-radius: 7px; color: #374151; display: inline-flex; justify-content: center; min-height: 40px; min-width: 40px; padding: 6px 10px; text-decoration: none; }
.ces-pagination .current, .ces-pagination a:hover { background: var(--ces-accent); border-color: var(--ces-accent); color: #fff; }
.ces-loading { align-items: center; background: rgba(255,255,255,.7); inset: 0; justify-content: center; position: absolute; z-index: 20; }
.ces-is-loading .ces-loading { display: flex; }
.ces-spinner { animation: ces-spin .75s linear infinite; border: 3px solid #d1d5db; border-radius: 50%; border-top-color: var(--ces-accent); height: 38px; width: 38px; }
.ces-filter-overlay { display: none; }
@keyframes ces-spin { to { transform: rotate(360deg); } }

@media (min-width: 769px) {
  .ces-shop[data-config*='\"columns\":2'] { --ces-columns: 2; }
  .ces-shop[data-config*='\"columns\":3'] { --ces-columns: 3; }
  .ces-shop[data-config*='\"columns\":4'] { --ces-columns: 4; }
  .ces-shop[data-config*='\"columns\":5'] { --ces-columns: 5; }
  .ces-shop[data-config*='\"columns\":6'] { --ces-columns: 6; }
}

@media (max-width: 1024px) {
  .ces-shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .ces-products-wrap ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .ces-filter-toggle { align-items: center; background: var(--ces-accent); border: 0; border-radius: 8px; color: #fff; display: inline-flex; font-weight: 700; gap: 8px; margin-bottom: 18px; min-height: 44px; padding: 10px 15px; }
  .ces-shop-layout { display: block; }
  .ces-filters { border-radius: 0 14px 14px 0; bottom: 0; left: 0; max-width: 340px; overflow-y: auto; position: fixed; top: 0; transform: translateX(-105%); transition: transform .25s ease; width: 88%; z-index: 99999; }
  .ces-filter-heading { position: sticky; top: -20px; background: #fff; padding: 20px 0 12px; z-index: 2; }
  .ces-filter-close { background: transparent; border: 0; color: #111827; cursor: pointer; display: block; font-size: 32px; line-height: 1; }
  .ces-filter-overlay { background: rgba(17,24,39,.55); inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: opacity .25s ease; z-index: 99998; }
  .ces-filters-open .ces-filters { transform: translateX(0); }
  .ces-filters-open .ces-filter-overlay { display: block; opacity: 1; pointer-events: auto; }
  .ces-lock-scroll { overflow: hidden; }
}

@media (max-width: 520px) {
  .ces-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .ces-orderby { width: 100%; }
  .ces-products-wrap ul.products { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

