/* Product cards & pit lane — moved from shop.html inline <style> */

/* ===== Product Card Styles ===== */
.shop-header {
  background: linear-gradient(135deg, #0046ae 0%, #002d73 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: shopGridMove 20s linear infinite;
}
@keyframes shopGridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}
.shop-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.shop-header p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.product-section {
  padding: 50px 0;
}
.product-section:nth-of-type(even) {
  background: #f8f9fa;
}

.section-badge {
  display: inline-block;
  background: #0046ae;
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 2px solid #e8e8e8;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,70,174,0.18);
  border-color: #0046ae;
}

/* ===== Product Image Carousel ===== */
.product-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f2f5;
}
.product-img-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.32s ease;
  will-change: transform;
}
.product-img-slider img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #0046ae;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.18s ease, color 0.18s ease;
  z-index: 4;
  opacity: 0;
}
.product-card:hover .img-arrow {
  opacity: 1;
}
.img-arrow:hover {
  background: #0046ae;
  color: #fff;
}
.img-arrow-left {
  left: 8px;
}
.img-arrow-right {
  right: 8px;
}

.product-quick-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 22, 60, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 3;
  text-decoration: none;
  pointer-events: none;
}
.product-card:hover .product-quick-view {
  opacity: 1;
  pointer-events: auto;
}
.product-quick-view__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #0046ae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: scale(0.88);
  transition: transform 0.22s ease, background 0.18s ease, color 0.18s ease;
}
.product-card:hover .product-quick-view__btn {
  transform: scale(1);
}
.product-quick-view:hover .product-quick-view__btn {
  background: #0046ae;
  color: #fff;
}

.img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.img-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.img-dot.active {
  background: #0046ae;
  border-color: #0046ae;
  width: 22px;
  border-radius: 4px;
}

.product-info {
  padding: 16px 18px 18px;
}
.product-info .product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-info .product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0046ae;
  margin-bottom: 4px;
}
.product-info .product-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  text-decoration: line-through;
  margin-left: 8px;
}
.product-info .product-tag {
  display: inline-block;
  background: #0046ae;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.buy-now-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
}
.buy-now-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
  color: #fff;
}
.buy-now-btn i {
  margin-right: 6px;
}

.product-stock-qty {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-stock-qty i {
  margin-right: 0.25rem;
  font-size: 0.72rem;
}
.product-stock-qty--urgent { color: #d32f2f; }
.product-stock-qty--low { color: #e65100; }
.product-stock-qty--ok { color: #2e7d32; }
.product-stock-qty--out { color: #757575; }

.section-title-custom {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: #0046ae;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ===== Pit Lane Marketplace ===== */
.product-section.pit-lane-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 70, 174, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 8px
    ),
    #0b0f14;
  overflow-x: clip;
  overflow-y: visible;
}
.pit-lane-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 70, 174, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 86, 214, 0.2), transparent 40%);
  pointer-events: none;
}
.pit-lane-section > .container {
  position: relative;
  z-index: 1;
}
.pit-lane-section .section-title-custom { color: #ffffff; }

.pit-lane-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  text-align: center;
}
.pit-lane-benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.pit-lane-benefit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.35rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.pit-lane-benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 180, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 70, 174, 0.22);
}
.pit-lane-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0046ae 0%, #0056d6 100%);
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 70, 174, 0.35);
}
.pit-lane-benefit h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.pit-lane-disclaimer {
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #4da3ff;
  background: rgba(0, 70, 174, 0.18);
  border-radius: 0 8px 8px 0;
  font-size: clamp(0.72rem, 1.15vw, 0.95rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pit-lane-disclaimer::-webkit-scrollbar { display: none; }

.pit-lane-verify {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
  list-style: none;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pit-lane-verify::-webkit-scrollbar { display: none; }
.pit-lane-verify li {
  flex: 0 0 auto;
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.pit-lane-section .shop-listings-heading {
  color: rgba(255, 255, 255, 0.92);
}
.pit-lane-listings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.pit-lane-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.pit-lane-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 180, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 70, 174, 0.22);
}
.pit-lane-card__img {
  position: relative;
  height: 160px;
  background: rgba(0, 0, 0, 0.28);
}
.pit-lane-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pit-lane-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #0046ae;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pit-lane-card__badge--new { background: #003580; }
.pit-lane-card__body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pit-lane-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pit-lane-card__price {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #7eb4ff;
}
.pit-lane-card__loc {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}
.pit-lane-card__loc i {
  color: #4da3ff;
  margin-right: 0.25rem;
}
.pit-lane-card__contact {
  display: block;
  margin-top: auto;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pit-lane-card__contact:hover {
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.pit-lane-card__contact i { margin-right: 0.35rem; }

.pit-lane-post {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0046ae 0%, #003580 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 70, 174, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pit-lane-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 70, 174, 0.38);
}
.pit-lane-post__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.pit-lane-post__title {
  margin: 0 0 1.25rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  transition: text-shadow 0.22s ease, transform 0.22s ease;
}
.pit-lane-post:hover .pit-lane-post__title {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
  transform: scale(1.02);
}
.pit-lane-post__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 2rem;
  border: 2px solid #fff;
  border-radius: 50px;
  background: #fff;
  color: #0046ae;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pit-lane-post__btn:hover {
  color: #0046ae !important;
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.55), 0 10px 28px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .product-grid:not(.view-list) {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .pit-lane-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pit-lane-listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .shop-header h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  .shop-header { padding: 40px 0; }
  .product-card:hover .img-arrow,
  .img-arrow {
    opacity: 1;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .pit-lane-post { padding: 1.5rem 1.15rem; }
  .pit-lane-post__btn {
    width: 100%;
    max-width: 280px;
  }
}

.product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 2rem;
}
