.post-type-archive-product,
.tax-product_cat,
.tax-product_tag,
body[class*="tax-pa_"] {
  background: #ffffff;
  color: #111111;
  cursor: auto;
}

.post-type-archive-product .cursor,
.post-type-archive-product .cursor-ring,
.tax-product_cat .cursor,
.tax-product_cat .cursor-ring,
.tax-product_tag .cursor,
.tax-product_tag .cursor-ring,
body[class*="tax-pa_"] .cursor,
body[class*="tax-pa_"] .cursor-ring {
  display: none;
}

.dz-catalog-page {
  --dz-red: #ff3d42;
  --dz-red-hover: #ec2f35;
  --dz-text: #111217;
  --dz-muted: #7b7f87;
  --dz-line: #e7e7e7;
  --dz-soft: #f4f4f6;
  min-height: 100vh;
  padding: 24px 0 60px;
  background: #ffffff;
  color: var(--dz-text);
  font-family: "DM Sans", sans-serif;
}

.dz-catalog-page,
.dz-catalog-page * {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

.dz-catalog-page a,
.dz-catalog-page button,
.dz-catalog-page input,
.dz-catalog-page select {
  cursor: pointer !important;
}

.dz-catalog-page input {
  cursor: text !important;
}

.dz-catalog-page > .woocommerce-notices-wrapper,
.dz-catalog-page > .woocommerce-message,
.dz-catalog-page > .woocommerce-error,
.dz-catalog-page > .woocommerce-info {
  width: min(1440px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.dz-catalog-shell {
  display: grid;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.dz-catalog-sidebar {
  position: sticky;
  top: 112px;
  min-width: 0;
  background: #ffffff;
}

.dz-filter-backdrop,
.dz-catalog-page .dz-mobile-filter-toggle {
  display: none;
}

.dz-catalog-page .dz-filter-close {
  display: none !important;
}

.dz-filter-form {
  display: grid;
  gap: 38px;
  margin: 0;
}

.dz-filter-section__header,
.dz-catalog-heading {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr);
  gap: 22px;
  align-items: center;
}

.dz-filter-section__header {
  margin-bottom: 24px;
}

.dz-filter-section__header h2,
.dz-catalog-heading h1,
.dz-catalog-heading h2 {
  margin: 0;
  color: #000000;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.dz-filter-section__header h2 {
  font-size: 19px;
}

.dz-catalog-heading h1,
.dz-catalog-heading h2 {
  font-size: 29px;
}

.dz-filter-section__header span,
.dz-catalog-heading span {
  display: block;
  height: 1px;
  background: var(--dz-line);
}

.dz-filter-section--search .dz-filter-section__body {
  display: grid;
  gap: 14px;
}

.dz-filter-section--search input[type="search"] {
  width: 100%;
  height: 51px;
  padding: 0 39px;
  border: 0;
  border-radius: 9px;
  background: #f4f4f6;
  color: #111217;
  font-size: 13px;
  outline: 0;
  box-shadow: none;
}

.dz-filter-section--search input[type="search"]::placeholder {
  color: #777b84;
  opacity: 1;
}

.dz-filter-section--search input[type="search"]:focus {
  box-shadow: 0 0 0 2px rgba(255, 61, 66, 0.18);
}

body .dz-filter-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--dz-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

body .dz-filter-search-button:hover,
body .dz-filter-search-button:focus {
  background: var(--dz-red-hover);
  transform: translateY(-1px);
}

.dz-filter-options {
  display: grid;
  gap: 15px;
}

.dz-check-option {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 27px;
  color: #303239;
  font-size: 16px;
  cursor: pointer;
}

.dz-check-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dz-check-box {
  position: relative;
  width: 27px;
  height: 27px;
  border: 1px solid #d4d7dc;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dz-check-option:hover .dz-check-box,
.dz-check-option input:focus-visible + .dz-check-box {
  border-color: #b8bdc6;
}

.dz-check-option input:checked + .dz-check-box {
  border-color: var(--dz-red);
  background: var(--dz-red);
}

.dz-check-option input:checked + .dz-check-box::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.dz-check-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dz-check-option small {
  color: #202229;
  font-size: 14px;
}

.dz-filter-actions {
  padding-top: 4px;
}

.dz-filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #d9dce1;
  border-radius: 10px;
  background: #ffffff;
  color: #111217;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dz-filter-actions a:hover {
  border-color: var(--dz-red);
  color: var(--dz-red);
}

.dz-catalog-results {
  min-width: 0;
}

.dz-catalog-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 49px;
}

.dz-ordering {
  margin: 0;
}

.dz-ordering-control {
  position: relative;
  display: block;
}

.dz-ordering select {
  width: 214px;
  height: 50px;
  padding: 0 50px 0 33px;
  border: 0;
  border-radius: 10px;
  background: var(--dz-red);
  color: #ffffff;
  font-size: 15px;
  line-height: 50px;
  outline: 0;
  box-shadow: none;
  appearance: none;
}

.dz-ordering select:focus {
  box-shadow: 0 0 0 3px rgba(255, 61, 66, 0.22);
}

.dz-ordering select option {
  background: #ffffff;
  color: #111217;
}

.dz-select-icon {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #ffffff;
  pointer-events: none;
  transform: translateY(-50%);
}

.dz-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 30px;
}

.dz-product-card {
  min-width: 0;
  margin: 0 !important;
  background: transparent;
}

.dz-product-image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  margin-bottom: 17px;
  border-radius: 12px;
  background: #f2f3f5;
  overflow: hidden;
  place-items: center;
  text-decoration: none;
}

