.header-cart-wrap {
  position: relative;
  flex: 0 0 auto;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border, #e6e1d8);
  border-radius: 999px;
  background: #fff;
  color: #2c261f;
  cursor: pointer;
}

.header-cart-count[hidden],
.header-cart-panel[hidden] {
  display: none !important;
}

.header-cart-panel {
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  z-index: 80;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: .85rem;
  border: 1px solid #e6e1d8;
  border-radius: .45rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(40, 28, 16, .16);
  color: #2c261f;
  font-family: Jost, system-ui, sans-serif;
}

@media (max-width: 1023px) {
  .site-header .bar {
    position: relative;
  }

  .header-cart-wrap {
    position: static;
  }

  .header-cart-panel {
    top: calc(100% + .35rem);
    left: .75rem;
    right: .75rem;
    width: auto;
    max-height: calc(100dvh - 6.5rem);
    overflow: auto;
  }
}

.header-cart-empty {
  margin: .35rem 0 .85rem;
  font-size: .875rem;
  color: #6d645b;
}

.header-cart-items {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  max-height: 18rem;
  overflow: auto;
}

.header-cart-items li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid #efeae3;
}

.header-cart-items li > div {
  min-width: 0;
}

.header-cart-thumb {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: .25rem;
  background: #ece7e0;
}

.header-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-cart-items a {
  color: inherit;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.header-cart-items span {
  display: block;
  margin-top: .15rem;
  color: #6d645b;
  font-size: .75rem;
}

.js-cart-remove {
  border: 0;
  background: transparent;
  color: #8a3b32;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.header-cart-sub {
  display: flex;
  justify-content: space-between;
  margin-bottom: .75rem;
  font-size: .9rem;
}

.header-cart-view {
  display: block;
  padding: .7rem 1rem;
  border-radius: .25rem;
  background: #4a3428;
  color: #f7f4ef;
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.header-cart-view:hover {
  color: #fff;
  background: #3a281f;
}

.pt-product-cart:disabled,
.pt-detail-form .pt-detail-cart:disabled {
  opacity: .7;
  cursor: wait;
}

.header-cart svg {
  width: 1.15rem;
  height: 1.15rem;
}

.header-cart-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: oklch(72% .11 75);
  color: #2a2114;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.cart-flash {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .65rem 1rem;
  background: #f7f4ef;
  border-top: 1px solid #e6e1d8;
  color: #2c261f;
  font-size: .875rem;
}

.cart-flash a {
  font-weight: 600;
  color: #6b542c;
}

.pt-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.25rem;
  color: #6d645b;
  font-size: .82rem;
}

.pt-crumbs a {
  color: inherit;
  text-decoration: none;
}

.pt-cart h1 {
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.pt-detail,
.pt-cart {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  font-family: Jost, system-ui, sans-serif;
  color: #2c261f;
}

.pt-cart h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}

.pt-cart-line {
  font-size: 1.35rem;
  font-weight: 600;
}

.pt-cart-qty {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
}

.pt-cart-qty label {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
}

.pt-cart-qty input {
  width: 4.5rem;
  padding: .55rem .6rem;
  border: 1px solid #ddd6cc;
  border-radius: .25rem;
  font: inherit;
}

.pt-cart-qty button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.2rem;
  border: 0;
  border-radius: .25rem;
  background: #4a3428;
  color: #f7f4ef;
  font: inherit;
  cursor: pointer;
}

@media (min-width: 768px) {
  .pt-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.pt-detail-grid {
  display: grid;
  gap: 2rem;
}

.pt-detail-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: .2rem;
  overflow: hidden;
  background: #ece7e0;
}

.pt-detail-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pt-detail-eyebrow {
  margin: 0;
  color: oklch(52% .09 75);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pt-detail-info h2 {
  margin: .85rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
}

.pt-detail-price {
  margin: 1.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.pt-detail-lead {
  margin: 1.15rem 0 0;
  color: #8d847b;
  font-size: .92rem;
  line-height: 1.75;
}

.pt-detail-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.8rem;
}

.pt-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e6dfd4;
  border-radius: .15rem;
}

