/* Category page: the homepage's typography, colors and product cards.
   Font URLs are relative to css/, after the asset reorganization. */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

.category-nav .nav-inner a:first-child { color: inherit; font-weight: 400; }
.category-nav .nav-inner a[aria-current] { color: var(--blue); font-weight: 600; }
.category-main { background: #fff; }
.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.category-breadcrumb a { color: #667384; }
.category-breadcrumb a:hover { color: var(--blue); }
.category-breadcrumb > span[aria-hidden] { color: #b3bac3; }
.category-catalog { padding: 12px 0 43px; min-height: 380px; scroll-margin-top: 20px; }
.category-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 27px;
}
.category-heading-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.category-heading-copy h1 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.85px;
  line-height: 1.35;
  margin: 0;
}
.category-heading-copy p { color: var(--muted); font-size: 14px; margin: 0; white-space: nowrap; }
.category-sort {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dce1e7;
  background: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  margin: 0;
  white-space: nowrap;
}
.category-sort > span, .category-sort > label { font-size: 13px; color: var(--muted); }
.category-sort select { border: 0; font-size: 13px; padding: 9px 0; background: #fff; min-width: 145px; color: var(--ink); }
.category-sort:focus-within { border-color: #8aaedb; }
.category-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 33px 21px; }
.category-product-grid .product-photo { aspect-ratio: 1.14; }
.category-product-grid .product-content { padding-top: 14px; }
.category-product-grid h3 { font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.category-product-grid .product-size { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.category-product-grid .product-unit { font-size: 12px; margin-bottom: 10px; }
.category-product-grid .product-price { font-size: 21px; }
.category-product-grid .product-price small { font-size: 12px; }
.category-product-grid .choose { min-height: 43px; margin-top: 12px; font-size: 14px; }
.category-product-grid .choose .icon { width: 16px; height: 16px; }
.category-price-note { text-align: center; color: var(--muted); font-size: 12px; margin: 30px 0 0; }
.category-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--light);
  padding: 10px 14px;
  border-radius: 4px;
  margin: -6px 0 24px;
}
.category-search-result p { font-size: 13px; margin: 0; color: #59708a; overflow-wrap: anywhere; min-width: 0; }
.category-search-result .text-link { font-size: 12px; white-space: nowrap; gap: 6px; }
.category-search-result .icon { width: 14px; height: 14px; }
.category-color-filter { gap: 8px; padding-bottom: 16px; }
.category-color-filter button { min-height: 42px; font-size: 14px; padding: 8px 16px; }
.category-catalog .price-filter { align-items: center; gap: 10px; padding: 0; border-bottom: 0; margin-bottom: 28px; }
.category-catalog .price-filter > strong { margin-right: 6px; font-size: 13px; font-weight: 500; }
.category-catalog .price-filter label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.category-catalog .price-filter label:hover { border-color: #a8c6ed; }
.category-catalog .price-filter label:has(input:checked) { color: var(--blue); border-color: #a8c6ed; background: var(--light); }
.category-catalog .price-filter input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.category-catalog .price-filter .outline { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.category-empty { text-align: center; background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; padding: 48px 18px; }
.category-empty > .icon { width: 32px; height: 32px; color: #8da9cb; margin-bottom: 20px; }
.category-empty h2 { font-size: 23px; font-weight: 500; }
.category-empty p { color: var(--muted); font-size: 14px; }
.category-empty .text-link { display: flex; width: fit-content; margin: 12px auto 0; font-size: 13px; }
.category-noscript { background: var(--light); padding: 20px; font-size: 14px; }
.category-noscript a { color: var(--blue); text-decoration: underline; }
#category-cart-items .cart-row-bottom { flex-wrap: wrap; }
#category-cart-items .cart-row h3 a:hover { color: var(--blue); }

@media (max-width: 1199px) {
  .category-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px 18px; }
  .category-heading-copy h1 { font-size: 28px; }
}
@media (max-width: 899px) {
  .category-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-heading-row { align-items: flex-start; gap: 18px; }
  .category-heading-copy { display: block; }
  .category-heading-copy p { margin-top: 7px; font-size: 13px; }
  .category-sort > span, .category-sort > label { display: none; }
  .category-sort select { min-width: 148px; }
}
@media (max-width: 599px) {
  .category-color-filter button { padding: 8px 12px; }
  .category-catalog .price-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-catalog .price-filter > strong { grid-column: 1 / -1; margin: 0 0 2px; }
  .category-catalog .price-filter label { padding: 10px 8px; font-size: 12px; }
  .category-breadcrumb { padding: 15px 0; font-size: 11px; gap: 8px; }
  .category-catalog { padding: 9px 0 30px; }
  .category-heading-row { flex-wrap: wrap; margin-bottom: 20px; gap: 15px; }
  .category-heading-copy { width: 100%; display: flex; align-items: baseline; gap: 5px 13px; }
  .category-heading-copy h1 { font-size: 25px; letter-spacing: -.65px; }
  .category-heading-copy p { margin: 0; font-size: 12px; }
  .category-sort { padding: 2px 10px; min-height: 40px; margin-left: auto; }
  .category-sort > span, .category-sort > label { display: inline; font-size: 12px; }
  .category-sort select { font-size: 12px; min-width: 134px; padding: 7px 0; }
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 13px; }
  .category-product-grid .product-content { padding-top: 11px; }
  .category-product-grid h3 { font-size: 15px; }
  .category-product-grid .product-size { font-size: 17px; letter-spacing: -.6px; }
  .category-product-grid .product-unit { font-size: 11px; margin-bottom: 8px; }
  .category-product-grid .product-price { font-size: 20px; }
  .category-product-grid .product-price small { display: block; font-size: 11px; margin-top: 2px; }
  .category-product-grid .choose { min-height: 44px; font-size: 14px; margin-top: 10px; gap: 10px; }
  .category-price-note { max-width: 300px; margin: 25px auto 0; font-size: 11px; }
  .category-search-result { align-items: flex-start; gap: 10px; padding: 10px; margin-bottom: 19px; }
  .category-search-result p { font-size: 12px; }
  .category-search-result .text-link { font-size: 11px; }
  #category-buy-quantity { font-size: 16px; }
}
