.confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #d8d3cc;
  background: #fff;
}

.confidence-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 20px clamp(14px, 2.4vw, 34px);
  border-right: 1px solid #e3dfd9;
}

.confidence-strip article:last-child { border-right: 0; }
.confidence-strip strong { font: 700 10px 'DM Mono', monospace; letter-spacing: .08em; }
.confidence-strip span { color: #655f57; font-size: 12px; line-height: 1.4; }
.confidence-strip a { color: inherit; text-underline-offset: 3px; }

.card { display: flex; flex-direction: column; }
.product-actions { align-items: stretch; }
.product-actions .buy { grid-column: 1 / -1; }

.review-product {
  min-height: 39px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 8px;
  cursor: pointer;
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: .08em;
}

.review-product:hover,
.review-product:focus-visible { background: #c62919; border-color: #c62919; color: #fff; }

.filter-status {
  min-height: 18px;
  margin: -14px 0 22px;
  color: #6e6860;
  font: 10px 'DM Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card .buy:hover,
.card .buy:focus-visible,
.detail-buy:hover:not(:disabled),
.detail-buy:focus-visible:not(:disabled) { background: #c62919; }

.card h3 {
  display: -webkit-box;
  height: auto;
  min-height: 43px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-info { display: flex; flex: 1; flex-direction: column; }
.card .price { margin-top: auto; padding-top: 14px; }

.review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.review-heading .eyebrow { margin: 0 0 5px; color: #716c64; }
.review-heading h3 { margin: 0; }
.review-summary { padding: 12px 14px; border-left: 3px solid #c62919; background: #eee9e2; line-height: 1.45; }
.review-panel #reviewList:empty { display: none; }
.review-panel article:first-child { margin-top: 12px; }
.review-panel form[hidden] { display: none; }
.review-panel form { padding: 16px; background: #f0ece6; border: 1px solid #ddd5ca; }
.review-panel form button { background: #111; color: #fff; }
.review-panel form button:hover,
.review-panel form button:focus-visible { background: #c62919; border-color: #c62919; }
.review-panel select,
.review-panel textarea { border-radius: 0; font-size: 16px; }
.review-panel textarea { resize: vertical; }
#reviewStatus { min-height: 18px; margin: 0; color: #9d2115; font-weight: 700; }

.options select {
  min-height: 46px;
  border-color: #8c867f;
  font-size: 16px;
}

.detail-buy:disabled { cursor: not-allowed; opacity: .55; }
.detail-review-jump { display: block; width: 100%; margin: 8px 0 2px; border: 0; background: transparent; color: #8f2116; padding: 6px 0; cursor: pointer; font: 700 12px 'DM Mono', monospace; text-align: left; letter-spacing: .04em; }
.detail-review-jump:hover,
.detail-review-jump:focus-visible { color: #111; text-decoration: underline; text-underline-offset: 4px; }
.detail-tools { display: grid; grid-template-columns: 1fr; }
.detail-tools button { width: 100%; }
.related-loading { grid-column: 1 / -1; color: #716c64; }
.related-shop-link { grid-column: 1 / -1; display: block; padding: 14px; border: 1px solid #111; color: #111; font-weight: 700; text-align: center; text-decoration: none; }
.related-shop-link:hover,
.related-shop-link:focus-visible { background: #111; color: #fff; }
.details .status { padding: 10px 0; line-height: 1.45; }
body.product-open { overflow: hidden; }

button,
.button,
.message-product,
.detail-message,
.ebay-link,
.shop-link,
.related-shop-link {
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  transform-origin: center;
}

button:active,
.button:active,
.message-product:active,
.detail-message:active,
.ebay-link:active,
.shop-link:active,
.related-shop-link:active { transform: translateY(2px) scale(.97); }

.click-pop { animation: control-pop .32s cubic-bezier(.2, .85, .3, 1); }
.modal.open { animation: backdrop-in .24s ease both; }
.modal.open .box,
.chat-modal.open .chat-box { animation: panel-slide-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.modal.closing { animation: backdrop-out .22s ease both; }
.modal.closing .box,
.modal.closing .chat-box { animation: panel-slide-out .22s ease both; }
.cart-drawer:not([hidden]),
.wishlist-drawer:not([hidden]) { animation: drawer-slide-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.account-modal:not([hidden]) { animation: backdrop-in .24s ease both; }
.account-modal:not([hidden]) .account-panel { animation: panel-slide-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.card { animation: card-reveal .38s ease backwards; }
.main-img.media-switching { animation: media-swap .3s ease both; }
.thumbs img { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; opacity: .7; }
.thumbs img:hover,
.thumbs img:focus-visible,
.thumbs img.active { opacity: 1; transform: translateY(-2px); border-color: #c62919; box-shadow: 0 0 0 2px #c6291930; }

@keyframes control-pop {
  0% { transform: scale(1); }
  45% { transform: translateY(1px) scale(.95); }
  75% { transform: translateY(-2px) scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes panel-slide-in { from { opacity: 0; transform: translateY(34px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes panel-slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px) scale(.985); } }
@keyframes drawer-slide-in { from { opacity: .6; transform: translateX(100%); } to { opacity: 1; transform: none; } }
@keyframes card-reveal { from { opacity: 0; transform: translateY(14px); } }
@keyframes media-swap { from { opacity: .25; transform: translateX(12px) scale(.99); } to { opacity: 1; transform: none; } }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f0a69f;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .confidence-strip { grid-template-columns: 1fr 1fr; }
  .confidence-strip article:nth-child(2) { border-right: 0; }
  .confidence-strip article:nth-child(-n+2) { border-bottom: 1px solid #e3dfd9; }
}

@media (max-width: 850px) {
  .product-actions .buy { grid-column: auto; }
  .review-product { min-height: 48px; }
  .review-heading { display: grid; }
  .review-heading button { width: 100%; }
  .review-panel { scroll-margin-top: 58px; }
}

@media (max-width: 520px) {
  .confidence-strip { grid-template-columns: 1fr; }
  .confidence-strip article { border-right: 0; border-bottom: 1px solid #e3dfd9; padding: 15px 18px; }
  .confidence-strip article:last-child { border-bottom: 0; }
  .card-info { padding: 11px; }
  .card h3 { min-height: 52px; }
}

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