/* =============================================
   SHOP PAGE STYLES (Throttle Pitstop Digital Hub)
   Covers: brand strip, cover carousel, layout,
   sidebar, filter toggle, product cards
   ============================================= */

/* ---------- BRAND STRIP (Riders Collective) ---------- */
.shop-brand-strip {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 18px 0;
  text-align: center;
}
.shop-brand-logo {
  display: inline-block;
  height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- COVER CAROUSEL ---------- */
.shop-cover {
  position: relative;
  max-width: 1240px;
  margin: 26px auto 0;
  padding: 0 20px;
}
.shop-cover-slides {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  background: #111;
}
.shop-cover-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.shop-cover-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.shop-cover-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.08) 100%);
}
.shop-cover-content {
  position: absolute;
  left: 48px;
  bottom: 44px;
  max-width: 520px;
  color: #fff;
  z-index: 2;
}
.shop-cover-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.shop-cover-content p {
  font-size: 16.5px;
  margin: 0 0 18px;
  opacity: 0.94;
}
.shop-cover-nav {
  position: absolute;
  right: 44px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.shop-cover-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.shop-cover-btn:hover {
  background: #ff6600;
  color: #fff;
}
.shop-cover-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shop-cover-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.2s;
}
.shop-cover-dot.active {
  background: #ff6600;
  transform: scale(1.25);
}

/* ---------- LAYOUT ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 28px;
  align-items: start;
}
.shop-main {
  min-width: 0;
}

/* ---------- SIDEBAR ---------- */
.shop-sidebar {
  position: sticky;
  top: 96px;
}
.shop-sidebar-box {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.shop-sidebar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f1f1;
  color: #111;
}
.shop-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-sidebar-list li + li {
  margin-top: 2px;
}
.shop-cat-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #333;
  font-size: 14.5px;
  text-decoration: none;
  transition: 0.18s;
}
.shop-cat-link:hover {
  background: #f6f6f6;
  color: #ff6600;
}
.shop-cat-link.active {
  background: #fff0e0;
  color: #ff6600;
  font-weight: 600;
}

/* ---------- MOBILE FILTER TOGGLE ---------- */
.shop-filter-toggle {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 14.5px;
  color: #111;
  cursor: pointer;
}

/* ---------- PRODUCT GRID ---------- */
/* Consistent with the homepage: desktop 5 | tablet 3 | mobile 2 */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.shop-products-grid > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
/* The shop listing keeps a 264px sidebar, so its product column is narrower:
   4 across on desktop keeps cards a readable size, 3 on tablet, 2 on mobile. */
@media (min-width: 993px) {
  .shop-main .shop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.11);
  border-color: #e0e0e0;
}
.product-image {
  position: relative;
  height: 196px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image-placeholder {
  font-size: 54px;
  opacity: 0.3;
  line-height: 1;
}

/* Book Test Ride / Service trigger overlay on the product image */
.product-booking-trigger {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
}
.product-card:hover .product-booking-trigger,
.product-booking-trigger:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.product-booking-trigger:hover {
  background: #ff6600;
}
.booking-icon {
  font-size: 12px;
  line-height: 1;
  flex: none;
}
.booking-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.product-badge.new,
.product-badge.active {
  background: #ff6600;
}
.product-badge.pre-order {
  background: #f59e0b;
}
.product-badge.importing {
  background: #2563eb;
}
.product-badge.out-of-stock {
  background: #6b7280;
}
.product-badge.sale {
  background: #dc2626;
}
.product-badge.hot {
  background: #ff6600;
}
.product-badge.clearance {
  background: #111827;
}
.product-price-old {
  color: #9ca3af;
  font-size: 13px;
  margin-left: 8px;
  font-weight: 500;
}
.deals-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 4px 0 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.deals-tabs::-webkit-scrollbar {
  display: none;
}
@media(min-width:769px) {
  .deals-tabs {
    justify-content: center;
    overflow: visible;
  }
}
.deals-tab {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #e5e0d5;
  background: #fff;
  color: #444;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
@media(max-width:768px) {
  .deals-tab {
    font-size: 11px;
    padding: 7px 14px;
    letter-spacing: 0.4px;
  }
}
.deals-panel {
  display: none;
}
.deals-panel.active {
  display: block;
}
.deals-tab:hover {
  border-color: #ff6600;
  color: #ff6600;
}
.deals-tab.active {
  background: #ff6600;
  border-color: #ff6600;
  color: #fff;
}
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.25s;
  z-index: 2;
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: none;
}
.product-action-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: 0.2s;
}
.product-action-btn:hover {
  background: #ff6600;
  color: #fff;
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px 17px;
  flex: 1;
}
.product-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #9aa0a6;
}
.product-name {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
}
.product-name a {
  color: #111;
  text-decoration: none;
  transition: 0.18s;
}
.product-name a:hover {
  color: #ff6600;
}
.product-status {
  font-size: 12.5px;
  color: #16a34a;
}
.product-status.low-stock {
  color: #f59e0b;
}
.product-status.out-of-stock {
  color: #dc2626;
}
.product-price {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.product-price-current {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ff6600;
}
.product-price-original {
  font-size: 13.5px;
  color: #999;
  text-decoration: line-through;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .shop-sidebar {
    position: static;
    display: none;
    order: 2;
  }
  .shop-sidebar.open {
    display: block;
  }
  .shop-filter-toggle {
    display: inline-flex;
    order: 1;
  }
  .shop-cover-slides {
    height: 320px;
  }
  .shop-cover-content {
    left: 30px;
    bottom: 34px;
    max-width: 70%;
  }
  .shop-cover-content h2 {
    font-size: 32px;
  }
  .shop-cover-nav {
    right: 26px;
    bottom: 30px;
  }
}
@media (max-width: 560px) {
  .shop-brand-logo {
    height: 68px;
  }
  .shop-cover {
    padding: 0 12px;
    margin-top: 16px;
  }
  .shop-cover-slides {
    height: 230px;
    border-radius: 12px;
  }
  .shop-cover-content {
    left: 20px;
    bottom: 24px;
    max-width: 82%;
  }
  .shop-cover-content h2 {
    font-size: 24px;
  }
  .shop-cover-content p {
    font-size: 13.5px;
    margin-bottom: 12px;
  }
  .shop-cover-nav {
    right: 16px;
    bottom: auto;
    top: 16px;
  }
  .shop-cover-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-image {
    height: 150px;
  }
  .product-info {
    padding: 11px 12px 13px;
  }
  .product-name {
    font-size: 13.5px;
  }
  .product-price-current {
    font-size: 17px;
  }
}

/* ---- Stock status + approved chip ---- */
.product-status.available { color: #16a34a; font-weight: 600; }
.product-status.preorder { color: #f59e0b; font-weight: 600; }
.product-badge.approved { background: #2563eb; }
.product-badges { gap: 6px; }