.dz-product-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 42px 38px;
  object-fit: contain;
  filter: none !important;
  transition: transform 0.25s ease;
}

.dz-product-card:hover .dz-product-image img {
  transform: scale(1.035);
}

.dz-product-badge {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--dz-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.dz-product-info {
  color: var(--dz-text);
}

.dz-product-category {
  min-height: 19px;
  margin-bottom: 8px;
  color: var(--dz-muted);
  font-size: 14px;
  line-height: 1.35;
}

.dz-product-category a {
  color: inherit;
  text-decoration: none;
}

.dz-product-category a:hover {
  color: var(--dz-red);
}

.dz-product-info h2 {
  margin: 0 0 14px;
  color: #090b12;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.dz-product-info h2 a {
  color: inherit;
  text-decoration: none;
}

.dz-product-info h2 a:hover {
  color: var(--dz-red);
}

.dz-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 13px;
  min-height: 30px;
  margin-bottom: 20px;
  color: #242733;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.dz-product-price .amount,
.dz-product-price bdi {
  color: inherit;
}

.dz-product-price ins {
  order: 1;
  color: #242733;
  text-decoration: none;
}

.dz-product-price del {
  order: 2;
  color: #9fa2a8;
  font-size: 18px;
  font-weight: 800;
  opacity: 1;
  text-decoration-thickness: 1px;
}

.dz-product-price del .amount,
.dz-product-price del bdi {
  color: #9fa2a8;
}

body .dz-product-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 173px;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 21px !important;
  border: 1px solid #d3d6dc !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #111217 !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body .dz-product-cart:hover,
body .dz-product-cart:focus {
  border-color: var(--dz-red) !important;
  background: var(--dz-red) !important;
  color: #ffffff !important;
}

.dz-cart-icon {
  flex: 0 0 auto;
}

.dz-product-cart.added::after {
  margin-left: 6px;
}

.dz-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 58px;
}

.dz-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  background: #ffffff;
  color: #111217;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  place-items: center;
}

.dz-pagination .page-numbers:hover,
.dz-pagination .page-numbers.current {
  border-color: var(--dz-red);
  background: var(--dz-red);
  color: #ffffff;
}

.dz-no-products {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 80px 28px;
  border-radius: 12px;
  background: #f4f4f6;
  color: #111217;
  text-align: center;
}

.dz-no-products h2 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.dz-no-products p {
  margin: 0;
  color: var(--dz-muted);
}

.dz-no-products a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--dz-red);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.dz-catalog-page.is-loading .dz-product-grid,
.dz-catalog-page.is-loading .dz-pagination,
.dz-catalog-page.is-loading .dz-no-products {
  opacity: 0.42;
  pointer-events: none;
}

.dz-catalog-results::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 900;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(17, 18, 23, 0.12);
  border-top-color: var(--dz-red);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.dz-catalog-page.is-loading .dz-catalog-results::after {
  opacity: 1;
  animation: dzCatalogSpin 0.75s linear infinite;
}

