/* DFS Catalog — Shop Layout Simplification v0.4.4 */

.dfs-shop.dfs-woocommerce-shell {
  padding: 0 0 clamp(3.5rem, 7vw, 6rem);
  background: #fff;
}

/* Full-width editorial page hero: no cards, ornaments or decorative counters. */
.dfs-shop-hero {
  width: 100%;
  background: linear-gradient(115deg, #04102b 0%, #071a45 62%, #0a2b69 100%);
  color: #fff;
}

.dfs-shop-hero__inner {
  display: flex;
  min-height: clamp(190px, 18vw, 260px);
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.dfs-shop-hero__breadcrumb .woocommerce-breadcrumb {
  margin: 0 0 1rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.88rem;
}

.dfs-shop-hero__breadcrumb .woocommerce-breadcrumb a,
.dfs-shop-hero__breadcrumb .woocommerce-breadcrumb a:visited {
  color: rgb(255 255 255 / 76%);
  text-decoration: none;
}

.dfs-shop-hero__breadcrumb .woocommerce-breadcrumb a:hover,
.dfs-shop-hero__breadcrumb .woocommerce-breadcrumb a:focus-visible {
  color: #fff;
}

.dfs-shop__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: var(--dfs-weight-extrabold);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.dfs-shop__description {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: 1rem;
  line-height: 1.65;
}

.dfs-shop__description p {
  margin: 0;
}

/* Full-width search row directly below hero. */
.dfs-shop-search {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--dfs-color-border);
}

.dfs-shop-search .dfs-header-search-form,
.dfs-shop-search .dfs-search-control {
  width: 100%;
  max-width: none;
}

.dfs-shop-search .dfs-search-control {
  min-height: 62px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(16 24 40 / 4%);
}

.dfs-shop-search .dfs-search-field {
  min-height: 60px;
  padding-left: 1.2rem;
  font-size: 1rem;
}

.dfs-shop-search .dfs-search-control__action {
  width: 58px;
  min-width: 58px;
  height: 58px;
  color: #101828;
}

.dfs-shop-search .dfs-search-control__action svg {
  width: 20px;
  height: 20px;
}

/* Catalog body with real filter sidebar. */
.dfs-shop-catalog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.dfs-shop-sidebar {
  position: sticky;
  top: 112px;
  min-width: 0;
}

body.admin-bar .dfs-shop-sidebar {
  top: 144px;
}

.dfs-shop-filters {
  min-width: 0;
}

.dfs-shop-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dfs-color-border);
}

.dfs-shop-filters__title {
  margin: 0;
  color: #101828;
  font-size: 1.12rem;
  font-weight: var(--dfs-weight-extrabold);
  letter-spacing: -0.02em;
}

.dfs-site .dfs-shop-filters__clear,
.dfs-site .dfs-shop-filters__clear:visited {
  color: var(--dfs-color-brand-active);
  font-size: 0.82rem;
  font-weight: var(--dfs-weight-bold);
  text-decoration: none;
}

.dfs-site .dfs-shop-filters__clear:hover,
.dfs-site .dfs-shop-filters__clear:focus-visible {
  color: var(--dfs-color-brand);
}

.dfs-shop-filter-group {
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--dfs-color-border);
}

.dfs-shop-filter-group__title {
  margin: 0 0 0.9rem;
  color: #101828;
  font-size: 0.9rem;
  font-weight: var(--dfs-weight-bold);
  line-height: 1.3;
}

.dfs-shop-filter-categories,
.dfs-shop-filter-options {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dfs-site a.dfs-shop-filter-category,
.dfs-site a.dfs-shop-filter-category:visited {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  color: #475467;
  font-size: 0.9rem;
  font-weight: var(--dfs-weight-medium);
  line-height: 1.35;
  text-decoration: none;
}

.dfs-site a.dfs-shop-filter-category:hover,
.dfs-site a.dfs-shop-filter-category:focus-visible,
.dfs-site a.dfs-shop-filter-category.is-active {
  color: var(--dfs-color-brand-active);
}

.dfs-shop-filter-category small {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 0.74rem;
  font-weight: var(--dfs-weight-medium);
}

.dfs-shop-filter-radio {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0;
  color: #475467;
  font-size: 0.9rem;
  cursor: pointer;
}

.dfs-shop-filter-radio input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--dfs-color-brand-active);
}

.dfs-shop-price-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.dfs-shop-price-range input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.7rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 0.82rem;
}

.dfs-shop-price-range input:focus-visible {
  border-color: var(--dfs-color-brand);
  box-shadow: var(--dfs-shadow-focus);
  outline: 0;
}

.dfs-shop-filter-apply {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #101828;
  border-radius: 11px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: var(--dfs-weight-bold);
  cursor: pointer;
  transition: background-color var(--dfs-transition-fast), border-color var(--dfs-transition-fast), transform var(--dfs-transition-fast);
}

.dfs-shop-filter-apply:hover,
.dfs-shop-filter-apply:focus-visible {
  border-color: var(--dfs-color-brand-active);
  background: var(--dfs-color-brand-active);
  color: #fff;
  transform: translateY(-1px);
}

/* Result toolbar and grid. */
.dfs-shop-products {
  min-width: 0;
}

.dfs-shop-products__toolbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dfs-color-border);
}

.dfs-shop-products__toolbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.dfs-shop__count .woocommerce-result-count,
.dfs-shop__ordering .woocommerce-ordering {
  float: none;
  margin: 0;
}

