/* Shop (/shop): listing header, the product grid section, section rules and the closing Help line.
   Product cards, the grid, the collections section and the format comparison come from storefront.css;
   tokens, the breadcrumb, buttons and .text-link come from style.css. */

/* Listing header and grid: the header sits close under the breadcrumb so the first card row
   completes inside the first phone screen. */
.shop-books {
 padding: var(--space-2) var(--gutter) var(--section);
}
.shop-head {
 margin-bottom: var(--space-5);
}
/* Title and count share one baseline over an ink register rule. */
.shop-title-row {
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: var(--space-4);
 padding-bottom: var(--space-3);
 border-bottom: 1px solid var(--ink);
}
.shop-title-row h1 {
 margin: 0;
 font-size: var(--display-2);
 line-height: 1.06;
}
.shop-count {
 flex: none;
 margin: 0;
 font-size: var(--text-s);
 line-height: 1.4;
 font-variant-numeric: lining-nums;
 color: var(--muted);
}
.shop-lede {
 max-width: 62ch;
 margin: var(--space-3) 0 0;
 font-size: 15px;
 line-height: 1.45;
 color: var(--ink-soft);
}
/* "e-book" never splits at its hyphen. */
.shop-nowrap {
 white-space: nowrap;
}

/* Sections after the grid are divided by the same thin rule as the format comparison. */
.shop-page .collections {
 border-top: 1px solid var(--rule);
}

/* Help line: one question and one way on. */
.shop-help {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: var(--space-1) var(--space-5);
 padding: var(--space-7) var(--gutter);
 border-top: 1px solid var(--rule);
}
/* Upright serif: the italic face is kept for h1 and h2 accents, which /shop does not have. */
.shop-help-text {
 margin: 0;
 font: 400 var(--text-xl)/1.4 var(--serif);
 color: var(--ink-soft);
}
.shop-help-link {
 display: inline-flex;
 align-items: center;
 gap: var(--space-2);
 font-size: var(--text-m);
}
.shop-help-link svg {
 flex: none;
 transition: transform .35s var(--ease-out);
}
.shop-help-link:hover svg {
 transform: translateX(3px);
}

@media (max-width: 1023px) {
 .shop-help-link {
  min-height: 44px;
  padding-block: 0;
 }
}
@media (max-width: 767px) {
 .shop-head {
  margin-bottom: var(--space-4);
 }
 .shop-help {
  padding-block: var(--space-6);
 }
 .shop-help-text {
  font-size: var(--text-l);
 }
}
@media (min-width: 1024px) {
 .shop-head {
  margin-bottom: var(--space-6);
 }
}