@keyframes dzCatalogSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1380px) {
  .dz-catalog-shell {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
  }

  .dz-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .dz-catalog-page {
    padding-top: 16px;
  }

  .dz-catalog-page .dz-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(920px, calc(100% - 48px));
    min-height: 52px;
    margin: 0 auto 26px;
    padding: 0 18px;
    border: 1px solid #d9dce1;
    border-radius: 10px;
    background: #ffffff;
    color: #111217;
    font-size: 15px;
    font-weight: 800;
  }

  .dz-mobile-filter-toggle strong {
    display: grid;
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--dz-red);
    color: #ffffff;
    font-size: 13px;
    place-items: center;
  }

  .dz-catalog-shell {
    display: block;
    width: min(920px, calc(100% - 48px));
  }

  .dz-catalog-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    width: min(390px, 88vw);
    height: 100vh;
    padding: 28px 24px 36px;
    overflow-y: auto;
    box-shadow: 16px 0 42px rgba(17, 18, 23, 0.18);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
  }

  body.dz-filter-open {
    overflow: hidden;
  }

  body.dz-filter-open .dz-catalog-sidebar {
    transform: translateX(0);
  }

  .dz-filter-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid !important;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f6;
    color: #111217;
    font-size: 25px;
    line-height: 1;
    place-items: center;
  }

  .dz-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1999;
    background: rgba(17, 18, 23, 0.52);
  }

  body.dz-filter-open .dz-filter-backdrop {
    display: block;
  }

  .dz-catalog-titlebar {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .dz-ordering {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .dz-catalog-page {
    padding-bottom: 70px;
  }

  .dz-catalog-shell,
  .dz-catalog-page .dz-mobile-filter-toggle,
  .dz-catalog-page > .woocommerce-notices-wrapper,
  .dz-catalog-page > .woocommerce-message,
  .dz-catalog-page > .woocommerce-error,
  .dz-catalog-page > .woocommerce-info {
    width: calc(100% - 40px);
  }

  .dz-catalog-heading h1,
  .dz-catalog-heading h2 {
    font-size: 26px;
  }

  .dz-ordering {
    justify-self: stretch;
  }

  .dz-ordering select {
    width: 100%;
  }

  .dz-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 18px;
  }

  .dz-product-image {
    aspect-ratio: 1 / 1.1;
  }

  .dz-product-image img {
    padding: 28px 22px;
  }

  .dz-product-badge {
    top: 13px;
    left: 13px;
    min-width: 54px;
    min-height: 27px;
    font-size: 12px;
  }

  .dz-product-info h2 {
    font-size: 15px;
  }

  .dz-product-price {
    margin-bottom: 15px;
    font-size: 19px;
  }

  body .dz-product-cart {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 10px;
    padding: 0 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 460px) {
  .dz-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .dz-filter-section__header h2 {
    font-size: 18px;
  }
}

/* Small-screen catalog polish. */
@media (max-width: 1024px) {
  .dz-catalog-sidebar {
    width: min(390px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 720px) {
  .dz-catalog-page {
    padding-top: 16px;
  }

  .dz-catalog-titlebar {
    gap: 16px;
  }

  .dz-catalog-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dz-catalog-heading span {
    display: none;
  }

  .dz-ordering-control,
  .dz-ordering select {
    width: 100%;
  }

  .dz-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    gap: 34px 14px;
  }

  .dz-product-image {
    aspect-ratio: 1 / 1.05;
  }

  .dz-product-image img {
    padding: clamp(18px, 7vw, 28px);
  }

  .dz-product-info h2 {
    min-height: auto;
    overflow-wrap: anywhere;
  }

  .dz-product-price {
    min-height: 0;
  }

  body .dz-product-cart {
    min-height: 46px;
    padding-right: 10px !important;
    padding-left: 10px !important;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .dz-catalog-shell,
  .dz-catalog-page .dz-mobile-filter-toggle,
  .dz-catalog-page > .woocommerce-notices-wrapper,
  .dz-catalog-page > .woocommerce-message,
  .dz-catalog-page > .woocommerce-error,
  .dz-catalog-page > .woocommerce-info {
    width: calc(100% - 32px);
  }

  .dz-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  body .dz-product-cart {
    width: 100%;
  }
}