.dfs-shop__count .woocommerce-result-count {
  color: #667085;
  font-size: 0.88rem;
  white-space: normal;
}

.dfs-shop__ordering .woocommerce-ordering select {
  min-width: 210px;
  min-height: 46px;
  margin: 0;
  border-radius: 11px;
  background-color: #fff;
  font-size: 0.88rem;
}

.dfs-shop-filter-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 0.86rem;
  font-weight: var(--dfs-weight-bold);
  cursor: pointer;
}

.dfs-shop-filter-toggle > span:first-child,
.dfs-shop-filter-toggle > span:first-child svg {
  width: 18px;
  height: 18px;
}

.dfs-shop-filter-toggle__count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--dfs-color-brand-active);
  color: #fff;
  font-size: 0.7rem;
}

.dfs-shop-products ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.dfs-shop__pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.dfs-shop-empty {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--dfs-color-border);
  border-radius: 18px;
  background: #fafbfc;
  text-align: center;
}

.dfs-shop-empty h2 {
  margin: 0;
  color: #101828;
  font-size: 1.7rem;
  font-weight: var(--dfs-weight-extrabold);
}

.dfs-shop-empty p {
  margin: 0.65rem 0 1.35rem;
  color: #667085;
}

/* Mobile filter drawer. */
.dfs-shop-filter-drawer {
  position: fixed;
  z-index: var(--dfs-z-modal);
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.dfs-shop-filter-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.dfs-shop-filter-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(2 9 24 / 48%);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--dfs-transition-base);
}

.dfs-shop-filter-drawer.is-open .dfs-shop-filter-drawer__backdrop {
  opacity: 1;
}

.dfs-shop-filter-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(92vw, 390px);
  height: 100dvh;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 48px rgb(16 24 40 / 18%);
  transform: translateX(100%);
  transition: transform var(--dfs-transition-base);
}

.dfs-shop-filter-drawer.is-open .dfs-shop-filter-drawer__panel {
  transform: translateX(0);
}

.dfs-shop-filter-drawer__header {
  display: flex;
  min-height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--dfs-color-border);
}

.dfs-shop-filter-drawer__header h2 {
  margin: 0;
  color: #101828;
  font-size: 1.15rem;
  font-weight: var(--dfs-weight-extrabold);
}

.dfs-shop-filter-drawer__close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  cursor: pointer;
}

.dfs-shop-filter-drawer__close svg {
  width: 20px;
  height: 20px;
}

.dfs-shop-filter-drawer__body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 0 1.1rem 1.5rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.admin-bar .dfs-shop-filter-drawer {
  top: 32px;
  height: calc(100dvh - 32px);
}

body.admin-bar .dfs-shop-filter-drawer__panel {
  height: calc(100dvh - 32px);
}

body.dfs-shop-filter-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .dfs-shop-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .dfs-shop-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dfs-shop-hero__inner {
    min-height: 190px;
  }

  .dfs-shop-catalog-layout {
    display: block;
    padding-top: 1.5rem;
  }

  .dfs-shop-sidebar {
    display: none;
  }

  .dfs-shop-filter-toggle {
    display: inline-flex;
  }

  .dfs-shop-products__toolbar {
    align-items: center;
  }
}

@media (max-width: 782px) {
  body.admin-bar .dfs-shop-filter-drawer {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  body.admin-bar .dfs-shop-filter-drawer__panel {
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 640px) {
  .dfs-shop-hero__inner {
    min-height: 170px;
    padding-block: 2.25rem;
  }

  .dfs-shop__title {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .dfs-shop__description {
    font-size: 0.94rem;
  }

  .dfs-shop-search {
    padding-block: 1.1rem;
  }

  .dfs-shop-search .dfs-search-control {
    min-height: 56px;
    border-radius: 12px;
  }

  .dfs-shop-search .dfs-search-field {
    min-height: 54px;
    font-size: 16px;
  }

  .dfs-shop-search .dfs-search-control__action {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .dfs-shop-search .dfs-search-control__action svg {
    width: 18px;
    height: 18px;
  }

  .dfs-shop-products__toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .dfs-shop-products__toolbar-left {
    flex: 1 1 auto;
    gap: 0.75rem;
  }

  .dfs-shop__count {
    min-width: 0;
  }

  .dfs-shop__count .woocommerce-result-count {
    font-size: 0.78rem;
  }

  .dfs-shop__ordering {
    flex: 0 0 auto;
  }

  .dfs-shop__ordering .woocommerce-ordering select {
    width: min(42vw, 168px);
    min-width: 0;
    min-height: 44px;
    padding-left: 0.7rem;
    font-size: 0.78rem;
  }

  .dfs-shop-products ul.products {
    gap: 0.8rem;
  }

  .dfs-shop-filter-drawer__panel {
    width: min(94vw, 380px);
  }

  .dfs-shop-price-range input {
    min-height: 46px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .dfs-shop-products__toolbar-left {
    width: 100%;
  }

  .dfs-shop__ordering {
    width: 100%;
  }

  .dfs-shop__ordering .woocommerce-ordering,
  .dfs-shop__ordering .woocommerce-ordering select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dfs-shop-filter-drawer__backdrop,
  .dfs-shop-filter-drawer__panel,
  .dfs-shop-filter-apply {
    transition: none;
  }
}
