/* =============================================
   HRz PITSTOP – Product Cards, Catalog & Details
   ============================================= */

/* ---- Products Section (Light Background) ---- */
.products-section {
  background: #e9e8e2;
  color: #101114;
}

/* ---- Filters ---- */
.filters {
  display: flex;
  gap: 7px;
}
.filters button {
  border: 1px solid #bcbdb9;
  background: transparent;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}
.filters .active {
  background: #17191c;
  color: #fff;
  border-color: #17191c;
}

.category-filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-pill {
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--mute);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 99px;
  white-space: nowrap;
  transition: all .15s;
}
.filter-pill:hover { background: var(--steel); color: #fff; }
.filter-pill.active { background: var(--red); border-color: var(--red); color: #fff !important; }

/* ---- Shop Toolbar ---- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -12px 0 23px;
  padding: 12px 0;
  border-top: 1px solid #c8c8c3;
  border-bottom: 1px solid #c8c8c3;
  color: #50514e;
  font-size: 12px;
}
.shop-toolbar > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.shop-toolbar button, .shop-toolbar select {
  border: 0;
  background: transparent;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
}
.shop-toolbar select { margin-left: 5px; }

/* Catalog Controls */
.catalog-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 7vw;
}
.active-bike-filter-note {
  color: var(--green);
  font-size: 13px;
  margin-top: 4px;
}
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}
.sort-wrapper select {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ---- Product Card ---- */
.product-card {
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Light theme product cards (for products section on homepage) */
.products-section .product-card {
  background: transparent;
  border-radius: 0;
}
.products-section .product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-card-media,
.product-image {
  height: 320px;
  background: #d9d8d2;
  position: relative;
  overflow: hidden;
}
.product-card-media img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: .4s;
}
.product-card:hover .product-card-media img,
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Dark theme product images */
.view:not(#home) .product-card-media,
.view:not(#home) .product-image {
  background: #0e1017;
  height: 220px;
}
.view:not(#home) .product-card-media img,
.view:not(#home) .product-image img {
  mix-blend-mode: normal;
  object-fit: contain;
  padding: 16px;
}

/* Badges & Actions */
.product-badge,
.pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--red);
  color: #fff;
  padding: 5px 8px;
  font: 700 10px 'Barlow Condensed';
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
}
.wishlist-toggle-btn,
.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(13, 14, 16, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  z-index: 3;
  transition: all .2s ease;
}
.wishlist-toggle-btn:hover,
.heart:hover {
  background: rgba(225, 59, 49, 0.9);
  border-color: var(--red);
  transform: scale(1.08);
}
.heart.saved { color: #ff5045; background: rgba(225, 59, 49, 0.25); border-color: var(--red); }

.quick-button {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: var(--paper);
  color: #101114;
  border: 0;
  padding: 11px;
  text-transform: uppercase;
  font: 700 12px 'Barlow Condensed';
  letter-spacing: 1px;
  transform: translateY(55px);
  transition: .28s;
  cursor: pointer;
}
.product-card:hover .quick-button { transform: translateY(0); }

.fitment-confidence-tag {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}
.fitment-confidence-tag.verified { background: rgba(16, 185, 129, 0.85); color: #fff; }
.fitment-confidence-tag.universal { background: rgba(30, 41, 59, 0.85); color: var(--mute); }

/* ---- Product Info ---- */
.product-card-content,
.product-info {
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}
.card-category-strip,
.product-info small {
  font-size: 10px;
  text-transform: uppercase;
  color: #71726f;
  letter-spacing: .7px;
  grid-column: span 2;
}
.product-title,
.product-info h3 {
  font-size: 21px;
  margin-bottom: 0;
}
.card-social-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  grid-column: span 2;
  margin: 4px 0;
}
.riders-installed-count { color: var(--mute); font-size: 11px; }
.price-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: span 2;
}
.current-price,
.price {
  font-weight: 700;
  font-size: 13px;
}
.original-price {
  font-size: 13px;
  color: var(--mute);
  text-decoration: line-through;
  margin-left: 6px;
}
.add-to-cart-btn {
  background: var(--red) !important;
  color: #fff !important;
  font: 700 11px 'Barlow Condensed';
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* ---- Load More ---- */
.load-more {
  margin: 45px auto 0;
  display: flex;
  border: 1px solid #333;
  background: transparent;
  padding: 13px 21px;
  text-transform: uppercase;
  font: 700 14px 'Barlow Condensed';
  letter-spacing: 1px;
  cursor: pointer;
  color: #fff;
}
.load-more span { color: var(--red); font-size: 18px; margin-left: 15px; }

/* ---- Reviews ---- */
.reviews-section { background: #25272a; }
.review-arrows { display: flex; gap: 8px; }
.review-arrows button {
  width: 39px;
  height: 39px;
  border: 1px solid #767777;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.review-window { overflow: hidden; }
.review-track {
  display: flex;
  gap: 15px;
  transition: .45s;
}
.review-card {
  background: #181a1d;
  min-width: calc(33.333% - 10px);
  padding: 32px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.stars { color: var(--red); letter-spacing: 3px; font-size: 13px; }
blockquote {
  margin: 26px 0 auto;
  font: 600 25px/1.04 'Barlow Condensed';
  letter-spacing: .1px;
}
.reviewer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}
.reviewer > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #45474a;
  color: #e8e8e5;
  font: 700 12px 'Barlow Condensed';
}
.reviewer p { margin: 0; }
.reviewer b, .reviewer small { display: block; font-size: 11px; }
.reviewer small { color: #979894; margin-top: 3px; }

/* Review headers for inner pages */
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-bike-tag {
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ---- Product Detail ---- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
  padding: 0 7vw 80px;
}
.main-image-frame {
  background: #0e1017;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}
.main-image-frame img {
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}
.thumbnail-strip { display: flex; gap: 12px; margin-top: 14px; }
.thumb-btn {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  width: 64px; height: 64px;
}
.thumb-btn.active { border-color: var(--red); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

.fitment-guarantee-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
}
.fitment-guarantee-banner.universal-fit {
  background: rgba(255, 183, 3, 0.1);
  border-color: var(--gold);
}
.fitment-guarantee-banner .banner-icon { font-size: 24px; }
.fitment-guarantee-banner p { font-size: 13px; color: var(--mute); margin-top: 4px; }

.detail-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.trust-pill {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.purchase-actions-row {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.rider-proof-section {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  padding: 36px 7vw 80px;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 32px 0;
}
.install-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.install-card img { height: 140px; width: 100%; object-fit: cover; }
.install-caption { padding: 10px; font-size: 12px; }
.install-caption strong { display: block; }
.install-caption small { color: var(--mute); }

/* ---- Quick View Modal ---- */
.quick-view {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 50%;
  width: min(760px, 92vw);
  background: #efeee8;
  color: #111;
  display: grid;
  grid-template-columns: 1fr 1fr;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -45%);
  transition: .3s;
}
.quick-view.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.quick-view > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.quick-view > div { padding: 55px 35px 30px; }
.quick-view h2 { font-size: 48px; color: #111; }
.quick-view > div > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.6;
  color: #5a5b58;
  margin: 20px 0;
}
.quick-view strong { font-size: 19px; }
.close-quick {
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 2;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}
.size-row {
  display: flex;
  gap: 7px;
  margin: 23px 0;
}
.size-row button {
  width: 40px;
  height: 32px;
  background: transparent;
  border: 1px solid #999;
  cursor: pointer;
}
.size-row .selected {
  background: #151619;
  color: white;
  border-color: #151619;
}

/* ---- Orders History ---- */
.orders-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 7vw;
}
.order-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.order-bike-tag {
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 12px;
}
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 13px;
}

/* ---- Animation ---- */
.reveal {
  animation: productIn .45s both;
}
@keyframes productIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
