.tp-commerce-shell {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(42px, 5vw, 76px);
}

.tp-shop-page,
.tp-product-page,
.tp-checkout-page {
  color: var(--tp-ink);
  background: #fff;
}

.tp-shop-hero {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(120deg, #183b46, var(--tp-primary-dark));
}

.tp-shop-hero span,
.tp-checkout-heading > span,
.tp-product-summary__brand,
.tp-product-details__content > span {
  color: var(--tp-cyan-soft);
  font: 700 12px/1.2 "Poppins", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tp-shop-hero h1 {
  max-width: 780px;
  margin: 12px 0;
  font: 800 clamp(38px, 5vw, 66px)/1.08 "Poppins", sans-serif;
  letter-spacing: -.035em;
}

.tp-shop-hero p {
  max-width: 650px;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 18px;
  line-height: 1.65;
}

.tp-shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 46px;
  padding-block: 60px 100px;
}

.tp-shop-filter {
  align-self: start;
  position: sticky;
  top: 110px;
}

.tp-shop-filter form {
  display: grid;
  gap: 20px;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}

.tp-shop-filter__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tp-shop-filter h2,
.tp-shop-results__heading h2,
.tp-checkout-form h2,
.tp-checkout-summary h2 {
  margin: 0;
  font: 700 22px/1.25 "Poppins", sans-serif;
}

.tp-shop-filter__heading a {
  color: var(--tp-primary);
  font-size: 12px;
}

.tp-shop-filter label,
.tp-product-purchase label {
  display: grid;
  gap: 8px;
  color: #324e57;
  font: 600 13px/1.4 "Poppins", sans-serif;
}

.tp-shop-filter input,
.tp-shop-filter select,
.tp-product-purchase input,
.tp-product-purchase select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d3dfe2;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--tp-ink);
}

.tp-shop-filter button,
.tp-product-purchase button {
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  background: var(--tp-accent);
  color: var(--tp-midnight);
  cursor: pointer;
  font: 700 14px/1 "Poppins", sans-serif;
}

.tp-shop-results__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.tp-shop-results__heading span {
  color: #72868c;
  font-size: 13px;
}

.tp-shop-results__heading button {
  display: none;
}

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

.tp-shop-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e8ea;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.tp-shop-card:hover {
  border-color: #bcd7dd;
  box-shadow: 0 16px 42px rgb(41 82 93 / 12%);
}

.tp-shop-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f5f6;
}

.tp-shop-card__image > span {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--tp-accent);
  color: var(--tp-midnight);
  font-size: 11px;
  font-weight: 800;
}

.tp-shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.tp-shop-card:hover img {
  transform: scale(1.025);
}

.tp-shop-card__body {
  display: flex;
  flex: 1;
  min-height: 172px;
  flex-direction: column;
  padding: 18px;
}

.tp-shop-card__body small {
  color: var(--tp-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.tp-shop-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 18px;
  font: 600 16px/1.45 "Poppins", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tp-shop-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tp-shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tp-shop-card__footer strong {
  color: var(--tp-ink);
}

.tp-shop-card__footer a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf7fa;
  color: var(--tp-primary-dark);
}

.tp-shop-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.tp-shop-pagination a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  color: var(--tp-primary-dark);
  text-decoration: none;
}

.tp-shop-pagination a.is-active {
  border-color: var(--tp-primary);
  background: var(--tp-primary);
  color: var(--tp-midnight);
}

.tp-shop-empty,
.tp-checkout-empty {
  padding: 80px 24px;
  text-align: center;
}

.tp-shop-empty > i,
.tp-checkout-empty > i {
  color: var(--tp-primary);
  font-size: 44px;
}

.tp-checkout-empty a {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 9px;
  padding: 14px 20px;
  background: var(--tp-accent);
  color: var(--tp-midnight);
  text-decoration: none;
}

.tp-product-page {
  padding: 36px 0 100px;
}

.tp-product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: #789096;
  font-size: 13px;
}

.tp-product-breadcrumb a {
  color: var(--tp-primary);
}

.tp-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  gap: clamp(48px, 7vw, 100px);
}

.tp-product-gallery__main {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--tp-surface-2);
}

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

.tp-product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
}

.tp-product-gallery__thumbs button {
  flex: 0 0 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 0;
  background: #f1f4f5;
}

.tp-product-gallery__thumbs button.is-active {
  border-color: var(--tp-primary);
}

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

.tp-product-summary h1 {
  margin: 12px 0;
  font: 700 clamp(32px, 4vw, 50px)/1.12 "Poppins", sans-serif;
  letter-spacing: -.03em;
}