.pt-qty button {
  width: 2.4rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: #2c261f;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.pt-qty input {
  width: 2.2rem;
  border: 0;
  background: transparent;
  color: #2c261f;
  font: inherit;
  text-align: center;
  -moz-appearance: textfield;
}

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

.pt-detail-form .pt-detail-cart {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.2rem;
  border: 0;
  border-radius: .25rem;
  background: oklch(72% .11 75);
  color: oklch(18% .02 50);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.pt-detail-form .pt-detail-cart svg {
  width: 1rem;
  height: 1rem;
}

.pt-detail-form .pt-detail-cart:hover {
  filter: brightness(1.06);
}

.pt-detail-specs {
  margin-top: 2rem;
  border-top: 1px solid #e6dfd4;
  border-bottom: 1px solid #e6dfd4;
  font-size: .9rem;
}

.pt-detail-specs p {
  margin: 0;
  padding: .95rem 0;
  border-top: 1px solid #efe8de;
}

.pt-detail-specs p:first-child {
  border-top: 0;
}

.pt-detail-specs a {
  color: inherit;
  text-decoration: underline;
}

.pt-detail-content {
  margin-top: 2.5rem;
  max-width: 46rem;
  color: #6f675f;
  line-height: 1.8;
}

.pt-detail-content p {
  margin: 0 0 1rem;
}

.pt-detail-related {
  margin-top: 4rem;
}

.pt-detail-related h2 {
  margin: 0 0 1.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
}

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

@media (max-width: 900px) {
  .pt-detail-related-grid {
    grid-template-columns: 1fr;
  }
}

.pt-cart-empty {
  margin: 0 0 1.25rem;
}

.pt-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-cart-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e6e1d8;
}

.pt-cart-media {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: .3rem;
  overflow: hidden;
  background: #ece7e0;
}

.pt-cart-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-cart-info h2 {
  font-family: Jost, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.pt-cart-info a {
  color: inherit;
  text-decoration: none;
}

.pt-cart-info p {
  margin: .25rem 0 0;
  color: #6d645b;
}

.pt-cart-qty {
  grid-column: 2;
  margin-top: 0;
}

.pt-cart-line {
  font-size: 1rem;
}

.pt-cart-remove {
  border: 0;
  background: transparent;
  color: #8a3b32;
  font: inherit;
  cursor: pointer;
}

.pt-cart-total {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  .pt-cart-row {
    grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  }

  .pt-cart-qty {
    grid-column: auto;
  }
}

.pt-checkout-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: #b08958;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pt-checkout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.pt-checkout-grid {
  display: grid;
  gap: 2rem;
}

.pt-checkout h2,
.pt-bank h2,
.pt-order h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.pt-checkout label {
  display: block;
  margin-bottom: 0.9rem;
  color: #6d6258;
  font-size: 0.85rem;
}

.pt-checkout input,
.pt-checkout textarea,
.pt-track-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e6dccf;
  border-radius: 12px;
  background: #fff;
  color: #1c1612;
  font: inherit;
}

.pt-pay-options {
  display: grid;
  gap: 0.75rem;
}

.pt-pay-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e6dccf;
  border-radius: 14px;
  background: #fff;
  color: #1c1612;
}

.pt-pay-option input {
  width: auto;
  margin-top: 0.25rem;
}

.pt-pay-option small {
  display: block;
  color: #6d6258;
}

.pt-checkout-summary,
.pt-order,
.pt-bank {
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff;
}

.pt-checkout-summary ul,
.pt-order ul,
.pt-order dl,
.pt-bank dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-checkout-summary li,
.pt-order li,
.pt-order dl > div,
.pt-bank dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #efe7dc;
}

.pt-order dt,
.pt-bank dt {
  color: #6d6258;
}

.pt-checkout-sum {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.pt-checkout-error {
  margin: 0 0 0.75rem;
  color: #8a3b32;
}

.pt-checkout-hint {
  margin-top: 1.25rem;
  color: #6d6258;
}

.pt-track-form {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.pt-bank {
  margin-top: 1.25rem;
}

.pt-order header p {
  margin: 0;
  color: #b08958;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .pt-checkout-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    align-items: start;
  }
}

