:root {
  --db-ink: #161412;
  --db-ivory: #f7f2e8;
  --db-gold: #b8924b;
  --db-muted: #69645c;
  --db-success: #2f6c4f;
}

.db-catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  margin: 22px 0 32px;
  padding: 18px;
  border: 1px solid rgb(22 20 18 / 12%);
  background: var(--db-ivory);
}

.db-catalogue-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-catalogue-chip,
.db-catalogue-search button,
.db-catalogue-search input[type="search"] {
  min-height: 44px;
}

.db-catalogue-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgb(22 20 18 / 18%);
  color: var(--db-ink);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.db-catalogue-chip:hover,
.db-catalogue-chip:focus-visible {
  border-color: var(--db-gold);
  box-shadow: 0 0 0 3px rgb(184 146 75 / 20%);
}

.db-catalogue-search .woocommerce-product-search {
  display: flex;
  gap: 8px;
  margin: 0;
}

.products .product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products .product .ct-woo-card-actions {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.products .product .ct-woo-card-actions > .price {
  margin-top: auto;
}

.db-card-content {
  display: grid;
  gap: 10px;
  width: 100%;
}

.db-card-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--db-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.db-card-title a {
  color: inherit;
  text-decoration: none;
}

.db-card-title a:focus-visible {
  outline: 3px solid var(--db-gold);
  outline-offset: 3px;
}

.db-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  color: var(--db-muted);
  font-size: 0.85rem;
  list-style: none;
}

.db-card-facts li:not(:last-child)::after {
  margin-left: 10px;
  color: var(--db-gold);
  content: "•";
}

.db-stock {
  color: var(--db-success);
  font-weight: 700;
}

.db-stock--order {
  color: #7a5520;
}

.db-card-surface,
.db-single-surface {
  margin: 0;
  color: var(--db-muted);
  font-size: 0.86rem;
}

.db-single-stock {
  margin: 8px 0;
  color: var(--db-success);
  font-weight: 700;
}

.db-product-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 22px;
}

.db-product-heading h1 {
  margin: 0;
  color: var(--db-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.ct-product-stock-scarcity {
  display: none !important;
}

.products .product .button,
.products .product button,
.single-product .button {
  min-height: 44px;
}

@media (max-width: 689px) {
  .db-catalogue-toolbar,
  .db-catalogue-search,
  .db-catalogue-search .woocommerce-product-search,
  .db-catalogue-search input[type="search"] {
    width: 100%;
  }

  .db-catalogue-categories {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .db-catalogue-chip {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-catalogue-chip,
  .db-card-title a {
    scroll-behavior: auto;
    transition: none !important;
  }
}
