/* The shop shares the homepage fonts, navigation, product cards and footer. */
.shop-page {
  --shop-gutter: 6rem;
}

.shop-page .shop-breadcrumb,
.shop-page .shop-intro,
.shop-page .shop-catalog,
.shop-page .shop-help {
  margin-inline: var(--shop-gutter);
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 2rem;
  color: #70706d;
  font-size: 0.95rem;
  font-weight: 200;
}

.shop-breadcrumb a {
  color: #4d4d4d;
  text-underline-offset: 4px;
}

.shop-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 4rem;
}

.shop-intro .subheader p {
  margin: 0 0 1.5rem;
}

.shop-intro h1 {
  margin: 0;
  color: #3c3d37;
  text-wrap: balance;
}

.shop-intro-copy > p,
.shop-help p {
  color: #4d4d4d;
  font-size: 1.2rem;
  font-weight: 100;
  max-width: 620px;
  margin: 1.5rem 0;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.8rem 1rem;
  background: #cca152;
  color: #fbfbfb;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font: 100 1.1rem "Roboto", sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.shop-button:hover {
  background: #cca152;
}

.shop-button img {
  width: 12px;
  height: 12px;
}

.shop-intro-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 2rem;
  background: #f7f4ef;
  min-width: 0;
}

.shop-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 14px 28px rgba(60, 61, 55, 0.15);
}

.shop-intro-visual img:first-child {
  transform: translateY(-0.8rem) rotate(-5deg);
}

.shop-intro-visual img:last-child {
  transform: translateY(0.8rem) rotate(5deg);
}

.shop-catalog {
  border-top: 1px solid rgba(77, 77, 77, 0.18);
  padding-block: 3rem 0;
  scroll-margin-top: 2rem;
}

.shop-catalog .products-heading {
  max-width: 760px;
}

.shop-catalog .products-heading p {
  max-width: 720px;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.shop-filters[hidden],
.shop-card[hidden] {
  display: none;
}

.shop-filter {
  min-height: 44px;
  border: 1px solid rgba(77, 77, 77, 0.3);
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background: transparent;
  color: #4d4d4d;
  font: 200 1rem "Roboto", sans-serif;
  cursor: pointer;
}

.shop-filter:hover {
  border-color: #9a7336;
}

.shop-filter[aria-pressed="true"] {
  background: #3c3d37;
  border-color: #3c3d37;
  color: #fffdf6;
}

.shop-count {
  margin: 0;
  color: #70706d;
  font-size: 0.95rem;
  font-weight: 200;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.shop-card {
  grid-template-rows: auto 1fr;
}

.shop-card .product-home-img {
  position: relative;
  aspect-ratio: 4 / 3;
}

.shop-card .product-home-img img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  padding: 1.5rem;
}

.shop-card-photo .product-home-img img {
  object-fit: cover;
  padding: 0;
}

.shop-card-meditation .product-home-img img {
  padding: 0;
}

.shop-card[data-categories~="audio"] .product-home-img img {
  object-position: center top;
}

.shop-card h3 {
  font-size: clamp(1.4rem, 1.55vw, 1.6rem);
  overflow-wrap: break-word;
}

.shop-card .product-home-footer {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.shop-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-price small {
  color: #70706d;
  font-size: 0.8rem;
  font-weight: 200;
}

.shop-card .shop-availability {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  font-size: 0.875rem;
  font-weight: 200;
  text-align: start;
}

.shop-card .product-home-footer .shop-card-cta {
  flex: 0 1 auto;
  justify-content: center;
  max-width: 60%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  background: #cca152;
  color: #fbfbfb;
  font-size: 1rem;
  text-align: center;
}

.shop-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: 4rem 6rem;
  padding: 2rem;
  background: #f7f4ef;
  border: 1px solid rgba(77, 77, 77, 0.13);
}

.shop-help h2 {
  color: #9a7336;
  font-size: 1.8rem;
  font-weight: 100;
  margin: 0;
}

.shop-help p {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
}

.shop-help > a {
  flex-shrink: 0;
}

.shop-page a:focus-visible,
.shop-filter:focus-visible {
  outline: 3px solid #6f542b;
  outline-offset: 4px;
}

.shop-skip-link {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 30000;
  transform: translateY(-200%);
}

.shop-skip-link:focus {
  transform: none;
}

html[dir="rtl"] .shop-button img {
  transform: rotate(180deg);
}

@media (max-width: 1600px) {
  .shop-page { --shop-gutter: 2rem; }
  .shop-intro { gap: 2rem; }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .shop-intro-visual { padding: 2rem 1.25rem; gap: 0.8rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .shop-breadcrumb { padding-top: 7rem; }
  .shop-catalog { scroll-margin-top: 6rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .shop-page { --shop-gutter: 1rem; }
  .shop-intro { grid-template-columns: 1fr; padding-block: 2rem 3rem; }
  .shop-intro-copy > p { font-size: 1.1rem; }
  .shop-intro-visual { padding: 2.5rem; gap: 2rem; max-width: 440px; width: 100%; justify-self: center; }
  .shop-catalog { padding-top: 2rem; }
  .shop-catalog .products-heading h2,
  .shop-help h2 { font-size: 1.6rem; }
  .shop-catalog .products-heading p { font-size: 1.1rem; }
  .shop-grid { gap: 1rem; }
  .shop-card .product-home-content { padding: 1.25rem; }
  .shop-help { flex-direction: column; align-items: flex-start; padding: 1.5rem; margin-block: 3rem 4rem; }
}

@media (max-width: 580px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card .product-home-img { aspect-ratio: 4 / 3; }
  .shop-card .product-home-footer { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-button { transition: none; }
}
