.shop {
  position: relative;
  padding-block: 104px 112px;
}

.shop::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 38px;
  right: -8vw;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 201, 157, 0.2), transparent 68%);
  pointer-events: none;
}

.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.shop-heading h2 {
  margin-bottom: 0;
}

.shop-heading > p {
  max-width: 320px;
  margin: 0 0 5px;
  color: var(--muted);
  font: 15px/1.55 Georgia, serif;
  text-align: right;
}

.shop .filters {
  gap: 8px;
  margin: 0 -5px 24px;
  padding: 5px 5px 14px;
}

.shop .filters button {
  min-height: 37px;
  padding: 9px 17px;
  border-color: #dddcd5;
  background: rgba(255, 255, 255, 0.84);
  color: #46534c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.shop .filters button:hover,
.shop .filters button:focus-visible {
  border-color: rgba(11, 48, 72, 0.5);
  color: var(--navy);
}

.shop .filters button:focus-visible {
  outline: 3px solid rgba(158, 47, 43, 0.18);
  outline-offset: 2px;
}

.shop .filters button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.products {
  gap: 24px;
}

.products article {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e5e2da;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 8px 28px rgba(11, 48, 72, 0.07);
  isolation: isolate;
}

.products article::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -72px;
  bottom: -82px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 215, 187, 0.34), transparent 68%);
  pointer-events: none;
}

.product-favorite {
  position: absolute;
  z-index: 7;
  top: 14px;
  right: 14px;
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.93);
  color: #6d756f;
  box-shadow: 0 8px 24px rgba(11, 48, 72, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-favorite svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.product-favorite path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}

.product-favorite:hover,
.product-favorite:focus-visible {
  color: var(--red);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 11px 27px rgba(11, 48, 72, 0.2);
}

.product-favorite:focus-visible {
  outline: 3px solid rgba(158, 47, 43, 0.25);
  outline-offset: 3px;
}

.product-favorite[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.product-favorite[aria-pressed="true"] path {
  fill: currentColor;
}

.product-favorite:disabled {
  cursor: wait;
  opacity: 0.65;
}

.actions [data-account].is-signed-in {
  color: var(--navy);
}

.actions [data-account].is-signed-in::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #3f8662;
  box-shadow: 0 0 0 3px rgba(63, 134, 98, 0.13);
}

.products article:hover,
.products article:focus-within {
  border-color: #d1d5cc;
  box-shadow: 0 22px 50px rgba(11, 48, 72, 0.13);
  transform: translateY(-6px);
}

.products article .product-gallery,
.products article .product-art {
  height: 248px;
  flex: 0 0 248px;
  background-color: #f3eee4;
}

.products article .product-slide img {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.products article:hover .product-slide[aria-hidden="false"] img,
.products article:focus-within .product-slide[aria-hidden="false"] img {
  transform: scale(1.025);
}

.product-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #f9eddc, #ead7bb);
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(146, 81, 46, 0.11);
  border-radius: 50%;
}

.product-art::before {
  width: 188px;
  height: 188px;
}

.product-art::after {
  width: 218px;
  height: 218px;
}

