.product-card[data-product-url] {
  cursor: pointer;
}

.product-card[data-product-url]:focus {
  outline: 3px solid rgba(229, 27, 36, .24);
  outline-offset: 3px;
}

.product-card h3 a:hover,
.view-details:hover {
  color: var(--red);
}

.view-details {
  display: inline-flex;
  margin-top: 11px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.developer-credit {
  margin-left: 3px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(229, 27, 36, .22);
  border-radius: 6px;
  background: #fff0f0;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.developer-credit:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.hero h1 {
  font-size: clamp(50px, 5.4vw, 82px);
}

.ad-carousel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f3f0ea;
}

.ad-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity .6s ease, transform .8s ease;
}

.ad-slide.active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.ad-media {
  position: absolute;
  inset: 0;
  background-color: #f3f0ea;
  background-repeat: no-repeat;
  background-size: 400% auto;
}

.ad-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 19, 21, .12) 70%, rgba(17, 19, 21, .42));
}

.ad-slide.bike .ad-media {
  background: linear-gradient(133deg, transparent 0 61%, var(--red) 61% 65%, transparent 65%), #f3f0ea;
}

.ad-slide.service .ad-media {
  background-image: url('../images/product-strip.png');
  background-position: 66.666% center;
}

.ad-slide.equipment .ad-media {
  background-image: url('../images/product-strip.png');
  background-position: 100% center;
}

.hero-visual .ad-slide .ad-media img {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vw, 28px);
  object-fit: contain;
  object-position: center;
  background: #f3f0ea;
  animation: none;
}

.ad-caption {
  position: absolute;
  left: 5%;
  bottom: 70px;
  z-index: 3;
  width: min(350px, 66%);
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(17, 19, 21, .82);
  box-shadow: 0 18px 45px rgba(17, 19, 21, .2);
  color: #fff;
  backdrop-filter: blur(12px);
}

.ad-caption > span {
  color: #ff656b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ad-caption > strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero .ad-caption p {
  max-width: none;
  margin: 9px 0 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.45;
}

.ad-caption a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.ad-caption a:hover {
  color: #ff656b;
}

.carousel-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
}

.carousel-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 19, 21, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(17, 19, 21, .28);
  transition: width .2s ease, background .2s ease;
  cursor: pointer;
}

.carousel-dots button.active {
  width: 24px;
  background: var(--red);
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(46px, 12vw, 62px); }
  .ad-caption { left: 16px; right: 16px; bottom: 61px; width: auto; padding: 14px 15px; }
  .ad-caption > strong { font-size: 23px; }
  .hero .ad-caption p { margin-bottom: 8px; }
  .carousel-controls { top: auto; right: auto; left: 16px; bottom: 15px; }
}

@media (max-width: 520px) {
  .ad-caption {
    left: 12px;
    right: auto;
    bottom: 52px;
    width: min(250px, calc(100% - 24px));
    padding: 10px 12px;
    border-radius: 11px;
    backdrop-filter: blur(8px);
  }

  .ad-caption > span { font-size: 7px; }
  .ad-caption > strong { margin-top: 4px; font-size: 18px; line-height: 1.04; }
  .hero .ad-caption p { display: none; }
  .ad-caption a { margin-top: 8px; font-size: 8px; }
  .carousel-controls { left: 12px; bottom: 12px; }
}

.product-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 105px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 8px 0 24px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(34px, 5vw, 75px);
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
}

.product-gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1.08 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #f3f1ec;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.gallery-placeholder {
  background: #f3f1ec url('../images/product-strip.png') 0 center / 400% auto no-repeat;
}

.gallery-placeholder.cat-frenos { background-position: 33.333% center; }
.gallery-placeholder.cat-motor { background-position: 66.666% center; }
.gallery-placeholder.cat-accesorios { background-position: 100% center; }

.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #f3f1ec;
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--red);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 7px;
  object-fit: cover;
}

.gallery-count {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 9px;
}

.product-info {
  padding: clamp(10px, 2vw, 25px) 8px;
}

.product-info h1 {
  margin: 12px 0 9px;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: .98;
  letter-spacing: -.06em;
}

.product-sku {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.detail-price {
  margin: 29px 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

.detail-price del {
  color: #8a8b87;
  font-size: 13px;
}

.detail-price span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff0f0;
  color: var(--red);
  font-size: 9px;
  font-weight: 850;
}

.detail-stock {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-radius: 10px;
  background: #eef7f0;
  color: #23713a;
}

.detail-stock.out {
  background: #fff0f0;
  color: #a20f16;
}

.detail-stock b { font-size: 11px; }
.detail-stock span { font-size: 9px; }

.detail-description {
  margin-top: 28px;
}

.detail-description h2 {
  margin: 0 0 9px;
  font-size: 15px;
}

.detail-description p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.detail-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.detail-actions .btn {
  width: 100%;
  padding: 0 14px;
  text-align: center;
}

.detail-actions .add-cart {
  width: 100%;
  height: auto;
}

.btn.whatsapp {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.btn.whatsapp:hover {
  background: var(--ink);
  color: #fff;
}

.detail-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.characteristics {
  margin-top: 25px;
  padding: 38px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 60px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}

.characteristics h2 {
  margin: 12px 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.characteristics > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.characteristics dl {
  margin: 0;
}

.characteristics dl div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  border-bottom: 1px solid #e9e7e2;
}

.characteristics dl div:last-child { border-bottom: 0; }

.characteristics dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.characteristics dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.related-products {
  margin-top: 95px;
}

.related-products .section-heading {
  grid-template-columns: 1fr auto;
}

.related-products .product-grid {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .product-page { width: calc(100% - 28px); }
  .product-detail { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 1.3 / 1; }
  .characteristics { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 560px) {
  .product-page { width: calc(100% - 16px); padding-top: 65px; }
  .breadcrumbs { padding-bottom: 14px; }
  .product-detail { padding: 12px; border-radius: 18px; }
  .gallery-main { aspect-ratio: 1 / 1; border-radius: 13px; }
  .gallery-thumbs { grid-template-columns: repeat(5, 64px); overflow: auto; }
  .product-info { padding: 18px 6px; }
  .product-info h1 { font-size: 39px; }
  .detail-price strong { font-size: 25px; }
  .detail-stock { align-items: flex-start; flex-direction: column; gap: 4px; }
  .detail-actions { grid-template-columns: 1fr; }
  .characteristics { padding: 24px 18px; }
  .characteristics h2 { font-size: 30px; }
  .characteristics dl div { grid-template-columns: 1fr; gap: 5px; }
  .related-products { margin-top: 70px; }
  .related-products .section-heading { grid-template-columns: 1fr; gap: 18px; }
}
