html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.product-page > *,
.product-tabs,
.product-tabs .tabs {
  min-width: 0;
  max-width: 100%;
}

.btn.buy-now {
  background: linear-gradient(135deg, var(--red), #8d170c);
  color: #fff;
}

.payment-methods {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 193, 25, .2);
  border-radius: 24px;
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.payment-methods-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.payment-methods-copy > i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 193, 25, .14);
  color: var(--flame);
}

.payment-methods-copy div {
  display: grid;
}

.payment-methods-copy strong {
  font-size: .92rem;
}

.payment-methods-copy span {
  color: #cdbda8;
  font-size: .76rem;
}

.payment-methods img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.payment-methods--footer {
  margin-top: 18px;
  padding: 12px;
  border-color: rgba(255, 244, 226, .12);
}

.payment-methods--footer .payment-methods-copy > i {
  display: none;
}

.payment-methods--footer .payment-methods-copy {
  margin-bottom: 8px;
}

.filter-sheet-backdrop,
.filter-sheet-close,
.filter-sheet-handle,
.filter-open {
  display: none;
}

.filter-sheet-head h3 {
  margin-bottom: 12px;
}

.filter-reset {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.shop-toolbar > div {
  display: grid;
  gap: 2px;
}

@media (max-width: 980px) {
  body.filter-sheet-open {
    overflow: hidden;
  }

  .filter-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(34, 22, 14, .16);
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--cream);
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
  }

  .filter-count {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--flame);
    color: #2b140a;
    font-size: .72rem;
  }

  .filter-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: rgba(12, 7, 5, .64);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
  }

  .filter-sheet-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar.filter-sheet {
    position: fixed;
    inset: auto 0 0;
    z-index: 181;
    width: 100%;
    max-height: min(88dvh, 760px);
    padding: 0;
    border: 1px solid rgba(196, 137, 47, .28);
    border-bottom: 0;
    border-radius: 32px 32px 0 0;
    background: #fffaf3;
    box-shadow: 0 -28px 80px rgba(17, 8, 4, .3);
    overflow: hidden;
    visibility: hidden;
    transform: translateY(105%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility .3s ease;
  }

  .sidebar.filter-sheet.open {
    visibility: visible;
    transform: none;
  }

  .filter-sheet-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--line);
    background: #fffaf3;
  }

  .filter-sheet-head h3 {
    margin: 0;
  }

  .filter-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 46px;
    height: 5px;
    display: block;
    border-radius: 999px;
    background: #d3c3b5;
    transform: translateX(-50%);
  }

  .filter-sheet-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--charcoal);
    cursor: pointer;
  }

  .filter-sheet form {
    display: flex;
    flex-direction: column;
    max-height: calc(min(88dvh, 760px) - 72px);
  }

  .filter-fields {
    padding: 18px 20px 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .filter-actions {
    flex: 0 0 auto;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -10px 30px rgba(54, 27, 14, .06);
  }
}

@media (max-width: 560px) {
  .product-tabs .tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-bottom: 0;
  }

  .product-tabs .tab-list button {
    width: 100%;
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    line-height: 1.4;
    white-space: normal;
  }

  .product-tabs .tab-list button.active {
    border: 1px solid var(--red);
    background: #fff1dd;
    color: var(--red);
  }

  .product-tabs .tab-panel {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .shop-toolbar .muted {
    display: none;
  }

  .filter-open {
    padding-inline: 12px;
    font-size: .86rem;
  }

  .payment-methods {
    padding: 13px;
    border-radius: 21px;
  }

  .payment-methods-copy {
    margin-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-sheet-backdrop,
  .sidebar.filter-sheet {
    transition: none !important;
  }
}