.tp-product-rating {
  display: flex;
  gap: 14px;
  color: #697f85;
}

.tp-product-rating i {
  color: var(--tp-accent);
}

.tp-product-price {
  margin: 25px 0;
  color: var(--tp-primary-dark);
  font: 800 30px/1.2 "Poppins", sans-serif;
}

.tp-product-description {
  color: #586f76;
  font-size: 17px;
  line-height: 1.7;
}

.tp-product-purchase {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.tp-product-purchase__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: end;
}

.tp-product-purchase__row button {
  min-height: 48px;
}

.tp-product-purchase > p {
  min-height: 20px;
  margin: 0;
  color: #a33e31;
  font-size: 13px;
}

.tp-product-promises {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  border-top: 1px solid #e1e8ea;
  padding-top: 26px;
}

.tp-product-promises > div {
  display: flex;
  gap: 14px;
}

.tp-product-promises i {
  color: var(--tp-primary);
  font-size: 22px;
}

.tp-product-promises strong,
.tp-product-promises span span {
  display: block;
}

.tp-product-promises span span {
  margin-top: 3px;
  color: #72878d;
  font-size: 13px;
}

.tp-product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 90px;
  padding: 70px;
  border-radius: 14px;
  background: #f2f8f9;
}

.tp-product-details h2 {
  margin: 12px 0 20px;
  font: 700 clamp(28px, 3vw, 42px)/1.18 "Poppins", sans-serif;
}

.tp-product-details__content > div {
  color: #587078;
  line-height: 1.75;
}

.tp-product-advantages {
  display: grid;
  gap: 14px;
}

.tp-product-advantages article {
  display: flex;
  gap: 15px;
  border-radius: 11px;
  padding: 18px;
  background: #fff;
}

.tp-product-advantages i {
  color: var(--tp-accent);
  font-size: 22px;
}

.tp-product-advantages h3,
.tp-product-advantages p {
  margin: 0;
}

.tp-product-advantages h3 {
  font: 600 16px/1.35 "Poppins", sans-serif;
}

.tp-product-advantages p {
  margin-top: 5px;
  color: #6d8288;
}

.tp-product-reviews,
.tp-product-similar {
  margin-top: 80px;
}

.tp-checkout-page {
  padding: 65px 0 110px;
  background: #f4f7f8;
}

.tp-checkout-heading {
  max-width: 700px;
  margin-bottom: 38px;
}

.tp-checkout-heading h1 {
  margin: 10px 0;
  font: 700 clamp(34px, 4vw, 50px)/1.15 "Poppins", sans-serif;
}

.tp-checkout-heading p {
  color: #647a81;
  font-size: 17px;
}

.tp-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}

.tp-checkout-form,
.tp-checkout-summary {
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
  box-shadow: 0 16px 48px rgb(41 82 93 / 8%);
}

.tp-checkout-form h2,
.tp-checkout-summary h2 {
  margin-bottom: 26px;
}

.tp-checkout-summary {
  position: sticky;
  top: 110px;
}

.tp-checkout-summary article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5ecee;
}

.tp-checkout-summary article img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.tp-checkout-summary article strong,
.tp-checkout-summary article span {
  display: block;
}

.tp-checkout-summary article span {
  margin-top: 4px;
  color: #7a8e93;
  font-size: 12px;
}

.tp-checkout-summary__total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font: 700 19px/1.3 "Poppins", sans-serif;
}

.tp-checkout-cod {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  border: 1px solid #9ccdd7;
  border-radius: 10px;
  padding: 15px;
  background: #edf8fa;
}

.tp-checkout-cod > i {
  color: var(--tp-primary);
}

.tp-checkout-cod span {
  display: block;
  margin-top: 3px;
  color: #667d83;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .tp-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-product-layout,
  .tp-product-details,
  .tp-checkout-layout {
    grid-template-columns: 1fr;
  }

  .tp-checkout-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .tp-commerce-shell {
    padding-inline: 18px;
  }

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

  .tp-shop-filter {
    position: static;
  }

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

  .tp-shop-card__body {
    min-height: 154px;
    padding: 13px;
  }

  .tp-product-layout {
    gap: 34px;
  }

  .tp-product-details {
    margin-inline: -18px;
    padding: 45px 18px;
    border-radius: 0;
  }

  .tp-product-purchase__row {
    grid-template-columns: 90px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-shop-card,
  .tp-shop-card__image img {
    transition: none;
  }
}
