.shop-section {
  padding: clamp(58px, 6vw, 96px) clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(20, 17, 13, .16);
  background: #f0eadc;
  scroll-margin-top: 20px;
}

.shop-section-digital {
  background: rgba(78, 58, 138, .07);
}

.shop-section-dark {
  background: #14110d;
  color: #f0eadc;
}

.shop-section-head {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(310px, .32fr);
  align-items: end;
  gap: clamp(50px, 8vw, 140px);
  margin-bottom: clamp(34px, 4vw, 58px);
}

.shop-section-head>div>span {
  display: block;
  margin-bottom: 22px;
  color: #4e3a8a;
  font: 800 12px/1.3 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shop-section-head h2 {
  font: 400 clamp(70px, 7.8vw, 128px)/.75 "Bebas Neue", "Arial Narrow", "Impact", system-ui, sans-serif;
  letter-spacing: -.018em;
  text-transform: uppercase;
  margin: 0;
}

.shop-section-head h2 em {
  display: block;
  font: 700 .52em/1 "Rajdhani", "Arial Narrow", "Impact", system-ui, sans-serif;
  color: #4e3a8a;
  text-transform: none;
}

.shop-section-head>p {
  max-width: 540px;
  color: #332c24;
  font: italic clamp(19px, 1.7vw, 28px)/1.45 Georgia, serif !important;
  margin: 0;
}

.shop-section-dark .shop-section-head>p {
  color: rgba(240, 234, 220, .78);
}

.shop-section-dark .shop-section-head h2 em {
  color: #8e7cc5;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px) clamp(12px, 1.35vw, 20px);
}

.product-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(20, 17, 13, .24);
  background: #f5efe3;
  filter: drop-shadow(0 10px 13px rgba(20, 17, 13, .13));
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  transition: transform .25s ease, filter .25s ease, border-color .25s ease;
}

.product-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(78, 58, 138, .5);
  filter: drop-shadow(0 16px 19px rgba(20, 17, 13, .2));
}

.product-card>a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card figure {
  height: clamp(205px, 18vw, 280px);
  overflow: hidden;
  background: #14110d;
  margin: 0;
  position: relative;
}

.product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover figure img {
  transform: scale(1.035);
}

/* Product ribbons */
.product-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 6px 10px;
  font: 800 12px/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #14110d;
  color: #f0eadc;
}

.ribbon-object {
  background: #14110d;
  color: #f0eadc;
}

.ribbon-print {
  background: #4e3a8a;
  color: #f0eadc;
}

.ribbon-ebook {
  background: #4e3a8a;
  color: #fff;
}

.ribbon-digital {
  background: #2d6a4f;
  color: #fff;
}

.ribbon-voucher {
  background: #4e3a8a;
  color: #fff;
}

.ribbon-course {
  background: #c1121f;
  color: #fff;
}

.ribbon-module {
  background: #d97706;
  color: #fff;
}

.product-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  min-height: 190px;
  padding: 14px 14px 13px;
  border-top: 1px solid rgba(20, 17, 13, .2);
}

.product-card-body>small {
  color: #4e3a8a;
  font: 800 12px/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-card h3 {
  font: 400 clamp(25px, 2vw, 34px)/.86 "Bebas Neue", "Arial Narrow", "Impact", system-ui, sans-serif;
  text-transform: uppercase;
  margin: 0;
}

.product-card p {
  max-width: 400px;
  color: #332c24;
  font: 550 14px/1.48 "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

.product-card footer {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(20, 17, 13, .16);
}

.product-card .product-card-body footer > strong,
.product-card .product-card-body footer > strong .woocommerce-Price-amount,
.product-card .product-card-body footer > strong .woocommerce-Price-currencySymbol {
  color: inherit !important;
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif !important;
  font-size: 42px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: .9 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase;
}

.product-card footer span {
  color: #14110d;
  font: 800 12px/1.3 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-card-course {
  background: #14110d;
  color: #f0eadc;
}

.product-card-course .product-card-body {
  border-color: rgba(240, 234, 220, .18);
}

.product-card-course .product-card-body>small {
  color: #8e7cc5;
}

.product-card-course p {
  color: rgba(240, 234, 220, .68);
}

.product-card-course footer {
  border-color: rgba(240, 234, 220, .17);
}

.product-card-course footer span {
  color: #f0eadc;
}

/* Empty state: section has no products yet */
.shop-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3.6vw, 52px) clamp(22px, 3.6vw, 56px);
  border: 1px dashed rgba(20, 17, 13, .32);
  background: rgba(245, 239, 227, .6);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}

.shop-empty__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #4e3a8a;
  font: 800 12px/1.3 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shop-empty__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: shop-empty-pulse 2s ease-in-out infinite;
}

@keyframes shop-empty-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.shop-empty h3 {
  margin: 0 0 12px;
  font: 400 clamp(36px, 3.6vw, 56px)/.9 "Bebas Neue", "Arial Narrow", "Impact", system-ui, sans-serif;
  text-transform: uppercase;
}

.shop-empty p {
  max-width: 620px;
  margin: 0;
  color: #332c24;
  font: 550 15px/1.55 "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.shop-empty__cta { white-space: nowrap; }

.shop-section-dark .shop-empty {
  border-color: rgba(240, 234, 220, .28);
  background: rgba(240, 234, 220, .04);
}

.shop-section-dark .shop-empty__eyebrow { color: #8e7cc5; }
.shop-section-dark .shop-empty p { color: rgba(240, 234, 220, .72); }

@media (prefers-reduced-motion: reduce) {
  .shop-empty__eyebrow::before { animation: none; }
}

@media(max-width:767px) {
  .shop-empty { grid-template-columns: 1fr; padding: 26px 20px; }
  .shop-empty__cta { justify-self: stretch; text-align: center; justify-content: center; }
}

@media(max-width:1060px) {
  .shop-section-head {
    grid-template-columns: 1fr;
  }

  .shop-section-head>p {
    max-width: 700px;
  }

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

  .product-card figure {
    height: 40vw;
  }
}

@media(max-width:767px) {
  .shop-section { padding-inline: var(--rail, 8px); }

  .shop-section-head h2 {
    font-size: var(--tart-display-mobile, 100px);
    overflow-wrap: anywhere;
  }

  .shop-section-head > * { min-width: 0; max-width: 100%; }

  .shop-section-head h2 em { font-size: 44px; }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .product-card figure {
    height: 80vw;
  }

  .product-card-body {
    min-height: 210px;
  }

  .product-card h3 {
    font-size: 40px;
  }
}