.product-art span {
  position: relative;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.products article:hover .product-art span {
  transform: rotate(-3deg) scale(1.04);
}

.products article:hover .product-art.bundle span {
  transform: rotate(5deg) scale(1.04);
}

.product-copy {
  display: flex;
  min-height: 265px;
  padding: 24px 23px 22px;
  flex: 1;
  flex-direction: column;
}

.product-copy .product-category {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #e7e1d5;
  border-radius: 999px;
  background: #faf5eb;
  color: var(--navy);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

.product-category i {
  display: block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 47, 43, 0.1);
}

.product-copy h3 {
  margin: 14px 0 8px;
  color: #17251e;
  font: 400 23px/1.12 Georgia, serif;
  letter-spacing: -0.015em;
}

.product-copy > p {
  min-height: 38px;
  margin: 0;
  color: #69746f;
  font-size: 12px;
  line-height: 1.55;
}

.product-copy .product-purchase {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ebe8e1;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.product-price strong {
  color: var(--navy);
  font: 700 22px/1 Georgia, serif;
  letter-spacing: -0.02em;
}

.product-price span {
  color: #89918d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-quantity {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
  width: 100%;
  isolation: isolate;
}

.product-copy .pqt-plus,
.product-copy .pqt-minus,
.product-copy .cart-button {
  height: 48px;
  margin: 0;
  border-radius: 14px;
  font-family: Arial, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.product-copy .pqt-plus,
.product-copy .pqt-minus {
  display: grid;
  width: 46px;
  min-width: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #dcded8;
  background: #f8f5ed;
  color: var(--navy);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.pqt-plus:hover,
.pqt-minus:hover:not(:disabled),
.pqt-plus:focus-visible,
.pqt-minus:focus-visible:not(:disabled) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 48, 72, 0.18);
}

.pqt-plus:active,
.pqt-minus:active:not(:disabled) {
  transform: scale(0.92);
}

.pqt-minus:disabled {
  border-color: #e8e6e0;
  background: #f6f4ef;
  color: #b9bdb9;
  box-shadow: none;
  cursor: not-allowed;
}

.pqt-plus:focus-visible,
.pqt-minus:focus-visible,
.cart-button:focus-visible {
  outline: 3px solid rgba(158, 47, 43, 0.22);
  outline-offset: 2px;
}

.product-copy .cart-button {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  border: 0;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 9px 20px rgba(11, 48, 72, 0.18);
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.16s ease,
    box-shadow 0.22s ease;
}

.cart-button:hover {
  background: #071f30;
  box-shadow: 0 12px 24px rgba(11, 48, 72, 0.26);
}

.cart-button:active {
  transform: scale(0.96);
}

.cart-button span {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: calc(100% - 20px);
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.cart-button .add-to-cart {
  opacity: 1;
}

.cart-button .added {
  opacity: 0;
}

.cart-button .added b {
  font: inherit;
}

.cart-button.has-quantity:not(.clicked) .add-to-cart {
  opacity: 0;
}

.cart-button.has-quantity:not(.clicked) .added {
  opacity: 1;
}

.cart-button-icon {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: -16%;
  width: 26px;
  height: 26px;
  color: #fff;
  transform: translate(-50%, -50%);
}

.cart-button.clicked .cart-button-icon {
  animation: tlb-cart-run 1.3s ease-in-out forwards;
}

.cart-button.clicked .add-to-cart,
.cart-button.clicked .added {
  animation-duration: 1.3s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.cart-button.clicked .add-to-cart {
  animation-name: tlb-cart-copy-out;
}

.cart-button.clicked .added {
  animation-name: tlb-cart-copy-in;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@keyframes tlb-cart-run {
  0% {
    left: -16%;
    transform: translate(-50%, -50%) rotate(0);
  }
  40%,
  60% {
    left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
  }
  100% {
    left: 116%;
    transform: translate(-50%, -50%) rotate(0);
  }
}

@keyframes tlb-cart-copy-out {
  0% {
    opacity: 1;
  }
  20%,
  100% {
    opacity: 0;
  }
}

@keyframes tlb-cart-copy-in {
  0%,
  76% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 5px));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 800px) {
  .shop {
    padding-block: 78px 88px;
  }

  .shop-heading {
    display: block;
  }

  .shop-heading > p {
    max-width: 420px;
    margin-top: 12px;
    text-align: left;
  }

  .products {
    gap: 16px;
  }

  .products article .product-gallery,
  .products article .product-art {
    height: 218px;
    flex-basis: 218px;
  }

  .product-copy {
    min-height: 255px;
    padding: 20px 18px 18px;
  }

  .product-copy h3 {
    font-size: 21px;
  }

  .product-quantity {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .pqt-plus,
  .pqt-minus {
    width: 40px;
  }
}

@media (max-width: 620px) {
  .shop {
    padding-block: 68px 78px;
  }

  .shop h2 {
    font-size: 38px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .products article {
    border-radius: 22px;
  }

  .products article .product-gallery,
  .products article .product-art {
    height: clamp(230px, 68vw, 290px);
    flex-basis: clamp(230px, 68vw, 290px);
  }

  .product-copy {
    min-height: 0;
    padding: 22px 20px 20px;
  }

  .product-copy > p {
    min-height: 0;
  }

  .product-copy .product-purchase {
    margin-top: 20px;
  }

  .product-quantity {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .pqt-plus,
  .pqt-minus {
    width: 46px;
  }

  .cart-button span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products article .product-slide img,
  .product-art span,
  .product-favorite,
  .product-favorite path,
  .pqt-plus,
  .pqt-minus,
  .cart-button {
    transition: none !important;
  }

  .cart-button.clicked .cart-button-icon,
  .cart-button.clicked .add-to-cart,
  .cart-button.clicked .added {
    animation: none !important;
  }

  .cart-button.clicked .add-to-cart {
    opacity: 0;
  }

  .cart-button.clicked .added {
    opacity: 1;
  }
}
