/* ============================================================
   RoidOcean — Shared product card (carousels · grids · search)
   ============================================================ */
.ro-pcard {
  background: #fff;
  border-radius: var(--ro-radius);
  border: 1px solid var(--ro-line-soft);
  box-shadow: var(--ro-shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.ro-pcard:hover { box-shadow: var(--ro-shadow-md); transform: translateY(-2px); }

/* media */
.ro-pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.ro-pcard-imgwrap { display: flex; align-items: center; justify-content: center; height: 100%; }
.ro-pcard-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  transition: transform .3s;
}
.ro-pcard:hover .ro-pcard-media img { transform: scale(1.05); }

.ro-pcard-topbadges {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  z-index: 2; pointer-events: none;
}
.ro-badge-flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--ro-radius-sm); }
.ro-badge-flag .ro-flag { width: 18px; height: 14px; border-radius: 3px; }
.ro-badge-flag > span { font-size: var(--ro-fs-xs); font-weight: var(--ro-fw-semi); color: #374151; }

.ro-pcard-bulk {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
}
.ro-pcard-bulk i { color: var(--ro-orange); font-size: 12px; }

.ro-pcard-hover {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 3;
  padding: 12px;
  display: flex; justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
  opacity: 0; transition: opacity .25s;
}
.ro-pcard:hover .ro-pcard-hover { opacity: 1; }
.ro-pcard-add {
  width: 40px; height: 40px; border-radius: var(--ro-radius-sm);
  background: #fff; border: 0; cursor: pointer; color: var(--ro-navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: var(--ro-shadow);
  transition: background .18s, color .18s;
}
.ro-pcard-add:hover { background: var(--ro-orange); color: #fff; }

/* body */
.ro-pcard-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ro-pcard-brand { font-size: var(--ro-fs-xs); font-weight: var(--ro-fw-semi); color: var(--ro-orange); text-transform: none; }
.ro-pcard-brand:hover { color: var(--ro-orange-600); }
.ro-pcard-title {
  margin: 0; font-size: var(--ro-fs-sm); font-weight: var(--ro-fw-semi);
  line-height: 1.35; color: var(--ro-navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.ro-pcard-title a { color: inherit; }
.ro-pcard-title a:hover { color: var(--ro-orange); }

.ro-pcard-rating { font-size: var(--ro-fs-xs); min-height: 16px; }
.ro-rating-none { color: var(--ro-muted); }
.ro-stars { color: var(--ro-orange); letter-spacing: 1px; }
.ro-rating-count { color: var(--ro-muted); margin-left: 4px; }

.ro-pcard-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.ro-price { font-size: var(--ro-fs-lg); font-weight: var(--ro-fw-bold); color: var(--ro-navy); }
.ro-price-old { font-size: var(--ro-fs-sm); color: var(--ro-muted); text-decoration: line-through; }

.ro-pcard-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* card inside carousel cell keeps a fixed width */
.ro-car-cell > .ro-pcard { height: 100%; }
