/* Bambogilda v0.16.0 — AJAX product archive */
.zg-shop-archive-main { padding: 34px 0 90px; background: #fff; }
.zg-shop-archive-main .zg-breadcrumb { margin-bottom: 34px; }
.zg-shop-category-strip { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 62px; }
.zg-shop-category-track { display: flex; flex: 1; gap: 36px; min-width: 0; padding: 3px 2px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-inline: contain; }
.zg-shop-category-track::-webkit-scrollbar { display: none; }
.zg-shop-category-card { display: flex; width: 118px; min-width: 118px; flex-direction: column; align-items: center; gap: 9px; color: var(--zg-gray-100); scroll-snap-align: start; transition: transform .22s ease, color .22s ease; }
.zg-shop-category-card:hover { color: var(--zg-primary); transform: translateY(-3px); }
.zg-shop-category-visual { display: grid; width: 104px; height: 104px; place-items: center; padding: 13px; overflow: hidden; border: 1px solid #eef5e8; border-radius: 19px; background: #fff; color: #445247; box-shadow: 0 7px 15px rgba(37,49,41,.035); transition: .22s ease; }
.zg-shop-category-card img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.zg-shop-category-card strong { display: block; max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.zg-shop-category-card.is-active { color: var(--zg-primary); font-weight: 700; }
.zg-shop-category-card.is-active .zg-shop-category-visual { border-color: var(--zg-primary-light); background: var(--zg-primary-light); color: #fff; box-shadow: var(--zg-red-shadow); }
.zg-shop-category-card.is-active img { filter: brightness(0) invert(1); mix-blend-mode: normal; }
.zg-shop-category-arrow { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #dce8d5; transition: color .2s ease, box-shadow .2s ease, transform .2s ease; }
.zg-shop-category-arrow:hover { color: var(--zg-primary); box-shadow: 0 7px 18px rgba(37,49,41,.1); transform: translateY(-1px); }
.zg-shop-category-arrow:disabled { opacity: .25; pointer-events: none; }

.zg-shop-archive-layout { display: grid; grid-template-columns: 282px minmax(0,1fr); gap: 28px; align-items: start; direction: rtl; }
.zg-shop-filter-card { position: sticky; top: 122px; padding: 21px 17px 18px; border: 1px solid #f8fbf4; border-radius: 22px; background: #fff; box-shadow: 0 12px 28px rgba(37,49,41,.09); }
.zg-shop-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.zg-shop-filter-head h2 { margin: 0; color: var(--zg-dark-700); font-size: 22px; }
.zg-shop-filter-head button { display: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f8fbf4; color: var(--zg-dark-600); font-size: 24px; line-height: 1; }
.zg-shop-filter-search { position: relative; display: block; margin-bottom: 16px; }
.zg-shop-filter-search svg { position: absolute; top: 50%; right: 13px; color: #445247; transform: translateY(-50%); pointer-events: none; }
.zg-shop-filter-search input { width: 100%; height: 45px; padding: 0 44px 0 12px; border: 1px solid #f8fbf4; border-radius: 999px; outline: 0; background: #fff; color: var(--zg-dark-700); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.zg-shop-filter-search input:focus { border-color: rgba(130,194,110,.55); box-shadow: 0 0 0 4px rgba(130,194,110,.07); }
.zg-shop-filter-search > label { position: relative; display: block; }
.zg-shop-filter-search .zg-live-search-results { top: calc(100% + 7px); right: 0; width: 100%; min-width: 248px; max-height: 350px; border-radius: 15px; }
.zg-shop-filter-search .zg-live-search-item { grid-template-columns: 46px minmax(0,1fr) 22px; min-height: 61px; gap: 8px; }
.zg-shop-filter-search .zg-live-search-thumb { width: 44px; height: 44px; }
.zg-shop-filter-search .zg-live-search-copy strong { font-size: 10px; }
.zg-shop-filter-search .zg-live-search-copy small { font-size: 9px; }

.zg-shop-stock-switch { display: grid; grid-template-columns: minmax(0,1fr) 43px; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #f8fbf4; border-bottom: 1px solid #f8fbf4; cursor: pointer; }
.zg-shop-stock-switch > span { color: var(--zg-dark-700); font-size: 13px; font-weight: 600; }
.zg-shop-stock-switch input { position: absolute; opacity: 0; pointer-events: none; }
.zg-shop-stock-switch i { position: relative; display: block; width: 43px; height: 23px; border: 1px solid #eef5e8; border-radius: 999px; background: #fff; transition: .2s ease; }
.zg-shop-stock-switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: #dce8d5; transition: transform .2s ease, background .2s ease; }
.zg-shop-stock-switch input:checked + i { border-color: var(--zg-primary-light); background: rgba(130,194,110,.08); }
.zg-shop-stock-switch input:checked + i::after { background: var(--zg-primary-light); transform: translateX(-19px); }
.zg-shop-filter-group { border-bottom: 1px solid #f8fbf4; }
.zg-shop-filter-group summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; list-style: none; color: var(--zg-dark-700); cursor: pointer; font-size: 13px; font-weight: 600; }
.zg-shop-filter-group summary::-webkit-details-marker { display: none; }
.zg-shop-filter-group summary i { position: relative; width: 15px; height: 15px; }
.zg-shop-filter-group summary i::before, .zg-shop-filter-group summary i::after { content: ""; position: absolute; top: 7px; left: 2px; width: 11px; height: 1.5px; border-radius: 3px; background: var(--zg-primary); }
.zg-shop-filter-group summary i::after { transform: rotate(90deg); transition: transform .2s ease; }
.zg-shop-filter-group[open] summary i::after { transform: rotate(0deg); }
.zg-shop-filter-options { max-height: 185px; padding: 0 2px 13px; overflow-y: auto; scrollbar-width: thin; }
.zg-shop-filter-options label { display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 7px 0; color: var(--zg-gray-100); cursor: pointer; font-size: 12px; }
.zg-shop-filter-options input { appearance: none; width: 17px; height: 17px; margin: 0; border: 1px solid #eef5e8; border-radius: 50%; background: #fff; }
.zg-shop-filter-options input:checked { border: 5px solid var(--zg-primary-light); }
.zg-shop-filter-options small { color: #dce8d5; font-size: 10px; }
.zg-price-slider { position: relative; height: 34px; margin-top: 4px; }
.zg-price-range-track { position: absolute; top: 16px; right: 0; left: 0; height: 3px; overflow: hidden; border-radius: 999px; background: #eef5e8; }
.zg-price-range-track span { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--zg-primary-light); }
.zg-price-slider input[type=range] { position: absolute; top: 9px; right: 0; width: 100%; height: 18px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
.zg-price-slider input[type=range]::-webkit-slider-thumb { width: 13px; height: 13px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--zg-primary-light); box-shadow: 0 0 0 1px var(--zg-primary-light); pointer-events: auto; cursor: grab; }
.zg-price-slider input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: var(--zg-primary-light); box-shadow: 0 0 0 1px var(--zg-primary-light); pointer-events: auto; cursor: grab; }
.zg-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 0 16px; }
.zg-price-inputs label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 4px; min-width: 0; height: 38px; padding: 0 8px; border: 1px solid #eef5e8; border-radius: 999px; background: #fff; color: #445247; }
.zg-price-inputs span, .zg-price-inputs small { font-size: 9px; white-space: nowrap; }
.zg-price-inputs input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--zg-dark-700); font-size: 10px; text-align: center; -moz-appearance: textfield; }
.zg-price-inputs input::-webkit-inner-spin-button { display: none; }
.zg-shop-filter-actions { display: flex; gap: 10px; padding-top: 18px; }
.zg-shop-filter-actions button { min-height: 43px; padding: 0 18px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.zg-shop-apply-filter { flex: 1; border: 0; background: var(--zg-primary-light); color: #fff; box-shadow: var(--zg-red-shadow); }
.zg-shop-clear-filter { min-width: 74px; border: 1px solid #eef5e8; background: #fff; color: var(--zg-gray-200); }

.zg-shop-archive-content { position: relative; min-width: 0; }
.zg-shop-dynamic { transition: opacity .18s ease, transform .18s ease; }
.zg-shop-archive-content.is-loading .zg-shop-dynamic { opacity: .28; transform: translateY(4px); pointer-events: none; }
.zg-shop-loading { position: absolute; z-index: 12; top: 80px; left: 50%; display: flex; visibility: hidden; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid #f8fbf4; border-radius: 999px; background: #fff; color: var(--zg-navy); box-shadow: 0 10px 25px rgba(37,49,41,.12); opacity: 0; transform: translateX(-50%) translateY(-5px); transition: .18s ease; }
.zg-shop-loading span { width: 17px; height: 17px; border: 2px solid #f8fbf4; border-top-color: var(--zg-primary); border-radius: 50%; animation: zgShopSpin .7s linear infinite; }
.zg-shop-loading p { margin: 0; font-size: 11px; }
.zg-shop-archive-content.is-loading .zg-shop-loading { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes zgShopSpin { to { transform: rotate(360deg); } }

.zg-shop-toolbar { display: flex; min-height: 56px; align-items: center; gap: 18px; margin-bottom: 34px; padding: 7px 16px; border-radius: 16px; background: #f8fbf4; }
.zg-shop-sort-label { display: inline-flex; align-items: center; gap: 7px; color: var(--zg-dark-700); white-space: nowrap; }
.zg-shop-sort-label svg { color: var(--zg-navy); }
.zg-shop-sort-label strong { font-size: 13px; }
.zg-shop-sort-options { display: flex; align-items: stretch; gap: 20px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.zg-shop-sort-options::-webkit-scrollbar { display: none; }
.zg-shop-sort-options button { position: relative; min-height: 42px; padding: 0 2px; border: 0; background: transparent; color: var(--zg-gray-100); font-size: 12px; white-space: nowrap; }
.zg-shop-sort-options button::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; border-radius: 999px; background: var(--zg-primary-light); opacity: 0; transform: scaleX(.3); transition: .2s ease; }
.zg-shop-sort-options button.is-active { color: var(--zg-primary); font-weight: 700; }
.zg-shop-sort-options button.is-active::after { opacity: 1; transform: scaleX(1); }
.zg-shop-result-count { margin-right: auto; color: var(--zg-gray-100); font-size: 11px; white-space: nowrap; }
.zg-shop-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.zg-shop-product-grid .zg-product-card { min-width: 0; min-height: 342px; padding-inline: 11px; }
.zg-shop-product-grid .zg-product-card-image { height: 158px; padding: 8px; }
.zg-shop-product-grid .zg-product-card-title h3 { min-height: 55px; font-size: 13px; }
.zg-shop-product-grid .zg-product-card-discount { left: -14px; right: auto; bottom: 67px !important; }
.zg-shop-product-grid .zg-product-card-cart { width: 46px; height: 46px; border-radius: 13px; }
.zg-shop-product-grid .zg-product-card-price > strong { font-size: 13px; }
.zg-shop-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 50px; }
.zg-shop-pagination .page-numbers { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 9px; border: 1px solid #f8fbf4; border-radius: 8px; background: #fff; color: var(--zg-gray-200); box-shadow: 0 5px 12px rgba(37,49,41,.06); font-size: 12px; }
.zg-shop-pagination .page-numbers.current { border-color: var(--zg-primary-light); background: var(--zg-primary-light); color: #fff; }
.zg-shop-pagination a.page-numbers:hover { border-color: rgba(130,194,110,.35); color: var(--zg-primary); }
.zg-shop-empty { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 40px; border: 1px dashed #eef5e8; border-radius: 22px; color: var(--zg-gray-100); text-align: center; }
.zg-shop-empty svg { color: var(--zg-primary); }
.zg-shop-empty h2 { margin: 10px 0 5px; font-size: 22px; }
.zg-shop-empty p { margin: 0; font-size: 13px; }
.zg-shop-mobile-filter { display: none; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 17px; padding: 0 15px; border: 1px solid #f8fbf4; border-radius: 12px; background: #fff; color: var(--zg-navy); font-size: 12px; font-weight: 700; }

@media (max-width: 1180px) {
  .zg-shop-category-track { gap: 24px; }
  .zg-shop-archive-layout { grid-template-columns: 248px minmax(0,1fr); gap: 20px; }
  .zg-shop-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
  .zg-shop-product-grid .zg-product-card-image { height: 142px; }
  .zg-shop-toolbar { gap: 12px; }
  .zg-shop-sort-options { gap: 13px; }
}
@media (max-width: 940px) {
  .zg-shop-archive-layout { display: block; }
  .zg-shop-mobile-filter { display: inline-flex; }
  .zg-shop-filter-card { position: fixed; z-index: 1400; top: 0; right: 0; width: min(88vw,360px); height: 100dvh; padding: 22px 18px; overflow-y: auto; border: 0; border-radius: 0; transform: translateX(110%); transition: transform .26s ease; }
  .zg-shop-filter-card.is-open { transform: translateX(0); }
  .zg-shop-filter-head button { display: grid; place-items: center; }
  .zg-shop-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .zg-shop-archive-main { padding-top: 22px; }
  .zg-shop-category-strip { margin-bottom: 34px; }
  .zg-shop-category-track { gap: 14px; }
  .zg-shop-category-card { width: 94px; min-width: 94px; }
  .zg-shop-category-visual { width: 86px; height: 86px; border-radius: 16px; }
  .zg-shop-category-card strong { font-size: 11px; }
  .zg-shop-category-arrow { width: 31px; height: 31px; flex-basis: 31px; }
  .zg-shop-toolbar { flex-wrap: wrap; min-height: 0; padding: 9px 12px; margin-bottom: 20px; }
  .zg-shop-sort-label { width: 100%; }
  .zg-shop-sort-options { order: 3; width: 100%; gap: 18px; }
  .zg-shop-result-count { margin-right: 0; margin-left: auto; }
  .zg-shop-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .zg-shop-product-grid .zg-product-card { min-height: 310px; padding: 10px 10px 13px; border-radius: 18px; }
  .zg-shop-product-grid .zg-product-card-image { height: 130px; }
  .zg-shop-product-grid .zg-product-card-title h3 { min-height: 50px; font-size: 11px; }
  .zg-shop-product-grid .zg-product-card-bottom { grid-template-columns: minmax(0,1fr) 42px; gap: 6px; }
  .zg-shop-product-grid .zg-product-card-cart { width: 42px; height: 42px; }
  .zg-shop-product-grid .zg-product-card-price > strong { font-size: 11px; }
  .zg-shop-product-grid .zg-product-card-discount { left: -10px; bottom: 62px !important; min-width: 46px; height: 25px; }
}
@media (max-width: 420px) {
  .zg-shop-category-strip { gap: 6px; }
  .zg-shop-category-arrow { display: none; }
  .zg-shop-category-track { margin-inline: -2px; }
  .zg-shop-product-grid .zg-product-card { min-height: 290px; padding-inline: 8px; }
  .zg-shop-product-grid .zg-product-card-image { height: 116px; }
  .zg-shop-sort-options button { font-size: 11px; }
  .zg-shop-pagination .page-numbers { min-width: 34px; height: 34px; }
}

/* Version 0.15.0 — mobile filter drawer, bottom sorting sheet and category interactions. */
.zg-shop-mobile-toolbar-actions { display: none; }
.zg-shop-sort-sheet { display: none; }
.zg-shop-category-track { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.zg-shop-category-track, .zg-shop-category-track * { -webkit-user-drag: none; user-drag: none; }
.zg-shop-category-card { user-select: none; -webkit-user-select: none; }
.zg-shop-category-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.zg-shop-category-track img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

/* The whole category tile becomes red on hover/selection, matching the supplied design. */
.zg-shop-category-card {
  width: 122px;
  min-width: 122px;
  min-height: 132px;
  padding: 10px 8px 9px;
  border: 1px solid #eef5e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 15px rgba(37,49,41,.035);
  overflow: hidden;
  color: var(--zg-gray-100);
  transition: transform .22s ease, color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.zg-shop-category-visual {
  width: 100%;
  height: 91px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.zg-shop-category-card strong { position: relative; z-index: 2; color: inherit; }
.zg-shop-category-card:hover,
.zg-shop-category-card:focus-visible,
.zg-shop-category-card.is-active {
  border-color: var(--zg-primary-light);
  background: var(--zg-primary-light);
  color: #fff;
  box-shadow: var(--zg-red-shadow);
  transform: translateY(-3px);
}
.zg-shop-category-card:hover .zg-shop-category-visual,
.zg-shop-category-card:focus-visible .zg-shop-category-visual,
.zg-shop-category-card.is-active .zg-shop-category-visual {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.zg-shop-category-card:hover img,
.zg-shop-category-card:focus-visible img,
.zg-shop-category-card.is-active img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

/* Archive cards: image is always a distinct block and title always follows it. */
.zg-shop-product-grid .zg-product-card {
  display: flex !important;
  flex-direction: column !important;
  isolation: isolate;
}
.zg-shop-product-grid .zg-product-card-top { order: 1; flex: 0 0 auto; }
.zg-shop-product-grid .zg-product-card-image {
  position: relative !important;
  inset: auto !important;
  order: 2;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  background: #fff;
  transform: none !important;
}
.zg-shop-product-grid .zg-product-card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  mix-blend-mode: normal;
}
.zg-shop-product-grid .zg-product-card-title {
  position: relative !important;
  inset: auto !important;
  order: 3;
  flex: 0 0 auto;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  background: #fff;
  transform: none !important;
}
.zg-shop-product-grid .zg-product-card-bottom { order: 4; }

@media (max-width: 940px) {
  .zg-shop-archive-main { overflow-x: hidden; }
  .zg-shop-archive-main .zg-container { width: min(calc(100% - 18px), var(--zg-container)); }

  .zg-shop-category-strip { gap: 7px; margin-bottom: 28px; }
  .zg-shop-category-track { gap: 10px; padding: 3px 1px 10px; }
  .zg-shop-category-card {
    width: calc((100vw - 76px) / 3);
    min-width: calc((100vw - 76px) / 3);
    max-width: 112px;
    min-height: 105px;
    padding: 7px 5px 6px;
    border-radius: 16px;
  }
  .zg-shop-category-visual { height: 68px; padding: 5px; }
  .zg-shop-category-card strong { font-size: 10px; }

  .zg-shop-toolbar {
    display: flex;
    min-height: 54px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 3px;
    border-radius: 0;
    background: transparent;
  }
  .zg-shop-sort-label,
  .zg-shop-sort-options { display: none; }
  .zg-shop-result-count {
    order: 1;
    margin: 0;
    color: var(--zg-gray-100);
    font-size: 11px;
    font-weight: 500;
  }
  .zg-shop-mobile-toolbar-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
  }
  .zg-shop-mobile-action,
  .zg-shop-mobile-filter {
    display: inline-grid !important;
    width: 43px;
    height: 43px;
    min-height: 43px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #f8fbf4;
    border-radius: 11px;
    background: #fff;
    color: var(--zg-navy);
    box-shadow: 0 8px 17px rgba(37,49,41,.13);
  }
  .zg-shop-mobile-filter { color: var(--zg-primary); }

  /* Filter drawer enters from the right. */
  .zg-shop-filter-card {
    position: fixed;
    z-index: 1450;
    top: 0;
    right: 0;
    left: auto;
    width: min(89vw, 390px);
    height: 100dvh;
    max-height: none;
    padding: 34px 22px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: -18px 0 45px rgba(37,49,41,.16);
    transform: translate3d(110%,0,0);
    transition: transform .28s cubic-bezier(.22,.75,.25,1);
  }
  .zg-shop-filter-card.is-open { transform: translate3d(0,0,0); }
  .zg-shop-filter-head { margin-bottom: 26px; }
  .zg-shop-filter-head h2 { font-size: 27px; }
  .zg-shop-filter-head button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: var(--zg-primary);
    font-size: 39px;
    font-weight: 300;
  }
  .zg-shop-filter-search input { height: 49px; font-size: 12px; }
  .zg-shop-stock-switch { padding: 22px 0; }
  .zg-shop-stock-switch > span { font-size: 15px; }
  .zg-shop-filter-group summary { min-height: 62px; font-size: 15px; }
  .zg-shop-filter-actions { position: sticky; bottom: -24px; margin: 12px -22px -24px; padding: 18px 22px 24px; background: linear-gradient(180deg,rgba(255,255,255,.7),#fff 24%); }
  .zg-shop-filter-actions button { min-height: 50px; font-size: 14px; }

  /* Sorting opens as a bottom sheet on phones/tablets. */
  .zg-shop-sort-sheet {
    position: fixed;
    z-index: 1460;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-height: min(76dvh, 620px);
    padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(37,49,41,.22);
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0,110%,0);
    transition: transform .28s cubic-bezier(.22,.75,.25,1), opacity .2s ease, visibility .28s;
  }
  .zg-shop-sort-sheet.is-open {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0,0,0);
  }
  .zg-shop-sort-sheet::before {
    content: "";
    display: block;
    width: 54px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #eef5e8;
  }
  .zg-shop-sort-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
  .zg-shop-sort-sheet-head h2 { margin: 0; color: var(--zg-dark-700); font-size: 21px; }
  .zg-shop-sort-sheet-head button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(130,194,110,.06); color: var(--zg-primary); font-size: 28px; }
  .zg-shop-sort-sheet-options { display: grid; }
  .zg-shop-sort-sheet-options button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid #f8fbf4;
    background: transparent;
    color: var(--zg-dark-600);
    font-size: 14px;
    text-align: right;
  }
  .zg-shop-sort-sheet-options button i { display: block; width: 19px; height: 19px; border: 1px solid #eef5e8; border-radius: 50%; }
  .zg-shop-sort-sheet-options button.is-active { color: var(--zg-primary); font-weight: 700; }
  .zg-shop-sort-sheet-options button.is-active i { border: 5px solid var(--zg-primary-light); }
}

@media (max-width: 560px) {
  .zg-shop-product-grid .zg-product-card {
    min-height: 294px;
    padding: 9px 8px 11px;
  }
  .zg-shop-product-grid .zg-product-card-image { height: 122px; }
  .zg-shop-product-grid .zg-product-card-title { margin-top: 7px; }
  .zg-shop-product-grid .zg-product-card-title h3 { min-height: 48px; font-size: 10.7px; line-height: 1.8; }
  .zg-shop-product-grid .zg-product-card-bottom { min-height: 57px; }
}

/* v0.22 category and brand filters */
.zg-shop-category-filter-options label span {
  padding-inline-start: calc(var(--zg-filter-depth, 0) * 12px);
}
.zg-shop-category-filter-options label[style*="--zg-filter-depth:1"] span::before,
.zg-shop-category-filter-options label[style*="--zg-filter-depth:2"] span::before {
  content: "—";
  margin-inline-end: 5px;
  color: #eef5e8;
}
.zg-shop-filter-search .zg-live-search-results { display: none !important; }
