/* Triplan V5 — shop listing and single product. */
.tpshop,
.tpproduct {
  --tpshop-midnight: var(--tp-midnight, #0b2239);
  --tpshop-cyan: var(--tp-primary, #1bbaca);
  --tpshop-cyan-dark: var(--tp-primary-dark, #087c89);
  --tpshop-cyan-soft: var(--tp-cyan-soft, #9de2e8);
  --tpshop-ivory: var(--tp-ivory, #f6f3ee);
  --tpshop-white: #fff;
  --tpshop-muted: var(--tp-muted, #5c6b79);
  --tpshop-line: #e7e0d4;
  --tpshop-danger: #a33c31;
  --tpshop-success: #176b4b;
  min-width: 0;
  overflow: clip;
  background: var(--tpshop-ivory);
  color: var(--tpshop-midnight);
  font-family: var(--tp-body-font, "Inter", sans-serif);
}

.tpshop *,
.tpshop *::before,
.tpshop *::after,
.tpproduct *,
.tpproduct *::before,
.tpproduct *::after {
  box-sizing: border-box;
}

.tpshop-shell,
.tpproduct-shell {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(42px, 5vw, 76px);
}

/* Shop hero */
.tpshop-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 86px);
  background:
    radial-gradient(circle at 82% 10%, rgb(27 186 202 / 18%), transparent 30%),
    linear-gradient(135deg, #0b2239 0%, #102d46 100%);
  color: var(--tpshop-ivory);
}

.tpshop-hero::after {
  position: absolute;
  right: clamp(-110px, -7vw, -50px);
  bottom: -165px;
  width: 390px;
  height: 390px;
  border: 1px solid rgb(157 226 232 / 20%);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgb(157 226 232 / 4%), 0 0 0 116px rgb(157 226 232 / 3%);
  content: "";
  pointer-events: none;
}

.tpshop-hero .tpshop-shell {
  position: relative;
  z-index: 1;
}

.tpshop-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.tpshop-hero__content {
  min-width: 0;
}

.tpshop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tpshop-cyan-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tpshop-eyebrow > span {
  width: 24px;
  height: 2px;
  background: var(--tp-terracotta, #d9784b);
}

.tpshop-hero h1 {
  max-width: 15ch;
  margin: 14px 0 16px;
  color: var(--tpshop-ivory);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(2.55rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}

.tpshop-hero p {
  max-width: 58ch;
  margin: 0;
  color: rgb(246 243 238 / 80%);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.tpshop-hero__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tpshop-hero__promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(246 243 238 / 82%);
  font-size: 12px;
  font-weight: 650;
}

.tpshop-hero__promises i {
  color: var(--tpshop-cyan-soft);
}

.tpshop-hero__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 22px;
  background: rgb(255 255 255 / 7%);
  box-shadow: 0 22px 52px rgb(0 0 0 / 18%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tpshop-hero__products-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px !important;
  color: var(--tpshop-cyan-soft) !important;
  font-size: 11px !important;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.tpshop-hero__product {
  display: grid;
  min-width: 0;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / 14%);
  color: var(--tpshop-midnight);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tpshop-hero__product img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Direct child only: WooCommerce price HTML contains nested spans that must
 * not inherit the card body's grid and padding. */
.tpshop-hero__product > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px 12px;
}

.tpshop-hero__product strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tpshop-hero__product small {
  color: var(--tpshop-cyan-dark);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.tpshop-hero__product:hover,
.tpshop-hero__product:focus-visible {
  border-color: var(--tpshop-cyan-soft);
  box-shadow: 0 14px 30px rgb(0 0 0 / 20%);
  transform: translateY(-2px);
}

/* Catalog and filters */
.tpshop-catalog {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px);
  transition: opacity 180ms ease;
}

.tpshop.is-loading .tpshop-catalog {
  opacity: .52;
  pointer-events: none;
}

.tpshop.is-loading .tpshop-catalog::before {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid rgb(8 124 137 / 18%);
  border-top-color: var(--tpshop-cyan-dark);
  border-radius: 50%;
  content: "";
  animation: tpshop-loading-spin 700ms linear infinite;
}

@keyframes tpshop-loading-spin {
  to { transform: rotate(360deg); }
}

.tpshop-layout {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
}

.tpshop-filter {
  position: sticky;
  top: 84px;
  z-index: 2;
}

.tpshop-filter form {
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 108px);
  padding: 20px;
  border: 1px solid var(--tpshop-line);
  border-radius: 18px;
  background: var(--tpshop-white);
  box-shadow: 0 10px 30px rgb(15 27 45 / 7%);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.tpshop-filter__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tpshop-filter__heading span {
  color: var(--tpshop-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tpshop-filter__heading h2 {
  margin: 3px 0 0;
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.tpshop-filter__heading a {
  color: var(--tpshop-cyan-dark);
  font-size: 11px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.tpshop-filter__heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tpshop-filter__heading-actions button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tpshop-line);
  border-radius: 11px;
  place-items: center;
  background: #fff;
  color: var(--tpshop-midnight);
  cursor: pointer;
}

.tpshop-field {
  display: grid;
  gap: 8px;
  color: var(--tpshop-midnight);
  font-size: 12px;
  font-weight: 700;
}

.tpshop-field__control {
  position: relative;
  display: block;
}

.tpshop-field__control i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--tpshop-muted);
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.tpshop-field__control > button {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  place-items: center;
  background: var(--tpshop-midnight);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.tpshop-field__control > button i {
  position: static;
  color: inherit;
  transform: none;
}

.tpshop-field input,
.tpshop-field select,
.tpshop-sort select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ddd6ca;
  border-radius: 11px;
  background: var(--tpshop-white);
  color: var(--tpshop-midnight);
  font: 500 14px/1.3 var(--tp-body-font, "Inter", sans-serif);
}

.tpshop-field input {
  padding: 10px 48px 10px 37px;
}

.tpshop-field select,
.tpshop-sort select {
  padding: 8px 36px 8px 12px;
  cursor: pointer;
}

.tpshop-categories {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tpshop-categories legend {
  margin-bottom: 8px;
  color: var(--tpshop-midnight);
  font-size: 12px;
  font-weight: 700;
}

.tpshop-categories label {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--tpshop-midnight);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background-color 180ms ease, color 180ms ease;
}

.tpshop-categories label:hover {
  background: #f2efea;
}

.tpshop-categories label.is-active {
  background: var(--tpshop-midnight);
  color: var(--tpshop-ivory);
}

.tpshop-categories input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tpshop-categories small {
  opacity: .62;
  font-size: 11px;
}

.tpshop-categories label:has(input:focus-visible) {
  outline: 3px solid var(--tpshop-cyan);
  outline-offset: 2px;
}

.tpshop-filter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: var(--tpshop-cyan);
  color: var(--tpshop-midnight);
  cursor: pointer;
  font: 750 13px/1 var(--tp-body-font, "Inter", sans-serif);
  transition: background-color 180ms ease, color 180ms ease;
}

.tpshop-filter__submit:hover {
  background: var(--tpshop-cyan-dark);
  color: #fff;
}

.tpshop-filter__status {
  min-height: 0;
  margin: -12px 0 0;
  color: var(--tpshop-cyan-dark);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.tpshop-filter form[aria-busy="true"] {
  opacity: .72;
}

.tpshop-results {
  min-width: 0;
}

.tpshop-results__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.tpshop-results__heading > div:first-child > span {
  color: var(--tpshop-muted);
  font-size: 13px;
  font-weight: 600;
}

.tpshop-results__heading h2 {
  margin: 4px 0 0;
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.tpshop-results__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpshop-results__actions > button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd6ca;
  border-radius: 10px;
  background: #fff;
  color: var(--tpshop-midnight);
  font-weight: 700;
}

.tpshop-results__actions > button > span {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  place-items: center;
  background: var(--tpshop-midnight);
  color: #fff;
  font-size: 10px;
}

.tpshop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpshop-sort label {
  color: var(--tpshop-muted);
  font-size: 13px;
  font-weight: 700;
}

.tpshop-sort select {
  width: auto;
  min-width: 160px;
  min-height: 44px;
}

.tpshop-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -5px 0 20px;
}

.tpshop-active-filters > span {
  margin-right: 2px;
  color: var(--tpshop-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tpshop-active-filters a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #d8d0c4;
  border-radius: 10px;
  background: #fff;
  color: var(--tpshop-midnight);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.tpshop-active-filters a:hover {
  border-color: var(--tpshop-cyan-dark);
  color: var(--tpshop-cyan-dark);
}

/* Product cards */
.tpshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.tpshop-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tpshop-line);
  border-radius: 18px;
  background: var(--tpshop-white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tpshop-card:hover,
.tpshop-card:focus-within {
  border-color: var(--tpshop-cyan-soft);
  box-shadow: 0 12px 28px rgb(11 34 57 / 9%);
  transform: translateY(-2px);
}

.tpshop-card__image {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  background: #efede8;
}

.tpshop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.tpshop-card:hover .tpshop-card__image img {
  transform: scale(1.025);
}

.tpshop-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--tpshop-cyan-dark);
  font-size: 2.2rem;
}

.tpshop-card__category,
.tpshop-card__sale {
  position: absolute;
  top: 11px;
  z-index: 1;
  max-width: calc(100% - 22px);
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tpshop-card__category {
  left: 11px;
  background: var(--tpshop-cyan-soft);
  color: var(--tpshop-midnight);
}

.tpshop-card__sale {
  right: 11px;
  background: var(--tp-terracotta, #d9784b);
  color: #fff;
}

.tpshop-card__category + .tpshop-card__sale {
  max-width: 70px;
}

.tpshop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
}

.tpshop-card h3 {
  margin: 0;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.tpshop-card h3 a {
  color: var(--tpshop-midnight);
  text-decoration: none;
}

.tpshop-card h3 a:hover {
  color: var(--tpshop-cyan-dark);
}

.tpshop-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--tpshop-midnight);
  font-size: 11px;
  font-weight: 750;
}

.tpshop-card__rating i {
  color: var(--tpshop-cyan-dark);
}

.tpshop-card__rating small {
  color: var(--tpshop-muted);
  font-weight: 600;
}

.tpshop-card__price {
  margin-top: auto;
  padding-top: 10px;
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.tpshop-card__price del {
  margin-right: 6px;
  color: var(--tpshop-muted);
  font-size: 13px;
  font-weight: 600;
}

.tpshop-card__price ins {
  color: inherit;
  text-decoration: none;
}

.tpshop-card__media {
  position: relative;
}

.tpshop-card__add,
.tpshop-card__options {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 2;
  margin: 0;
}

.tpshop-card__add button,
.tpshop-card__options {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tpshop-cyan);
  color: var(--tpshop-midnight);
  box-shadow: 0 8px 20px rgb(11 34 57 / 24%);
  cursor: pointer;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tpshop-card__add button:hover,
.tpshop-card__add button:focus-visible,
.tpshop-card__options:hover,
.tpshop-card__options:focus-visible {
  background: var(--tpshop-cyan-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgb(11 34 57 / 30%);
}

.tpshop-card__add button:disabled {
  cursor: wait;
  transform: none;
}

/* Loading: commerce.js swaps the icon for a spinner + label — keep just the spinner. */
.tpshop-card__add button[aria-busy="true"] {
  gap: 0;
  font-size: 0;
}

.tpshop-card__add button[aria-busy="true"] i {
  font-size: 17px;
}

/* Add-to-cart status: announced to assistive tech, not shown over the image. */
.tpshop-card__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile action bar + sheets are hidden on desktop (activated at <=820px). */
.tpshop-mobilebar,
.tpshop-sortsheet,
.tpshop-sheet-backdrop {
  display: none;
}

body.tpshop-sheet-open {
  overflow: hidden;
}

.tpshop-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.tpshop-pagination a {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tpshop-line);
  border-radius: 10px;
  place-items: center;
  background: #fff;
  color: var(--tpshop-midnight);
  font-weight: 700;
  text-decoration: none;
}

.tpshop-pagination a.is-active {
  border-color: var(--tpshop-midnight);
  background: var(--tpshop-midnight);
  color: var(--tpshop-ivory);
}

.tpshop-empty {
  display: grid;
  min-height: 420px;
  padding: 46px 20px;
  place-items: center;
  align-content: center;
  border: 1px dashed #d7cfc2;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.tpshop-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  place-items: center;
  background: #e6f7f8;
  color: var(--tpshop-cyan-dark);
  font-size: 22px;
}

.tpshop-empty h3 {
  margin: 16px 0 5px;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 1.4rem;
}

.tpshop-empty p {
  margin: 0;
  color: var(--tpshop-muted);
}

.tpshop-empty a {
  margin-top: 18px;
  color: var(--tpshop-cyan-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Single product */
.tpproduct {
  padding-block: 28px clamp(72px, 8vw, 110px);
}

.tpproduct-shell {
  width: min(1160px, 100%);
}

.tpproduct-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #7b8792;
  font-size: 12px;
}

.tpproduct-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.tpproduct-breadcrumb a:hover {
  color: var(--tpshop-cyan-dark);
}

.tpproduct-breadcrumb i {
  font-size: 8px;
}

.tpproduct-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  color: var(--tpshop-midnight);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpproduct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: clamp(38px, 5.8vw, 76px);
  align-items: start;
}

.tpproduct-summary {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--tpshop-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(15 27 45 / 7%);
}

.tpproduct-gallery {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.tpproduct-gallery__main {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  place-items: center;
  background: #ebe9e4;
}

.tpproduct-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpproduct-gallery__placeholder {
  color: var(--tpshop-cyan-dark);
  font-size: 4rem;
}

.tpproduct-gallery__sale {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--tp-terracotta, #d9784b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tpproduct-gallery__thumbs {
  display: grid;
  grid-auto-columns: 78px;
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.tpproduct-gallery__thumbs button {
  overflow: hidden;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #ebe9e4;
  cursor: pointer;
  opacity: .72;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.tpproduct-gallery__thumbs button.is-active {
  border-color: var(--tpshop-cyan);
  opacity: 1;
}

.tpproduct-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpproduct-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--tpshop-cyan-soft);
  color: var(--tpshop-midnight);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tpproduct-summary h1 {
  margin: 14px 0 10px;
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.tpproduct-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
}

.tpproduct-rating > span {
  display: inline-flex;
  gap: 2px;
  color: var(--tpshop-cyan-dark);
}

.tpproduct-rating a {
  color: var(--tpshop-muted);
  text-underline-offset: 3px;
}

.tpproduct-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 18px 0;
}

.tpproduct-price {
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.tpproduct-price del {
  margin-right: 8px;
  color: var(--tpshop-muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.tpproduct-price ins {
  color: inherit;
  text-decoration: none;
}

.tpproduct-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.tpproduct-stock.is-in-stock {
  color: var(--tpshop-success);
}

.tpproduct-stock.is-out-of-stock {
  color: var(--tpshop-danger);
}

.tpproduct-description {
  color: #3e4f5e;
  font-size: 15px;
  line-height: 1.65;
}

.tpproduct-description p {
  margin: 0 0 12px;
}

.tpproduct-benefits {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tpproduct-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3e4f5e;
  font-size: 14px;
  line-height: 1.45;
}

.tpproduct-benefits i {
  margin-top: 3px;
  color: var(--tpshop-cyan-dark);
  font-size: 13px;
}

.tpproduct-purchase {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.tpproduct-option {
  display: grid;
  gap: 7px;
  color: var(--tpshop-midnight);
  font-size: 13px;
  font-weight: 700;
}

.tpproduct-option select {
  width: 100%;
  min-height: 50px;
  padding: 8px 42px 8px 13px;
  border: 1px solid #ddd6ca;
  border-radius: 12px;
  background: #fff;
  color: var(--tpshop-midnight);
  font: 500 15px/1.3 var(--tp-body-font, "Inter", sans-serif);
}

.tpproduct-purchase__row {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 12px;
  align-items: end;
}

.tpproduct-quantity > span {
  display: block;
  margin-bottom: 7px;
  color: var(--tpshop-midnight);
  font-size: 12px;
  font-weight: 700;
}

.tpproduct-quantity > div {
  display: grid;
  grid-template-columns: 44px 50px 44px;
  overflow: hidden;
  min-height: 52px;
  border: 1px solid #ddd6ca;
  border-radius: 12px;
  background: #fff;
}

.tpproduct-quantity button {
  display: grid;
  min-width: 44px;
  min-height: 50px;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  color: var(--tpshop-midnight);
  cursor: pointer;
}

.tpproduct-quantity button:hover {
  background: #eaf8f9;
}

.tpproduct-quantity input {
  width: 50px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-inline: 1px solid #eee8de;
  background: #fff;
  color: var(--tpshop-midnight);
  font: 750 16px/1 var(--tp-body-font, "Inter", sans-serif);
  text-align: center;
  appearance: textfield;
}

.tpproduct-quantity input::-webkit-inner-spin-button,
.tpproduct-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.tpproduct-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--tpshop-cyan);
  color: var(--tpshop-midnight);
  cursor: pointer;
  font: 750 15px/1 var(--tp-body-font, "Inter", sans-serif);
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.tpproduct-add:hover:not(:disabled) {
  background: var(--tpshop-cyan-dark);
  color: #fff;
}

.tpproduct-add:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.tpproduct-purchase > p {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--tpshop-danger);
  font-size: 12px;
  line-height: 1.4;
}

.tpproduct-promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.tpproduct-promises > div {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--tpshop-line);
  border-radius: 12px;
  background: #fff;
}

.tpproduct-promises i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--tpshop-cyan-dark);
  font-size: 17px;
}

.tpproduct-promises strong,
.tpproduct-promises small {
  display: block;
}

.tpproduct-promises strong {
  color: var(--tpshop-midnight);
  font-size: 12px;
  line-height: 1.3;
}

.tpproduct-promises small {
  margin-top: 3px;
  color: var(--tpshop-muted);
  font-size: 10px;
  line-height: 1.35;
}

.tpproduct-specs {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.tpproduct-specs details {
  border: 1px solid var(--tpshop-line);
  border-radius: 12px;
  background: #fff;
}

.tpproduct-specs summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: var(--tpshop-midnight);
  cursor: pointer;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.tpproduct-specs summary::-webkit-details-marker {
  display: none;
}

.tpproduct-specs summary i {
  color: var(--tpshop-cyan-dark);
  font-size: 12px;
  transition: transform 180ms ease;
}

.tpproduct-specs details[open] summary i {
  transform: rotate(180deg);
}

.tpproduct-specs details > p,
.tpproduct-specs details > ul,
.tpproduct-specs__attributes {
  margin: 0;
  padding: 0 15px 15px;
  color: var(--tpshop-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tpproduct-specs details > ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.tpproduct-specs details > ul li strong {
  display: block;
  color: var(--tpshop-midnight);
}

.tpproduct-specs__attributes p {
  display: grid;
  grid-template-columns: minmax(100px, .42fr) 1fr;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #eee9e1;
}

.tpproduct-specs__attributes strong {
  color: var(--tpshop-midnight);
}

.tpproduct-assurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--tpshop-line);
  border-radius: 16px;
  background: var(--tpshop-line);
}

.tpproduct-assurance > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 16px;
  background: #fff;
}

.tpproduct-assurance > div > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  place-items: center;
  background: rgb(27 186 202 / 11%);
  color: var(--tpshop-cyan-dark);
}

.tpproduct-assurance p,
.tpproduct-assurance strong,
.tpproduct-assurance small {
  display: block;
  min-width: 0;
  margin: 0;
}

.tpproduct-assurance strong {
  color: var(--tpshop-midnight);
  font-size: 11px;
  line-height: 1.3;
}

.tpproduct-assurance small {
  margin-top: 3px;
  color: var(--tpshop-muted);
  font-size: 9px;
  line-height: 1.35;
}

.tpproduct-story {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 90px);
  margin-top: clamp(62px, 8vw, 100px);
  padding: clamp(34px, 5vw, 64px);
  border-radius: 20px;
  background: var(--tpshop-midnight);
  color: var(--tpshop-ivory);
}

.tpproduct-story > div:first-child > span,
.tpproduct-related__heading > span {
  color: var(--tpshop-cyan-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tpproduct-story h2,
.tpproduct-related h2 {
  margin: 10px 0 0;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.tpproduct-story h2 {
  color: var(--tpshop-ivory);
}

.tpproduct-story__content {
  color: rgb(246 243 238 / 78%);
  font-size: 15px;
  line-height: 1.75;
}

.tpproduct-story__content > :first-child {
  margin-top: 0;
}

.tpproduct-story__content > :last-child {
  margin-bottom: 0;
}

.tpproduct-related {
  margin-top: clamp(62px, 8vw, 92px);
}

.tpproduct-related__heading {
  margin-bottom: 22px;
}

.tpproduct-related__heading > span {
  color: var(--tpshop-cyan-dark);
}

.tpproduct-related h2 {
  color: var(--tpshop-midnight);
}

.tpproduct-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tpproduct-related article {
  overflow: hidden;
  border: 1px solid var(--tpshop-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tpproduct-related article:hover,
.tpproduct-related article:focus-within {
  border-color: var(--tpshop-cyan-soft);
  box-shadow: 0 12px 28px rgb(11 34 57 / 8%);
  transform: translateY(-2px);
}

.tpproduct-related__image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  background: #efede8;
}

.tpproduct-related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpproduct-related__image > span {
  color: var(--tpshop-cyan-dark);
  font-size: 2rem;
}

.tpproduct-related article > div {
  padding: 14px;
}

.tpproduct-related h3 {
  margin: 0 0 9px;
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 15px;
  line-height: 1.2;
}

.tpproduct-related h3 a {
  color: var(--tpshop-midnight);
  text-decoration: none;
}

.tpproduct-related article strong {
  color: var(--tpshop-midnight);
  font-size: 14px;
}

.tpproduct-related article del {
  color: var(--tpshop-muted);
  font-size: 11px;
}

.tpproduct-related article ins {
  color: inherit;
  text-decoration: none;
}

.tpproduct-reviews {
  margin-top: clamp(54px, 7vw, 86px);
  scroll-margin-top: 92px;
}

.tpproduct-reviews__heading {
  margin-bottom: 22px;
}

.tpproduct-reviews__heading > span {
  color: var(--tpshop-cyan-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tpproduct-reviews__heading h2 {
  margin: 9px 0 0;
  color: var(--tpshop-midnight);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.tpproduct-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tpproduct-reviews__grid article {
  padding: 22px;
  border: 1px solid var(--tpshop-line);
  border-radius: 16px;
  background: #fff;
}

.tpproduct-reviews__stars {
  display: flex;
  gap: 2px;
  color: var(--tpshop-cyan-dark);
  font-size: 13px;
}

.tpproduct-reviews blockquote {
  margin: 14px 0 20px;
  color: #3e4f5e;
  font-size: 14px;
  line-height: 1.65;
}

.tpproduct-reviews article footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  color: var(--tpshop-muted);
  font-size: 11px;
}

.tpproduct-reviews article footer strong {
  color: var(--tpshop-midnight);
  font-size: 12px;
}

/* Shared interactive states */
.tpshop :is(a, button, input, select):focus-visible,
.tpproduct :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--tpshop-cyan-dark);
  outline-offset: 3px;
}

@media (min-width: 1440px) {
  .tpshop-grid {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .tpshop-shell,
  .tpproduct-shell {
    padding-inline: 32px;
  }

  .tpshop-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }

  .tpshop-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 34px;
  }

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

  .tpshop-hero__product--3 {
    display: none;
  }

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

  .tpproduct-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .95fr);
    gap: 36px;
  }

  .tpproduct-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .tpproduct-related article:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .tpshop-hero__layout {
    grid-template-columns: 1fr;
  }

  .tpshop-hero__products {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .tpshop-hero__products::-webkit-scrollbar {
    display: none;
  }

  .tpshop-hero__product,
  .tpshop-hero__product--1,
  .tpshop-hero__product--2,
  .tpshop-hero__product--3 {
    display: grid;
    transform: none;
    scroll-snap-align: start;
  }

  .tpshop-layout {
    grid-template-columns: 1fr;
  }

  .tpshop-catalog {
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }

  /* Filter panel becomes a bottom sheet */
  .tpshop-filter {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    max-height: 88vh;
    transform: translateY(101%);
    transition: transform 300ms ease;
  }

  .tpshop-filter.is-open {
    transform: translateY(0);
  }

  .tpshop-filter form {
    max-height: 88vh;
    padding: 0 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 44px rgb(11 34 57 / 22%);
  }

  .tpshop-filter__heading {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 -18px 4px;
    padding: 18px 18px 13px;
    background: var(--tpshop-white);
    border-bottom: 1px solid var(--tpshop-line);
  }

  .tpshop-filter__heading::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d9d2c6;
    transform: translateX(-50%);
  }

  .tpshop-filter__heading-actions button {
    display: grid;
  }

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

  .tpshop-categories legend {
    grid-column: 1 / -1;
  }

  /* Inline results actions are replaced by the fixed bottom bar */
  .tpshop-results__actions {
    display: none;
  }

  /* Fixed bottom action bar */
  .tpshop-mobilebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: flex;
    align-items: stretch;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--tpshop-white);
    border-top: 1px solid var(--tpshop-line);
    box-shadow: 0 -8px 26px rgb(11 34 57 / 12%);
  }

  .tpshop-mobilebar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--tpshop-midnight);
    cursor: pointer;
    font: 750 14px/1 var(--tp-body-font, "Inter", sans-serif);
  }

  .tpshop-mobilebar__btn i {
    color: var(--tpshop-cyan-dark);
    font-size: 15px;
  }

  .tpshop-mobilebar__sep {
    width: 1px;
    margin: 13px 0;
    background: var(--tpshop-line);
  }

  .tpshop-mobilebar__count {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: 999px;
    place-items: center;
    background: var(--tpshop-cyan);
    color: var(--tpshop-midnight);
    font-size: 10px;
    font-weight: 800;
  }

  /* Sort bottom sheet */
  .tpshop-sortsheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: block;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: var(--tpshop-white);
    box-shadow: 0 -18px 44px rgb(11 34 57 / 22%);
    transform: translateY(101%);
    transition: transform 300ms ease;
  }

  .tpshop-sortsheet.is-open {
    transform: translateY(0);
  }

  .tpshop-sortsheet__grip {
    width: 40px;
    height: 4px;
    margin: 4px auto 10px;
    border-radius: 999px;
    background: #d9d2c6;
  }

  .tpshop-sortsheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .tpshop-sortsheet__head h2 {
    margin: 0;
    color: var(--tpshop-midnight);
    font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
    font-size: 1.1rem;
  }

  .tpshop-sortsheet__head button {
    display: grid;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    place-items: center;
    background: #f2efea;
    color: var(--tpshop-midnight);
    cursor: pointer;
  }

  .tpshop-sortsheet > button[data-tp-shop-sort-value] {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tpshop-midnight);
    cursor: pointer;
    font: 650 15px/1.2 var(--tp-body-font, "Inter", sans-serif);
    text-align: left;
  }

  .tpshop-sortsheet > button[data-tp-shop-sort-value] i {
    color: var(--tpshop-cyan-dark);
    opacity: 0;
  }

  .tpshop-sortsheet > button.is-active {
    background: #eefafb;
  }

  .tpshop-sortsheet > button.is-active i {
    opacity: 1;
  }

  /* Shared dimming backdrop for both sheets */
  .tpshop-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgb(11 34 57 / 45%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
  }

  .tpshop-catalog:has(.tpshop-filter.is-open) .tpshop-sheet-backdrop,
  .tpshop-catalog:has(.tpshop-sortsheet.is-open) .tpshop-sheet-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .tpproduct-layout {
    grid-template-columns: 1fr;
  }

  .tpproduct-gallery {
    position: static;
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .tpproduct-summary {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .tpproduct-story {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tpshop-shell,
  .tpproduct-shell {
    padding-inline: 18px;
  }

  .tpshop-hero {
    padding-block: 44px 50px;
  }

  .tpshop-hero__layout {
    gap: 30px;
  }

  .tpshop-hero__promises {
    display: grid;
    gap: 9px;
  }

  .tpshop-hero__products {
    margin-right: -18px;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    border-radius: 18px 0 0 18px;
  }

  .tpshop-hero::after {
    right: -180px;
  }

  .tpshop-results__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tpshop-results__actions {
    width: 100%;
    justify-content: space-between;
  }

  .tpshop-sort label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tpshop-sort select {
    min-width: 150px;
  }

  .tpshop-grid {
    gap: 12px;
  }

  .tpshop-card__body {
    padding: 12px 13px 13px;
  }

  .tpshop-card h3 {
    font-size: 15px;
  }

  .tpshop-card__price {
    font-size: 17px;
  }

  .tpshop-card__add button,
  .tpshop-card__options {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .tpproduct {
    padding-top: 20px;
  }

  .tpproduct-breadcrumb {
    margin-bottom: 17px;
  }

  .tpproduct-gallery__main {
    border-radius: 16px;
  }

  .tpproduct-summary h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.45rem);
  }

  .tpproduct-promises {
    grid-template-columns: 1fr;
  }

  .tpproduct-assurance {
    grid-template-columns: 1fr;
  }

  .tpproduct-story {
    margin-inline: -18px;
    padding: 38px 18px;
    border-radius: 0;
  }

  .tpproduct-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tpproduct-reviews__grid {
    grid-template-columns: 1fr;
  }

  .tpproduct-related article:nth-child(n + 4) {
    display: block;
  }
}

@media (max-width: 420px) {
  .tpshop-filter form {
    grid-template-columns: 1fr;
  }

  .tpshop-filter__heading,
  .tpshop-categories,
  .tpshop-filter__submit,
  .tpshop-filter__status {
    grid-column: auto;
  }

  .tpshop-categories {
    grid-template-columns: 1fr;
  }

  .tpshop-results__actions {
    align-items: stretch;
  }

  .tpshop-results__actions > button,
  .tpshop-sort select {
    width: 100%;
    min-width: 0;
  }

  .tpshop-sort {
    min-width: 0;
    flex: 1;
  }

  .tpshop-card__category,
  .tpshop-card__sale {
    top: 7px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .tpshop-card__category {
    left: 7px;
  }

  .tpshop-card__sale {
    right: 7px;
  }

  .tpproduct-summary {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .tpproduct-purchase__row {
    grid-template-columns: 1fr;
  }

  .tpproduct-quantity > div {
    width: 138px;
  }

  .tpproduct-add {
    width: 100%;
  }

  .tpproduct-specs__attributes p {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpshop *,
  .tpshop *::before,
  .tpshop *::after,
  .tpproduct *,
  .tpproduct *::before,
  .tpproduct *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .tpshop-card:hover,
  .tpshop-card:focus-within,
  .tpproduct-related article:hover,
  .tpproduct-related article:focus-within {
    transform: none;
  }

  .tpshop.is-loading .tpshop-catalog::before {
    animation: none;
  }
}
